!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))e(t);new MutationObserver((t=>{for(const n of t)if("childList"===n.type)for(const t of n.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&e(t)})).observe(document,{childList:!0,subtree:!0})}function e(t){if(t.ep)return;t.ep=!0;const e=function(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?e.credentials="include":"anonymous"===t.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(t);fetch(t.href,e)}}();function t(t,e){const n=Object.create(null),i=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const e={},n=[],i=()=>{},r=()=>!1,o=/^on[^a-z]/,a=t=>o.test(t),s=t=>t.startsWith("onUpdate:"),l=Object.assign,u=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},c=Object.prototype.hasOwnProperty,h=(t,e)=>c.call(t,e),d=Array.isArray,p=t=>"[object Map]"===b(t),f=t=>"[object Set]"===b(t),g=t=>"function"==typeof t,v=t=>"string"==typeof t,m=t=>"symbol"==typeof t,y=t=>null!==t&&"object"==typeof t,_=t=>y(t)&&g(t.then)&&g(t.catch),x=Object.prototype.toString,b=t=>x.call(t),w=t=>b(t).slice(8,-1),S=t=>"[object Object]"===b(t),M=t=>v(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,I=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},C=/-(\w)/g,T=A((t=>t.replace(C,((t,e)=>e?e.toUpperCase():"")))),D=/\B([A-Z])/g,k=A((t=>t.replace(D,"-$1").toLowerCase())),L=A((t=>t.charAt(0).toUpperCase()+t.slice(1))),P=A((t=>t?`on${L(t)}`:"")),O=(t,e)=>!Object.is(t,e),E=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},N=t=>{const e=parseFloat(t);return isNaN(e)?t:e},B=t=>{const e=v(t)?Number(t):NaN;return isNaN(e)?t:e};let z;const V=()=>z||(z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function F(t){if(d(t)){const e={};for(let n=0;n{if(t){const n=t.split(H);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function j(t){let e="";if(v(t))e=t;else if(d(t))for(let n=0;nv(t)?t:null==t?"":d(t)||y(t)&&(t.toString===x||!g(t.toString))?JSON.stringify(t,K,2):String(t),K=(t,e)=>e&&e.__v_isRef?K(t,e.value):p(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:f(e)?{[`Set(${e.size})`]:[...e.values()]}:!y(e)||d(e)||S(e)?e:String(e);let $;class J{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$,!t&&$&&(this.index=($.scopes||($.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=$;try{return $=this,t()}finally{$=e}}}on(){$=this}off(){$=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e{const e=new Set(t);return e.w=0,e.n=0,e},it=t=>(t.w&st)>0,rt=t=>(t.n&st)>0,ot=new WeakMap;let at=0,st=1;const lt=30;let ut;const ct=Symbol(""),ht=Symbol("");class dt{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,function(t,e=$){e&&e.active&&e.effects.push(t)}(this,n)}run(){if(!this.active)return this.fn();let t=ut,e=ft;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ut,ut=this,ft=!0,st=1<<++at,at<=lt?(({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i{("length"===n||n>=t)&&s.push(e)}))}else switch(void 0!==n&&s.push(a.get(n)),e){case"add":d(t)?M(n)&&s.push(a.get("length")):(s.push(a.get(ct)),p(t)&&s.push(a.get(ht)));break;case"delete":d(t)||(s.push(a.get(ct)),p(t)&&s.push(a.get(ht)));break;case"set":p(t)&&s.push(a.get(ct))}if(1===s.length)s[0]&&bt(s[0]);else{const t=[];for(const e of s)e&&t.push(...e);bt(nt(t))}}function bt(t,e){const n=d(t)?t:[...t];for(const i of n)i.computed&&wt(i);for(const i of n)i.computed||wt(i)}function wt(t,e){(t!==ut||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const St=t("__proto__,__v_isRef,__isVue"),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(m)),It=Lt(),At=Lt(!1,!0),Ct=Lt(!0),Tt=Dt();function Dt(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=ge(this);for(let e=0,r=this.length;e{t[e]=function(...t){vt();const n=ge(this)[e].apply(this,t);return mt(),n}})),t}function kt(t){const e=ge(this);return yt(e,0,t),e.hasOwnProperty(t)}function Lt(t=!1,e=!1){return function(n,i,r){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_isShallow"===i)return e;if("__v_raw"===i&&r===(t?e?ae:oe:e?re:ie).get(n))return n;const o=d(n);if(!t){if(o&&h(Tt,i))return Reflect.get(Tt,i,r);if("hasOwnProperty"===i)return kt}const a=Reflect.get(n,i,r);return(m(i)?Mt.has(i):St(i))?a:(t||yt(n,0,i),e?a:be(a)?o&&M(i)?a:a.value:y(a)?t?ue(a):se(a):a)}}function Pt(t=!1){return function(e,n,i,r){let o=e[n];if(de(o)&&be(o)&&!be(i))return!1;if(!t&&(pe(i)||de(i)||(o=ge(o),i=ge(i)),!d(e)&&be(o)&&!be(i)))return o.value=i,!0;const a=d(e)&&M(n)?Number(n)!0,deleteProperty:(t,e)=>!0},Rt=l({},Ot,{get:At,set:Pt(!0)}),Nt=t=>t,Bt=t=>Reflect.getPrototypeOf(t);function zt(t,e,n=!1,i=!1){const r=ge(t=t.__v_raw),o=ge(e);n||(e!==o&&yt(r,0,e),yt(r,0,o));const{has:a}=Bt(r),s=i?Nt:n?ye:me;return a.call(r,e)?s(t.get(e)):a.call(r,o)?s(t.get(o)):void(t!==r&&t.get(e))}function Vt(t,e=!1){const n=this.__v_raw,i=ge(n),r=ge(t);return e||(t!==r&&yt(i,0,t),yt(i,0,r)),t===r?n.has(t):n.has(t)||n.has(r)}function Ft(t,e=!1){return t=t.__v_raw,!e&&yt(ge(t),0,ct),Reflect.get(t,"size",t)}function Gt(t){t=ge(t);const e=ge(this);return Bt(e).has.call(e,t)||(e.add(t),xt(e,"add",t,t)),this}function Ht(t,e){e=ge(e);const n=ge(this),{has:i,get:r}=Bt(n);let o=i.call(n,t);o||(t=ge(t),o=i.call(n,t));const a=r.call(n,t);return n.set(t,e),o?O(e,a)&&xt(n,"set",t,e):xt(n,"add",t,e),this}function Wt(t){const e=ge(this),{has:n,get:i}=Bt(e);let r=n.call(e,t);r||(t=ge(t),r=n.call(e,t)),i&&i.call(e,t);const o=e.delete(t);return r&&xt(e,"delete",t,void 0),o}function Ut(){const t=ge(this),e=0!==t.size,n=t.clear();return e&&xt(t,"clear",void 0,void 0),n}function jt(t,e){return function(n,i){const r=this,o=r.__v_raw,a=ge(o),s=e?Nt:t?ye:me;return!t&&yt(a,0,ct),o.forEach(((t,e)=>n.call(i,s(t),s(e),r)))}}function Yt(t,e,n){return function(...i){const r=this.__v_raw,o=ge(r),a=p(o),s="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,u=r[t](...i),c=n?Nt:e?ye:me;return!e&&yt(o,0,l?ht:ct),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:s?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function Xt(t){return function(...e){return"delete"!==t&&this}}function qt(){const t={get(t){return zt(this,t)},get size(){return Ft(this)},has:Vt,add:Gt,set:Ht,delete:Wt,clear:Ut,forEach:jt(!1,!1)},e={get(t){return zt(this,t,!1,!0)},get size(){return Ft(this)},has:Vt,add:Gt,set:Ht,delete:Wt,clear:Ut,forEach:jt(!1,!0)},n={get(t){return zt(this,t,!0)},get size(){return Ft(this,!0)},has(t){return Vt.call(this,t,!0)},add:Xt("add"),set:Xt("set"),delete:Xt("delete"),clear:Xt("clear"),forEach:jt(!0,!1)},i={get(t){return zt(this,t,!0,!0)},get size(){return Ft(this,!0)},has(t){return Vt.call(this,t,!0)},add:Xt("add"),set:Xt("set"),delete:Xt("delete"),clear:Xt("clear"),forEach:jt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{t[r]=Yt(r,!1,!1),n[r]=Yt(r,!0,!1),e[r]=Yt(r,!1,!0),i[r]=Yt(r,!0,!0)})),[t,n,e,i]}const[Zt,Kt,$t,Jt]=qt();function Qt(t,e){const n=e?t?Jt:$t:t?Kt:Zt;return(e,i,r)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(h(n,i)&&i in e?n:e,i,r)}const te={get:Qt(!1,!1)},ee={get:Qt(!1,!0)},ne={get:Qt(!0,!1)},ie=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakMap;function se(t){return de(t)?t:ce(t,!1,Ot,te,ie)}function le(t){return ce(t,!1,Rt,ee,re)}function ue(t){return ce(t,!0,Et,ne,oe)}function ce(t,e,n,i,r){if(!y(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const a=(s=t).__v_skip||!Object.isExtensible(s)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(s));var s;if(0===a)return t;const l=new Proxy(t,2===a?i:n);return r.set(t,l),l}function he(t){return de(t)?he(t.__v_raw):!(!t||!t.__v_isReactive)}function de(t){return!(!t||!t.__v_isReadonly)}function pe(t){return!(!t||!t.__v_isShallow)}function fe(t){return he(t)||de(t)}function ge(t){const e=t&&t.__v_raw;return e?ge(e):t}function ve(t){return R(t,"__v_skip",!0),t}const me=t=>y(t)?se(t):t,ye=t=>y(t)?ue(t):t;function _e(t){ft&&ut&&_t((t=ge(t)).dep||(t.dep=nt()))}function xe(t,e){const n=(t=ge(t)).dep;n&&bt(n)}function be(t){return!(!t||!0!==t.__v_isRef)}function we(t){return Me(t,!1)}function Se(t){return Me(t,!0)}function Me(t,e){return be(t)?t:new Ie(t,e)}class Ie{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:ge(t),this._value=e?t:me(t)}get value(){return _e(this),this._value}set value(t){const e=this.__v_isShallow||pe(t)||de(t);t=e?t:ge(t),O(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:me(t),xe(this))}}function Ae(t){return be(t)?t.value:t}const Ce={get:(t,e,n)=>Ae(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function Te(t){return he(t)?t:new Proxy(t,Ce)}function De(t){const e=d(t)?new Array(t.length):{};for(const n in t)e[n]=Oe(t,n);return e}class ke{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return t=ge(this._object),e=this._key,null==(n=ot.get(t))?void 0:n.get(e);var t,e,n}}class Le{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Pe(t,e,n){return be(t)?t:g(t)?new Le(t):y(t)&&arguments.length>1?Oe(t,e,n):we(t)}function Oe(t,e,n){const i=t[e];return be(i)?i:new ke(t,e,n)}class Ee{constructor(t,e,n,i){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new dt(t,(()=>{this._dirty||(this._dirty=!0,xe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=ge(this);return _e(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Re(t,e,n,i){let r;try{r=i?t(...i):t()}catch(o){Be(o,e,n)}return r}function Ne(t,e,n,i){if(g(t)){const r=Re(t,e,n,i);return r&&_(r)&&r.catch((t=>{Be(t,e,n)})),r}const r=[];for(let o=0;o>>1;Je(Fe[i])Je(t)-Je(e))),Ue=0;Uenull==t.id?1/0:t.id,Qe=(t,e)=>{const n=Je(t)-Je(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function tn(t){Ve=!1,ze=!0,Fe.sort(Qe);try{for(Ge=0;Gev(t)?t.trim():t))),n&&(o=i.map(N))}let l,u=r[l=P(n)]||r[l=P(T(n))];!u&&a&&(u=r[l=P(k(n))]),u&&Ne(u,t,6,o);const c=r[l+"Once"];if(c){if(t.emitted){if(t.emitted[l])return}else t.emitted={};t.emitted[l]=!0,Ne(c,t,6,o)}}function nn(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(void 0!==r)return r;const o=t.emits;let a={},s=!1;if(!g(t)){const i=t=>{const n=nn(t,e,!0);n&&(s=!0,l(a,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return o||s?(d(o)?o.forEach((t=>a[t]=null)):l(a,o),y(t)&&i.set(t,a),a):(y(t)&&i.set(t,null),null)}function rn(t,e){return!(!t||!a(e))&&(e=e.slice(2).replace(/Once$/,""),h(t,e[0].toLowerCase()+e.slice(1))||h(t,k(e))||h(t,e))}let on=null,an=null;function sn(t){const e=on;return on=t,an=t&&t.type.__scopeId||null,e}function ln(t){an=t}function un(){an=null}function cn(t,e=on,n){if(!e)return t;if(t._n)return t;const i=(...n)=>{i._d&&mr(-1);const r=sn(e);let o;try{o=t(...n)}finally{sn(r),i._d&&mr(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function hn(t){const{type:e,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[a],slots:l,attrs:u,emit:c,render:h,renderCache:d,data:p,setupState:f,ctx:g,inheritAttrs:v}=t;let m,y;const _=sn(t);try{if(4&n.shapeFlag){const t=r||i;m=Or(h.call(t,t,d,o,f,p,g)),y=u}else{const t=e;0,m=Or(t.length>1?t(o,{attrs:u,slots:l,emit:c}):t(o,null)),y=e.props?u:dn(u)}}catch(b){pr.length=0,Be(b,t,1),m=Cr(hr)}let x=m;if(y&&!1!==v){const t=Object.keys(y),{shapeFlag:e}=x;t.length&&7&e&&(a&&t.some(s)&&(y=pn(y,a)),x=Dr(x,y))}return n.dirs&&(x=Dr(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,sn(_),m}const dn=t=>{let e;for(const n in t)("class"===n||"style"===n||a(n))&&((e||(e={}))[n]=t[n]);return e},pn=(t,e)=>{const n={};for(const i in t)s(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function fn(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;rt.__isSuspense;const vn={};function mn(t,e,n){return yn(t,e,n)}function yn(t,n,{immediate:r,deep:o,flush:a,onTrack:s,onTrigger:l}=e){var c;const h=tt()===(null==(c=Fr)?void 0:c.scope)?Fr:null;let p,f,v=!1,m=!1;if(be(t)?(p=()=>t.value,v=pe(t)):he(t)?(p=()=>t,o=!0):d(t)?(m=!0,v=t.some((t=>he(t)||pe(t))),p=()=>t.map((t=>be(t)?t.value:he(t)?bn(t):g(t)?Re(t,h,2):void 0))):p=g(t)?n?()=>Re(t,h,2):()=>{if(!h||!h.isUnmounted)return f&&f(),Ne(t,h,3,[_])}:i,n&&o){const t=p;p=()=>bn(t())}let y,_=t=>{f=S.onStop=()=>{Re(t,h,4)}};if(Zr){if(_=i,n?r&&Ne(n,h,3,[p(),m?[]:void 0,_]):p(),"sync"!==a)return i;{const t=ro();y=t.__watcherHandles||(t.__watcherHandles=[])}}let x=m?new Array(t.length).fill(vn):vn;const b=()=>{if(S.active)if(n){const t=S.run();(o||v||(m?t.some(((t,e)=>O(t,x[e]))):O(t,x)))&&(f&&f(),Ne(n,h,3,[t,x===vn?void 0:m&&x[0]===vn?[]:x,_]),x=t)}else S.run()};let w;b.allowRecurse=!!n,"sync"===a?w=b:"post"===a?w=()=>Ji(b,h&&h.suspense):(b.pre=!0,h&&(b.id=h.uid),w=()=>qe(b));const S=new dt(p,w);n?r?b():x=S.run():"post"===a?Ji(S.run.bind(S),h&&h.suspense):S.run();const M=()=>{S.stop(),h&&h.scope&&u(h.scope.effects,S)};return y&&y.push(M),M}function _n(t,e,n){const i=this.proxy,r=v(t)?t.includes(".")?xn(i,t):()=>i[t]:t.bind(i,i);let o;g(e)?o=e:(o=e.handler,n=e);const a=Fr;jr(this);const s=yn(r,o.bind(i),n);return a?jr(a):Yr(),s}function xn(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t{bn(t,e)}));else if(S(t))for(const n in t)bn(t[n],e);return t}function wn(t,n){const i=on;if(null===i)return t;const r=Qr(i)||i.proxy,o=t.dirs||(t.dirs=[]);for(let a=0;a{t.isMounted=!0})),$n((()=>{t.isUnmounting=!0})),t}();let r;return()=>{const o=e.default&&Pn(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1)for(const t of o)if(t.type!==hr){a=t;break}const s=ge(t),{mode:l}=s;if(i.isLeaving)return Dn(a);const u=kn(a);if(!u)return Dn(a);const c=Tn(u,s,i,n);Ln(u,c);const h=n.subTree,d=h&&kn(h);let p=!1;const{getTransitionKey:f}=u.type;if(f){const t=f();void 0===r?r=t:t!==r&&(r=t,p=!0)}if(d&&d.type!==hr&&(!wr(u,d)||p)){const t=Tn(d,s,i,n);if(Ln(d,t),"out-in"===l)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&n.update()},Dn(a);"in-out"===l&&u.type!==hr&&(t.delayLeave=(t,e,n)=>{Cn(i,d)[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=n})}return a}}};function Cn(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function Tn(t,e,n,i){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:_}=e,x=String(t.key),b=Cn(n,t),w=(t,e)=>{t&&Ne(t,i,9,e)},S=(t,e)=>{const n=e[1];w(t,e),d(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},M={mode:o,persisted:a,beforeEnter(e){let i=s;if(!n.isMounted){if(!r)return;i=v||s}e._leaveCb&&e._leaveCb(!0);const o=b[x];o&&wr(t,o)&&o.el._leaveCb&&o.el._leaveCb(),w(i,[e])},enter(t){let e=l,i=u,o=c;if(!n.isMounted){if(!r)return;e=m||l,i=y||u,o=_||c}let a=!1;const s=t._enterCb=e=>{a||(a=!0,w(e?o:i,[t]),M.delayedLeave&&M.delayedLeave(),t._enterCb=void 0)};e?S(e,[t,s]):s()},leave(e,i){const r=String(t.key);if(e._enterCb&&e._enterCb(!0),n.isUnmounting)return i();w(h,[e]);let o=!1;const a=e._leaveCb=n=>{o||(o=!0,i(),w(n?g:f,[e]),e._leaveCb=void 0,b[r]===t&&delete b[r])};b[r]=t,p?S(p,[e,a]):a()},clone:t=>Tn(t,e,n,i)};return M}function Dn(t){if(Rn(t))return(t=Dr(t)).children=null,t}function kn(t){return Rn(t)?t.children?t.children[0]:void 0:t}function Ln(t,e){6&t.shapeFlag&&t.component?Ln(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Pn(t,e=!1,n){let i=[],r=0;for(let o=0;o1)for(let o=0;ol({name:t.name},e,{setup:t}))():t}const En=t=>!!t.type.__asyncLoader,Rn=t=>t.type.__isKeepAlive,Nn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Gr(),i=n.ctx;if(!i.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const r=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:h}}}=i,d=h("div");function p(t){Wn(t),c(t,n,s,!0)}function f(t){r.forEach(((e,n)=>{const i=to(e.type);!i||t&&t(i)||g(n)}))}function g(t){const e=r.get(t);a&&wr(e,a)?a&&Wn(a):p(e),r.delete(t),o.delete(t)}i.activate=(t,e,n,i,r)=>{const o=t.component;u(t,e,n,0,s),l(o.vnode,t,e,n,o,s,i,t.slotScopeIds,r),Ji((()=>{o.isDeactivated=!1,o.a&&E(o.a);const e=t.props&&t.props.onVnodeMounted;e&&Br(e,o.parent,t)}),s)},i.deactivate=t=>{const e=t.component;u(t,d,null,1,s),Ji((()=>{e.da&&E(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&Br(n,e.parent,t),e.isDeactivated=!0}),s)},mn((()=>[t.include,t.exclude]),(([t,e])=>{t&&f((e=>zn(t,e))),e&&f((t=>!zn(e,t)))}),{flush:"post",deep:!0});let v=null;const m=()=>{null!=v&&r.set(v,Un(n.subTree))};return qn(m),Kn(m),$n((()=>{r.forEach((t=>{const{subTree:e,suspense:i}=n,r=Un(e);if(t.type!==r.type||t.key!==r.key)p(t);else{Wn(r);const t=r.component.da;t&&Ji(t,i)}}))})),()=>{if(v=null,!e.default)return null;const n=e.default(),i=n[0];if(n.length>1)return a=null,n;if(!(br(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let s=Un(i);const l=s.type,u=to(En(s)?s.type.__asyncResolved||{}:l),{include:c,exclude:h,max:d}=t;if(c&&(!u||!zn(c,u))||h&&u&&zn(h,u))return a=s,i;const p=null==s.key?l:s.key,f=r.get(p);return s.el&&(s=Dr(s),128&i.shapeFlag&&(i.ssContent=s)),v=p,f?(s.el=f.el,s.component=f.component,s.transition&&Ln(s,s.transition),s.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),d&&o.size>parseInt(d,10)&&g(o.values().next().value)),s.shapeFlag|=256,a=s,gn(i.type)?i:s}}},Bn=Nn;function zn(t,e){return d(t)?t.some((t=>zn(t,e))):v(t)?t.split(",").includes(e):"[object RegExp]"===b(t)&&t.test(e)}function Vn(t,e){Gn(t,"a",e)}function Fn(t,e){Gn(t,"da",e)}function Gn(t,e,n=Fr){const i=t.__wdc||(t.__wdc=()=>{let e=n;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(jn(e,i,n),n){let t=n.parent;for(;t&&t.parent;)Rn(t.parent.vnode)&&Hn(i,e,n,t),t=t.parent}}function Hn(t,e,n,i){const r=jn(e,t,i,!0);Jn((()=>{u(i[e],r)}),n)}function Wn(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Un(t){return 128&t.shapeFlag?t.ssContent:t}function jn(t,e,n=Fr,i=!1){if(n){const r=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;vt(),jr(n);const r=Ne(e,n,t,i);return Yr(),mt(),r});return i?r.unshift(o):r.push(o),o}}const Yn=t=>(e,n=Fr)=>(!Zr||"sp"===t)&&jn(t,((...t)=>e(...t)),n),Xn=Yn("bm"),qn=Yn("m"),Zn=Yn("bu"),Kn=Yn("u"),$n=Yn("bum"),Jn=Yn("um"),Qn=Yn("sp"),ti=Yn("rtg"),ei=Yn("rtc");function ni(t,e=Fr){jn("ec",t,e)}const ii="components";function ri(t,e){return si(ii,t,!0,e)||t}const oi=Symbol.for("v-ndc");function ai(t){return v(t)?si(ii,t,!1)||t:t||oi}function si(t,e,n=!0,i=!1){const r=on||Fr;if(r){const n=r.type;if(t===ii){const t=to(n,!1);if(t&&(t===e||t===T(e)||t===L(T(e))))return n}const o=li(r[t]||n[t],e)||li(r.appContext[t],e);return!o&&i?n:o}}function li(t,e){return t&&(t[e]||t[T(e)]||t[L(T(e))])}function ui(t,e,n,i){let r;const o=n&&n[i];if(d(t)||v(t)){r=new Array(t.length);for(let n=0,i=t.length;ne(t,n,void 0,o&&o[n])));else{const n=Object.keys(t);r=new Array(n.length);for(let i=0,a=n.length;i{const e=i.fn(...t);return e&&(e.key=i.key),e}:i.fn)}return t}function hi(t,e,n={},i,r){if(on.isCE||on.parent&&En(on.parent)&&on.parent.isCE)return"default"!==e&&(n.name=e),Cr("slot",n,i&&i());let o=t[e];o&&o._c&&(o._d=!1),gr();const a=o&&di(o(n)),s=xr(ur,{key:n.key||a&&a.key||`_${e}`},a||(i?i():[]),a&&1===t._?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function di(t){return t.some((t=>!br(t)||t.type!==hr&&!(t.type===ur&&!di(t.children))))?t:null}const pi=t=>t?Xr(t)?Qr(t)||t.proxy:pi(t.parent):null,fi=l(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>pi(t.parent),$root:t=>pi(t.root),$emit:t=>t.emit,$options:t=>Si(t),$forceUpdate:t=>t.f||(t.f=()=>qe(t.update)),$nextTick:t=>t.n||(t.n=Xe.bind(t.proxy)),$watch:t=>_n.bind(t)}),gi=(t,n)=>t!==e&&!t.__isScriptSetup&&h(t,n),vi={get({_:t},n){const{ctx:i,setupState:r,data:o,props:a,accessCache:s,type:l,appContext:u}=t;let c;if("$"!==n[0]){const l=s[n];if(void 0!==l)switch(l){case 1:return r[n];case 2:return o[n];case 4:return i[n];case 3:return a[n]}else{if(gi(r,n))return s[n]=1,r[n];if(o!==e&&h(o,n))return s[n]=2,o[n];if((c=t.propsOptions[0])&&h(c,n))return s[n]=3,a[n];if(i!==e&&h(i,n))return s[n]=4,i[n];_i&&(s[n]=0)}}const d=fi[n];let p,f;return d?("$attrs"===n&&yt(t,0,n),d(t)):(p=l.__cssModules)&&(p=p[n])?p:i!==e&&h(i,n)?(s[n]=4,i[n]):(f=u.config.globalProperties,h(f,n)?f[n]:void 0)},set({_:t},n,i){const{data:r,setupState:o,ctx:a}=t;return gi(o,n)?(o[n]=i,!0):r!==e&&h(r,n)?(r[n]=i,!0):!h(t.props,n)&&(("$"!==n[0]||!(n.slice(1)in t))&&(a[n]=i,!0))},has({_:{data:t,setupState:n,accessCache:i,ctx:r,appContext:o,propsOptions:a}},s){let l;return!!i[s]||t!==e&&h(t,s)||gi(n,s)||(l=a[0])&&h(l,s)||h(r,s)||h(fi,s)||h(o.config.globalProperties,s)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:h(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function mi(){return function(){const t=Gr();return t.setupContext||(t.setupContext=Jr(t))}().slots}function yi(t){return d(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let _i=!0;function xi(t){const e=Si(t),n=t.proxy,r=t.ctx;_i=!1,e.beforeCreate&&bi(e.beforeCreate,t,"bc");const{data:o,computed:a,methods:s,watch:l,provide:u,inject:c,created:h,beforeMount:p,mounted:f,beforeUpdate:v,updated:m,activated:_,deactivated:x,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:M,render:I,renderTracked:A,renderTriggered:C,errorCaptured:T,serverPrefetch:D,expose:k,inheritAttrs:L,components:P,directives:O,filters:E}=e;if(c&&function(t,e,n=i){d(t)&&(t=Ci(t));for(const i in t){const n=t[i];let r;r=y(n)?"default"in n?Ni(n.from||i,n.default,!0):Ni(n.from||i):Ni(n),be(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:t=>r.value=t}):e[i]=r}}(c,r,null),s)for(const i in s){const t=s[i];g(t)&&(r[i]=t.bind(n))}if(o){const e=o.call(n,n);y(e)&&(t.data=se(e))}if(_i=!0,a)for(const d in a){const t=a[d],e=g(t)?t.bind(n,n):g(t.get)?t.get.bind(n,n):i,o=!g(t)&&g(t.set)?t.set.bind(n):i,s=eo({get:e,set:o});Object.defineProperty(r,d,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(l)for(const i in l)wi(l[i],r,n,i);if(u){const t=g(u)?u.call(n):u;Reflect.ownKeys(t).forEach((e=>{Ri(e,t[e])}))}function R(t,e){d(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(h&&bi(h,t,"c"),R(Xn,p),R(qn,f),R(Zn,v),R(Kn,m),R(Vn,_),R(Fn,x),R(ni,T),R(ei,A),R(ti,C),R($n,w),R(Jn,M),R(Qn,D),d(k))if(k.length){const e=t.exposed||(t.exposed={});k.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});I&&t.render===i&&(t.render=I),null!=L&&(t.inheritAttrs=L),P&&(t.components=P),O&&(t.directives=O)}function bi(t,e,n){Ne(d(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function wi(t,e,n,i){const r=i.includes(".")?xn(n,i):()=>n[i];if(v(t)){const n=e[t];g(n)&&mn(r,n)}else if(g(t))mn(r,t.bind(n));else if(y(t))if(d(t))t.forEach((t=>wi(t,e,n,i)));else{const i=g(t.handler)?t.handler.bind(n):e[t.handler];g(i)&&mn(r,i,t)}}function Si(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,s=o.get(e);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((t=>Mi(l,t,a,!0))),Mi(l,e,a)):l=e,y(e)&&o.set(e,l),l}function Mi(t,e,n,i=!1){const{mixins:r,extends:o}=e;o&&Mi(t,o,n,!0),r&&r.forEach((e=>Mi(t,e,n,!0)));for(const a in e)if(i&&"expose"===a);else{const i=Ii[a]||n&&n[a];t[a]=i?i(t[a],e[a]):e[a]}return t}const Ii={data:Ai,props:ki,emits:ki,methods:Di,computed:Di,beforeCreate:Ti,created:Ti,beforeMount:Ti,mounted:Ti,beforeUpdate:Ti,updated:Ti,beforeDestroy:Ti,beforeUnmount:Ti,destroyed:Ti,unmounted:Ti,activated:Ti,deactivated:Ti,errorCaptured:Ti,serverPrefetch:Ti,components:Di,directives:Di,watch:function(t,e){if(!t)return e;if(!e)return t;const n=l(Object.create(null),t);for(const i in e)n[i]=Ti(t[i],e[i]);return n},provide:Ai,inject:function(t,e){return Di(Ci(t),Ci(e))}};function Ai(t,e){return e?t?function(){return l(g(t)?t.call(this,this):t,g(e)?e.call(this,this):e)}:e:t}function Ci(t){if(d(t)){const e={};for(let n=0;n(o.has(t)||(t&&g(t.install)?(o.add(t),t.install(s,...e)):g(t)&&(o.add(t),t(s,...e))),s),mixin:t=>(r.mixins.includes(t)||r.mixins.push(t),s),component:(t,e)=>e?(r.components[t]=e,s):r.components[t],directive:(t,e)=>e?(r.directives[t]=e,s):r.directives[t],mount(o,l,u){if(!a){const c=Cr(n,i);return c.appContext=r,l&&e?e(c,o):t(c,o,u),a=!0,s._container=o,o.__vue_app__=s,Qr(c.component)||c.component.proxy}},unmount(){a&&(t(null,s._container),delete s._container.__vue_app__)},provide:(t,e)=>(r.provides[t]=e,s),runWithContext(t){Ei=s;try{return t()}finally{Ei=null}}};return s}}let Ei=null;function Ri(t,e){if(Fr){let n=Fr.provides;const i=Fr.parent&&Fr.parent.provides;i===n&&(n=Fr.provides=Object.create(i)),n[t]=e}else;}function Ni(t,e,n=!1){const i=Fr||on;if(i||Ei){const r=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Ei._context.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&g(e)?e.call(i&&i.proxy):e}}function Bi(t,n,i,r){const[o,a]=t.propsOptions;let s,l=!1;if(n)for(let e in n){if(I(e))continue;const u=n[e];let c;o&&h(o,c=T(e))?a&&a.includes(c)?(s||(s={}))[c]=u:i[c]=u:rn(t.emitsOptions,e)||e in r&&u===r[e]||(r[e]=u,l=!0)}if(a){const n=ge(i),r=s||e;for(let e=0;e{p=!0;const[e,n]=Vi(t,i,!0);l(u,e),n&&c.push(...n)};!r&&i.mixins.length&&i.mixins.forEach(e),t.extends&&e(t.extends),t.mixins&&t.mixins.forEach(e)}if(!s&&!p)return y(t)&&o.set(t,n),n;if(d(s))for(let n=0;n-1,i[1]=n<0||e-1||h(i,"default"))&&c.push(t)}}}const f=[u,c];return y(t)&&o.set(t,f),f}function Fi(t){return"$"!==t[0]}function Gi(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function Hi(t,e){return Gi(t)===Gi(e)}function Wi(t,e){return d(e)?e.findIndex((e=>Hi(e,t))):g(e)&&Hi(e,t)?0:-1}const Ui=t=>"_"===t[0]||"$stable"===t,ji=t=>d(t)?t.map(Or):[Or(t)],Yi=(t,e,n)=>{if(e._n)return e;const i=cn(((...t)=>ji(e(...t))),n);return i._c=!1,i},Xi=(t,e,n)=>{const i=t._ctx;for(const r in t){if(Ui(r))continue;const n=t[r];if(g(n))e[r]=Yi(0,n,i);else if(null!=n){const t=ji(n);e[r]=()=>t}}},qi=(t,e)=>{const n=ji(e);t.slots.default=()=>n},Zi=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=ge(e),R(e,"_",n)):Xi(e,t.slots={})}else t.slots={},e&&qi(t,e);R(t.slots,Sr,1)},Ki=(t,n,i)=>{const{vnode:r,slots:o}=t;let a=!0,s=e;if(32&r.shapeFlag){const t=n._;t?i&&1===t?a=!1:(l(o,n),i||1!==t||delete o._):(a=!n.$stable,Xi(n,o)),s=n}else n&&(qi(t,n),s={default:1});if(a)for(const e in o)Ui(e)||e in s||delete o[e]};function $i(t,n,i,r,o=!1){if(d(t))return void t.forEach(((t,e)=>$i(t,n&&(d(n)?n[e]:n),i,r,o)));if(En(r)&&!o)return;const a=4&r.shapeFlag?Qr(r.component)||r.component.proxy:r.el,s=o?null:a,{i:l,r:c}=t,p=n&&n.r,f=l.refs===e?l.refs={}:l.refs,m=l.setupState;if(null!=p&&p!==c&&(v(p)?(f[p]=null,h(m,p)&&(m[p]=null)):be(p)&&(p.value=null)),g(c))Re(c,l,12,[s,f]);else{const e=v(c),n=be(c);if(e||n){const r=()=>{if(t.f){const n=e?h(m,c)?m[c]:f[c]:c.value;o?d(n)&&u(n,a):d(n)?n.includes(a)||n.push(a):e?(f[c]=[a],h(m,c)&&(m[c]=f[c])):(c.value=[a],t.k&&(f[t.k]=c.value))}else e?(f[c]=s,h(m,c)&&(m[c]=s)):n&&(c.value=s,t.k&&(f[t.k]=s))};s?(r.id=-1,Ji(r,i)):r()}}}const Ji=function(t,e){var n;e&&e.pendingBranch?d(t)?e.effects.push(...t):e.effects.push(t):(d(n=t)?He.push(...n):We&&We.includes(n,n.allowRecurse?Ue+1:Ue)||He.push(n),Ze())};function Qi(t){return function(t,r){V().__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:p,parentNode:f,nextSibling:g,setScopeId:v=i,insertStaticContent:m}=t,y=(t,e,n,i=null,r=null,o=null,a=!1,s=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!wr(t,e)&&(i=tt(t),q(t,r,o,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:u,ref:c,shapeFlag:h}=e;switch(u){case cr:x(t,e,n,i);break;case hr:b(t,e,n,i);break;case dr:null==t&&w(e,n,i,a);break;case ur:B(t,e,n,i,r,o,a,s,l);break;default:1&h?A(t,e,n,i,r,o,a,s,l):6&h?z(t,e,n,i,r,o,a,s,l):(64&h||128&h)&&u.process(t,e,n,i,r,o,a,s,l,nt)}null!=c&&r&&$i(c,t&&t.ref,o,e||t,!e)},x=(t,e,n,i)=>{if(null==t)o(e.el=u(e.children),n,i);else{const n=e.el=t.el;e.children!==t.children&&d(n,e.children)}},b=(t,e,n,i)=>{null==t?o(e.el=c(e.children||""),n,i):e.el=t.el},w=(t,e,n,i)=>{[t.el,t.anchor]=m(t.children,e,n,i,t.el,t.anchor)},S=({el:t,anchor:e},n,i)=>{let r;for(;t&&t!==e;)r=g(t),o(t,n,i),t=r;o(e,n,i)},M=({el:t,anchor:e})=>{let n;for(;t&&t!==e;)n=g(t),a(t),t=n;a(e)},A=(t,e,n,i,r,o,a,s,l)=>{a=a||"svg"===e.type,null==t?C(e,n,i,r,o,a,s,l):P(t,e,r,o,a,s,l)},C=(t,e,n,i,r,a,u,c)=>{let h,d;const{type:f,props:g,shapeFlag:v,transition:m,dirs:y}=t;if(h=t.el=l(t.type,a,g&&g.is,g),8&v?p(h,t.children):16&v&&L(t.children,h,null,i,r,a&&"foreignObject"!==f,u,c),y&&Sn(t,null,i,"created"),D(h,t,t.scopeId,u,i),g){for(const e in g)"value"===e||I(e)||s(h,e,null,g[e],a,t.children,i,r,Q);"value"in g&&s(h,"value",null,g.value),(d=g.onVnodeBeforeMount)&&Br(d,i,t)}y&&Sn(t,null,i,"beforeMount");const _=(!r||r&&!r.pendingBranch)&&m&&!m.persisted;_&&m.beforeEnter(h),o(h,e,n),((d=g&&g.onVnodeMounted)||_||y)&&Ji((()=>{d&&Br(d,i,t),_&&m.enter(h),y&&Sn(t,null,i,"mounted")}),r)},D=(t,e,n,i,r)=>{if(n&&v(t,n),i)for(let o=0;o{for(let u=l;u{const u=n.el=t.el;let{patchFlag:c,dynamicChildren:h,dirs:d}=n;c|=16&t.patchFlag;const f=t.props||e,g=n.props||e;let v;i&&tr(i,!1),(v=g.onVnodeBeforeUpdate)&&Br(v,i,n,t),d&&Sn(n,t,i,"beforeUpdate"),i&&tr(i,!0);const m=o&&"foreignObject"!==n.type;if(h?O(t.dynamicChildren,h,u,i,r,m,a):l||U(t,n,u,null,i,r,m,a,!1),c>0){if(16&c)N(u,n,f,g,i,r,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const e=n.dynamicProps;for(let n=0;n{v&&Br(v,i,n,t),d&&Sn(n,t,i,"updated")}),r)},O=(t,e,n,i,r,o,a)=>{for(let s=0;s{if(i!==r){if(i!==e)for(const e in i)I(e)||e in r||s(t,e,i[e],null,l,n.children,o,a,Q);for(const e in r){if(I(e))continue;const u=r[e],c=i[e];u!==c&&"value"!==e&&s(t,e,c,u,l,n.children,o,a,Q)}"value"in r&&s(t,"value",i.value,r.value)}},B=(t,e,n,i,r,a,s,l,c)=>{const h=e.el=t?t.el:u(""),d=e.anchor=t?t.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=e;g&&(l=l?l.concat(g):g),null==t?(o(h,n,i),o(d,n,i),L(e.children,n,d,r,a,s,l,c)):p>0&&64&p&&f&&t.dynamicChildren?(O(t.dynamicChildren,f,n,r,a,s,l),(null!=e.key||r&&e===r.subTree)&&er(t,e,!0)):U(t,e,n,d,r,a,s,l,c)},z=(t,e,n,i,r,o,a,s,l)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?r.ctx.activate(e,n,i,a,l):F(e,n,i,r,o,a,l):G(t,e,l)},F=(t,n,i,r,o,a,s)=>{const l=t.component=function(t,n,i){const r=t.type,o=(n?n.appContext:t.appContext)||zr,a={uid:Vr++,vnode:t,type:r,parent:n,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new J(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vi(r,o),emitsOptions:nn(r,o),emit:null,emitted:null,propsDefaults:e,inheritAttrs:r.inheritAttrs,ctx:e,data:e,props:e,attrs:e,slots:e,refs:e,setupState:e,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=n?n.root:a,a.emit=en.bind(null,a),t.ce&&t.ce(a);return a}(t,r,o);if(Rn(t)&&(l.ctx.renderer=nt),function(t,e=!1){Zr=e;const{props:n,children:i}=t.vnode,r=Xr(t);(function(t,e,n,i=!1){const r={},o={};R(o,Sr,1),t.propsDefaults=Object.create(null),Bi(t,e,r,o);for(const a in t.propsOptions[0])a in r||(r[a]=void 0);n?t.props=i?r:le(r):t.type.props?t.props=r:t.props=o,t.attrs=o})(t,n,r,e),Zi(t,i);const o=r?function(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=ve(new Proxy(t.ctx,vi));const{setup:i}=n;if(i){const n=t.setupContext=i.length>1?Jr(t):null;jr(t),vt();const r=Re(i,t,0,[t.props,n]);if(mt(),Yr(),_(r)){if(r.then(Yr,Yr),e)return r.then((n=>{Kr(t,n,e)})).catch((e=>{Be(e,t,0)}));t.asyncDep=r}else Kr(t,r,e)}else $r(t,e)}(t,e):void 0;Zr=!1}(l),l.asyncDep){if(o&&o.registerDep(l,H),!t.el){const t=l.subTree=Cr(hr);b(null,t,n,i)}}else H(l,t,n,i,o,a,s)},G=(t,e,n)=>{const i=e.component=t.component;if(function(t,e,n){const{props:i,children:r,component:o}=t,{props:a,children:s,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||fn(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?fn(i,a,u):!!a;if(8&l){const t=e.dynamicProps;for(let e=0;eGe&&Fe.splice(e,1)}(i.update),i.update()}else e.el=t.el,i.vnode=e},H=(t,e,n,i,r,o,a)=>{const s=()=>{if(t.isMounted){let e,{next:n,bu:i,u:s,parent:l,vnode:u}=t,c=n;tr(t,!1),n?(n.el=u.el,W(t,n,a)):n=u,i&&E(i),(e=n.props&&n.props.onVnodeBeforeUpdate)&&Br(e,l,n,u),tr(t,!0);const h=hn(t),d=t.subTree;t.subTree=h,y(d,h,f(d.el),tt(d),t,r,o),n.el=h.el,null===c&&function({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}(t,h.el),s&&Ji(s,r),(e=n.props&&n.props.onVnodeUpdated)&&Ji((()=>Br(e,l,n,u)),r)}else{let a;const{el:s,props:l}=e,{bm:u,m:c,parent:h}=t,d=En(e);if(tr(t,!1),u&&E(u),!d&&(a=l&&l.onVnodeBeforeMount)&&Br(a,h,e),tr(t,!0),s&&rt){const n=()=>{t.subTree=hn(t),rt(s,t.subTree,t,r,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{const a=t.subTree=hn(t);y(null,a,n,i,t,r,o),e.el=a.el}if(c&&Ji(c,r),!d&&(a=l&&l.onVnodeMounted)){const t=e;Ji((()=>Br(a,h,t)),r)}(256&e.shapeFlag||h&&En(h.vnode)&&256&h.vnode.shapeFlag)&&t.a&&Ji(t.a,r),t.isMounted=!0,e=n=i=null}},l=t.effect=new dt(s,(()=>qe(u)),t.scope),u=t.update=()=>l.run();u.id=t.uid,tr(t,!0),u()},W=(t,e,n)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,function(t,e,n,i){const{props:r,attrs:o,vnode:{patchFlag:a}}=t,s=ge(r),[l]=t.propsOptions;let u=!1;if(!(i||a>0)||16&a){let i;Bi(t,e,r,o)&&(u=!0);for(const o in s)e&&(h(e,o)||(i=k(o))!==o&&h(e,i))||(l?!n||void 0===n[o]&&void 0===n[i]||(r[o]=zi(l,s,o,void 0,t,!0)):delete r[o]);if(o!==s)for(const t in o)e&&h(e,t)||(delete o[t],u=!0)}else if(8&a){const n=t.vnode.dynamicProps;for(let i=0;i{const u=t&&t.children,c=t?t.shapeFlag:0,h=e.children,{patchFlag:d,shapeFlag:f}=e;if(d>0){if(128&d)return void Y(u,h,n,i,r,o,a,s,l);if(256&d)return void j(u,h,n,i,r,o,a,s,l)}8&f?(16&c&&Q(u,r,o),h!==u&&p(n,h)):16&c?16&f?Y(u,h,n,i,r,o,a,s,l):Q(u,r,o,!0):(8&c&&p(n,""),16&f&&L(h,n,i,r,o,a,s,l))},j=(t,e,i,r,o,a,s,l,u)=>{e=e||n;const c=(t=t||n).length,h=e.length,d=Math.min(c,h);let p;for(p=0;ph?Q(t,o,a,!0,!1,d):L(e,i,r,o,a,s,l,u,d)},Y=(t,e,i,r,o,a,s,l,u)=>{let c=0;const h=e.length;let d=t.length-1,p=h-1;for(;c<=d&&c<=p;){const n=t[c],r=e[c]=u?Er(e[c]):Or(e[c]);if(!wr(n,r))break;y(n,r,i,null,o,a,s,l,u),c++}for(;c<=d&&c<=p;){const n=t[d],r=e[p]=u?Er(e[p]):Or(e[p]);if(!wr(n,r))break;y(n,r,i,null,o,a,s,l,u),d--,p--}if(c>d){if(c<=p){const t=p+1,n=tp)for(;c<=d;)q(t[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const t=e[c]=u?Er(e[c]):Or(e[c]);null!=t.key&&v.set(t.key,c)}let m,_=0;const x=p-g+1;let b=!1,w=0;const S=new Array(x);for(c=0;c=x){q(n,o,a,!0);continue}let r;if(null!=n.key)r=v.get(n.key);else for(m=g;m<=p;m++)if(0===S[m-g]&&wr(n,e[m])){r=m;break}void 0===r?q(n,o,a,!0):(S[r-g]=c+1,r>=w?w=r:b=!0,y(n,e[r],i,null,o,a,s,l,u),_++)}const M=b?function(t){const e=t.slice(),n=[0];let i,r,o,a,s;const l=t.length;for(i=0;i>1,t[n[s]]0&&(e[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=e[a];return n}(S):n;for(m=M.length-1,c=x-1;c>=0;c--){const t=g+c,n=e[t],d=t+1{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=t;if(6&c)return void X(t.component.subTree,e,n,i);if(128&c)return void t.suspense.move(e,n,i);if(64&c)return void s.move(t,e,n,nt);if(s===ur){o(a,e,n);for(let t=0;tl.enter(a)),r);else{const{leave:t,delayLeave:i,afterLeave:r}=l,s=()=>o(a,e,n),u=()=>{t(a,(()=>{s(),r&&r()}))};i?i(a,s,u):u()}else o(a,e,n)},q=(t,e,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:h,dirs:d}=t;if(null!=s&&$i(s,null,n,t,!0),256&c)return void e.ctx.deactivate(t);const p=1&c&&d,f=!En(t);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&Br(g,e,t),6&c)$(t.component,n,i);else{if(128&c)return void t.suspense.unmount(n,i);p&&Sn(t,null,e,"beforeUnmount"),64&c?t.type.remove(t,e,n,r,nt,i):u&&(o!==ur||h>0&&64&h)?Q(u,e,n,!1,!0):(o===ur&&384&h||!r&&16&c)&&Q(l,e,n),i&&Z(t)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&Ji((()=>{g&&Br(g,e,t),p&&Sn(t,null,e,"unmounted")}),n)},Z=t=>{const{type:e,el:n,anchor:i,transition:r}=t;if(e===ur)return void K(n,i);if(e===dr)return void M(t);const o=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&t.shapeFlag&&r&&!r.persisted){const{leave:e,delayLeave:i}=r,a=()=>e(n,o);i?i(t.el,o,a):a()}else o()},K=(t,e)=>{let n;for(;t!==e;)n=g(t),a(t),t=n;a(e)},$=(t,e,n)=>{const{bum:i,scope:r,update:o,subTree:a,um:s}=t;i&&E(i),r.stop(),o&&(o.active=!1,q(a,t,e,n)),s&&Ji(s,e),Ji((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},Q=(t,e,n,i=!1,r=!1,o=0)=>{for(let a=o;a6&t.shapeFlag?tt(t.component.subTree):128&t.shapeFlag?t.suspense.next():g(t.anchor||t.el),et=(t,e,n)=>{null==t?e._vnode&&q(e._vnode,null,null,!0):y(e._vnode||null,t,e,null,null,null,n),Ke(),$e(),e._vnode=t},nt={p:y,um:q,m:X,r:Z,mt:F,mc:L,pc:U,pbc:O,n:tt,o:t};let it,rt;r&&([it,rt]=r(nt));return{render:et,hydrate:it,createApp:Oi(et,it)}}(t)}function tr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function er(t,e,n=!1){const i=t.children,r=e.children;if(d(i)&&d(r))for(let o=0;ot&&(t.disabled||""===t.disabled),ir=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,rr=(t,e)=>{const n=t&&t.to;if(v(n)){if(e){return e(n)}return null}return n},or={__isTeleport:!0,process(t,e,n,i,r,o,a,s,l,u){const{mc:c,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,m=nr(e.props);let{shapeFlag:y,children:_,dynamicChildren:x}=e;if(null==t){const t=e.el=g(""),u=e.anchor=g("");p(t,n,i),p(u,n,i);const h=e.target=rr(e.props,f),d=e.targetAnchor=g("");h&&(p(d,h),a=a||ir(h));const v=(t,e)=>{16&y&&c(_,t,e,r,o,a,s,l)};m?v(n,u):h&&v(h,d)}else{e.el=t.el;const i=e.anchor=t.anchor,c=e.target=t.target,p=e.targetAnchor=t.targetAnchor,g=nr(t.props),v=g?n:c,y=g?i:p;if(a=a||ir(c),x?(d(t.dynamicChildren,x,v,r,o,a,s),er(t,e,!0)):l||h(t,e,v,y,r,o,a,s,!1),m)g||ar(e,n,i,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=rr(e.props,f);t&&ar(e,t,null,u,0)}else g&&ar(e,c,p,u,1)}lr(e)},remove(t,e,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:h,props:d}=t;if(h&&o(c),(a||!nr(d))&&(o(u),16&s))for(let p=0;p0?fr||n:null,pr.pop(),fr=pr[pr.length-1]||null,vr>0&&fr&&fr.push(t),t}function _r(t,e,n,i,r,o){return yr(Ar(t,e,n,i,r,o,!0))}function xr(t,e,n,i,r){return yr(Cr(t,e,n,i,r,!0))}function br(t){return!!t&&!0===t.__v_isVNode}function wr(t,e){return t.type===e.type&&t.key===e.key}const Sr="__vInternal",Mr=({key:t})=>null!=t?t:null,Ir=({ref:t,ref_key:e,ref_for:n})=>("number"==typeof t&&(t=""+t),null!=t?v(t)||be(t)||g(t)?{i:on,r:t,k:e,f:!!n}:t:null);function Ar(t,e=null,n=null,i=0,r=null,o=(t===ur?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Mr(e),ref:e&&Ir(e),scopeId:an,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:on};return s?(Rr(l,n),128&o&&t.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),vr>0&&!a&&fr&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&fr.push(l),l}const Cr=function(t,e=null,n=null,i=0,r=null,o=!1){t&&t!==oi||(t=hr);if(br(t)){const i=Dr(t,e,!0);return n&&Rr(i,n),vr>0&&!o&&fr&&(6&i.shapeFlag?fr[fr.indexOf(t)]=i:fr.push(i)),i.patchFlag|=-2,i}a=t,g(a)&&"__vccOpts"in a&&(t=t.__vccOpts);var a;if(e){e=Tr(e);let{class:t,style:n}=e;t&&!v(t)&&(e.class=j(t)),y(n)&&(fe(n)&&!d(n)&&(n=l({},n)),e.style=F(n))}const s=v(t)?1:gn(t)?128:(t=>t.__isTeleport)(t)?64:y(t)?4:g(t)?2:0;return Ar(t,e,n,i,r,s,o,!0)};function Tr(t){return t?fe(t)||Sr in t?l({},t):t:null}function Dr(t,e,n=!1){const{props:i,ref:r,patchFlag:o,children:a}=t,s=e?Nr(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&Mr(s),ref:e&&e.ref?n&&r?d(r)?r.concat(Ir(e)):[r,Ir(e)]:Ir(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ur?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Dr(t.ssContent),ssFallback:t.ssFallback&&Dr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function kr(t=" ",e=0){return Cr(cr,null,t,e)}function Lr(t,e){const n=Cr(dr,null,t);return n.staticCount=e,n}function Pr(t="",e=!1){return e?(gr(),xr(hr,null,t)):Cr(hr,null,t)}function Or(t){return null==t||"boolean"==typeof t?Cr(hr):d(t)?Cr(ur,null,t.slice()):"object"==typeof t?Er(t):Cr(cr,null,String(t))}function Er(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:Dr(t)}function Rr(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(d(e))n=16;else if("object"==typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),Rr(t,n()),n._c&&(n._d=!0)))}{n=32;const i=e._;i||Sr in e?3===i&&on&&(1===on.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=on}}else g(e)?(e={default:e,_ctx:on},n=32):(e=String(e),64&i?(n=16,e=[kr(e)]):n=8);t.children=e,t.shapeFlag|=n}function Nr(...t){const e={};for(let n=0;nFr||on;let Hr,Wr,Ur="__VUE_INSTANCE_SETTERS__";(Wr=V()[Ur])||(Wr=V()[Ur]=[]),Wr.push((t=>Fr=t)),Hr=t=>{Wr.length>1?Wr.forEach((e=>e(t))):Wr[0](t)};const jr=t=>{Hr(t),t.scope.on()},Yr=()=>{Fr&&Fr.scope.off(),Hr(null)};function Xr(t){return 4&t.vnode.shapeFlag}let qr,Zr=!1;function Kr(t,e,n){g(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:y(e)&&(t.setupState=Te(e)),$r(t,n)}function $r(t,e,n){const r=t.type;if(!t.render){if(!e&&qr&&!r.render){const e=r.template||Si(t).template;if(e){const{isCustomElement:n,compilerOptions:i}=t.appContext.config,{delimiters:o,compilerOptions:a}=r,s=l(l({isCustomElement:n,delimiters:o},i),a);r.render=qr(e,s)}}t.render=r.render||i}jr(t),vt(),xi(t),mt(),Yr()}function Jr(t){const e=e=>{t.exposed=e||{}};return{get attrs(){return function(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get:(e,n)=>(yt(t,0,"$attrs"),e[n])}))}(t)},slots:t.slots,emit:t.emit,expose:e}}function Qr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Te(ve(t.exposed)),{get:(e,n)=>n in e?e[n]:n in fi?fi[n](t):void 0,has:(t,e)=>e in t||e in fi}))}function to(t,e=!0){return g(t)?t.displayName||t.name:t.name||e&&t.__name}const eo=(t,e)=>function(t,e,n=!1){let r,o;const a=g(t);return a?(r=t,o=i):(r=t.get,o=t.set),new Ee(r,o,a||!o,n)}(t,0,Zr);function no(t,e,n){const i=arguments.length;return 2===i?y(e)&&!d(e)?br(e)?Cr(t,null,[e]):Cr(t,e):Cr(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&br(n)&&(n=[n]),Cr(t,e,n))}const io=Symbol.for("v-scx"),ro=()=>Ni(io),oo="3.3.4",ao="undefined"!=typeof document?document:null,so=ao&&ao.createElement("template"),lo={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e?ao.createElementNS("http://www.w3.org/2000/svg",t):ao.createElement(t,n?{is:n}:void 0);return"select"===t&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:t=>ao.createTextNode(t),createComment:t=>ao.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ao.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,o){const a=n?n.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{so.innerHTML=i?`${t}`:t;const r=so.content;if(i){const t=r.firstChild;for(;t.firstChild;)r.appendChild(t.firstChild);r.removeChild(t)}e.insertBefore(r,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};const uo=/\s*!important$/;function co(t,e,n){if(d(n))n.forEach((n=>co(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=function(t,e){const n=po[e];if(n)return n;let i=T(e);if("filter"!==i&&i in t)return po[e]=i;i=L(i);for(let r=0;r{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();Ne(function(t,e){if(d(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}(t,n.value),e,5,[t])};return n.value=t,n.attached=_o(),n}(i,r);!function(t,e,n,i){t.addEventListener(e,n,i)}(t,n,a,s)}else a&&(!function(t,e,n,i){t.removeEventListener(e,n,i)}(t,n,a,s),o[e]=void 0)}}const vo=/(?:Once|Passive|Capture)$/;let mo=0;const yo=Promise.resolve(),_o=()=>mo||(yo.then((()=>mo=0)),mo=Date.now());const xo=/^on[a-z]/;const bo="transition",wo="animation",So=(t,{slots:e})=>no(An,function(t){const e={};for(const l in t)l in Mo||(e[l]=t[l]);if(!1===t.css)return e;const{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=a,appearToClass:h=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=t,g=function(t){if(null==t)return null;if(y(t))return[Co(t.enter),Co(t.leave)];{const e=Co(t);return[e,e]}}(r),v=g&&g[0],m=g&&g[1],{onBeforeEnter:_,onEnter:x,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:M=_,onAppear:I=x,onAppearCancelled:A=b}=e,C=(t,e,n)=>{Do(t,e?h:s),Do(t,e?c:a),n&&n()},T=(t,e)=>{t._isLeaving=!1,Do(t,d),Do(t,f),Do(t,p),e&&e()},D=t=>(e,n)=>{const r=t?I:x,a=()=>C(e,t,n);Io(r,[e,a]),ko((()=>{Do(e,t?u:o),To(e,t?h:s),Ao(r)||Po(e,i,v,a)}))};return l(e,{onBeforeEnter(t){Io(_,[t]),To(t,o),To(t,a)},onBeforeAppear(t){Io(M,[t]),To(t,u),To(t,c)},onEnter:D(!1),onAppear:D(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>T(t,e);To(t,d),document.body.offsetHeight,To(t,p),ko((()=>{t._isLeaving&&(Do(t,d),To(t,f),Ao(w)||Po(t,i,m,n))})),Io(w,[t,n])},onEnterCancelled(t){C(t,!1),Io(b,[t])},onAppearCancelled(t){C(t,!0),Io(A,[t])},onLeaveCancelled(t){T(t),Io(S,[t])}})}(t),e);So.displayName="Transition";const Mo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};So.props=l({},In,Mo);const Io=(t,e=[])=>{d(t)?t.forEach((t=>t(...e))):t&&t(...e)},Ao=t=>!!t&&(d(t)?t.some((t=>t.length>1)):t.length>1);function Co(t){return B(t)}function To(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Do(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function ko(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let Lo=0;function Po(t,e,n,i){const r=t._endId=++Lo,o=()=>{r===t._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=function(t,e){const n=window.getComputedStyle(t),i=t=>(n[t]||"").split(", "),r=i(`${bo}Delay`),o=i(`${bo}Duration`),a=Oo(r,o),s=i(`${wo}Delay`),l=i(`${wo}Duration`),u=Oo(s,l);let c=null,h=0,d=0;e===bo?a>0&&(c=bo,h=a,d=o.length):e===wo?u>0&&(c=wo,h=u,d=l.length):(h=Math.max(a,u),c=h>0?a>u?bo:wo:null,d=c?c===bo?o.length:l.length:0);const p=c===bo&&/\b(transform|all)(,|$)/.test(i(`${bo}Property`).toString());return{type:c,timeout:h,propCount:d,hasTransform:p}}(t,e);if(!a)return i();const u=a+"end";let c=0;const h=()=>{t.removeEventListener(u,d),o()},d=e=>{e.target===t&&++c>=l&&h()};setTimeout((()=>{cEo(e)+Eo(t[n]))))}function Eo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}const Ro=["ctrl","shift","alt","meta"],No={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>Ro.some((n=>t[`${n}Key`]&&!e.includes(n)))},Bo=(t,e)=>(n,...i)=>{for(let t=0;t{Vo(t,!1)})):Vo(t,e))},beforeUnmount(t,{value:e}){Vo(t,e)}};function Vo(t,e){t.style.display=e?t._vod:"none"}const Fo=l({patchProp:(t,e,n,i,r=!1,o,l,u,c)=>{"class"===e?function(t,e,n){const i=t._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}(t,i,r):"style"===e?function(t,e,n){const i=t.style,r=v(n);if(n&&!r){if(e&&!v(e))for(const t in e)null==n[t]&&co(i,t,"");for(const t in n)co(i,t,n[t])}else{const o=i.display;r?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=o)}}(t,n,i):a(e)?s(e)||go(t,e,0,i,l):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,n,i){if(i)return"innerHTML"===e||"textContent"===e||!!(e in t&&xo.test(e)&&g(n));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if(xo.test(e)&&v(n))return!1;return e in t}(t,e,i,r))?function(t,e,n,i,r,o,a){if("innerHTML"===e||"textContent"===e)return i&&a(i,r,o),void(t[e]=null==n?"":n);const s=t.tagName;if("value"===e&&"PROGRESS"!==s&&!s.includes("-")){t._value=n;const i=null==n?"":n;return("OPTION"===s?t.getAttribute("value"):t.value)!==i&&(t.value=i),void(null==n&&t.removeAttribute(e))}let l=!1;if(""===n||null==n){const i=typeof t[e];"boolean"===i?n=q(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{t[e]=n}catch(u){}l&&t.removeAttribute(e)}(t,e,i,o,l,u,c):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),function(t,e,n,i,r){if(i&&e.startsWith("xlink:"))null==n?t.removeAttributeNS(fo,e.slice(6,e.length)):t.setAttributeNS(fo,e,n);else{const i=X(e);null==n||i&&!q(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}(t,e,i,r))}},lo);let Go;function Ho(){return Go||(Go=Qi(Fo))}const Wo=(...t)=>{Ho().render(...t)}; /*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT */ let Uo;const jo=t=>Uo=t,Yo=Symbol();function Xo(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var qo,Zo;(Zo=qo||(qo={})).direct="direct",Zo.patchObject="patch object",Zo.patchFunction="patch function";const Ko=()=>{};function $o(t,e,n,i=Ko){t.push(e);const r=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i())};return!n&&tt()&&et(r),r}function Jo(t,...e){t.slice().forEach((t=>{t(...e)}))}const Qo=t=>t();function ta(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],r=t[n];Xo(r)&&Xo(i)&&t.hasOwnProperty(n)&&!be(i)&&!he(i)?t[n]=ta(r,i):t[n]=i}return t}const ea=Symbol();const{assign:na}=Object;function ia(t,e,n={},i,r,o){let a;const s=na({actions:{}},n),l={deep:!0};let u,c,h,d=[],p=[];const f=i.state.value[t];let g;function v(e){let n;u=c=!1,"function"==typeof e?(e(i.state.value[t]),n={type:qo.patchFunction,storeId:t,events:h}):(ta(i.state.value[t],e),n={type:qo.patchObject,payload:e,storeId:t,events:h});const r=g=Symbol();Xe().then((()=>{g===r&&(u=!0)})),c=!0,Jo(d,n,i.state.value[t])}o||f||(i.state.value[t]={}),we({});const m=o?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{na(t,e)}))}:Ko;function y(e,n){return function(){jo(i);const r=Array.from(arguments),o=[],a=[];let s;Jo(p,{args:r,name:e,store:_,after:function(t){o.push(t)},onError:function(t){a.push(t)}});try{s=n.apply(this&&this.$id===t?this:_,r)}catch(l){throw Jo(a,l),l}return s instanceof Promise?s.then((t=>(Jo(o,t),t))).catch((t=>(Jo(a,t),Promise.reject(t)))):(Jo(o,s),s)}}const _=se({_p:i,$id:t,$onAction:$o.bind(null,p),$patch:v,$reset:m,$subscribe(e,n={}){const r=$o(d,e,n.detached,(()=>o())),o=a.run((()=>mn((()=>i.state.value[t]),(i=>{("sync"===n.flush?c:u)&&e({storeId:t,type:qo.direct,events:h},i)}),na({},l,n))));return r},$dispose:function(){a.stop(),d=[],p=[],i._s.delete(t)}});i._s.set(t,_);const x=i._a&&i._a.runWithContext||Qo,b=i._e.run((()=>(a=Q(),x((()=>a.run(e))))));for(const M in b){const e=b[M];if(be(e)&&(!be(S=e)||!S.effect)||he(e))o||(!f||Xo(w=e)&&w.hasOwnProperty(ea)||(be(e)?e.value=f[M]:ta(e,f[M])),i.state.value[t][M]=e);else if("function"==typeof e){const t=y(M,e);b[M]=t,s.actions[M]=e}}var w,S;return na(_,b),na(ge(_),b),Object.defineProperty(_,"$state",{get:()=>i.state.value[t],set:t=>{v((e=>{na(e,t)}))}}),i._p.forEach((t=>{na(_,a.run((()=>t({store:_,app:i._a,pinia:i,options:s}))))})),f&&o&&n.hydrate&&n.hydrate(_.$state,f),u=!0,c=!0,_}const ra=(t,e,{checkForDefaultPrevented:n=!0}={})=>i=>{const r=null==t?void 0:t(i);if(!1===n||!r)return null==e?void 0:e(i)},oa=t=>e=>"mouse"===e.pointerType?t(e):void 0;var aa;const sa="undefined"!=typeof window,la=t=>"string"==typeof t,ua=()=>{},ca=sa&&(null==(aa=null==window?void 0:window.navigator)?void 0:aa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ha(t){return"function"==typeof t?t():Ae(t)}function da(t){return!!tt()&&(et(t),!0)}function pa(t){var e;const n=ha(t);return null!=(e=null==n?void 0:n.$el)?e:n}const fa=sa?window:void 0;function ga(...t){let e,n,i,r;if(la(t[0])||Array.isArray(t[0])?([n,i,r]=t,e=fa):[e,n,i,r]=t,!e)return ua;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],a=()=>{o.forEach((t=>t())),o.length=0},s=mn((()=>[pa(e),ha(r)]),(([t,e])=>{a(),t&&o.push(...n.flatMap((n=>i.map((i=>((t,e,n,i)=>(t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)))(t,n,i,e))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),a()};return da(l),l}let va=!1;function ma(t,e=!1){const n=we(),i=()=>n.value=Boolean(t());return i(),function(t,e=!0){Gr()?qn(t):e?t():Xe(t)}(i,e),n}const ya="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_a="__vueuse_ssr_handlers__";ya[_a]=ya[_a]||{};var xa,ba,wa=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Ma=Object.prototype.propertyIsEnumerable;function Ia(t,e,n={}){const i=n,{window:r=fa}=i,o=((t,e)=>{var n={};for(var i in t)Sa.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&wa)for(var i of wa(t))e.indexOf(i)<0&&Ma.call(t,i)&&(n[i]=t[i]);return n})(i,["window"]);let a;const s=ma((()=>r&&"ResizeObserver"in r)),l=()=>{a&&(a.disconnect(),a=void 0)},u=mn((()=>pa(t)),(t=>{l(),s.value&&r&&t&&(a=new ResizeObserver(e),a.observe(t,o))}),{immediate:!0,flush:"post"}),c=()=>{l(),u()};return da(c),{isSupported:s,stop:c}}(ba=xa||(xa={})).UP="UP",ba.RIGHT="RIGHT",ba.DOWN="DOWN",ba.LEFT="LEFT",ba.NONE="NONE";var Aa=Object.defineProperty,Ca=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,ka=(t,e,n)=>e in t?Aa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;((t,e)=>{for(var n in e||(e={}))Ta.call(e,n)&&ka(t,n,e[n]);if(Ca)for(var n of Ca(e))Da.call(e,n)&&ka(t,n,e[n])})({linear:function(t){return t}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const La="object"==typeof global&&global&&global.Object===Object&&global;var Pa="object"==typeof self&&self&&self.Object===Object&&self;const Oa=La||Pa||Function("return this")();const Ea=Oa.Symbol;var Ra=Object.prototype,Na=Ra.hasOwnProperty,Ba=Ra.toString,za=Ea?Ea.toStringTag:void 0;var Va=Object.prototype.toString;var Fa="[object Null]",Ga="[object Undefined]",Ha=Ea?Ea.toStringTag:void 0;function Wa(t){return null==t?void 0===t?Ga:Fa:Ha&&Ha in Object(t)?function(t){var e=Na.call(t,za),n=t[za];try{t[za]=void 0;var i=!0}catch(o){}var r=Ba.call(t);return i&&(e?t[za]=n:delete t[za]),r}(t):function(t){return Va.call(t)}(t)}var Ua="[object Symbol]";function ja(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&Wa(t)==Ua}const Ya=Array.isArray;var Xa=1/0,qa=Ea?Ea.prototype:void 0,Za=qa?qa.toString:void 0;function Ka(t){if("string"==typeof t)return t;if(Ya(t))return function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n-1},ws.prototype.set=function(t,e){var n=this.__data__,i=xs(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};const Ss=ps(Oa,"Map");function Ms(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Is(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e"boolean"==typeof t,Hs=t=>"number"==typeof t,Ws=t=>"undefined"!=typeof Element&&t instanceof Element,Us=t=>Object.keys(t);class js extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ys(t,e="px"){return t?Hs(t)||v(n=t)&&!Number.isNaN(Number(n))?`${t}${e}`:v(t)?t:void 0:"";var n} /*! Element Plus Icons Vue v2.1.0 */var Xs=(t,e)=>{let n=t.__vccOpts||t;for(let[i,r]of e)n[i]=r;return n},qs={name:"ArrowDown"},Zs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ks=[Ar("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var $s=Xs(qs,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",Zs,Ks)}],["__file","arrow-down.vue"]]),Js={name:"Check"},Qs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tl=[Ar("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1)];var el=Xs(Js,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",Qs,tl)}],["__file","check.vue"]]),nl={name:"CircleCheck"},il={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rl=[Ar("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ar("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)];var ol=Xs(nl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",il,rl)}],["__file","circle-check.vue"]]),al={name:"CircleCloseFilled"},sl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ll=[Ar("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1)];var ul=Xs(al,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",sl,ll)}],["__file","circle-close-filled.vue"]]),cl={name:"CircleClose"},hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dl=[Ar("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Ar("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)];var pl=Xs(cl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",hl,dl)}],["__file","circle-close.vue"]]),fl={name:"Close"},gl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vl=[Ar("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var ml=Xs(fl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",gl,vl)}],["__file","close.vue"]]),yl={name:"InfoFilled"},_l={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xl=[Ar("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1)];var bl=Xs(yl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",_l,xl)}],["__file","info-filled.vue"]]),wl={name:"Loading"},Sl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ml=[Ar("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)];var Il=Xs(wl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",Sl,Ml)}],["__file","loading.vue"]]),Al={name:"SuccessFilled"},Cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tl=[Ar("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1)];var Dl=Xs(Al,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",Cl,Tl)}],["__file","success-filled.vue"]]),kl={name:"WarningFilled"},Ll={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pl=[Ar("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1)];var Ol=Xs(kl,[["render",function(t,e,n,i,r,o){return gr(),_r("svg",Ll,Pl)}],["__file","warning-filled.vue"]]);const El="__epPropKey",Rl=(t,e)=>{if(!y(t)||y(n=t)&&n[El])return t;var n;const{values:i,required:r,default:o,type:a,validator:s}=t,l=i||s?e=>{let n=!1,r=[];if(i&&(r=Array.from(i),h(t,"default")&&r.push(o),n||(n=r.includes(e))),s&&(n||(n=s(e))),!n&&r.length>0){[...new Set(r)].map((t=>JSON.stringify(t))).join(", ");JSON.stringify(e)}return n}:void 0,u={type:a,required:!!r,validator:l,[El]:!0};return h(t,"default")&&(u.default=o),u},Nl=t=>Vs(Object.entries(t).map((([t,e])=>[t,Rl(e)]))),Bl=[String,Object,Function],zl={Close:ml,SuccessFilled:Dl,InfoFilled:bl,WarningFilled:Ol,CircleCloseFilled:ul},Vl={success:Dl,warning:Ol,error:ul,info:bl},Fl=(t,e)=>{if(t.install=n=>{for(const i of[t,...Object.values(null!=e?e:{})])n.component(i.name,i)},e)for(const[n,i]of Object.entries(e))t[n]=i;return t},Gl=t=>(t.install=i,t),Hl=(...t)=>e=>{t.forEach((t=>{g(t)?t(e):t.value=e}))},Wl={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};var Ul={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const jl=t=>(e,n)=>Yl(e,n,Ae(t)),Yl=(t,e,n)=>zs(n,t,t).replace(/\{(\w+)\}/g,((t,n)=>{var i;return`${null!=(i=null==e?void 0:e[n])?i:`{${n}}`}`})),Xl=Symbol("localeContextKey"),ql=t=>{const e=t||Ni(Xl,we());return(t=>({lang:eo((()=>Ae(t).name)),locale:be(t)?t:we(t),t:jl(t)}))(eo((()=>e.value||Ul)))},Zl="el",Kl=(t,e,n,i,r)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),i&&(o+=`__${i}`),r&&(o+=`--${r}`),o},$l=Symbol("namespaceContextKey"),Jl=t=>{const e=t||(Gr()?Ni($l,we(Zl)):we(Zl));return eo((()=>Ae(e)||Zl))},Ql=(t,e)=>{const n=Jl(e);return{namespace:n,b:(e="")=>Kl(n.value,t,e,"",""),e:e=>e?Kl(n.value,t,"",e,""):"",m:e=>e?Kl(n.value,t,"","",e):"",be:(e,i)=>e&&i?Kl(n.value,t,e,i,""):"",em:(e,i)=>e&&i?Kl(n.value,t,"",e,i):"",bm:(e,i)=>e&&i?Kl(n.value,t,e,"",i):"",bem:(e,i,r)=>e&&i&&r?Kl(n.value,t,e,i,r):"",is:(t,...e)=>{const n=!(e.length>=1)||e[0];return t&&n?`is-${t}`:""},cssVar:t=>{const e={};for(const i in t)t[i]&&(e[`--${n.value}-${i}`]=t[i]);return e},cssVarName:t=>`--${n.value}-${t}`,cssVarBlock:e=>{const i={};for(const r in e)e[r]&&(i[`--${n.value}-${t}-${r}`]=e[r]);return i},cssVarBlockName:e=>`--${n.value}-${t}-${e}`}},tu=Rl({type:Boolean,default:null}),eu=Rl({type:Function}),nu=t=>{const e=`update:${t}`,n=`onUpdate:${t}`;return{useModelToggle:({indicator:i,toggleReason:r,shouldHideWhenRouteChanges:o,shouldProceed:a,onShow:s,onHide:l})=>{const u=Gr(),{emit:c}=u,h=u.props,d=eo((()=>g(h[n]))),p=eo((()=>null===h[t])),f=t=>{!0!==i.value&&(i.value=!0,r&&(r.value=t),g(s)&&s(t))},v=t=>{!1!==i.value&&(i.value=!1,r&&(r.value=t),g(l)&&l(t))},m=t=>{if(!0===h.disabled||g(a)&&!a())return;const n=d.value&&sa;n&&c(e,!0),!p.value&&n||f(t)},y=t=>{if(!0===h.disabled||!sa)return;const n=d.value&&sa;n&&c(e,!1),!p.value&&n||v(t)},_=t=>{Gs(t)&&(h.disabled&&t?d.value&&c(e,!1):i.value!==t&&(t?f():v()))};return mn((()=>h[t]),_),o&&void 0!==u.appContext.config.globalProperties.$route&&mn((()=>({...u.proxy.$route})),(()=>{o.value&&i.value&&y()})),qn((()=>{_(h[t])})),{hide:y,show:m,toggle:()=>{i.value?y():m()},hasUpdateHandler:d}},useModelToggleProps:{[t]:tu,[n]:eu},useModelToggleEmits:[e]}};nu("modelValue");const iu=t=>{const e=Gr();return eo((()=>{var n,i;return null==(i=null==(n=null==e?void 0:e.proxy)?void 0:n.$props)?void 0:i[t]}))};var ru="top",ou="bottom",au="right",su="left",lu="auto",uu=[ru,ou,au,su],cu="start",hu="end",du="clippingParents",pu="viewport",fu="popper",gu="reference",vu=uu.reduce((function(t,e){return t.concat([e+"-"+cu,e+"-"+hu])}),[]),mu=[].concat(uu,[lu]).reduce((function(t,e){return t.concat([e,e+"-"+cu,e+"-"+hu])}),[]),yu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _u(t){return t?(t.nodeName||"").toLowerCase():null}function xu(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function bu(t){return t instanceof xu(t).Element||t instanceof Element}function wu(t){return t instanceof xu(t).HTMLElement||t instanceof HTMLElement}function Su(t){return"undefined"!=typeof ShadowRoot&&(t instanceof xu(t).ShadowRoot||t instanceof ShadowRoot)}var Mu={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];!wu(r)||!_u(r)||(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});!wu(i)||!_u(i)||(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Iu(t){return t.split("-")[0]}var Au=Math.max,Cu=Math.min,Tu=Math.round;function Du(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),i=1,r=1;if(wu(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(i=Tu(n.width)/a||1),o>0&&(r=Tu(n.height)/o||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function ku(t){var e=Du(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Lu(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Su(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Pu(t){return xu(t).getComputedStyle(t)}function Ou(t){return["table","td","th"].indexOf(_u(t))>=0}function Eu(t){return((bu(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ru(t){return"html"===_u(t)?t:t.assignedSlot||t.parentNode||(Su(t)?t.host:null)||Eu(t)}function Nu(t){return wu(t)&&"fixed"!==Pu(t).position?t.offsetParent:null}function Bu(t){for(var e=xu(t),n=Nu(t);n&&Ou(n)&&"static"===Pu(n).position;)n=Nu(n);return n&&("html"===_u(n)||"body"===_u(n)&&"static"===Pu(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&wu(t)&&"fixed"===Pu(t).position)return null;var n=Ru(t);for(Su(n)&&(n=n.host);wu(n)&&["html","body"].indexOf(_u(n))<0;){var i=Pu(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function zu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vu(t,e,n){return Au(t,Cu(e,n))}function Fu(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Gu(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Hu={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Iu(n.placement),l=zu(s),u=[su,au].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(t,e){return Fu("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Gu(t,uu))}(r.padding,n),h=ku(o),d="y"===l?ru:su,p="y"===l?ou:au,f=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],v=Bu(o),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-g/2,_=c[d],x=m-h[u]-c[p],b=m/2-h[u]/2+y,w=Vu(_,b,x),S=l;n.modifiersData[i]=((e={})[S]=w,e.centerOffset=w-b,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"==typeof i&&!(i=e.elements.popper.querySelector(i))||!Lu(e.elements.popper,i)||(e.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wu(t){return t.split("-")[1]}var Uu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ju(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,h=t.isFixed,d=a.x,p=void 0===d?0:d,f=a.y,g=void 0===f?0:f,v="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),_=su,x=ru,b=window;if(u){var w=Bu(n),S="clientHeight",M="clientWidth";if(w===xu(n)&&("static"!==Pu(w=Eu(n)).position&&"absolute"===s&&(S="scrollHeight",M="scrollWidth")),r===ru||(r===su||r===au)&&o===hu)x=ou,g-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[S])-i.height,g*=l?1:-1;if(r===su||(r===ru||r===ou)&&o===hu)_=au,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[M])-i.width,p*=l?1:-1}var I,A=Object.assign({position:s},u&&Uu),C=!0===c?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:Tu(e*i)/i||0,y:Tu(n*i)/i||0}}({x:p,y:g}):{x:p,y:g};return p=C.x,g=C.y,l?Object.assign({},A,((I={})[x]=y?"0":"",I[_]=m?"0":"",I.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",I)):Object.assign({},A,((e={})[x]=y?g+"px":"",e[_]=m?p+"px":"",e.transform="",e))}var Yu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:Iu(e.placement),variation:Wu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ju(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ju(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Xu={passive:!0};var qu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,l=xu(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",n.update,Xu)})),s&&l.addEventListener("resize",n.update,Xu),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",n.update,Xu)})),s&&l.removeEventListener("resize",n.update,Xu)}},data:{}},Zu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ku(t){return t.replace(/left|right|bottom|top/g,(function(t){return Zu[t]}))}var $u={start:"end",end:"start"};function Ju(t){return t.replace(/start|end/g,(function(t){return $u[t]}))}function Qu(t){var e=xu(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tc(t){return Du(Eu(t)).left+Qu(t).scrollLeft}function ec(t){var e=Pu(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function nc(t){return["html","body","#document"].indexOf(_u(t))>=0?t.ownerDocument.body:wu(t)&&ec(t)?t:nc(Ru(t))}function ic(t,e){var n;void 0===e&&(e=[]);var i=nc(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=xu(i),a=r?[o].concat(o.visualViewport||[],ec(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ic(Ru(a)))}function rc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function oc(t,e){return e===pu?rc(function(t){var e=xu(t),n=Eu(t),i=e.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,s=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:r,height:o,x:a+tc(t),y:s}}(t)):bu(e)?function(t){var e=Du(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):rc(function(t){var e,n=Eu(t),i=Qu(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=Au(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Au(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+tc(t),l=-i.scrollTop;return"rtl"===Pu(r||n).direction&&(s+=Au(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(Eu(t)))}function ac(t,e,n){var i="clippingParents"===e?function(t){var e=ic(Ru(t)),n=["absolute","fixed"].indexOf(Pu(t).position)>=0&&wu(t)?Bu(t):t;return bu(n)?e.filter((function(t){return bu(t)&&Lu(t,n)&&"body"!==_u(t)})):[]}(t):[].concat(e),r=[].concat(i,[n]),o=r[0],a=r.reduce((function(e,n){var i=oc(t,n);return e.top=Au(i.top,e.top),e.right=Cu(i.right,e.right),e.bottom=Cu(i.bottom,e.bottom),e.left=Au(i.left,e.left),e}),oc(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sc(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?Iu(r):null,a=r?Wu(r):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case ru:e={x:s,y:n.y-i.height};break;case ou:e={x:s,y:n.y+n.height};break;case au:e={x:n.x+n.width,y:l};break;case su:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?zu(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case cu:e[u]=e[u]-(n[c]/2-i[c]/2);break;case hu:e[u]=e[u]+(n[c]/2-i[c]/2)}}return e}function lc(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,a=void 0===o?du:o,s=n.rootBoundary,l=void 0===s?pu:s,u=n.elementContext,c=void 0===u?fu:u,h=n.altBoundary,d=void 0!==h&&h,p=n.padding,f=void 0===p?0:p,g=Fu("number"!=typeof f?f:Gu(f,uu)),v=c===fu?gu:fu,m=t.rects.popper,y=t.elements[d?v:c],_=ac(bu(y)?y:y.contextElement||Eu(t.elements.popper),a,l),x=Du(t.elements.reference),b=sc({reference:x,element:m,strategy:"absolute",placement:r}),w=rc(Object.assign({},m,b)),S=c===fu?w:x,M={top:_.top-S.top+g.top,bottom:S.bottom-_.bottom+g.bottom,left:_.left-S.left+g.left,right:S.right-_.right+g.right},I=t.modifiersData.offset;if(c===fu&&I){var A=I[r];Object.keys(M).forEach((function(t){var e=[au,ou].indexOf(t)>=0?1:-1,n=[ru,ou].indexOf(t)>=0?"y":"x";M[t]+=A[n]*e}))}return M}var uc={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,v=e.options.placement,m=Iu(v),y=l||(m===v||!f?[Ku(v)]:function(t){if(Iu(t)===lu)return[];var e=Ku(t);return[Ju(t),e,Ju(e)]}(v)),_=[v].concat(y).reduce((function(t,n){return t.concat(Iu(n)===lu?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?mu:l,c=Wu(i),h=c?s?vu:vu.filter((function(t){return Wu(t)===c})):uu,d=h.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=h);var p=d.reduce((function(e,n){return e[n]=lc(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[Iu(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=e.rects.reference,b=e.rects.popper,w=new Map,S=!0,M=_[0],I=0;I<_.length;I++){var A=_[I],C=Iu(A),T=Wu(A)===cu,D=[ru,ou].indexOf(C)>=0,k=D?"width":"height",L=lc(e,{placement:A,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),P=D?T?au:su:T?ou:ru;x[k]>b[k]&&(P=Ku(P));var O=Ku(P),E=[];if(o&&E.push(L[C]<=0),s&&E.push(L[P]<=0,L[O]<=0),E.every((function(t){return t}))){M=A,S=!1;break}w.set(A,E)}if(S)for(var R=function(t){var e=_.find((function(e){var n=w.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},N=f?3:1;N>0;N--){if("break"===R(N))break}e.placement!==M&&(e.modifiersData[i]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function cc(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function hc(t){return[ru,au,ou,su].some((function(e){return t[e]>=0}))}var dc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=lc(e,{elementContext:"reference"}),s=lc(e,{altBoundary:!0}),l=cc(a,i),u=cc(s,r,o),c=hc(l),h=hc(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}};var pc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=mu.reduce((function(t,n){return t[n]=function(t,e,n){var i=Iu(t),r=[su,ru].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[su,au].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],l=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}};var fc={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=sc({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var gc={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,g=void 0===f?0:f,v=lc(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:c}),m=Iu(e.placement),y=Wu(e.placement),_=!y,x=zu(m),b=function(t){return"x"===t?"y":"x"}(x),w=e.modifiersData.popperOffsets,S=e.rects.reference,M=e.rects.popper,I="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,A="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(w){if(o){var D,k="y"===x?ru:su,L="y"===x?ou:au,P="y"===x?"height":"width",O=w[x],E=O+v[k],R=O-v[L],N=p?-M[P]/2:0,B=y===cu?S[P]:M[P],z=y===cu?-M[P]:-S[P],V=e.elements.arrow,F=p&&V?ku(V):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=G[k],W=G[L],U=Vu(0,S[P],F[P]),j=_?S[P]/2-N-U-H-A.mainAxis:B-U-H-A.mainAxis,Y=_?-S[P]/2+N+U+W+A.mainAxis:z+U+W+A.mainAxis,X=e.elements.arrow&&Bu(e.elements.arrow),q=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,Z=null!=(D=null==C?void 0:C[x])?D:0,K=O+Y-Z,$=Vu(p?Cu(E,O+j-Z-q):E,O,p?Au(R,K):R);w[x]=$,T[x]=$-O}if(s){var J,Q="x"===x?ru:su,tt="x"===x?ou:au,et=w[b],nt="y"===b?"height":"width",it=et+v[Q],rt=et-v[tt],ot=-1!==[ru,su].indexOf(m),at=null!=(J=null==C?void 0:C[b])?J:0,st=ot?it:et-S[nt]-M[nt]-at+A.altAxis,lt=ot?et+S[nt]+M[nt]-at-A.altAxis:rt,ut=p&&ot?function(t,e,n){var i=Vu(t,e,n);return i>n?n:i}(st,et,lt):Vu(p?st:it,et,p?lt:rt);w[b]=ut,T[b]=ut-et}e.modifiersData[i]=T}},requiresIfExists:["offset"]};function vc(t,e,n){void 0===n&&(n=!1);var i=wu(e),r=wu(e)&&function(t){var e=t.getBoundingClientRect(),n=Tu(e.width)/t.offsetWidth||1,i=Tu(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),o=Eu(e),a=Du(t,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==_u(e)||ec(o))&&(s=function(t){return t!==xu(t)&&wu(t)?function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):Qu(t)}(e)),wu(e)?((l=Du(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=tc(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mc(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}function yc(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var _c={placement:"bottom",modifiers:[],strategy:"absolute"};function xc(){for(var t=arguments.length,e=new Array(t),n=0;n{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:t})=>{const e=function(t){const e=Object.keys(t.elements),n=Vs(e.map((e=>[e,t.styles[e]||{}]))),i=Vs(e.map((e=>[e,t.attributes[e]])));return{styles:n,attributes:i}}(t);Object.assign(a.value,e)},requires:["computeStyles"]},r=eo((()=>{const{onFirstUpdate:t,placement:e,strategy:r,modifiers:o}=Ae(n);return{onFirstUpdate:t,placement:e||"bottom",strategy:r||"absolute",modifiers:[...o||[],i,{name:"applyStyles",enabled:!1}]}})),o=Se(),a=we({styles:{popper:{position:Ae(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return mn(r,(t=>{const e=Ae(o);e&&e.setOptions(t)}),{deep:!0}),mn([t,e],(([t,e])=>{s(),t&&e&&(o.value=wc(t,e,Ae(r)))})),$n((()=>{s()})),{state:eo((()=>{var t;return{...(null==(t=Ae(o))?void 0:t.state)||{}}})),styles:eo((()=>Ae(a).styles)),attributes:eo((()=>Ae(a).attributes)),update:()=>{var t;return null==(t=Ae(o))?void 0:t.update()},forceUpdate:()=>{var t;return null==(t=Ae(o))?void 0:t.forceUpdate()},instanceRef:eo((()=>Ae(o)))}};function Mc(){let t;const e=()=>window.clearTimeout(t);return da((()=>e())),{registerTimeout:(n,i)=>{e(),t=window.setTimeout(n,i)},cancelTimeout:e}}const Ic={prefix:Math.floor(1e4*Math.random()),current:0},Ac=Symbol("elIdInjection"),Cc=()=>Gr()?Ni(Ac,Ic):Ic,Tc=t=>{const e=Cc(),n=Jl();return eo((()=>Ae(t)||`${n.value}-id-${e.prefix}-${e.current++}`))};let Dc=[];const kc=t=>{const e=t;e.key===Wl.esc&&Dc.forEach((t=>t(e)))};let Lc;const Pc=()=>{const t=Jl(),e=Cc(),n=eo((()=>`${t.value}-popper-container-${e.prefix}`)),i=eo((()=>`#${n.value}`));return{id:n,selector:i}},Oc=()=>{const{id:t,selector:e}=Pc();return Xn((()=>{sa&&(Lc||document.body.querySelector(e.value)||(Lc=(t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e})(t.value)))})),{id:t,selector:e}},Ec=Nl({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Rc=Symbol("elForwardRef"),Nc=we(0),Bc=Symbol("zIndexContextKey"),zc=t=>{const e=t||(Gr()?Ni(Bc,void 0):void 0),n=eo((()=>{const t=Ae(e);return Hs(t)?t:2e3})),i=eo((()=>n.value+Nc.value));return{initialZIndex:n,currentZIndex:i,nextZIndex:()=>(Nc.value++,i.value)}},Vc=Rl({type:String,values:["","default","small","large"],required:!1}),Fc=Symbol("size"),Gc=Symbol(),Hc=we();function Wc(t,e=void 0){const n=Gr()?Ni(Gc,Hc):Hc;return t?eo((()=>{var i,r;return null!=(r=null==(i=n.value)?void 0:i[t])?r:e})):n}const Uc=(t,e,n=!1)=>{var i;const r=!!Gr(),o=r?Wc():void 0,a=null!=(i=null==e?void 0:e.provide)?i:r?Ri:void 0;if(!a)return;const s=eo((()=>{const e=Ae(t);return(null==o?void 0:o.value)?jc(o.value,e):e}));return a(Gc,s),a(Xl,eo((()=>s.value.locale))),a($l,eo((()=>s.value.namespace))),a(Bc,eo((()=>s.value.zIndex))),a(Fc,{size:eo((()=>s.value.size||""))}),!n&&Hc.value||(Hc.value=s.value),s},jc=(t,e)=>{var n;const i=[...new Set([...Us(t),...Us(e)])],r={};for(const o of i)r[o]=null!=(n=e[o])?n:t[o];return r},Yc={};var Xc=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n};const qc=Nl({size:{type:[Number,String]},color:{type:String}}),Zc=On({name:"ElIcon",inheritAttrs:!1}),Kc=On({...Zc,props:qc,setup(t){const e=t,n=Ql("icon"),i=eo((()=>{const{size:t,color:n}=e;return t||n?{fontSize:(i=t,void 0===i?void 0:Ys(t)),"--color":n}:{};var i}));return(t,e)=>(gr(),_r("i",Nr({class:Ae(n).b(),style:Ae(i)},t.$attrs),[hi(t.$slots,"default")],16))}});const $c=Fl(Xc(Kc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]])),Jc=Symbol("formContextKey"),Qc=Symbol("formItemContextKey"),th=(t,e={})=>{const n=we(void 0),i=e.prop?n:iu("size"),r=e.global?n:(()=>{const t=Ni(Fc,{});return eo((()=>Ae(t.size)||""))})(),o=e.form?{size:void 0}:Ni(Jc,void 0),a=e.formItem?{size:void 0}:Ni(Qc,void 0);return eo((()=>i.value||Ae(t)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||r.value||""))},eh=t=>{const e=iu("disabled"),n=Ni(Jc,void 0);return eo((()=>e.value||Ae(t)||(null==n?void 0:n.disabled)||!1))},nh={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ih=Symbol("scrollbarContextKey"),rh=Nl({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),oh=On({__name:"thumb",props:rh,setup(t){const e=t,n=Ni(ih),i=Ql("scrollbar");n||function(t,e){throw new js(`[${t}] ${e}`)}("Thumb","can not inject scrollbar context");const r=we(),o=we(),a=we({}),s=we(!1);let l=!1,u=!1,c=sa?document.onselectstart:null;const h=eo((()=>nh[e.vertical?"vertical":"horizontal"])),d=eo((()=>(({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}))({size:e.size,move:e.move,bar:h.value}))),p=eo((()=>r.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/e.ratio/o.value[h.value.offset])),f=t=>{var e;if(t.stopPropagation(),t.ctrlKey||[1,2].includes(t.button))return;null==(e=window.getSelection())||e.removeAllRanges(),v(t);const n=t.currentTarget;n&&(a.value[h.value.axis]=n[h.value.offset]-(t[h.value.client]-n.getBoundingClientRect()[h.value.direction]))},g=t=>{if(!o.value||!r.value||!n.wrapElement)return;const e=100*(Math.abs(t.target.getBoundingClientRect()[h.value.direction]-t[h.value.client])-o.value[h.value.offset]/2)*p.value/r.value[h.value.offset];n.wrapElement[h.value.scroll]=e*n.wrapElement[h.value.scrollSize]/100},v=t=>{t.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=t=>{if(!r.value||!o.value)return;if(!1===l)return;const e=a.value[h.value.axis];if(!e)return;const i=100*(-1*(r.value.getBoundingClientRect()[h.value.direction]-t[h.value.client])-(o.value[h.value.offset]-e))*p.value/r.value[h.value.offset];n.wrapElement[h.value.scroll]=i*n.wrapElement[h.value.scrollSize]/100},y=()=>{l=!1,a.value[h.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),_(),u&&(s.value=!1)};$n((()=>{_(),document.removeEventListener("mouseup",y)}));const _=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return ga(Pe(n,"scrollbarElement"),"mousemove",(()=>{u=!1,s.value=!!e.size})),ga(Pe(n,"scrollbarElement"),"mouseleave",(()=>{u=!0,s.value=l})),(t,e)=>(gr(),xr(So,{name:Ae(i).b("fade"),persisted:""},{default:cn((()=>[wn(Ar("div",{ref_key:"instance",ref:r,class:j([Ae(i).e("bar"),Ae(i).is(Ae(h).key)]),onMousedown:g},[Ar("div",{ref_key:"thumb",ref:o,class:j(Ae(i).e("thumb")),style:F(Ae(d)),onMousedown:f},null,38)],34),[[zo,t.always||s.value]])])),_:1},8,["name"]))}});var ah=Xc(oh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const sh=On({__name:"bar",props:Nl({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(t,{expose:e}){const n=t,i=we(0),r=we(0);return e({handleScroll:t=>{if(t){const e=t.offsetHeight-4,o=t.offsetWidth-4;r.value=100*t.scrollTop/e*n.ratioY,i.value=100*t.scrollLeft/o*n.ratioX}}}),(t,e)=>(gr(),_r(ur,null,[Cr(ah,{move:i.value,ratio:t.ratioX,size:t.width,always:t.always},null,8,["move","ratio","size","always"]),Cr(ah,{move:r.value,ratio:t.ratioY,size:t.height,vertical:"",always:t.always},null,8,["move","ratio","size","always"])],64))}});var lh=Xc(sh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const uh=Nl({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),ch={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(Hs)},hh=On({name:"ElScrollbar"}),dh=On({...hh,props:uh,emits:ch,setup(t,{expose:e,emit:n}){const i=t,r=Ql("scrollbar");let o,a;const s=we(),l=we(),u=we(),c=we("0"),h=we("0"),d=we(),p=we(1),f=we(1),g=eo((()=>{const t={};return i.height&&(t.height=Ys(i.height)),i.maxHeight&&(t.maxHeight=Ys(i.maxHeight)),[i.wrapStyle,t]})),v=eo((()=>[i.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!i.native}])),m=eo((()=>[r.e("view"),i.viewClass])),_=()=>{var t;l.value&&(null==(t=d.value)||t.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};const x=()=>{if(!l.value)return;const t=l.value.offsetHeight-4,e=l.value.offsetWidth-4,n=t**2/l.value.scrollHeight,r=e**2/l.value.scrollWidth,o=Math.max(n,i.minSize),a=Math.max(r,i.minSize);p.value=n/(t-n)/(o/(t-o)),f.value=r/(e-r)/(a/(e-a)),h.value=o+4i.noresize),(t=>{t?(null==o||o(),null==a||a()):(({stop:o}=Ia(u,x)),a=ga("resize",x))}),{immediate:!0}),mn((()=>[i.maxHeight,i.height]),(()=>{i.native||Xe((()=>{var t;x(),l.value&&(null==(t=d.value)||t.handleScroll(l.value))}))})),Ri(ih,se({scrollbarElement:s,wrapElement:l})),qn((()=>{i.native||Xe((()=>{x()}))})),Kn((()=>x())),e({wrapRef:l,update:x,scrollTo:function(t,e){y(t)?l.value.scrollTo(t):Hs(t)&&Hs(e)&&l.value.scrollTo(t,e)},setScrollTop:t=>{Hs(t)&&(l.value.scrollTop=t)},setScrollLeft:t=>{Hs(t)&&(l.value.scrollLeft=t)},handleScroll:_}),(t,e)=>(gr(),_r("div",{ref_key:"scrollbarRef",ref:s,class:j(Ae(r).b())},[Ar("div",{ref_key:"wrapRef",ref:l,class:j(Ae(v)),style:F(Ae(g)),onScroll:_},[(gr(),xr(ai(t.tag),{ref_key:"resizeRef",ref:u,class:j(Ae(m)),style:F(t.viewStyle)},{default:cn((()=>[hi(t.$slots,"default")])),_:3},8,["class","style"]))],38),t.native?Pr("v-if",!0):(gr(),xr(lh,{key:0,ref_key:"barRef",ref:d,height:h.value,width:c.value,always:t.always,"ratio-x":f.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});const ph=Fl(Xc(dh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]])),fh=Symbol("popper"),gh=Symbol("popperContent"),vh=Nl({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),mh=On({name:"ElPopper",inheritAttrs:!1}),yh=On({...mh,props:vh,setup(t,{expose:e}){const n=t,i={triggerRef:we(),popperInstanceRef:we(),contentRef:we(),referenceRef:we(),role:eo((()=>n.role))};return e(i),Ri(fh,i),(t,e)=>hi(t.$slots,"default")}});var _h=Xc(yh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const xh=Nl({arrowOffset:{type:Number,default:5}}),bh=On({name:"ElPopperArrow",inheritAttrs:!1});var wh=Xc(On({...bh,props:xh,setup(t,{expose:e}){const n=t,i=Ql("popper"),{arrowOffset:r,arrowRef:o,arrowStyle:a}=Ni(gh,void 0);return mn((()=>n.arrowOffset),(t=>{r.value=t})),$n((()=>{o.value=void 0})),e({arrowRef:o}),(t,e)=>(gr(),_r("span",{ref_key:"arrowRef",ref:o,class:j(Ae(i).e("arrow")),style:F(Ae(a)),"data-popper-arrow":""},null,6))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Sh=On({name:"ElOnlyChild",setup(t,{slots:e,attrs:n}){var r;const o=Ni(Rc),a=(s=null!=(r=null==o?void 0:o.setForwardRef)?r:i,{mounted(t){s(t)},updated(t){s(t)},unmounted(){s(null)}});var s;return()=>{var t;const i=null==(t=e.default)?void 0:t.call(e,n);if(!i)return null;if(i.length>1)return null;const r=Mh(i);return r?wn(Dr(r,n),[[a]]):null}}});function Mh(t){if(!t)return null;const e=t;for(const n of e){if(y(n))switch(n.type){case hr:continue;case cr:case"svg":return Ih(n);case ur:return Mh(n.children);default:return n}return Ih(n)}return null}function Ih(t){const e=Ql("only-child");return Cr("span",{class:e.e("content")},[t])}const Ah=Nl({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),Ch=On({name:"ElPopperTrigger",inheritAttrs:!1}),Th=On({...Ch,props:Ah,setup(t,{expose:e}){const n=t,{role:i,triggerRef:r}=Ni(fh,void 0);var o;o=r,Ri(Rc,{setForwardRef:t=>{o.value=t}});const a=eo((()=>l.value?n.id:void 0)),s=eo((()=>{if(i&&"tooltip"===i.value)return n.open&&n.id?n.id:void 0})),l=eo((()=>{if(i&&"tooltip"!==i.value)return i.value})),u=eo((()=>l.value?`${n.open}`:void 0));let c;return qn((()=>{mn((()=>n.virtualRef),(t=>{t&&(r.value=pa(t))}),{immediate:!0}),mn(r,((t,e)=>{null==c||c(),c=void 0,Ws(t)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((i=>{var r;const o=n[i];o&&(t.addEventListener(i.slice(2).toLowerCase(),o),null==(r=null==e?void 0:e.removeEventListener)||r.call(e,i.slice(2).toLowerCase(),o))})),c=mn([a,s,l,u],(e=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,i)=>{Fs(e[i])?t.removeAttribute(n):t.setAttribute(n,e[i])}))}),{immediate:!0})),Ws(e)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((t=>e.removeAttribute(t)))}),{immediate:!0})})),$n((()=>{null==c||c(),c=void 0})),e({triggerRef:r}),(t,e)=>t.virtualTriggering?Pr("v-if",!0):(gr(),xr(Ae(Sh),Nr({key:0},t.$attrs,{"aria-controls":Ae(a),"aria-describedby":Ae(s),"aria-expanded":Ae(u),"aria-haspopup":Ae(l)}),{default:cn((()=>[hi(t.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Dh=Xc(Th,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const kh="focus-trap.focus-after-trapped",Lh="focus-trap.focus-after-released",Ph={cancelable:!0,bubbles:!1},Oh={cancelable:!0,bubbles:!1},Eh="focusAfterTrapped",Rh="focusAfterReleased",Nh=Symbol("elFocusTrap"),Bh=we(),zh=we(0),Vh=we(0);let Fh=0;const Gh=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},Hh=(t,e)=>{for(const n of t)if(!Wh(n,e))return n},Wh=(t,e)=>{if("hidden"===getComputedStyle(t).visibility)return!0;for(;t;){if(e&&t===e)return!1;if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},Uh=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Vh.value=window.performance.now(),t!==n&&(t=>t instanceof HTMLInputElement&&"select"in t)(t)&&e&&t.select()}};function jh(t,e){const n=[...t],i=t.indexOf(e);return-1!==i&&n.splice(i,1),n}const Yh=(()=>{let t=[];return{push:e=>{const n=t[0];n&&e!==n&&n.pause(),t=jh(t,e),t.unshift(e)},remove:e=>{var n,i;t=jh(t,e),null==(i=null==(n=t[0])?void 0:n.resume)||i.call(n)}}})(),Xh=()=>{Bh.value="pointer",zh.value=window.performance.now()},qh=()=>{Bh.value="keyboard",zh.value=window.performance.now()},Zh=t=>new CustomEvent("focus-trap.focusout-prevented",{...Oh,detail:t}),Kh=On({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Eh,Rh,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=we();let i,r;const{focusReason:o}=(qn((()=>{0===Fh&&(document.addEventListener("mousedown",Xh),document.addEventListener("touchstart",Xh),document.addEventListener("keydown",qh)),Fh++})),$n((()=>{Fh--,Fh<=0&&(document.removeEventListener("mousedown",Xh),document.removeEventListener("touchstart",Xh),document.removeEventListener("keydown",qh))})),{focusReason:Bh,lastUserFocusTimestamp:zh,lastAutomatedFocusTimestamp:Vh});var a;a=n=>{t.trapped&&!s.paused&&e("release-requested",n)},qn((()=>{0===Dc.length&&document.addEventListener("keydown",kc),sa&&Dc.push(a)})),$n((()=>{Dc=Dc.filter((t=>t!==a)),0===Dc.length&&sa&&document.removeEventListener("keydown",kc)}));const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!t.loop&&!t.trapped)return;if(s.paused)return;const{key:i,altKey:r,ctrlKey:a,metaKey:l,currentTarget:u,shiftKey:c}=n,{loop:h}=t,d=i===Wl.tab&&!r&&!a&&!l,p=document.activeElement;if(d&&p){const t=u,[i,r]=(t=>{const e=Gh(t);return[Hh(e,t),Hh(e.reverse(),t)]})(t);if(i&&r)if(c||p!==r){if(c&&[i,t].includes(p)){const t=Zh({focusReason:o.value});e("focusout-prevented",t),t.defaultPrevented||(n.preventDefault(),h&&Uh(r,!0))}}else{const t=Zh({focusReason:o.value});e("focusout-prevented",t),t.defaultPrevented||(n.preventDefault(),h&&Uh(i,!0))}else if(p===t){const t=Zh({focusReason:o.value});e("focusout-prevented",t),t.defaultPrevented||n.preventDefault()}}};Ri(Nh,{focusTrapRef:n,onKeydown:l}),mn((()=>t.focusTrapEl),(t=>{t&&(n.value=t)}),{immediate:!0}),mn([n],(([t],[e])=>{t&&(t.addEventListener("keydown",l),t.addEventListener("focusin",h),t.addEventListener("focusout",d)),e&&(e.removeEventListener("keydown",l),e.removeEventListener("focusin",h),e.removeEventListener("focusout",d))}));const u=t=>{e(Eh,t)},c=t=>e(Rh,t),h=o=>{const a=Ae(n);if(!a)return;const l=o.target,u=o.relatedTarget,c=l&&a.contains(l);if(!t.trapped){u&&a.contains(u)||(i=u)}c&&e("focusin",o),s.paused||t.trapped&&(c?r=l:Uh(r,!0))},d=i=>{const a=Ae(n);if(!s.paused&&a)if(t.trapped){const n=i.relatedTarget;Fs(n)||a.contains(n)||setTimeout((()=>{if(!s.paused&&t.trapped){const t=Zh({focusReason:o.value});e("focusout-prevented",t),t.defaultPrevented||Uh(r,!0)}}),0)}else{const t=i.target;t&&a.contains(t)||e("focusout",i)}};async function p(){await Xe();const e=Ae(n);if(e){Yh.push(s);const n=e.contains(document.activeElement)?i:document.activeElement;i=n;if(!e.contains(n)){const i=new Event(kh,Ph);e.addEventListener(kh,u),e.dispatchEvent(i),i.defaultPrevented||Xe((()=>{let i=t.focusStartEl;v(i)||(Uh(i),document.activeElement!==i&&(i="first")),"first"===i&&((t,e=!1)=>{const n=document.activeElement;for(const i of t)if(Uh(i,e),document.activeElement!==n)return})(Gh(e),!0),document.activeElement!==n&&"container"!==i||Uh(e)}))}}}function f(){const t=Ae(n);if(t){t.removeEventListener(kh,u);const e=new CustomEvent(Lh,{...Ph,detail:{focusReason:o.value}});t.addEventListener(Lh,c),t.dispatchEvent(e),e.defaultPrevented||"keyboard"!=o.value&&zh.value>Vh.value&&!t.contains(document.activeElement)||Uh(null!=i?i:document.body),t.removeEventListener(Lh,c),Yh.remove(s)}}return qn((()=>{t.trapped&&p(),mn((()=>t.trapped),(t=>{t?p():f()}))})),$n((()=>{t.trapped&&f()})),{onKeydown:l}}});var $h=Xc(Kh,[["render",function(t,e,n,i,r,o){return hi(t.$slots,"default",{handleKeydown:t.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Jh=Nl({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:mu,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Qh=Nl({...Jh,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),td={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},ed=(t,e=[])=>{const{placement:n,strategy:i,popperOptions:r}=t,o={placement:n,strategy:i,...r,modifiers:[...nd(t),...e]};return function(t,e){e&&(t.modifiers=[...t.modifiers,...null!=e?e:[]])}(o,null==r?void 0:r.modifiers),o};function nd(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:i}=t;return[{name:"offset",options:{offset:[0,null!=e?e:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:i}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const id=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:i,role:r}=Ni(fh,void 0),o=we(),a=we(),s=eo((()=>({name:"eventListeners",enabled:!!t.visible}))),l=eo((()=>{var t;const e=Ae(o),n=null!=(t=Ae(a))?t:0;return{name:"arrow",enabled:(i=e,!(void 0===i)),options:{element:e,padding:n}};var i})),u=eo((()=>({onFirstUpdate:()=>{f()},...ed(t,[Ae(l),Ae(s)])}))),c=eo((()=>(t=>{if(sa)return pa(t)})(t.referenceEl)||Ae(i))),{attributes:h,state:d,styles:p,update:f,forceUpdate:g,instanceRef:v}=Sc(c,n,u);return mn(v,(t=>e.value=t)),qn((()=>{mn((()=>{var t;return null==(t=Ae(c))?void 0:t.getBoundingClientRect()}),(()=>{f()}))})),{attributes:h,arrowRef:o,contentRef:n,instanceRef:v,state:d,styles:p,role:r,forceUpdate:g,update:f}},rd=On({name:"ElPopperContent"}),od=On({...rd,props:Qh,emits:td,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:o,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:h}=((t,e)=>{const n=we(!1),i=we();return{focusStartRef:i,trapped:n,onFocusAfterReleased:t=>{var n;"pointer"!==(null==(n=t.detail)?void 0:n.focusReason)&&(i.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:e=>{t.visible&&!n.value&&(e.target&&(i.value=e.target),n.value=!0)},onFocusoutPrevented:e=>{t.trapping||("pointer"===e.detail.focusReason&&e.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}})(r,n),{attributes:d,arrowRef:p,contentRef:f,styles:g,instanceRef:v,role:m,update:y}=id(r),{ariaModal:_,arrowStyle:x,contentAttrs:b,contentClass:w,contentStyle:S,updateZIndex:M}=((t,{attributes:e,styles:n,role:i})=>{const{nextZIndex:r}=zc(),o=Ql("popper"),a=eo((()=>Ae(e).popper)),s=we(t.zIndex||r()),l=eo((()=>[o.b(),o.is("pure",t.pure),o.is(t.effect),t.popperClass])),u=eo((()=>[{zIndex:Ae(s)},Ae(n).popper,t.popperStyle||{}]));return{ariaModal:eo((()=>"dialog"===i.value?"false":void 0)),arrowStyle:eo((()=>Ae(n).arrow||{})),contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=t.zIndex||r()}}})(r,{styles:g,attributes:d,role:m}),I=Ni(Qc,void 0),A=we();let C;Ri(gh,{arrowStyle:x,arrowRef:p,arrowOffset:A}),I&&(I.addInputId||I.removeInputId)&&Ri(Qc,{...I,addInputId:i,removeInputId:i});const T=(t=!0)=>{y(),t&&M()},D=()=>{T(!1),r.visible&&r.focusOnShow?a.value=!0:!1===r.visible&&(a.value=!1)};return qn((()=>{mn((()=>r.triggerTargetEl),((t,e)=>{null==C||C(),C=void 0;const n=Ae(t||f.value),i=Ae(e||f.value);Ws(n)&&(C=mn([m,()=>r.ariaLabel,_,()=>r.id],(t=>{["role","aria-label","aria-modal","id"].forEach(((e,i)=>{Fs(t[i])?n.removeAttribute(e):n.setAttribute(e,t[i])}))}),{immediate:!0})),i!==n&&Ws(i)&&["role","aria-label","aria-modal","id"].forEach((t=>{i.removeAttribute(t)}))}),{immediate:!0}),mn((()=>r.visible),D,{immediate:!0})})),$n((()=>{null==C||C(),C=void 0})),e({popperContentRef:f,popperInstanceRef:v,updatePopper:T,contentStyle:S}),(t,e)=>(gr(),_r("div",Nr({ref_key:"contentRef",ref:f},Ae(b),{style:Ae(S),class:Ae(w),tabindex:"-1",onMouseenter:e[0]||(e[0]=e=>t.$emit("mouseenter",e)),onMouseleave:e[1]||(e[1]=e=>t.$emit("mouseleave",e))}),[Cr(Ae($h),{trapped:Ae(a),"trap-on-focus-in":!0,"focus-trap-el":Ae(f),"focus-start-el":Ae(o),onFocusAfterTrapped:Ae(l),onFocusAfterReleased:Ae(s),onFocusin:Ae(u),onFocusoutPrevented:Ae(c),onReleaseRequested:Ae(h)},{default:cn((()=>[hi(t.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ad=Xc(od,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const sd=Fl(_h),ld=Symbol("elTooltip"),ud=Nl({...Ec,...Qh,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),cd=Nl({...Ah,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Wl.enter,Wl.space]}}),{useModelToggleProps:hd,useModelToggleEmits:dd,useModelToggle:pd}=nu("visible"),fd=Nl({...vh,...hd,...ud,...cd,...xh,showArrow:{type:Boolean,default:!0}}),gd=[...dd,"before-show","before-hide","show","hide","open","close"],vd=(t,e,n)=>i=>{((t,e)=>d(t)?t.includes(e):t===e)(Ae(t),e)&&n(i)},md=On({name:"ElTooltipTrigger"}),yd=On({...md,props:cd,setup(t,{expose:e}){const n=t,i=Ql("tooltip"),{controlled:r,id:o,open:a,onOpen:s,onClose:l,onToggle:u}=Ni(ld,void 0),c=we(null),h=()=>{if(Ae(r)||n.disabled)return!0},d=Pe(n,"trigger"),p=ra(h,vd(d,"hover",s)),f=ra(h,vd(d,"hover",l)),g=ra(h,vd(d,"click",(t=>{0===t.button&&u(t)}))),v=ra(h,vd(d,"focus",s)),m=ra(h,vd(d,"focus",l)),y=ra(h,vd(d,"contextmenu",(t=>{t.preventDefault(),u(t)}))),_=ra(h,(t=>{const{code:e}=t;n.triggerKeys.includes(e)&&(t.preventDefault(),u(t))}));return e({triggerRef:c}),(t,e)=>(gr(),xr(Ae(Dh),{id:Ae(o),"virtual-ref":t.virtualRef,open:Ae(a),"virtual-triggering":t.virtualTriggering,class:j(Ae(i).e("trigger")),onBlur:Ae(m),onClick:Ae(g),onContextmenu:Ae(y),onFocus:Ae(v),onMouseenter:Ae(p),onMouseleave:Ae(f),onKeydown:Ae(_)},{default:cn((()=>[hi(t.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var _d=Xc(yd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const xd=On({name:"ElTooltipContent",inheritAttrs:!1}),bd=On({...xd,props:ud,setup(t,{expose:e}){const n=t,{selector:i}=Pc(),r=Ql("tooltip"),o=we(null),a=we(!1),{controlled:s,id:l,open:u,trigger:c,onClose:h,onOpen:d,onShow:p,onHide:f,onBeforeShow:g,onBeforeHide:v}=Ni(ld,void 0),m=eo((()=>n.transition||`${r.namespace.value}-fade-in-linear`)),y=eo((()=>n.persistent));$n((()=>{a.value=!0}));const _=eo((()=>!!Ae(y)||Ae(u))),x=eo((()=>!n.disabled&&Ae(u))),b=eo((()=>n.appendTo||i.value)),w=eo((()=>{var t;return null!=(t=n.style)?t:{}})),S=eo((()=>!Ae(u))),M=()=>{f()},I=()=>{if(Ae(s))return!0},A=ra(I,(()=>{n.enterable&&"hover"===Ae(c)&&d()})),C=ra(I,(()=>{"hover"===Ae(c)&&h()})),T=()=>{var t,e;null==(e=null==(t=o.value)?void 0:t.updatePopper)||e.call(t),null==g||g()},D=()=>{null==v||v()},k=()=>{p(),P=function(t,e,n={}){const{window:i=fa,ignore:r=[],capture:o=!0,detectIframe:a=!1}=n;if(!i)return;ca&&!va&&(va=!0,Array.from(i.document.body.children).forEach((t=>t.addEventListener("click",ua))));let s=!0;const l=t=>r.some((e=>{if("string"==typeof e)return Array.from(i.document.querySelectorAll(e)).some((e=>e===t.target||t.composedPath().includes(e)));{const n=pa(e);return n&&(t.target===n||t.composedPath().includes(n))}})),u=[ga(i,"click",(n=>{const i=pa(t);i&&i!==n.target&&!n.composedPath().includes(i)&&(0===n.detail&&(s=!l(n)),s?e(n):s=!0)}),{passive:!0,capture:o}),ga(i,"pointerdown",(e=>{const n=pa(t);n&&(s=!e.composedPath().includes(n)&&!l(e))}),{passive:!0}),a&&ga(i,"blur",(n=>{var r;const o=pa(t);"IFRAME"!==(null==(r=i.document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(i.document.activeElement))||e(n)}))].filter(Boolean);return()=>u.forEach((t=>t()))}(eo((()=>{var t;return null==(t=o.value)?void 0:t.popperContentRef})),(()=>{if(Ae(s))return;"hover"!==Ae(c)&&h()}))},L=()=>{n.virtualTriggering||h()};let P;return mn((()=>Ae(u)),(t=>{t||null==P||P()}),{flush:"post"}),mn((()=>n.content),(()=>{var t,e;null==(e=null==(t=o.value)?void 0:t.updatePopper)||e.call(t)})),e({contentRef:o}),(t,e)=>(gr(),xr(sr,{disabled:!t.teleported,to:Ae(b)},[Cr(So,{name:Ae(m),onAfterLeave:M,onBeforeEnter:T,onAfterEnter:k,onBeforeLeave:D},{default:cn((()=>[Ae(_)?wn((gr(),xr(Ae(ad),Nr({key:0,id:Ae(l),ref_key:"contentRef",ref:o},t.$attrs,{"aria-label":t.ariaLabel,"aria-hidden":Ae(S),"boundaries-padding":t.boundariesPadding,"fallback-placements":t.fallbackPlacements,"gpu-acceleration":t.gpuAcceleration,offset:t.offset,placement:t.placement,"popper-options":t.popperOptions,strategy:t.strategy,effect:t.effect,enterable:t.enterable,pure:t.pure,"popper-class":t.popperClass,"popper-style":[t.popperStyle,Ae(w)],"reference-el":t.referenceEl,"trigger-target-el":t.triggerTargetEl,visible:Ae(x),"z-index":t.zIndex,onMouseenter:Ae(A),onMouseleave:Ae(C),onBlur:L,onClose:Ae(h)}),{default:cn((()=>[a.value?Pr("v-if",!0):hi(t.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[zo,Ae(x)]]):Pr("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var wd=Xc(bd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Sd=["innerHTML"],Md={key:1},Id=On({name:"ElTooltip"}),Ad=On({...Id,props:fd,emits:gd,setup(t,{expose:e,emit:n}){const i=t;Oc();const r=Tc(),o=we(),a=we(),s=()=>{var t;const e=Ae(o);e&&(null==(t=e.popperInstanceRef)||t.update())},l=we(!1),u=we(),{show:c,hide:h,hasUpdateHandler:d}=pd({indicator:l,toggleReason:u}),{onOpen:p,onClose:f}=(({showAfter:t,hideAfter:e,autoClose:n,open:i,close:r})=>{const{registerTimeout:o}=Mc(),{registerTimeout:a,cancelTimeout:s}=Mc();return{onOpen:e=>{o((()=>{i(e);const t=Ae(n);Hs(t)&&t>0&&a((()=>{r(e)}),t)}),Ae(t))},onClose:t=>{s(),o((()=>{r(t)}),Ae(e))}}})({showAfter:Pe(i,"showAfter"),hideAfter:Pe(i,"hideAfter"),autoClose:Pe(i,"autoClose"),open:c,close:h}),g=eo((()=>Gs(i.visible)&&!d.value));Ri(ld,{controlled:g,id:r,open:ue(l),trigger:Pe(i,"trigger"),onOpen:t=>{p(t)},onClose:t=>{f(t)},onToggle:t=>{Ae(l)?f(t):p(t)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),mn((()=>i.disabled),(t=>{t&&l.value&&(l.value=!1)}));return Fn((()=>l.value&&h())),e({popperRef:o,contentRef:a,isFocusInsideContent:t=>{var e,n;const i=null==(n=null==(e=a.value)?void 0:e.contentRef)?void 0:n.popperContentRef,r=(null==t?void 0:t.relatedTarget)||document.activeElement;return i&&i.contains(r)},updatePopper:s,onOpen:p,onClose:f,hide:h}),(t,e)=>(gr(),xr(Ae(sd),{ref_key:"popperRef",ref:o,role:t.role},{default:cn((()=>[Cr(_d,{disabled:t.disabled,trigger:t.trigger,"trigger-keys":t.triggerKeys,"virtual-ref":t.virtualRef,"virtual-triggering":t.virtualTriggering},{default:cn((()=>[t.$slots.default?hi(t.$slots,"default",{key:0}):Pr("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Cr(wd,{ref_key:"contentRef",ref:a,"aria-label":t.ariaLabel,"boundaries-padding":t.boundariesPadding,content:t.content,disabled:t.disabled,effect:t.effect,enterable:t.enterable,"fallback-placements":t.fallbackPlacements,"hide-after":t.hideAfter,"gpu-acceleration":t.gpuAcceleration,offset:t.offset,persistent:t.persistent,"popper-class":t.popperClass,"popper-style":t.popperStyle,placement:t.placement,"popper-options":t.popperOptions,pure:t.pure,"raw-content":t.rawContent,"reference-el":t.referenceEl,"trigger-target-el":t.triggerTargetEl,"show-after":t.showAfter,strategy:t.strategy,teleported:t.teleported,transition:t.transition,"virtual-triggering":t.virtualTriggering,"z-index":t.zIndex,"append-to":t.appendTo},{default:cn((()=>[hi(t.$slots,"content",{},(()=>[t.rawContent?(gr(),_r("span",{key:0,innerHTML:t.content},null,8,Sd)):(gr(),_r("span",Md,Z(t.content),1))])),t.showArrow?(gr(),xr(Ae(wh),{key:0,"arrow-offset":t.arrowOffset},null,8,["arrow-offset"])):Pr("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}});const Cd=Fl(Xc(Ad,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),Td=Nl({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Dd=["textContent"],kd=On({name:"ElBadge"}),Ld=On({...kd,props:Td,setup(t,{expose:e}){const n=t,i=Ql("badge"),r=eo((()=>n.isDot?"":Hs(n.value)&&Hs(n.max)&&n.max(gr(),_r("div",{class:j(Ae(i).b())},[hi(t.$slots,"default"),Cr(So,{name:`${Ae(i).namespace.value}-zoom-in-center`,persisted:""},{default:cn((()=>[wn(Ar("sup",{class:j([Ae(i).e("content"),Ae(i).em("content",t.type),Ae(i).is("fixed",!!t.$slots.default),Ae(i).is("dot",t.isDot)]),textContent:Z(Ae(r))},null,10,Dd),[[zo,!t.hidden&&(Ae(r)||t.isDot)]])])),_:1},8,["name"])],2))}});const Pd=Fl(Xc(Ld,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]])),Od=Symbol("buttonGroupContextKey"),Ed=(t,e)=>{(({from:t,replacement:e,scope:n,version:i,ref:r,type:o="API"},a)=>{mn((()=>Ae(a)),(t=>{}),{immediate:!0})})({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},eo((()=>"text"===t.type)));const n=Ni(Od,void 0),i=Wc("button"),{form:r}={form:Ni(Jc,void 0),formItem:Ni(Qc,void 0)},o=th(eo((()=>null==n?void 0:n.size))),a=eh(),s=we(),l=mi(),u=eo((()=>t.type||(null==n?void 0:n.type)||"")),c=eo((()=>{var e,n,r;return null!=(r=null!=(n=t.autoInsertSpace)?n:null==(e=i.value)?void 0:e.autoInsertSpace)&&r})),h=eo((()=>"button"===t.tag?{ariaDisabled:a.value||t.loading,disabled:a.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{})),d=eo((()=>{var t;const e=null==(t=l.default)?void 0:t.call(l);if(c.value&&1===(null==e?void 0:e.length)){const t=e[0];if((null==t?void 0:t.type)===cr){const e=t.children;return/^\p{Unified_Ideograph}{2}$/u.test(e.trim())}}return!1}));return{_disabled:a,_size:o,_type:u,_ref:s,_props:h,shouldAddSpace:d,handleClick:n=>{"reset"===t.nativeType&&(null==r||r.resetFields()),e("click",n)}}},Rd=Nl({size:Vc,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Bl},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Bl,default:()=>Il},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),Nd={click:t=>t instanceof MouseEvent};function Bd(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function zd(t){return Math.min(1,Math.max(0,t))}function Vd(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Fd(t){return t<=1?"".concat(100*Number(t),"%"):t}function Gd(t){return 1===t.length?"0"+t:String(t)}function Hd(t,e,n){t=Bd(t,255),e=Bd(e,255),n=Bd(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,a=0,s=(i+r)/2;if(i===r)a=0,o=0;else{var l=i-r;switch(a=s>.5?l/(2-i-r):l/(i+r),i){case t:o=(e-n)/l+(e1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ud(t,e,n){t=Bd(t,255),e=Bd(e,255),n=Bd(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,a=i,s=i-r,l=0===i?0:s/i;if(i===r)o=0;else{switch(i){case t:o=(e-n)/s+(e>16,g:(65280&t)>>8,b:255&t}}(e)),this.originalInput=e;var r=Zd(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,n=t.g/255,i=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=Vd(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=Ud(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=Ud(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=Hd(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=Hd(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),jd(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),function(t,e,n,i,r){var o,a=[Gd(Math.round(t).toString(16)),Gd(Math.round(e).toString(16)),Gd(Math.round(n).toString(16)),Gd((o=i,Math.round(255*parseFloat(o)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*Bd(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*Bd(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+jd(this.r,this.g,this.b,!1),e=0,n=Object.entries(qd);e=0;return e||!i||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=zd(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=zd(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=zd(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=zd(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var i=this.toRgb(),r=new t(e).toRgb(),o=n/100;return new t({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var i=this.toHsl(),r=360/n,o=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(new t(i));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var n=this.toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:i,s:r,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),i=new t(e).toRgb(),r=n.a+i.a*(1-n.a);return new t({r:(n.r*n.a+i.r*i.a*(1-n.a))/r,g:(n.g*n.a+i.g*i.a*(1-n.a))/r,b:(n.b*n.a+i.b*i.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),i=n.h,r=[this],o=360/e,a=1;a{let i={};const r=t.color;if(r){const o=new ep(r),a=t.dark?o.tint(20).toString():np(o,20);if(t.plain)i=n.cssVarBlock({"bg-color":t.dark?np(o,90):o.tint(90).toString(),"text-color":r,"border-color":t.dark?np(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),e.value&&(i[n.cssVarBlockName("disabled-bg-color")]=t.dark?np(o,90):o.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=t.dark?np(o,50):o.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=t.dark?np(o,80):o.tint(80).toString());else{const s=t.dark?np(o,30):o.tint(30).toString(),l=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":r,"text-color":l,"border-color":r,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),e.value){const e=t.dark?np(o,50):o.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=e,i[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=e}}}return i}))}(i),o=Ql("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:h,handleClick:d}=Ed(i,n);return e({ref:a,size:s,type:l,disabled:u,shouldAddSpace:h}),(t,e)=>(gr(),xr(ai(t.tag),Nr({ref_key:"_ref",ref:a},Ae(c),{class:[Ae(o).b(),Ae(o).m(Ae(l)),Ae(o).m(Ae(s)),Ae(o).is("disabled",Ae(u)),Ae(o).is("loading",t.loading),Ae(o).is("plain",t.plain),Ae(o).is("round",t.round),Ae(o).is("circle",t.circle),Ae(o).is("text",t.text),Ae(o).is("link",t.link),Ae(o).is("has-bg",t.bg)],style:Ae(r),onClick:Ae(d)}),{default:cn((()=>[t.loading?(gr(),_r(ur,{key:0},[t.$slots.loading?hi(t.$slots,"loading",{key:0}):(gr(),xr(Ae($c),{key:1,class:j(Ae(o).is("loading"))},{default:cn((()=>[(gr(),xr(ai(t.loadingIcon)))])),_:1},8,["class"]))],64)):t.icon||t.$slots.icon?(gr(),xr(Ae($c),{key:1},{default:cn((()=>[t.icon?(gr(),xr(ai(t.icon),{key:0})):hi(t.$slots,"icon",{key:1})])),_:3})):Pr("v-if",!0),t.$slots.default?(gr(),_r("span",{key:2,class:j({[Ae(o).em("text","expand")]:Ae(h)})},[hi(t.$slots,"default")],2)):Pr("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var op=Xc(rp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ap={size:Rd.size,type:Rd.type},sp=On({name:"ElButtonGroup"}),lp=On({...sp,props:ap,setup(t){const e=t;Ri(Od,se({size:Pe(e,"size"),type:Pe(e,"type")}));const n=Ql("button");return(t,e)=>(gr(),_r("div",{class:j(`${Ae(n).b("group")}`)},[hi(t.$slots,"default")],2))}});var up=Xc(lp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const cp=Fl(op,{ButtonGroup:up});Gl(up);var hp=Xc(On({inheritAttrs:!1}),[["render",function(t,e,n,i,r,o){return hi(t.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);var dp=Xc(On({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(t,e,n,i,r,o){return hi(t.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const pp="data-el-collection-item",fp=t=>{const e=`El${t}Collection`,n=`${e}Item`,i=Symbol(e),r=Symbol(n),o={...hp,name:e,setup(){const t=we(null),e=new Map;Ri(i,{itemMap:e,getItems:()=>{const n=Ae(t);if(!n)return[];const i=Array.from(n.querySelectorAll(`[${pp}]`));return[...e.values()].sort(((t,e)=>i.indexOf(t.ref)-i.indexOf(e.ref)))},collectionRef:t})}},a={...dp,name:n,setup(t,{attrs:e}){const n=we(null),o=Ni(i,void 0);Ri(r,{collectionItemRef:n}),qn((()=>{const t=Ae(n);t&&o.itemMap.set(t,{ref:t,...e})})),$n((()=>{const t=Ae(n);o.itemMap.delete(t)}))}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:o,ElCollectionItem:a}},gp=Nl({style:{type:[String,Array,Object]},currentTabId:{type:String},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:String},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:vp,ElCollectionItem:mp,COLLECTION_INJECTION_KEY:yp,COLLECTION_ITEM_INJECTION_KEY:_p}=fp("RovingFocusGroup"),xp=Symbol("elRovingFocusGroup"),bp=Symbol("elRovingFocusGroupItem"),wp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Sp=(t,e,n)=>{const i=((t,e)=>{if("rtl"!==e)return t;switch(t){case Wl.right:return Wl.left;case Wl.left:return Wl.right;default:return t}})(t.key,n);if(!("vertical"===e&&[Wl.left,Wl.right].includes(i)||"horizontal"===e&&[Wl.up,Wl.down].includes(i)))return wp[i]},Mp=t=>{const{activeElement:e}=document;for(const n of t){if(n===e)return;if(n.focus(),e!==document.activeElement)return}},Ip="currentTabIdChange",Ap="rovingFocusGroup.entryFocus",Cp={bubbles:!1,cancelable:!0},Tp=On({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:gp,emits:[Ip,"entryFocus"],setup(t,{emit:e}){var n;const i=we(null!=(n=t.currentTabId||t.defaultCurrentTabId)?n:null),r=we(!1),o=we(!1),a=we(null),{getItems:s}=Ni(yp,void 0),l=eo((()=>[{outline:"none"},t.style])),u=ra((e=>{var n;null==(n=t.onMousedown)||n.call(t,e)}),(()=>{o.value=!0})),c=ra((e=>{var n;null==(n=t.onFocus)||n.call(t,e)}),(t=>{const e=!Ae(o),{target:n,currentTarget:a}=t;if(n===a&&e&&!Ae(r)){const t=new Event(Ap,Cp);if(null==a||a.dispatchEvent(t),!t.defaultPrevented){const t=s().filter((t=>t.focusable)),e=[t.find((t=>t.active)),t.find((t=>t.id===Ae(i))),...t].filter(Boolean).map((t=>t.ref));Mp(e)}}o.value=!1})),h=ra((e=>{var n;null==(n=t.onBlur)||n.call(t,e)}),(()=>{r.value=!1}));Ri(xp,{currentTabbedId:ue(i),loop:Pe(t,"loop"),tabIndex:eo((()=>Ae(r)?-1:0)),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:Pe(t,"orientation"),dir:Pe(t,"dir"),onItemFocus:t=>{e(Ip,t)},onItemShiftTab:()=>{r.value=!0},onBlur:h,onFocus:c,onMousedown:u}),mn((()=>t.currentTabId),(t=>{i.value=null!=t?t:null})),ga(a,Ap,((...t)=>{e("entryFocus",...t)}))}});var Dp=Xc(Tp,[["render",function(t,e,n,i,r,o){return hi(t.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);var kp=Xc(On({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:vp,ElRovingFocusGroupImpl:Dp}}),[["render",function(t,e,n,i,r,o){const a=ri("el-roving-focus-group-impl"),s=ri("el-focus-group-collection");return gr(),xr(s,null,{default:cn((()=>[Cr(a,Y(Tr(t.$attrs)),{default:cn((()=>[hi(t.$slots,"default")])),_:3},16)])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Lp=On({components:{ElRovingFocusCollectionItem:mp},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:e}){const{currentTabbedId:n,loop:i,onItemFocus:r,onItemShiftTab:o}=Ni(xp,void 0),{getItems:a}=Ni(yp,void 0),s=Tc(),l=we(null),u=ra((t=>{e("mousedown",t)}),(e=>{t.focusable?r(Ae(s)):e.preventDefault()})),c=ra((t=>{e("focus",t)}),(()=>{r(Ae(s))})),h=ra((t=>{e("keydown",t)}),(t=>{const{key:e,shiftKey:n,target:r,currentTarget:s}=t;if(e===Wl.tab&&n)return void o();if(r!==s)return;const l=Sp(t);if(l){t.preventDefault();let e=a().filter((t=>t.focusable)).map((t=>t.ref));switch(l){case"last":e.reverse();break;case"prev":case"next":{"prev"===l&&e.reverse();const t=e.indexOf(s);e=i.value?(c=t+1,(u=e).map(((t,e)=>u[(e+c)%u.length]))):e.slice(t+1);break}}Xe((()=>{Mp(e)}))}var u,c})),d=eo((()=>n.value===Ae(s)));return Ri(bp,{rovingFocusGroupItemRef:l,tabIndex:eo((()=>Ae(d)?0:-1)),handleMousedown:u,handleFocus:c,handleKeydown:h}),{id:s,handleKeydown:h,handleFocus:c,handleMousedown:u}}});var Pp=Xc(Lp,[["render",function(t,e,n,i,r,o){const a=ri("el-roving-focus-collection-item");return gr(),xr(a,{id:t.id,focusable:t.focusable,active:t.active},{default:cn((()=>[hi(t.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Op=Nl({trigger:cd.trigger,effect:{...ud.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Object},teleported:ud.teleported}),Ep=Nl({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Bl}}),Rp=Nl({onKeydown:{type:Function}}),Np=[Wl.down,Wl.pageDown,Wl.home],Bp=[Wl.up,Wl.pageUp,Wl.end],zp=[...Np,...Bp],{ElCollection:Vp,ElCollectionItem:Fp,COLLECTION_INJECTION_KEY:Gp,COLLECTION_ITEM_INJECTION_KEY:Hp}=fp("Dropdown"),Wp=Symbol("elDropdown"),{ButtonGroup:Up}=cp;var jp=Xc(On({name:"ElDropdown",components:{ElButton:cp,ElButtonGroup:Up,ElScrollbar:ph,ElDropdownCollection:Vp,ElTooltip:Cd,ElRovingFocusGroup:kp,ElOnlyChild:Sh,ElIcon:$c,ArrowDown:$s},props:Op,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=Gr(),i=Ql("dropdown"),{t:r}=ql(),o=we(),a=we(),s=we(null),l=we(null),u=we(null),c=we(null),h=we(!1),p=[Wl.enter,Wl.space,Wl.down],f=eo((()=>({maxHeight:Ys(t.maxHeight)}))),g=eo((()=>[i.m(_.value)])),v=Tc().value,m=eo((()=>t.id||v));function y(){var t;null==(t=s.value)||t.onClose()}mn([o,Pe(t,"trigger")],(([t,e],[n])=>{var i,r,o;const a=d(e)?e:[e];(null==(i=null==n?void 0:n.$el)?void 0:i.removeEventListener)&&n.$el.removeEventListener("pointerenter",x),(null==(r=null==t?void 0:t.$el)?void 0:r.removeEventListener)&&t.$el.removeEventListener("pointerenter",x),(null==(o=null==t?void 0:t.$el)?void 0:o.addEventListener)&&a.includes("hover")&&t.$el.addEventListener("pointerenter",x)}),{immediate:!0}),$n((()=>{var t,e;(null==(e=null==(t=o.value)?void 0:t.$el)?void 0:e.removeEventListener)&&o.value.$el.removeEventListener("pointerenter",x)}));const _=th();function x(){var t,e;null==(e=null==(t=o.value)?void 0:t.$el)||e.focus()}Ri(Wp,{contentRef:l,role:eo((()=>t.role)),triggerId:m,isUsingKeyboard:h,onItemEnter:function(){},onItemLeave:function(){const t=Ae(l);null==t||t.focus(),c.value=null}}),Ri("elDropdown",{instance:n,dropdownSize:_,handleClick:function(){y()},commandHandler:function(...t){e("command",...t)},trigger:Pe(t,"trigger"),hideOnClick:Pe(t,"hideOnClick")});return{t:r,ns:i,scrollbar:u,wrapStyle:f,dropdownTriggerKls:g,dropdownSize:_,triggerId:m,triggerKeys:p,currentTabId:c,handleCurrentTabIdChange:function(t){c.value=t},handlerMainButtonClick:t=>{e("click",t)},handleEntryFocus:function(t){h.value||(t.preventDefault(),t.stopImmediatePropagation())},handleClose:y,handleOpen:function(){var t;null==(t=s.value)||t.onOpen()},handleBeforeShowTooltip:function(){e("visible-change",!0)},handleShowTooltip:function(t){"keydown"===(null==t?void 0:t.type)&&l.value.focus()},handleBeforeHideTooltip:function(){e("visible-change",!1)},onFocusAfterTrapped:t=>{var e,n;t.preventDefault(),null==(n=null==(e=l.value)?void 0:e.focus)||n.call(e,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:o,referenceElementRef:a}}}),[["render",function(t,e,n,i,r,o){var a;const s=ri("el-dropdown-collection"),l=ri("el-roving-focus-group"),u=ri("el-scrollbar"),c=ri("el-only-child"),h=ri("el-tooltip"),d=ri("el-button"),p=ri("arrow-down"),f=ri("el-icon"),g=ri("el-button-group");return gr(),_r("div",{class:j([t.ns.b(),t.ns.is("disabled",t.disabled)])},[Cr(h,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===t.trigger?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":null==(a=t.referenceElementRef)?void 0:a.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":"hover"===t.trigger?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},ci({content:cn((()=>[Cr(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:cn((()=>[Cr(l,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:cn((()=>[Cr(s,null,{default:cn((()=>[hi(t.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[t.splitButton?void 0:{name:"default",fn:cn((()=>[Cr(c,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:cn((()=>[hi(t.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),t.splitButton?(gr(),xr(g,{key:0},{default:cn((()=>[Cr(d,Nr({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:cn((()=>[hi(t.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),Cr(d,Nr({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:cn((()=>[Cr(f,{class:j(t.ns.e("icon"))},{default:cn((()=>[Cr(p)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):Pr("v-if",!0)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Yp=On({name:"DropdownItemImpl",components:{ElIcon:$c},props:Ep,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=Ql("dropdown"),{role:i}=Ni(Wp,void 0),{collectionItemRef:r}=Ni(Hp,void 0),{collectionItemRef:o}=Ni(_p,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ni(bp,void 0),h=Hl(r,o,a),d=eo((()=>"menu"===i.value?"menuitem":"navigation"===i.value?"link":"button")),p=ra((t=>{const{code:n}=t;if(n===Wl.enter||n===Wl.space)return t.preventDefault(),t.stopImmediatePropagation(),e("clickimpl",t),!0}),u);return{ns:n,itemRef:h,dataset:{[pp]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:c}}}),Xp=["aria-disabled","tabindex","role"];var qp=Xc(Yp,[["render",function(t,e,n,i,r,o){const a=ri("el-icon");return gr(),_r(ur,null,[t.divided?(gr(),_r("li",Nr({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):Pr("v-if",!0),Ar("li",Nr({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:e[0]||(e[0]=e=>t.$emit("clickimpl",e)),onFocus:e[1]||(e[1]=(...e)=>t.handleFocus&&t.handleFocus(...e)),onKeydown:e[2]||(e[2]=Bo(((...e)=>t.handleKeydown&&t.handleKeydown(...e)),["self"])),onMousedown:e[3]||(e[3]=(...e)=>t.handleMousedown&&t.handleMousedown(...e)),onPointermove:e[4]||(e[4]=e=>t.$emit("pointermove",e)),onPointerleave:e[5]||(e[5]=e=>t.$emit("pointerleave",e))}),[t.icon?(gr(),xr(a,{key:0},{default:cn((()=>[(gr(),xr(ai(t.icon)))])),_:1})):Pr("v-if",!0),hi(t.$slots,"default")],16,Xp)],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Zp=()=>{const t=Ni("elDropdown",{}),e=eo((()=>null==t?void 0:t.dropdownSize));return{elDropdown:t,_elDropdownSize:e}},Kp=On({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Fp,ElRovingFocusItem:Pp,ElDropdownItemImpl:qp},inheritAttrs:!1,props:Ep,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:i}=Zp(),r=Gr(),o=we(null),a=eo((()=>{var t,e;return null!=(e=null==(t=Ae(o))?void 0:t.textContent)?e:""})),{onItemEnter:s,onItemLeave:l}=Ni(Wp,void 0),u=ra((t=>(e("pointermove",t),t.defaultPrevented)),oa((e=>{if(t.disabled)return void l(e);const n=e.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(s(e),e.defaultPrevented||null==n||n.focus())}))),c=ra((t=>(e("pointerleave",t),t.defaultPrevented)),oa((t=>{l(t)})));return{handleClick:ra((n=>{if(!t.disabled)return e("click",n),"keydown"!==n.type&&n.defaultPrevented}),(e=>{var n,o,a;t.disabled?e.stopImmediatePropagation():((null==(n=null==i?void 0:i.hideOnClick)?void 0:n.value)&&(null==(o=i.handleClick)||o.call(i)),null==(a=i.commandHandler)||a.call(i,t.command,r,e))})),handlePointerMove:u,handlePointerLeave:c,textContent:a,propsAndAttrs:eo((()=>({...t,...n})))}}});var $p=Xc(Kp,[["render",function(t,e,n,i,r,o){var a;const s=ri("el-dropdown-item-impl"),l=ri("el-roving-focus-item"),u=ri("el-dropdown-collection-item");return gr(),xr(u,{disabled:t.disabled,"text-value":null!=(a=t.textValue)?a:t.textContent},{default:cn((()=>[Cr(l,{focusable:!t.disabled},{default:cn((()=>[Cr(s,Nr(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:cn((()=>[hi(t.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Jp=On({name:"ElDropdownMenu",props:Rp,setup(t){const e=Ql("dropdown"),{_elDropdownSize:n}=Zp(),i=n.value,{focusTrapRef:r,onKeydown:o}=Ni(Nh,void 0),{contentRef:a,role:s,triggerId:l}=Ni(Wp,void 0),{collectionRef:u,getItems:c}=Ni(Gp,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:d,tabIndex:p,onBlur:f,onFocus:g,onMousedown:v}=Ni(xp,void 0),{collectionRef:m}=Ni(yp,void 0),y=eo((()=>[e.b("menu"),e.bm("menu",null==i?void 0:i.value)])),_=Hl(a,u,r,h,m),x=ra((e=>{var n;null==(n=t.onKeydown)||n.call(t,e)}),(t=>{const{currentTarget:e,code:n,target:i}=t;if(e.contains(i),Wl.tab===n&&t.stopImmediatePropagation(),t.preventDefault(),i!==Ae(a))return;if(!zp.includes(n))return;const r=c().filter((t=>!t.disabled)).map((t=>t.ref));Bp.includes(n)&&r.reverse(),Mp(r)}));return{size:i,rovingFocusGroupRootStyle:d,tabIndex:p,dropdownKls:y,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:t=>{x(t),o(t)},onBlur:f,onFocus:g,onMousedown:v}}}),Qp=["role","aria-labelledby"];var tf=Xc(Jp,[["render",function(t,e,n,i,r,o){return gr(),_r("ul",{ref:t.dropdownListWrapperRef,class:j(t.dropdownKls),style:F(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:e[0]||(e[0]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:e[1]||(e[1]=(...e)=>t.onFocus&&t.onFocus(...e)),onKeydown:e[2]||(e[2]=Bo(((...e)=>t.handleKeydown&&t.handleKeydown(...e)),["self"])),onMousedown:e[3]||(e[3]=Bo(((...e)=>t.onMousedown&&t.onMousedown(...e)),["self"]))},[hi(t.$slots,"default")],46,Qp)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ef=Fl(jp,{DropdownItem:$p,DropdownMenu:tf}),nf=Gl($p),rf=Gl(tf),of=Nl({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Function,default:t=>`${t}%`}}),af=["aria-valuenow"],sf={viewBox:"0 0 100 100"},lf=["d","stroke","stroke-linecap","stroke-width"],uf=["d","stroke","opacity","stroke-linecap","stroke-width"],cf={key:0},hf=On({name:"ElProgress"}),df=On({...hf,props:of,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=Ql("progress"),r=eo((()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:_(e.percentage)}))),o=eo((()=>(e.strokeWidth/e.width*100).toFixed(1))),a=eo((()=>["circle","dashboard"].includes(e.type)?Number.parseInt(""+(50-Number.parseFloat(o.value)/2),10):0)),s=eo((()=>{const t=a.value,n="dashboard"===e.type;return`\n M 50 50\n m 0 ${n?"":"-"}${t}\n a ${t} ${t} 0 1 1 0 ${n?"-":""}${2*t}\n a ${t} ${t} 0 1 1 0 ${n?"":"-"}${2*t}\n `})),l=eo((()=>2*Math.PI*a.value)),u=eo((()=>"dashboard"===e.type?.75:1)),c=eo((()=>`${-1*l.value*(1-u.value)/2}px`)),h=eo((()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value}))),d=eo((()=>({strokeDasharray:`${l.value*u.value*(e.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),p=eo((()=>{let t;return t=e.color?_(e.percentage):n[e.status]||n.default,t})),f=eo((()=>"warning"===e.status?Ol:"line"===e.type?"success"===e.status?ol:pl:"success"===e.status?el:ml)),m=eo((()=>"line"===e.type?12+.4*e.strokeWidth:.111111*e.width+2)),y=eo((()=>e.format(e.percentage)));const _=t=>{var n;const{color:i}=e;if(g(i))return i(t);if(v(i))return i;{const e=function(t){const e=100/t.length;return t.map(((t,n)=>v(t)?{color:t,percentage:(n+1)*e}:t)).sort(((t,e)=>t.percentage-e.percentage))}(i);for(const n of e)if(n.percentage>t)return n.color;return null==(n=e[e.length-1])?void 0:n.color}};return(t,e)=>(gr(),_r("div",{class:j([Ae(i).b(),Ae(i).m(t.type),Ae(i).is(t.status),{[Ae(i).m("without-text")]:!t.showText,[Ae(i).m("text-inside")]:t.textInside}]),role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===t.type?(gr(),_r("div",{key:0,class:j(Ae(i).b("bar"))},[Ar("div",{class:j(Ae(i).be("bar","outer")),style:F({height:`${t.strokeWidth}px`})},[Ar("div",{class:j([Ae(i).be("bar","inner"),{[Ae(i).bem("bar","inner","indeterminate")]:t.indeterminate},{[Ae(i).bem("bar","inner","striped")]:t.striped},{[Ae(i).bem("bar","inner","striped-flow")]:t.stripedFlow}]),style:F(Ae(r))},[(t.showText||t.$slots.default)&&t.textInside?(gr(),_r("div",{key:0,class:j(Ae(i).be("bar","innerText"))},[hi(t.$slots,"default",{percentage:t.percentage},(()=>[Ar("span",null,Z(Ae(y)),1)]))],2)):Pr("v-if",!0)],6)],6)],2)):(gr(),_r("div",{key:1,class:j(Ae(i).b("circle")),style:F({height:`${t.width}px`,width:`${t.width}px`})},[(gr(),_r("svg",sf,[Ar("path",{class:j(Ae(i).be("circle","track")),d:Ae(s),stroke:`var(${Ae(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":t.strokeLinecap,"stroke-width":Ae(o),fill:"none",style:F(Ae(h))},null,14,lf),Ar("path",{class:j(Ae(i).be("circle","path")),d:Ae(s),stroke:Ae(p),fill:"none",opacity:t.percentage?1:0,"stroke-linecap":t.strokeLinecap,"stroke-width":Ae(o),style:F(Ae(d))},null,14,uf)]))],6)),!t.showText&&!t.$slots.default||t.textInside?Pr("v-if",!0):(gr(),_r("div",{key:2,class:j(Ae(i).e("text")),style:F({fontSize:`${Ae(m)}px`})},[hi(t.$slots,"default",{percentage:t.percentage},(()=>[t.status?(gr(),xr(Ae($c),{key:1},{default:cn((()=>[(gr(),xr(ai(Ae(f))))])),_:1})):(gr(),_r("span",cf,Z(Ae(y)),1))]))],6))],10,af))}});const pf=Fl(Xc(df,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]])),ff=["success","info","warning","error"],gf={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:sa?document.body:void 0},vf=Nl({customClass:{type:String,default:gf.customClass},center:{type:Boolean,default:gf.center},dangerouslyUseHTMLString:{type:Boolean,default:gf.dangerouslyUseHTMLString},duration:{type:Number,default:gf.duration},icon:{type:Bl,default:gf.icon},id:{type:String,default:gf.id},message:{type:[String,Object,Function],default:gf.message},onClose:{type:Function,required:!1},showClose:{type:Boolean,default:gf.showClose},type:{type:String,values:ff,default:gf.type},offset:{type:Number,default:gf.offset},zIndex:{type:Number,default:gf.zIndex},grouping:{type:Boolean,default:gf.grouping},repeatNum:{type:Number,default:gf.repeatNum}}),mf=le([]),yf=t=>{const{prev:e}=(t=>{const e=mf.findIndex((e=>e.id===t)),n=mf[e];let i;return e>0&&(i=mf[e-1]),{current:n,prev:i}})(t);return e?e.vm.exposed.bottom.value:0},_f=["id"],xf=["innerHTML"],bf=On({name:"ElMessage"}),wf=On({...bf,props:vf,emits:{destroy:()=>!0},setup(t,{expose:e}){const n=t,{Close:i}=zl,{ns:r,zIndex:o}=function(t,e){const n=Wc(),i=Ql(t,eo((()=>{var t;return(null==(t=n.value)?void 0:t.namespace)||Zl}))),r=ql(eo((()=>{var t;return null==(t=n.value)?void 0:t.locale}))),o=zc(eo((()=>{var t;return(null==(t=n.value)?void 0:t.zIndex)||2e3}))),a=eo((()=>{var t;return Ae(e)||(null==(t=n.value)?void 0:t.size)||""}));return Uc(eo((()=>Ae(n)||{}))),{ns:i,locale:r,zIndex:o,size:a}}("message"),{currentZIndex:a,nextZIndex:s}=o,l=we(),u=we(!1),c=we(0);let h;const d=eo((()=>n.type?"error"===n.type?"danger":n.type:"info")),p=eo((()=>{const t=n.type;return{[r.bm("icon",t)]:t&&Vl[t]}})),f=eo((()=>n.icon||Vl[n.type]||"")),g=eo((()=>yf(n.id))),v=eo((()=>((t,e)=>mf.findIndex((e=>e.id===t))>0?20:e)(n.id,n.offset)+g.value)),m=eo((()=>c.value+v.value)),y=eo((()=>({top:`${v.value}px`,zIndex:a.value})));function _(){0!==n.duration&&({stop:h}=function(t,e,n={}){const{immediate:i=!0}=n,r=we(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){r.value=!1,a()}function l(...n){a(),r.value=!0,o=setTimeout((()=>{r.value=!1,o=null,t(...n)}),ha(e))}return i&&(r.value=!0,sa&&l()),da(s),{isPending:ue(r),start:l,stop:s}}((()=>{b()}),n.duration))}function x(){null==h||h()}function b(){u.value=!1}return qn((()=>{_(),s(),u.value=!0})),mn((()=>n.repeatNum),(()=>{x(),_()})),ga(document,"keydown",(function({code:t}){t===Wl.esc&&b()})),Ia(l,(()=>{c.value=l.value.getBoundingClientRect().height})),e({visible:u,bottom:m,close:b}),(t,e)=>(gr(),xr(So,{name:Ae(r).b("fade"),onBeforeLeave:t.onClose,onAfterLeave:e[0]||(e[0]=e=>t.$emit("destroy")),persisted:""},{default:cn((()=>[wn(Ar("div",{id:t.id,ref_key:"messageRef",ref:l,class:j([Ae(r).b(),{[Ae(r).m(t.type)]:t.type&&!t.icon},Ae(r).is("center",t.center),Ae(r).is("closable",t.showClose),t.customClass]),style:F(Ae(y)),role:"alert",onMouseenter:x,onMouseleave:_},[t.repeatNum>1?(gr(),xr(Ae(Pd),{key:0,value:t.repeatNum,type:Ae(d),class:j(Ae(r).e("badge"))},null,8,["value","type","class"])):Pr("v-if",!0),Ae(f)?(gr(),xr(Ae($c),{key:1,class:j([Ae(r).e("icon"),Ae(p)])},{default:cn((()=>[(gr(),xr(ai(Ae(f))))])),_:1},8,["class"])):Pr("v-if",!0),hi(t.$slots,"default",{},(()=>[t.dangerouslyUseHTMLString?(gr(),_r(ur,{key:1},[Pr(" Caution here, message could've been compromised, never use user's input as message "),Ar("p",{class:j(Ae(r).e("content")),innerHTML:t.message},null,10,xf)],2112)):(gr(),_r("p",{key:0,class:j(Ae(r).e("content"))},Z(t.message),3))])),t.showClose?(gr(),xr(Ae($c),{key:2,class:j(Ae(r).e("closeBtn")),onClick:Bo(b,["stop"])},{default:cn((()=>[Cr(Ae(i))])),_:1},8,["class","onClick"])):Pr("v-if",!0)],46,_f),[[zo,u.value]])])),_:3},8,["name","onBeforeLeave"]))}});var Sf=Xc(wf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Mf=1;const If=t=>{const e=!t||v(t)||br(t)||g(t)?{message:t}:t,n={...gf,...e};if(n.appendTo){if(v(n.appendTo)){let t=document.querySelector(n.appendTo);Ws(t)||(t=document.body),n.appendTo=t}}else n.appendTo=document.body;return n},Af=({appendTo:t,...e},n)=>{const i="message_"+Mf++,r=e.onClose,o=document.createElement("div"),a={...e,id:i,onClose:()=>{null==r||r(),(t=>{const e=mf.indexOf(t);if(-1===e)return;mf.splice(e,1);const{handler:n}=t;n.close()})(c)},onDestroy:()=>{Wo(null,o)}},s=Cr(Sf,a,g(a.message)||br(a.message)?{default:g(a.message)?a.message:()=>a.message}:null);s.appContext=n||Cf._context,Wo(s,o),t.appendChild(o.firstElementChild);const l=s.component,u={close:()=>{l.exposed.visible.value=!1}},c={id:i,vnode:s,vm:l,handler:u,props:s.component.props};return c},Cf=(t={},e)=>{if(!sa)return{close:()=>{}};if(Hs(Yc.max)&&mf.length>=Yc.max)return{close:()=>{}};const n=If(t);if(n.grouping&&mf.length){const t=mf.find((({vnode:t})=>{var e;return(null==(e=t.props)?void 0:e.message)===n.message}));if(t)return t.props.repeatNum+=1,t.props.type=n.type,t.handler}const i=Af(n,e);return mf.push(i),i.handler};ff.forEach((t=>{Cf[t]=(e={},n)=>{const i=If(e);return Cf({...i,type:t},n)}})),Cf.closeAll=function(t){for(const e of mf)t&&t!==e.props.type||e.handler.close()},Cf._context=null;const Tf=(kf="$message",(Df=Cf).install=t=>{Df._context=t._context,t.config.globalProperties[kf]=Df},Df);var Df,kf;function Lf(t){return new URL(Object.assign({"../assets/img/ar_drop@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAYFJREFUOE+tlb9LAmEYxz/PaUubQ1upWxD0LwQGDdFQaXtrUxRFDUFIUFAURVNre5oN0ZYQ9BcEQZuaW4NbS3pPvMednnp2Snfj8+PzPN/3fZ73hKCvrPFkgwxKBmFGlAkTpsIXyjtCuZagTEaavenSa0gVdR7YBiYDi3WMdeCympVnf1wHmFcrPcumCushoC63KLeVN67Ji20cbWC6oFujwjyyA83JVRvoyrwYpbOA2B0jXyhrPNXgfogzC6tXryZYlWRRFwTOwqKH8SvsSbKgJyIs9iS0gFgIpC9GlSfTYUkg5U+2YyxZTaZVOBUY8/sUfkTZt+N8WC0ee3xVSRX0FWG8y2FxXFuRu6mCzolw7kENTJXdz5y8JEu6JjYHXSqU70AgYAscVbLy4EGdTXFh6aIuKxwCVh8wSLIb1AU1NtPZQJgpCNVBl+IVbkON4S+Yq8C5lLCxsRVu3C3Y6JPp0+yMTeSDbQpEu3puy5E+Dg4z6ufLO9voHlj/hP7jF/ALVgbAb2cF9n0AAAAASUVORK5CYII=","../assets/img/bg@2x.png":"/screen/assets/bg@2x-eea19a40.png","../assets/img/bg_jinribuliang@2x.png":"/screen/assets/bg_jinribuliang@2x-53eab507.png","../assets/img/bg_jinrirenshu@2x.png":"/screen/assets/bg_jinrirenshu@2x-889552bb.png","../assets/img/bg_jinrishebei@2x.png":"/screen/assets/bg_jinrishebei@2x-be1eea81.png","../assets/img/bg_maintitle@2x.png":"/screen/assets/bg_maintitle@2x-4b8bdc00.png","../assets/img/bg_yanqijihua@2x.png":"/screen/assets/bg_yanqijihua@2x-c2094a94.png","../assets/img/bg_zhixingzhong@2x.png":"/screen/assets/bg_zhixingzhong@2x-998363d4.png","../assets/img/btn_back@2x.png":"/screen/assets/btn_back@2x-675e2455.png","../assets/img/gongxu_title@2x.png":"/screen/assets/gongxu_title@2x-b27af72d.png","../assets/img/home_title_long@2x.png":"/screen/assets/home_title_long@2x-4b73bebe.png","../assets/img/home_title_short@2x.png":"/screen/assets/home_title_short@2x-f3c01af2.png","../assets/img/ic_complete@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAZCAYAAAC/zUevAAAAAXNSR0IArs4c6QAAAwdJREFUSEvFlk1IVFEUx//n3acoYxFRbtqUFGI2juUESkFIG503IpWFkEJJBgbmqmhRYGmbIAiyiDAiC4LpY5EzY9pCWpSRH/BmEFoUYtCihVFkkuPce2LGN9OUX6My49u99849/98995w/l7BWz1h/FraV/47I01ow6EF/OzOfB+O5dBi1aYcQQX8DmO9Zmw/JbFqfVogM88UeReINgCwL4r4sMhrSBzH6cqOQchjA1ggAA0EVUqVwVk2lB4JbNRHc6wNQYVXghxTCicKKj2lrTD3gvcKgSxYAg6laOlzdsaFIeSVE0GuAKSIY1SKgPVxkxICiHKmFCHjzBCjSBxusXfdJ+2AlqFUlWkPqIN56srUc2wABjqggY1xmTpeg4PDE/96UMghh+rpAqLcEpzXC/hm7MTSfOaYEQjO9Z4joVlyQ0SgdRudC7kwY6t6kZYjTmoahsN3Vt1obzzD9pYr4NYBMq+s6pd1oXCwviYDvIYA669zuSP1XCwqPhVYEY/bmCgqPANhiGdKwyqZ92OGaXhRCD/puMKMlIWhQClWDwqrPywLxeITIt70CoXx2HU1InUuw0xhfKg/B7LUJTXaCufZvME2QUsfDxe7epRLE/utB3zVmnLPeFRFVJnu88cbUgt5mYroOICOWiMGXld1oAxEvBiNM3xEQnsZimPmicrivJruBf6ZDD3SXMbQnsTO1kvRIIepQWPFt3qRmT74gNQhgndWI3XKXq3op8MXNasS/WejqMUAHE0ZsXNNQM2fOR/tzdDn1noECK/aTlCEndh/6nmwVot0zb7DHI/R8WxsTLiTETDP4rCpy342tEQG/B+Cj1vuUIK0sZK8MLAdgYQgrizD9VSDuSvD+CNMDOTnZpOXYmgiI9JA1DFwv7e5HywVYEiKaMODN05ieEaE4rgd8YGA7AH32G3fIInfzSgCSg4hEjfVniZ9TtwGcnCtEAzKUewBO50xqIeLH4zsFws2EO+JXqVQJiqu+rBQg+UokKMxeVvUOAm8kphMzDte71QBE1v4BQakDwfLPV9MAAAAASUVORK5CYII=","../assets/img/ic_exitfullscreen@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAZBJREFUSEvtl79KxEAQh7+fnj6DLyDY2loJgqCCqK8ggoVgq6CVgraChSAWvoCKoIIgWNnaij6APoP/RiYksneX3CUXY5pLk5CdnS8zuzP7i8zsFJgGliVdE1xmNgZcAjeS1sOxrGczOwBmgHlJTy3+ZoET4FZm9gqMAO/AkqSrxNjMNoA94BsYkuT3zMvMBoAPwO+bkvYDX3PAGTAMvDnYv+I8ftEEN7MtYCee3JD01QU8CHzGNtuSdv3ZzEKoMxaVMRBF/hfgFGjkOwJnwYHxMhEDj0F6m7L5C86APwCTPab6HphIW0L31wROgYdLWnSNk7ltmzYCxyWzADQCylQQafK6V7BHfhf49s134eBnYLRLjfZSTp1cvjjYC34trr00Y4ceS1rN2UCOgJUu/g6TcvKCb1vvZMN3axytHxQ3ko7+sgbzBFfKpg8ulb4ik/upLpKtUrb1pjpPwRcJL4+/+lpmnYeEK8n/PxZTGnwozKoTAqHnFGFWvfRJU4OVi70sCVqpvK1N0Nf5C1PLT9sPXcVS1O7WqdUAAAAASUVORK5CYII=","../assets/img/ic_fullscreen@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAWBJREFUSEvtl7EuREEUhr8/xBvQ09KKSqMkEruVUq/wAsRu7Aso9EoVCaHUqEStpecNxObIkZ3k7phrR67dafYmt7n3nPOdOTNn5h+Z2SmwD8yQfvrAmaSDmv9Dn7PjmdnnL9AQ9FXSUib4BVgcYduXmVlk9ADcV755YleSnjPBK8AOMFux3wDWq/4p8AfQlnSbAxplY2ZbwCUwVwf2ka4NDP4FHkE95mMYeXXEXeCpkl0jeALaBlaBYx/5EFhSJ+Xw17LXxTCzTi3Ys0k4tiTdjZrPge+mL8bUlMXg0E5HknoheAR/l7SQCX4D5oEfU2Vmh8AJ8N1OvoFs+xu3jJl59ufeXpJ2M8EXgLfPXlwlM/NWuwZulBNsHDZT8Diqmow5LfW01GOrQLnFVWzLrGiuiR8SQXN1/Tye5LE4BC4iBEpJn2JiL/RsI5EXN36OvA0+TQX9MtDKEfTFrjBFLm1fE1IyGlVh99UAAAAASUVORK5CYII=","../assets/img/ic_jinribuliang@2x.png":"/screen/assets/ic_jinribuliang@2x-455fc64a.png","../assets/img/ic_jinrirenshu@2x.png":"/screen/assets/ic_jinrirenshu@2x-b55a14fc.png","../assets/img/ic_jinrishebei@2x.png":"/screen/assets/ic_jinrishebei@2x-0cff47d1.png","../assets/img/ic_rain@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAlCAYAAAAuqZsAAAAAAXNSR0IArs4c6QAABVVJREFUWEfFmGtsFFUUx/9n7nRb2yJEMGoiRA3Iy50FqQriC1+FztYaMZVElJgQEOUDqMH4QBrBaJTHJxASSHiomAoS7M5SBKwJCWJYKDvDgkIQEzUiggm0pbLde4+Z3R373LZbaHs+ztz7///u2TvnnruEnkaseriWUOWk4SEwjwYwJC11HkQnWKn9SnElxpee6okFZTvJZ1t+CXwMoBhAV/MZRN8K0KK4f5qdjVdXws1azKQ7uyoY/DYAvYVJHIANxtnkM8LNAAwAvhZjJAEfJvwl74GIuwPYPbBIJEfk/rUVjOmeKAEnmXipLCzYhtun/NvK7ExNnqhrnE7gxQyMbH5HO6Son4Gx5e5iOo1ugQnH2gTGi2mlBgDz5U8NW1BeLjtVr6wUYmT+TBCtBlCQHvuZNMwXrhpMs625BKxNCXE9MUoSgeD+roRbvteP7nqANRUGMCCpwvyqCgTXdKbRecacnTcJ1n8GMBDAFYKakjBKf8gGyhubEw1PVMQ1APIAXJK6GIUxU//MpNUpmO6ElzHzO6k9jVUJw3ytJ1DeHD0aWs5Er6f1PkoY5lvZgcVqCoVqeBigjeBkfaqTcXUHikrPXw0YTnw9WDTl/gLgeoAugPGSzG36HqPK6trqts5YdHeBDlnBxPNabFY3W52uLhtY3Ql9wExuyfGigYB1ifqGd3F/eaP3sBnsSPhGobMF4J62RoLZHw8Ej2UDkHGsExotmI538P6Q1EWZt+9SYM7uoYKbvgNouDeBgcMasI8ZR2XA3HpNoNIiIhqaQaSNY/BjAIpaaP8udXGvC5cEE7a1B8Dj6QEHBTAnbpjOtYTJqBULjxGS3XL0YHIMYbP0m7NIj4YfZeJ96Yl7ZVyVoaj0cp9AeSbuSXHp8lcgBN0ypzEmkYham0FwK3GTlNqdGD/t1z6F8syOV98iEvI0gOsA2kS6Y51kxgiAP5dGcGa/QHl7zw6vA3gOgNMkbMs9+/IZWKwMc1l/gmm2tZCAlQAaSdihOoAKGZivDNM9bPstRDQ0C0QbAVwkzbaOEDAejC0yYHodRL/Aiaj1KQgvM2CTblsrGVgI4G8ZV7f1+RfppeBUOFc0stuGDyWm5YRUHXFrlubVkP5Il3Cs1WC8AkBKQUaqwDqhNWByz0c31sm4700UPXGxTwBjNYW6bFzK4AVJP8ZaGTDnpY6kSFW+8Im9AE9Kw5wFIcSKa0mjq+soMqyOFQ0mwjiASwDcmh72oxyQ/4jbqjcf4pE9A4Uv7n4RT/dJptqb7JQifybGTqlPnUxtQthWGYBFACYm913vhgLxASh8IgPBb1paZe5gI1VDdF0fxRoPAbO4pnxEkkidS1zhk5maz27dktpBRSI5mBCSoArVKfCZmrx2V7turjB7sFjVMCG1WgLOJeJqQqa6l+7vF4IxVwbM9d3k+X9Y1mC6ba1gIHkp0cBFTUbwcDvT2h2DhPBdSNfGKuk3n+p1MGGHD3hlRZI+DP7i39qa6kdDxaxRdboubZABc3bvgsUqfUIWXAKQC+APaZhe/WnlqznWEmJUJB8Sz5b+4IZeBcuJWvcpwsGUIbZLv/lsR4bCCVeD2f03CEKJu+LjpsZ6FUyLhhYQ0SrXhIneUP6SFe0MmUk44X8ADHLbF+k/dEOXX28H1FltfhG1vgThuWTCiCcn/MED7TRbX8/2SMN8MttspX6QLEKzLZsAP4C4HJA/sKMaJaLWdBC2pcTp/YRRsiQLi56VCxG1toPwDIAvpGE+35FhzrGqgFJarXu5EUrc3ZP9lXXG4B70ufFimUfVGFHifp0dhn4sPBlKqp7+M+SK/gfHMwW20voEoAAAAABJRU5ErkJggg==","../assets/img/ic_yanqijihua@2x.png":"/screen/assets/ic_yanqijihua@2x-91e879d7.png","../assets/img/ic_zhixingzhong@2x.png":"/screen/assets/ic_zhixingzhong@2x-d5daba40.png","../assets/img/rank_blue@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAjRJREFUOE+Nk7+LE1EQxz/f2U3OcI2goI2dvdwfYGNhYXugf4Bw1hZaKhYWYicIiq2lWNlqZS/YmNyVNgpaXHHES/a9kdnNM8leAk7zmZ03v99bMfHrcn+CuOSAgGBI0YMbZdXB+enosTTOHzEM2GuD+lm3JSv2ktT0xbMnMc6fJS5vjZPAHYKbKq438EOa5A8OF7eNdaZhyXEXwViLu1zylvBLduhv3f18t7F2ZoVbx00t9Te7LCn3YzFOL03s5kV0LDP0YCfrlkxuVx7sTju9u4Z8IjvypznnHbMuRc6Z0INnA87k7/ufRocPTNRgi9eS1enB6NbcyApuurjoI2q3dJL4lg4wz1BtuehEdxYMKXrnX5GUqDzoSGLc3EbVrGRbdVgkcKIwVdthP/2axRmKI7+JLza8pcdVc900aurag629BpoFE6Zq4reScVIcinPwP/Kvu+S0KyZ+p6743syjDNSDmtCDIY3jtVCwNQgRejAk4sJ33lBZfUWM/S7i67LUHBiE58JU9ODypPvqvJbe6ZqYpPtgn/5V7M25ng7mjg+Egv2VGNyIhI8wezdc/Hsz8NCDG3c4Qwxxgq3EAxl2rOv9+Jef53T6huFOl6AfUIKDwM4MnQ7xYHwXPWjzfCAbp1dD7Nmf0k5ZeBnpHBCHwZCil4DVSzIeikN/QWreY/XRphFHhqYZD8b5lCkjRi1bySPHpqIZXDWz/XjYe+bcc7hAdmHyliFFD26Q9WH8N7LXfwGgtyx76J22lQAAAABJRU5ErkJggg==","../assets/img/rank_yellow@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAntJREFUOE+llTFrFEEUx/9vdnb3LgbEQrCQEzEELfQD2AteaW1lEy39AiqohYKgEggmCgFjKbYWVhb5BEGIJCDRIKQQuewld7uzM0/e7OzluFuJ4L/5/Wffmzdv3rIs8cGTLhytADgLZoAInqLaC4/XLhQvEPef7rCLvsOqK1URMBjk+S8KuaTcBpTtEGfP9thSf9QVpBupFbqaWE6dMXYr0pglzl58YVv0weFexOy9sEn1WaPo2Fx0fII4W/zM9vBgtNeBoMAQimovbJLzOYADKJ6RgkvvnekNRjOr5yds0uSMx/JVfHKGbLa8jOLXIcChwMSrVgpwDhCKHBMUsafXUb5KTreJs9ePXbk3/OsLtQAiAMIm1bEIUPpMi7i/etcVP4bh/KktYyMKI/Xj8mPzDYNJgdgz6aTE/bWbNt8qqjaOmqlW07KwiBBBOKX0Qkqmt3Zdl1u2hPMz0VAsXthUsIQiDcfCybhO5xXx4bsbONj8XSdo7bgsFQkbWyz9qYCw6qDyGrDRxVPE2ds7MFsbpakydKwhXujFjkGKPEW1F0qtkOs5e+ky2Wz1gc23PwLG58dQbOBIKOvaC6t4DAPjWcXlWWA61yXO3iyZwdcVIKo2xIqNcST0G4IXVgUtG0QknCwYpfO3ye2/+mDMt3swthoyWwZF5AkgSRIUReF5nDg+/4h4f2kd+fatPGSnAMQLRbU/iqfIkSMNGbUXJsncKrne4jYNdq6NTk9LRq4JQgDDXFMrLVlY5chH1QoU18IQQ09unftErvdy03FxPyp/rjddaUAltVmz0McHANqBYluaB8OSktnOVUXJQ+Le8y4zql/A/2mXCAt/AJzRWZFmBrriAAAAAElFTkSuQmCC","../assets/img/tab_select@2x.png":"/screen/assets/tab_select@2x-562f0f68.png","../assets/img/tab_select_grey@2x.png":"/screen/assets/tab_select_grey@2x-293d45eb.png","../assets/img/title_line@2x.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAiCAYAAAB1GggSAAAAAXNSR0IArs4c6QAAAB1JREFUKFNjrJpwWZyBgYGBsWjSSf1RBu5AgAUUAPJzQ4vdGxPpAAAAAElFTkSuQmCC"})[`../assets/img/${t}`],self.location).href}function Pf(t,e){return function(){return t.apply(e,arguments)}}const{toString:Of}=Object.prototype,{getPrototypeOf:Ef}=Object,Rf=(t=>e=>{const n=Of.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nf=t=>(t=t.toLowerCase(),e=>Rf(e)===t),Bf=t=>e=>typeof e===t,{isArray:zf}=Array,Vf=Bf("undefined");const Ff=Nf("ArrayBuffer");const Gf=Bf("string"),Hf=Bf("function"),Wf=Bf("number"),Uf=t=>null!==t&&"object"==typeof t,jf=t=>{if("object"!==Rf(t))return!1;const e=Ef(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Yf=Nf("Date"),Xf=Nf("File"),qf=Nf("Blob"),Zf=Nf("FileList"),Kf=Nf("URLSearchParams");function $f(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let i,r;if("object"!=typeof t&&(t=[t]),zf(t))for(i=0,r=t.length;i0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Qf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,tg=t=>!Vf(t)&&t!==Qf;const eg=(ng="undefined"!=typeof Uint8Array&&Ef(Uint8Array),t=>ng&&t instanceof ng);var ng;const ig=Nf("HTMLFormElement"),rg=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),og=Nf("RegExp"),ag=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};$f(n,((n,r)=>{!1!==e(n,r,t)&&(i[r]=n)})),Object.defineProperties(t,i)},sg="abcdefghijklmnopqrstuvwxyz",lg="0123456789",ug={DIGIT:lg,ALPHA:sg,ALPHA_DIGIT:sg+sg.toUpperCase()+lg};const cg=Nf("AsyncFunction"),hg={isArray:zf,isArrayBuffer:Ff,isBuffer:function(t){return null!==t&&!Vf(t)&&null!==t.constructor&&!Vf(t.constructor)&&Hf(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Hf(t.append)&&("formdata"===(e=Rf(t))||"object"===e&&Hf(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Ff(t.buffer),e},isString:Gf,isNumber:Wf,isBoolean:t=>!0===t||!1===t,isObject:Uf,isPlainObject:jf,isUndefined:Vf,isDate:Yf,isFile:Xf,isBlob:qf,isRegExp:og,isFunction:Hf,isStream:t=>Uf(t)&&Hf(t.pipe),isURLSearchParams:Kf,isTypedArray:eg,isFileList:Zf,forEach:$f,merge:function t(){const{caseless:e}=tg(this)&&this||{},n={},i=(i,r)=>{const o=e&&Jf(n,r)||r;jf(n[o])&&jf(i)?n[o]=t(n[o],i):jf(i)?n[o]=t({},i):zf(i)?n[o]=i.slice():n[o]=i};for(let r=0,o=arguments.length;r($f(e,((e,i)=>{n&&Hf(e)?t[i]=Pf(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,i)=>{let r,o,a;const s={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)a=r[o],i&&!i(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&Ef(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Rf,kindOfTest:Nf,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},toArray:t=>{if(!t)return null;if(zf(t))return t;let e=t.length;if(!Wf(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const i=[];for(;null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:ig,hasOwnProperty:rg,hasOwnProp:rg,reduceDescriptors:ag,freezeMethods:t=>{ag(t,((e,n)=>{if(Hf(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];Hf(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return zf(t)?i(t):i(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Jf,global:Qf,isContextDefined:tg,ALPHABET:ug,generateString:(t=16,e=ug.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n},isSpecCompliantForm:function(t){return!!(t&&Hf(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,i)=>{if(Uf(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const r=zf(t)?[]:{};return $f(t,((t,e)=>{const o=n(t,i+1);!Vf(o)&&(r[e]=o)})),e[i]=void 0,r}}return t};return n(t,0)},isAsyncFn:cg,isThenable:t=>t&&(Uf(t)||Hf(t))&&Hf(t.then)&&Hf(t.catch)};function dg(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}hg.inherits(dg,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hg.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pg=dg.prototype,fg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{fg[t]={value:t}})),Object.defineProperties(dg,fg),Object.defineProperty(pg,"isAxiosError",{value:!0}),dg.from=(t,e,n,i,r,o)=>{const a=Object.create(pg);return hg.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dg.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};function gg(t){return hg.isPlainObject(t)||hg.isArray(t)}function vg(t){return hg.endsWith(t,"[]")?t.slice(0,-2):t}function mg(t,e,n){return t?t.concat(e).map((function(t,e){return t=vg(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const yg=hg.toFlatObject(hg,{},null,(function(t){return/^is[A-Z]/.test(t)}));function _g(t,e,n){if(!hg.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=hg.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!hg.isUndefined(e[t])}))).metaTokens,r=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&hg.isSpecCompliantForm(e);if(!hg.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(hg.isDate(t))return t.toISOString();if(!s&&hg.isBlob(t))throw new dg("Blob is not supported. Use a Buffer instead.");return hg.isArrayBuffer(t)||hg.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,r){let s=t;if(t&&!r&&"object"==typeof t)if(hg.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(hg.isArray(t)&&function(t){return hg.isArray(t)&&!t.some(gg)}(t)||(hg.isFileList(t)||hg.endsWith(n,"[]"))&&(s=hg.toArray(t)))return n=vg(n),s.forEach((function(t,i){!hg.isUndefined(t)&&null!==t&&e.append(!0===a?mg([n],i,o):null===a?n:n+"[]",l(t))})),!1;return!!gg(t)||(e.append(mg(r,n,o),l(t)),!1)}const c=[],h=Object.assign(yg,{defaultVisitor:u,convertValue:l,isVisitable:gg});if(!hg.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!hg.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+i.join("."));c.push(n),hg.forEach(n,(function(n,o){!0===(!(hg.isUndefined(n)||null===n)&&r.call(e,n,hg.isString(o)?o.trim():o,i,h))&&t(n,i?i.concat(o):[o])})),c.pop()}}(t),e}function xg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function bg(t,e){this._pairs=[],t&&_g(t,this,e)}const wg=bg.prototype;function Sg(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mg(t,e,n){if(!e)return t;const i=n&&n.encode||Sg,r=n&&n.serialize;let o;if(o=r?r(e,n):hg.isURLSearchParams(e)?e.toString():new bg(e,n).toString(i),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}wg.append=function(t,e){this._pairs.push([t,e])},wg.toString=function(t){const e=t?function(e){return t.call(this,e,xg)}:xg;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Ig=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){hg.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ag={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cg={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:bg,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Tg(t){function e(t,n,i,r){let o=t[r++];const a=Number.isFinite(+o),s=r>=t.length;if(o=!o&&hg.isArray(i)?i.length:o,s)return hg.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&hg.isObject(i[o])||(i[o]=[]);return e(t,n,i[o],r)&&hg.isArray(i[o])&&(i[o]=function(t){const e={},n=Object.keys(t);let i;const r=n.length;let o;for(i=0;i{e(function(t){return hg.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null}const Dg={"Content-Type":void 0};const kg={transitional:Ag,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,r=hg.isObject(t);r&&hg.isHTMLForm(t)&&(t=new FormData(t));if(hg.isFormData(t))return i&&i?JSON.stringify(Tg(t)):t;if(hg.isArrayBuffer(t)||hg.isBuffer(t)||hg.isStream(t)||hg.isFile(t)||hg.isBlob(t))return t;if(hg.isArrayBufferView(t))return t.buffer;if(hg.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return _g(t,new Cg.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return Cg.isNode&&hg.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=hg.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return _g(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),function(t,e,n){if(hg.isString(t))try{return(e||JSON.parse)(t),hg.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||kg.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&hg.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(n){if("SyntaxError"===r.name)throw dg.from(r,dg.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cg.classes.FormData,Blob:Cg.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};hg.forEach(["delete","get","head"],(function(t){kg.headers[t]={}})),hg.forEach(["post","put","patch"],(function(t){kg.headers[t]=hg.merge(Dg)}));const Lg=kg,Pg=hg.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Og=Symbol("internals");function Eg(t){return t&&String(t).trim().toLowerCase()}function Rg(t){return!1===t||null==t?t:hg.isArray(t)?t.map(Rg):String(t)}function Ng(t,e,n,i,r){return hg.isFunction(i)?i.call(this,e,n):(r&&(e=n),hg.isString(e)?hg.isString(i)?-1!==e.indexOf(i):hg.isRegExp(i)?i.test(e):void 0:void 0)}class Bg{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function r(t,e,n){const r=Eg(e);if(!r)throw new Error("header name must be a non-empty string");const o=hg.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||e]=Rg(t))}const o=(t,e)=>hg.forEach(t,((t,n)=>r(t,n,e)));return hg.isPlainObject(t)||t instanceof this.constructor?o(t,e):hg.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,i,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!n||e[n]&&Pg[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e})(t),e):null!=t&&r(e,t,n),this}get(t,e){if(t=Eg(t)){const n=hg.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}(t);if(hg.isFunction(e))return e.call(this,t,n);if(hg.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Eg(t)){const n=hg.findKey(this,t);return!(!n||void 0===this[n]||e&&!Ng(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function r(t){if(t=Eg(t)){const r=hg.findKey(n,t);!r||e&&!Ng(0,n[r],r,e)||(delete n[r],i=!0)}}return hg.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const r=e[n];t&&!Ng(0,this[r],r,t,!0)||(delete this[r],i=!0)}return i}normalize(t){const e=this,n={};return hg.forEach(this,((i,r)=>{const o=hg.findKey(n,r);if(o)return e[o]=Rg(i),void delete e[r];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete e[r],e[a]=Rg(i),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return hg.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&hg.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Og]=this[Og]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=Eg(t);e[i]||(!function(t,e){const n=hg.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,r){return this[i].call(this,e,t,n,r)},configurable:!0})}))}(n,t),e[i]=!0)}return hg.isArray(t)?t.forEach(i):i(t),this}}Bg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hg.freezeMethods(Bg.prototype),hg.freezeMethods(Bg);const zg=Bg;function Vg(t,e){const n=this||Lg,i=e||n,r=zg.from(i.headers);let o=i.data;return hg.forEach(t,(function(t){o=t.call(n,o,r.normalize(),e?e.status:void 0)})),r.normalize(),o}function Fg(t){return!(!t||!t.__CANCEL__)}function Gg(t,e,n){dg.call(this,null==t?"canceled":t,dg.ERR_CANCELED,e,n),this.name="CanceledError"}hg.inherits(Gg,dg,{__CANCEL__:!0});const Hg=Cg.isStandardBrowserEnv?{write:function(t,e,n,i,r,o){const a=[];a.push(t+"="+encodeURIComponent(e)),hg.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),hg.isString(i)&&a.push("path="+i),hg.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Wg(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ug=Cg.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let i=n;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=hg.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function jg(t,e){let n=0;const i=function(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,h=0;for(;c!==o;)h+=n[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-r{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};u[e?"download":"upload"]=!0,t(u)}}const Yg={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let i=t.data;const r=zg.from(t.headers).normalize(),o=t.responseType;let a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}hg.isFormData(i)&&(Cg.isStandardBrowserEnv||Cg.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+n))}const u=Wg(t.baseURL,t.url);function c(){if(!l)return;const i=zg.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new dg("Request failed with status code "+n.status,[dg.ERR_BAD_REQUEST,dg.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),s()}),(function(t){n(t),s()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:t,request:l}),l=null}if(l.open(t.method.toUpperCase(),Mg(u,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new dg("Request aborted",dg.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new dg("Network Error",dg.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const i=t.transitional||Ag;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new dg(e,i.clarifyTimeoutError?dg.ETIMEDOUT:dg.ECONNABORTED,t,l)),l=null},Cg.isStandardBrowserEnv){const e=(t.withCredentials||Ug(u))&&t.xsrfCookieName&&Hg.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===i&&r.setContentType(null),"setRequestHeader"in l&&hg.forEach(r.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),hg.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&"json"!==o&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",jg(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",jg(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{l&&(n(!e||e.type?new Gg(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);h&&-1===Cg.protocols.indexOf(h)?n(new dg("Unsupported protocol "+h+":",dg.ERR_BAD_REQUEST,t)):l.send(i||null)}))}};hg.forEach(Yg,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}}));const Xg=t=>{t=hg.isArray(t)?t:[t];const{length:e}=t;let n,i;for(let r=0;rt instanceof zg?t.toJSON():t;function $g(t,e){e=e||{};const n={};function i(t,e,n){return hg.isPlainObject(t)&&hg.isPlainObject(e)?hg.merge.call({caseless:n},t,e):hg.isPlainObject(e)?hg.merge({},e):hg.isArray(e)?e.slice():e}function r(t,e,n){return hg.isUndefined(e)?hg.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function o(t,e){if(!hg.isUndefined(e))return i(void 0,e)}function a(t,e){return hg.isUndefined(e)?hg.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function s(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>r(Kg(t),Kg(e),!0)};return hg.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=l[i]||r,a=o(t[i],e[i],i);hg.isUndefined(a)&&o!==s||(n[i]=a)})),n}const Jg="1.4.0",Qg={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Qg[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const tv={};Qg.transitional=function(t,e,n){function i(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,o)=>{if(!1===t)throw new dg(i(r," has been removed"+(e?" in "+e:"")),dg.ERR_DEPRECATED);return e&&!tv[r]&&(tv[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,o)}};const ev={assertOptions:function(t,e,n){if("object"!=typeof t)throw new dg("options must be an object",dg.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new dg("option "+o+" must be "+n,dg.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new dg("Unknown option "+o,dg.ERR_BAD_OPTION)}},validators:Qg},nv=ev.validators;class iv{constructor(t){this.defaults=t,this.interceptors={request:new Ig,response:new Ig}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=$g(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:r}=e;let o;void 0!==n&&ev.assertOptions(n,{silentJSONParsing:nv.transitional(nv.boolean),forcedJSONParsing:nv.transitional(nv.boolean),clarifyTimeoutError:nv.transitional(nv.boolean)},!1),null!=i&&(hg.isFunction(i)?e.paramsSerializer={serialize:i}:ev.assertOptions(i,{encode:nv.function,serialize:nv.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),o=r&&hg.merge(r.common,r[e.method]),o&&hg.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=zg.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!s){const t=[Zg.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);h{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,r){n.reason||(n.reason=new Gg(t,i,r),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new ov((function(e){t=e})),cancel:t}}}const av=ov;const sv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sv).forEach((([t,e])=>{sv[e]=t}));const lv=sv;const uv=function t(e){const n=new rv(e),i=Pf(rv.prototype.request,n);return hg.extend(i,rv.prototype,n,{allOwnKeys:!0}),hg.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t($g(e,n))},i}(Lg);uv.Axios=rv,uv.CanceledError=Gg,uv.CancelToken=av,uv.isCancel=Fg,uv.VERSION=Jg,uv.toFormData=_g,uv.AxiosError=dg,uv.Cancel=uv.CanceledError,uv.all=function(t){return Promise.all(t)},uv.spread=function(t){return function(e){return t.apply(null,e)}},uv.isAxiosError=function(t){return hg.isObject(t)&&!0===t.isAxiosError},uv.mergeConfig=$g,uv.AxiosHeaders=zg,uv.formToJSON=t=>Tg(hg.isHTMLForm(t)?new FormData(t):t),uv.HttpStatusCode=lv,uv.default=uv;const cv=uv.create({baseURL:"/doumeeplant",headers:{"Content-Type":"application/json"},timeout:6e4});function hv(t,e,n){return cv.get(`statistics/userProduceTop/${t}/${e}`,{params:n})}function dv(t,e){return cv.get(`statistics/getWorkPlansList/${t}/${e}`)}function pv(t,e,n){return cv.post(`statistics/getRecordLogPage/${t}/${e}`,n)}function fv(t,e,n){return cv.get(`statistics/getUnqualified7DayData/${t}/${e}?procedureId=${n}`)}function gv(t,e,n){return cv.get(`statistics/getUnqualifiedCateData/${t}/${e}?procedureId=${n}`)}cv.interceptors.request.use((t=>t),(function(t){return Promise.reject(t)})),cv.interceptors.response.use((t=>(200!==t.data.code&&Tf({message:t.data.message,type:"warning"}),t.data.data)),(function(t){return Promise.reject(t)}));const vv=function(t,e,n){let i,r;const o="function"==typeof e;function a(t,n){(t=t||(!!(Fr||on||Ei)?Ni(Yo,null):null))&&jo(t),(t=Uo)._s.has(i)||(o?ia(i,e,r,t):function(t,e,n,i){const{state:r,actions:o,getters:a}=e,s=n.state.value[t];let l;l=ia(t,(function(){s||(n.state.value[t]=r?r():{});const e=De(n.state.value[t]);return na(e,o,Object.keys(a||{}).reduce(((e,i)=>(e[i]=ve(eo((()=>{jo(n);const e=n._s.get(t);return a[i].call(e,e)}))),e)),{}))}),e,n,0,!0)}(i,r,t));return t._s.get(i)}return"string"==typeof t?(i=t,r=o?n:e):(r=t,i=t.id),a.$id=i,a}("enterprise",{state:()=>({companyId:"8",departId:"178",delayNum:0,deviceNum:0,ingNum:0,prouserNum:0,unqualifiedRate:0,procedureName:""}),actions:{setCompanyId(t){this.companyId=t,window.sessionStorage.setItem("companyId",t)},setDepartId(t){this.departId=t,window.sessionStorage.setItem("departId",t)},setNum(t){this.delayNum=t.delayNum,this.deviceNum=t.deviceNum,this.ingNum=t.ingNum,this.prouserNum=t.prouserNum,this.unqualifiedRate=t.unqualifiedRate},setProcedureName(t){this.procedureName=t}}}),mv="undefined"!=typeof window; /*! * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT */const yv=Object.assign;function _v(t,e){const n={};for(const i in e){const r=e[i];n[i]=bv(r)?r.map(t):t(r)}return n}const xv=()=>{},bv=Array.isArray,wv=/\/$/,Sv=t=>t.replace(wv,"");function Mv(t,e,n="/"){let i,r={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(i=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),r=t(o)),s>-1&&(i=i||e.slice(0,s),a=e.slice(s,e.length)),i=function(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),r=i[i.length-1];".."!==r&&"."!==r||i.push("");let o,a,s=n.length-1;for(o=0;o1&&s--}return n.slice(0,s).join("/")+"/"+i.slice(o-(o===i.length?1:0)).join("/")}(null!=i?i:e,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function Iv(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function Av(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Cv(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Tv(t[n],e[n]))return!1;return!0}function Tv(t,e){return bv(t)?Dv(t,e):bv(e)?Dv(e,t):t===e}function Dv(t,e){return bv(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}var kv,Lv,Pv,Ov;(Lv=kv||(kv={})).pop="pop",Lv.push="push",(Ov=Pv||(Pv={})).back="back",Ov.forward="forward",Ov.unknown="";const Ev=/^[^#]+#/;function Rv(t,e){return t.replace(Ev,"#")+e}const Nv=()=>({left:window.pageXOffset,top:window.pageYOffset});function Bv(t){let e;if("el"in t){const n=t.el,i="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=function(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function zv(t,e){return(history.state?history.state.position-e:-1)+t}const Vv=new Map;let Fv=()=>location.protocol+"//"+location.host;function Gv(t,e){const{pathname:n,search:i,hash:r}=e,o=t.indexOf("#");if(o>-1){let e=r.includes(t.slice(o))?t.slice(o).length:1,n=r.slice(e);return"/"!==n[0]&&(n="/"+n),Iv(n,"")}return Iv(n,t)+i+r}function Hv(t,e,n,i=!1,r=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:r?Nv():null}}function Wv(t){return"string"==typeof t||"symbol"==typeof t}const Uv={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jv=Symbol("");var Yv,Xv;function qv(t,e){return yv(new Error,{type:t,[jv]:!0},e)}function Zv(t,e){return t instanceof Error&&jv in t&&(null==e||!!(t.type&e))}(Xv=Yv||(Yv={}))[Xv.aborted=4]="aborted",Xv[Xv.cancelled=8]="cancelled",Xv[Xv.duplicated=16]="duplicated";const Kv="[^/]+?",$v={sensitive:!1,strict:!1,start:!0,end:!0},Jv=/[.+*?^${}()[\]/\\]/g;function Qv(t,e){let n=0;for(;ne.length?1===e.length&&80===e[0]?1:-1:0}function tm(t,e){let n=0;const i=t.score,r=e.score;for(;n0&&e[e.length-1]<0}const nm={type:0,value:""},im=/[a-zA-Z0-9_]/;function rm(t,e,n){const i=function(t,e){const n=yv({},$v,e),i=[];let r=n.start?"^":"";const o=[];for(const l of t){const t=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let e=0;e1&&("*"===s||"+"===s)&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):e("Invalid state to consume buffer"),u="")}function d(){u+=s}for(;l{o(d)}:xv}function o(t){if(Wv(t)){const e=i.get(t);e&&(i.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(o),e.alias.forEach(o))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&i.delete(t.record.name),t.children.forEach(o),t.alias.forEach(o))}}function a(t){let e=0;for(;e=0&&(t.record.path!==n[e].record.path||!hm(t,n[e]));)e++;n.splice(e,0,t),t.record.name&&!lm(t)&&i.set(t.record.name,t)}return e=cm({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>r(t))),{addRoute:r,resolve:function(t,e){let r,o,a,s={};if("name"in t&&t.name){if(r=i.get(t.name),!r)throw qv(1,{location:t});a=r.record.name,s=yv(am(e.params,r.keys.filter((t=>!t.optional)).map((t=>t.name))),t.params&&am(t.params,r.keys.map((t=>t.name)))),o=r.stringify(s)}else if("path"in t)o=t.path,r=n.find((t=>t.re.test(o))),r&&(s=r.parse(o),a=r.record.name);else{if(r=e.name?i.get(e.name):n.find((t=>t.re.test(e.path))),!r)throw qv(1,{location:t,currentLocation:e});a=r.record.name,s=yv({},e.params,t.params),o=r.stringify(s)}const l=[];let u=r;for(;u;)l.unshift(u.record),u=u.parent;return{name:a,path:o,params:s,matched:l,meta:um(l)}},removeRoute:o,getRoutes:function(){return n},getRecordMatcher:function(t){return i.get(t)}}}function am(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function sm(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]="object"==typeof n?n[i]:n;return e}function lm(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function um(t){return t.reduce(((t,e)=>yv(t,e.meta)),{})}function cm(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function hm(t,e){return e.children.some((e=>e===t||hm(t,e)))}const dm=/#/g,pm=/&/g,fm=/\//g,gm=/=/g,vm=/\?/g,mm=/\+/g,ym=/%5B/g,_m=/%5D/g,xm=/%5E/g,bm=/%60/g,wm=/%7B/g,Sm=/%7C/g,Mm=/%7D/g,Im=/%20/g;function Am(t){return encodeURI(""+t).replace(Sm,"|").replace(ym,"[").replace(_m,"]")}function Cm(t){return Am(t).replace(mm,"%2B").replace(Im,"+").replace(dm,"%23").replace(pm,"%26").replace(bm,"`").replace(wm,"{").replace(Mm,"}").replace(xm,"^")}function Tm(t){return null==t?"":function(t){return Am(t).replace(dm,"%23").replace(vm,"%3F")}(t).replace(fm,"%2F")}function Dm(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}function km(t){const e={};if(""===t||"?"===t)return e;const n=("?"===t[0]?t.slice(1):t).split("&");for(let i=0;it&&Cm(t))):[i&&Cm(i)]).forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))}))}return e}function Pm(t){const e={};for(const n in t){const i=t[n];void 0!==i&&(e[n]=bv(i)?i.map((t=>null==t?null:""+t)):null==i?i:""+i)}return e}const Om=Symbol(""),Em=Symbol(""),Rm=Symbol(""),Nm=Symbol(""),Bm=Symbol("");function zm(){let t=[];return{add:function(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}},list:()=>t.slice(),reset:function(){t=[]}}}function Vm(t,e,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=t=>{var l;!1===t?s(qv(4,{from:n,to:e})):t instanceof Error?s(t):"string"==typeof(l=t)||l&&"object"==typeof l?s(qv(2,{from:e,to:t})):(o&&i.enterCallbacks[r]===o&&"function"==typeof t&&o.push(t),a())},u=t.call(i&&i.instances[r],e,n,l);let c=Promise.resolve(u);t.length<3&&(c=c.then(l)),c.catch((t=>s(t)))}))}function Fm(t,e,n,i){const r=[];for(const a of t)for(const t in a.components){let s=a.components[t];if("beforeRouteEnter"===e||a.instances[t])if("object"==typeof(o=s)||"displayName"in o||"props"in o||"__vccOpts"in o){const o=(s.__vccOpts||s)[e];o&&r.push(Vm(o,n,i,a,t))}else{let o=s();r.push((()=>o.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${t}" at "${a.path}"`));const o=(s=r).__esModule||"Module"===s[Symbol.toStringTag]?r.default:r;var s;a.components[t]=o;const l=(o.__vccOpts||o)[e];return l&&Vm(l,n,i,a,t)()}))))}}var o;return r}function Gm(t){const e=Ni(Rm),n=Ni(Nm),i=eo((()=>e.resolve(Ae(t.to)))),r=eo((()=>{const{matched:t}=i.value,{length:e}=t,r=t[e-1],o=n.matched;if(!r||!o.length)return-1;const a=o.findIndex(Av.bind(null,r));if(a>-1)return a;const s=Wm(t[e-2]);return e>1&&Wm(r)===s&&o[o.length-1].path!==s?o.findIndex(Av.bind(null,t[e-2])):a})),o=eo((()=>r.value>-1&&function(t,e){for(const n in e){const i=e[n],r=t[n];if("string"==typeof i){if(i!==r)return!1}else if(!bv(r)||r.length!==i.length||i.some(((t,e)=>t!==r[e])))return!1}return!0}(n.params,i.value.params))),a=eo((()=>r.value>-1&&r.value===n.matched.length-1&&Cv(n.params,i.value.params)));return{route:i,href:eo((()=>i.value.href)),isActive:o,isExactActive:a,navigate:function(n={}){return function(t){if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)return;if(t.defaultPrevented)return;if(void 0!==t.button&&0!==t.button)return;if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}t.preventDefault&&t.preventDefault();return!0}(n)?e[Ae(t.replace)?"replace":"push"](Ae(t.to)).catch(xv):Promise.resolve()}}}const Hm=On({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gm,setup(t,{slots:e}){const n=se(Gm(t)),{options:i}=Ni(Rm),r=eo((()=>({[Um(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Um(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=e.default&&e.default(n);return t.custom?i:no("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}});function Wm(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Um=(t,e,n)=>null!=t?t:null!=e?e:n,jm=On({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=Ni(Bm),r=eo((()=>t.route||i.value)),o=Ni(Em,0),a=eo((()=>{let t=Ae(o);const{matched:e}=r.value;let n;for(;(n=e[t])&&!n.components;)t++;return t})),s=eo((()=>r.value.matched[a.value]));Ri(Em,eo((()=>a.value+1))),Ri(Om,s),Ri(Bm,r);const l=we();return mn((()=>[l.value,s.value,t.name]),(([t,e,n],[i,r,o])=>{e&&(e.instances[n]=t,r&&r!==e&&t&&t===i&&(e.leaveGuards.size||(e.leaveGuards=r.leaveGuards),e.updateGuards.size||(e.updateGuards=r.updateGuards))),!t||!e||r&&Av(e,r)&&i||(e.enterCallbacks[n]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const i=r.value,o=t.name,a=s.value,u=a&&a.components[o];if(!u)return Ym(n.default,{Component:u,route:i});const c=a.props[o],h=c?!0===c?i.params:"function"==typeof c?c(i):c:null,d=no(u,yv({},h,e,{onVnodeUnmounted:t=>{t.component.isUnmounted&&(a.instances[o]=null)},ref:l}));return Ym(n.default,{Component:d,route:i})||d}}});function Ym(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const Xm=jm;function qm(){return Ni(Rm)}function Zm(){return Ni(Nm)}const Km=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},$m=t=>(ln("data-v-ae9e17fa"),t=t(),un(),t),Jm={class:"content"},Qm={class:"header"},ty={class:"header-item",style:{"font-size":"20px"}},ey={class:"eare-title"},ny=$m((()=>Ar("div",{class:"right-icon"},[Ar("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAYFJREFUOE+tlb9LAmEYxz/PaUubQ1upWxD0LwQGDdFQaXtrUxRFDUFIUFAURVNre5oN0ZYQ9BcEQZuaW4NbS3pPvMednnp2Snfj8+PzPN/3fZ73hKCvrPFkgwxKBmFGlAkTpsIXyjtCuZagTEaavenSa0gVdR7YBiYDi3WMdeCympVnf1wHmFcrPcumCushoC63KLeVN67Ji20cbWC6oFujwjyyA83JVRvoyrwYpbOA2B0jXyhrPNXgfogzC6tXryZYlWRRFwTOwqKH8SvsSbKgJyIs9iS0gFgIpC9GlSfTYUkg5U+2YyxZTaZVOBUY8/sUfkTZt+N8WC0ee3xVSRX0FWG8y2FxXFuRu6mCzolw7kENTJXdz5y8JEu6JjYHXSqU70AgYAscVbLy4EGdTXFh6aIuKxwCVh8wSLIb1AU1NtPZQJgpCNVBl+IVbkON4S+Yq8C5lLCxsRVu3C3Y6JPp0+yMTeSDbQpEu3puy5E+Dg4z6ufLO9voHlj/hP7jF/ALVgbAb2cF9n0AAAAASUVORK5CYII=",alt:""})],-1))),iy=$m((()=>Ar("div",{class:"title"},"DM云工厂车间大屏",-1))),ry={class:"header-item right"},oy=$m((()=>Ar("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAiCAYAAAB1GggSAAAAAXNSR0IArs4c6QAAAB1JREFUKFNjrJpwWZyBgYGBsWjSSf1RBu5AgAUUAPJzQ4vdGxPpAAAAAElFTkSuQmCC",class:"right-line",alt:""},null,-1))),ay={class:"date"},sy={class:"time"},ly={class:"day"},uy={class:"num-list"},cy=["src"],hy={class:"item-right"},dy={class:"item-title"},py={class:"num-value"},fy=Km({__name:"AppLayout",setup(t){const e=vv(),n=Zm(),i=qm(),r=[{bgImg:"bg_zhixingzhong@2x.png",name:"执行中计划数(个)",logo:"ic_zhixingzhong@2x.png"},{bgImg:"bg_yanqijihua@2x.png",name:"延期计划数(个)",logo:"ic_yanqijihua@2x.png"},{bgImg:"bg_jinrirenshu@2x.png",name:"今日生产人数(人)",logo:"ic_jinrirenshu@2x.png"},{bgImg:"bg_jinrishebei@2x.png",name:"今日生产设备(台)",logo:"ic_jinrishebei@2x.png"},{bgImg:"bg_jinribuliang@2x.png",name:"今日不良品率(%)",logo:"ic_jinribuliang@2x.png"}],o=se({tempCom:{name:"豆米科技"},isFull:!1,tempDate:{time:"",date:"",day:""},comList:[],countList:[eo((()=>e.ingNum))||0,eo((()=>e.delayNum))||0,eo((()=>e.prouserNum))||0,eo((()=>e.deviceNum))||0,eo((()=>e.unqualifiedRate))||0]});let{tempCom:a,isFull:s,tempDate:l,comList:u,countList:c}=De(o);const h=()=>{o.isFull=!o.isFull;let t=document.documentElement;o.isFull?t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()};return qn((()=>{var t;(t=e.companyId,cv.get(`statistics/getDepartmentList/${t}`)).then((t=>{o.comList=t,o.tempCom=t[0],e.setDepartId(o.tempCom.id)})).catch((t=>{}));const n=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"];setInterval((()=>{let t=new Date;o.tempDate={time:`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`,date:`${t.getFullYear()}/${t.getMonth()+1}/${t.getDate()}`,day:n[t.getDay()-1]}}),1e3)})),(t,d)=>{const p=nf,f=rf,g=ef,v=ri("router-view");return gr(),_r("div",Jm,[Ar("div",Qm,[Ar("div",ty,["home"==Ae(n).name?(gr(),xr(g,{key:0,trigger:"click"},{dropdown:cn((()=>[Cr(f,null,{default:cn((()=>[(gr(!0),_r(ur,null,ui(Ae(u),((t,n)=>(gr(),xr(p,{key:n,onClick:n=>((t,n)=>{o.tempCom=t,e.setDepartId(o.tempCom.id)})(t)},{default:cn((()=>[kr(Z(t.name),1)])),_:2},1032,["onClick"])))),128))])),_:1})])),default:cn((()=>[Ar("div",ey,[kr(Z(Ae(a).name)+" ",1),ny])])),_:1})):(gr(),_r("img",{key:1,src:"/screen/assets/btn_back@2x-675e2455.png",style:{width:"108px",height:"34px","margin-top":"14px"},onClick:d[0]||(d[0]=t=>Ae(i).go(-1))}))]),iy,Ar("div",ry,[Ae(s)?(gr(),_r("img",{key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAZBJREFUSEvtl79KxEAQh7+fnj6DLyDY2loJgqCCqK8ggoVgq6CVgraChSAWvoCKoIIgWNnaij6APoP/RiYksneX3CUXY5pLk5CdnS8zuzP7i8zsFJgGliVdE1xmNgZcAjeS1sOxrGczOwBmgHlJTy3+ZoET4FZm9gqMAO/AkqSrxNjMNoA94BsYkuT3zMvMBoAPwO+bkvYDX3PAGTAMvDnYv+I8ftEEN7MtYCee3JD01QU8CHzGNtuSdv3ZzEKoMxaVMRBF/hfgFGjkOwJnwYHxMhEDj0F6m7L5C86APwCTPab6HphIW0L31wROgYdLWnSNk7ltmzYCxyWzADQCylQQafK6V7BHfhf49s134eBnYLRLjfZSTp1cvjjYC34trr00Y4ceS1rN2UCOgJUu/g6TcvKCb1vvZMN3axytHxQ3ko7+sgbzBFfKpg8ulb4ik/upLpKtUrb1pjpPwRcJL4+/+lpmnYeEK8n/PxZTGnwozKoTAqHnFGFWvfRJU4OVi70sCVqpvK1N0Nf5C1PLT9sPXcVS1O7WqdUAAAAASUVORK5CYII=",class:"full-ic",onClick:h})):(gr(),_r("img",{key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAWBJREFUSEvtl7EuREEUhr8/xBvQ09KKSqMkEruVUq/wAsRu7Aso9EoVCaHUqEStpecNxObIkZ3k7phrR67dafYmt7n3nPOdOTNn5h+Z2SmwD8yQfvrAmaSDmv9Dn7PjmdnnL9AQ9FXSUib4BVgcYduXmVlk9ADcV755YleSnjPBK8AOMFux3wDWq/4p8AfQlnSbAxplY2ZbwCUwVwf2ka4NDP4FHkE95mMYeXXEXeCpkl0jeALaBlaBYx/5EFhSJ+Xw17LXxTCzTi3Ys0k4tiTdjZrPge+mL8bUlMXg0E5HknoheAR/l7SQCX4D5oEfU2Vmh8AJ8N1OvoFs+xu3jJl59ufeXpJ2M8EXgLfPXlwlM/NWuwZulBNsHDZT8Diqmow5LfW01GOrQLnFVWzLrGiuiR8SQXN1/Tye5LE4BC4iBEpJn2JiL/RsI5EXN36OvA0+TQX9MtDKEfTFrjBFLm1fE1IyGlVh99UAAAAASUVORK5CYII=",class:"full-ic",onClick:h})),oy,Ar("div",ay,[Ar("div",sy,Z(Ae(l).time),1),Ar("div",ly,Z(`${Ae(l).date} ${Ae(l).day}`),1)])])]),Ar("div",uy,[(gr(),_r(ur,null,ui(r,((t,e)=>Ar("div",{key:e,class:"num-item",style:F({"background-image":`url(${Ae(Lf)(t.bgImg)})`})},[Ar("img",{src:Ae(Lf)(t.logo),alt:""},null,8,cy),Ar("div",hy,[Ar("div",dy,Z(t.name),1),Ar("div",py,Z(Ae(c)[e]),1)])],4))),64))]),(gr(),xr(Bn,null,[Cr(v)],1024))])}}},[["__scopeId","data-v-ae9e17fa"]]),gy={__name:"App",setup(t){const e=vv();let n=(window.location.href.split("?")[1]||"").split("&")||[],i={companyId:e.companyId};return n.forEach((t=>{let e=t.split("=");i[e[0]]=e[1]})),e.setCompanyId(i.companyId),(t,e)=>(gr(),xr(fy))}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var vy=function(t,e){return(vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function my(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}vy(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var yy=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},_y=new function(){this.browser=new yy,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(_y.wxa=!0,_y.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?_y.worker=!0:"undefined"==typeof navigator?(_y.node=!0,_y.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,_y);const xy=_y;var by=12,wy="sans-serif",Sy=by+"px "+wy;var My,Iy,Ay=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)o=r*t.length;else for(var a=0;a>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?nx(s,a):nx(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function ax(t){return"CANVAS"===t.nodeName.toUpperCase()}var sx=/([&<>"'])/g,lx={"&":"&","<":"<",">":">",'"':""","'":"'"};function ux(t){return null==t?"":(t+"").replace(sx,(function(t,e){return lx[e]}))}var cx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hx=[],dx=xy.browser.firefox&&+xy.browser.version.split(".")[0]<39;function px(t,e,n,i){return n=n||{},i?fx(t,e,n):dx&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):fx(t,e,n),n}function fx(t,e,n){if(xy.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ax(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ox(hx,t,i,r))return n.zrX=hx[0],void(n.zrY=hx[1])}n.zrX=n.zrY=0}function gx(t){return t||window.event}function vx(t,e,n){if(null!=(e=gx(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&px(t,r,e,n)}else{px(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&cx.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function mx(t,e,n,i){t.addEventListener(e,n,i)}function yx(t,e,n,i){t.removeEventListener(e,n,i)}var _x=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function xx(t){return 2===t.which||3===t.which}var bx=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=Sx(r)/Sx(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Ix(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ax(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 Cx(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Tx(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Dx(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function kx(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Lx(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}const Px=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();var Ox=Math.min,Ex=Math.max,Rx=new Px,Nx=new Px,Bx=new Px,zx=new Px,Vx=new Px,Fx=new Px,Gx=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Ox(t.x,this.x),n=Ox(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ex(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ex(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Tx(r,r,[-e.x,-e.y]),kx(r,r,[n,i]),Tx(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(of&&(f=_,gf&&(f=x,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},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 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Rx.x=Bx.x=n.x,Rx.y=zx.y=n.y,Nx.x=zx.x=n.x+n.width,Nx.y=Bx.y=n.y+n.height,Rx.transform(i),zx.transform(i),Nx.transform(i),Bx.transform(i),e.x=Ox(Rx.x,Nx.x,Bx.x,zx.x),e.y=Ox(Rx.y,Nx.y,Bx.y,zx.y);var l=Ex(Rx.x,Nx.x,Bx.x,zx.x),u=Ex(Rx.y,Nx.y,Bx.y,zx.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const Hx=Gx;var Wx="silent";function Ux(){_x(this.event)}var jx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return my(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Q_),Yx=function(t,e){this.x=t,this.y=e},Xx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qx=new Hx(0,0,0,0),Zx=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Yx(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new jx,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new $_(a),a}return my(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Ky(Xx,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Jx(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Yx(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yx(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ux}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Yx(t,e);if($x(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Hx(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(qx.copy(c.getBoundingRect()),c.transform&&qx.applyTransform(c.transform),qx.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Kx(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Wx)){e.target=a;break}}}function Jx(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Ky(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Zx.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Jx(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||U_(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const Qx=Zx;var tb=32,eb=7;function nb(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function ib(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function rb(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function ob(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ab(t,e){var n,i,r=eb,o=0;t.length;var a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=ob(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=rb(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l=eb||p>=eb);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];return void(t[h]=a[c])}var f=r;for(;;){var g=0,v=0,m=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0==--i){m=!0;break}}else if(t[h--]=a[c--],v++,g=0,1==--s){m=!0;break}}while((g|v)=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[h--]=a[c--],1==--s){m=!0;break}if(0!==(v=s-rb(t[u],a,0,s,s-1,e))){for(s-=v,p=(h-=v)+1,d=(c-=v)+1,l=0;l=eb||v>=eb);if(m)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(p=(h-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=tb;)e|=1&t,t>>=1;return t+e}(r);do{if((o=nb(t,n,i,e))s&&(l=s),ib(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var lb=1,ub=4,cb=!1;function hb(){cb||(cb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function db(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var pb=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=db}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(hb(),u.z=0),isNaN(u.z2)&&(hb(),u.z2=0),isNaN(u.zlevel)&&(hb(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=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}();const fb=pb;var gb;gb=xy.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const vb=gb;var mb={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 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},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,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-mb.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?.5*mb.bounceIn(2*t):.5*mb.bounceOut(2*t-1)+.5}};const yb=mb;var _b=Math.pow,xb=Math.sqrt,bb=1e-8,wb=1e-4,Sb=xb(3),Mb=1/3,Ib=E_(),Ab=E_(),Cb=E_();function Tb(t){return t>-bb&&tbb||t<-bb}function kb(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Lb(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Pb(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Tb(c)&&Tb(h)){if(Tb(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[p++]=M)}else{var f=h*h-4*c*d;if(Tb(f)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var m=xb(f),y=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);(M=(-s-((y=y<0?-_b(-y,Mb):_b(y,Mb))+(_=_<0?-_b(-_,Mb):_b(_,Mb))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var x=(2*c*s-3*a*h)/(2*xb(c*c*c)),b=Math.acos(x)/3,w=xb(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+Sb*Math.sin(b)))/(3*a),(-s+w*(S-Sb*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function Ob(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Tb(a)){if(Db(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Tb(u))r[0]=-o/(2*a);else if(u>0){var c,h=xb(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Eb(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Rb(t,e,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,m=1/0;Ib[0]=l,Ib[1]=u;for(var y=0;y<1;y+=.05)Ab[0]=kb(t,n,r,a,y),Ab[1]=kb(e,i,o,s,y),(f=j_(Ib,Ab))=0&&f=0&&v=1?1:Pb(0,i,o,1,t,s)&&kb(0,r,a,1,s[0])}}}const jb=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||P_,this.ondestroy=t.ondestroy||P_,this.onrestart=t.onrestart||P_,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=r_(t)?t:yb[t]||Ub(t)},t}();var Yb=function(t){this.value=t},Xb=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Yb(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const qb=function(){function t(t){this._list=new Xb,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Yb(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();var Zb={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 Kb(t){return(t=Math.round(t))<0?0:t>255?255:t}function $b(t){return t<0?0:t>1?1:t}function Jb(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Kb(parseFloat(e)/100*255):Kb(parseInt(e,10))}function Qb(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?$b(parseFloat(e)/100):$b(parseFloat(e))}function tw(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ew(t,e,n){return t+(e-t)*n}function nw(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function iw(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var rw=new qb(20),ow=null;function aw(t,e){ow&&iw(ow,e),ow=rw.put(t,ow||e.slice())}function sw(t,e){if(t){e=e||[];var n=rw.get(t);if(n)return iw(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Zb)return iw(e,Zb[i]),aw(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(nw(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),aw(t,e),e):void nw(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(nw(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),aw(t,e),e):void nw(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?nw(e,+u[0],+u[1],+u[2],1):nw(e,0,0,0,1);c=Qb(u.pop());case"rgb":return u.length>=3?(nw(e,Jb(u[0]),Jb(u[1]),Jb(u[2]),3===u.length?c:Qb(u[3])),aw(t,e),e):void nw(e,0,0,0,1);case"hsla":return 4!==u.length?void nw(e,0,0,0,1):(u[3]=Qb(u[3]),lw(u,e),aw(t,e),e);case"hsl":return 3!==u.length?void nw(e,0,0,0,1):(lw(u,e),aw(t,e),e);default:return}}nw(e,0,0,0,1)}}function lw(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Qb(t[1]),r=Qb(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return nw(e=e||[],Kb(255*tw(a,o,n+1/3)),Kb(255*tw(a,o,n)),Kb(255*tw(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function uw(t,e){var n=sw(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return pw(n,4===n.length?"rgba":"rgb")}}function cw(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Kb(ew(a[0],s[0],l)),n[1]=Kb(ew(a[1],s[1],l)),n[2]=Kb(ew(a[2],s[2],l)),n[3]=$b(ew(a[3],s[3],l)),n}}function hw(t,e,n,i){var r=sw(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Qb(n)),null!=i&&(r[2]=Qb(i)),pw(lw(r),"rgba")}function dw(t,e){var n=sw(t);if(n&&null!=e)return n[3]=$b(e),pw(n,"rgba")}function pw(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function fw(t,e){var n=sw(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var gw=Math.round;function vw(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=sw(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var mw=1e-4;function yw(t){return t-mw}function _w(t){return gw(1e3*t)/1e3}function xw(t){return gw(1e4*t)/1e4}var bw={left:"start",right:"end",center:"middle",middle:"middle"};function ww(t){return t&&!!t.image}function Sw(t){return ww(t)||function(t){return t&&!!t.svgElement}(t)}function Mw(t){return"linear"===t.type}function Iw(t){return"radial"===t.type}function Aw(t){return t&&("linear"===t.type||"radial"===t.type)}function Cw(t){return"url(#"+t+")"}function Tw(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Dw(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*O_,r=g_(t.scaleX,1),o=g_(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+gw(a*O_)+"deg, "+gw(s*O_)+"deg)"),l.join(" ")}var kw=xy.hasGlobalWindow&&r_(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Lw=Array.prototype.slice;function Pw(t,e,n){return(e-t)*n+t}function Ow(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(Zy(e)){var l=function(t){return Zy(t&&t[0])?2:1}(e);a=l,(1===l&&!s_(e[0])||2===l&&!s_(e[0][0]))&&(o=!0)}else if(s_(e)&&!p_(e))a=0;else if(o_(e))if(isNaN(+e)){var u=sw(e);u&&(s=u,a=3)}else a=0;else if(d_(e)){var c=jy({},s);c.colorStops=$y(e.colorStops,(function(t){return{offset:t.offset,color:sw(t.color)}})),Mw(e)?a=4:Iw(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=r_(n)?n:yb[n]||Ub(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Gw(i),l=Fw(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?Hw:t[c];if(!Gw(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(Gw(s))1===s?Ow(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,zw(l),i),this._trackKeys.push(a)}s.addKeyframe(t,zw(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function jw(){return(new Date).getTime()}var Yw=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return my(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=jw()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,vb((function e(){t._running&&(vb(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=jw(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=jw(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=jw()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Uw(t,e.loop);return this.addAnimator(n),n},e}(Q_);const Xw=Yw;var qw,Zw,Kw,$w=xy.domSupported,Jw=(Zw={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Kw=$y(qw=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],(function(t){var e=t.replace("mouse","pointer");return Zw.hasOwnProperty(e)?e:t})),{mouse:qw,touch:["touchstart","touchend","touchmove"],pointer:Kw}),Qw=["mousemove","mouseup"],tS=["pointermove","pointerup"],eS=!1;function nS(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iS(t){t&&(t.zrByTouch=!0)}function rS(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var oS=function(t,e){this.stopPropagation=P_,this.stopImmediatePropagation=P_,this.preventDefault=P_,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},aS={mousedown:function(t){t=vx(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vx(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=vx(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){rS(this,(t=vx(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){eS=!0,t=vx(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){eS||(t=vx(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iS(t=vx(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),aS.mousemove.call(this,t),aS.mousedown.call(this,t)},touchmove:function(t){iS(t=vx(this.dom,t)),this.handler.processGesture(t,"change"),aS.mousemove.call(this,t)},touchend:function(t){iS(t=vx(this.dom,t)),this.handler.processGesture(t,"end"),aS.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&aS.click.call(this,t)},pointerdown:function(t){aS.mousedown.call(this,t)},pointermove:function(t){nS(t)||aS.mousemove.call(this,t)},pointerup:function(t){aS.mouseup.call(this,t)},pointerout:function(t){nS(t)||aS.mouseout.call(this,t)}};Ky(["click","dblclick","contextmenu"],(function(t){aS[t]=function(e){e=vx(this.dom,e),this.trigger(t,e)}}));var sS={pointermove:function(t){nS(t)||sS.mousemove.call(this,t)},pointerup:function(t){sS.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 lS(t,e){var n=e.domHandlers;xy.pointerEventsSupported?Ky(Jw.pointer,(function(i){cS(e,i,(function(e){n[i].call(t,e)}))})):(xy.touchEventsSupported&&Ky(Jw.touch,(function(i){cS(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),Ky(Jw.mouse,(function(i){cS(e,i,(function(r){r=gx(r),e.touching||n[i].call(t,r)}))})))}function uS(t,e){function n(n){cS(e,n,(function(i){i=gx(i),rS(t,i.target)||(i=function(t,e){return vx(t.dom,new oS(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}xy.pointerEventsSupported?Ky(tS,n):xy.touchEventsSupported||Ky(Qw,n)}function cS(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,mx(t.domTarget,e,n,i)}function hS(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&yx(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var dS=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const pS=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new dS(e,aS),$w&&(i._globalHandlerScope=new dS(document,sS)),lS(i,i._localHandlerScope),i}return my(e,t),e.prototype.dispose=function(){hS(this._localHandlerScope),$w&&hS(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,$w&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?uS(this,e):hS(e)}},e}(Q_);var fS=1;xy.hasGlobalWindow&&(fS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gS=fS,vS="#333",mS="#ccc",yS=Ix,_S=5e-5;function xS(t){return t>_S||t<-5e-5}var bS=[],wS=[],SS=[1,0,0,1,0,0],MS=Math.abs,IS=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return xS(this.rotation)||xS(this.x)||xS(this.y)||xS(this.scaleX-1)||xS(this.scaleY-1)||xS(this.skewX)||xS(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):yS(n),t&&(e?Cx(n,t,n):Ax(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yS(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(bS);var n=bS[0]<0?-1:1,i=bS[1]<0?-1:1,r=((bS[0]-n)*e+n)/bS[0]||0,o=((bS[1]-i)*e+i)/bS[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Lx(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Cx(wS,t.invTransform,e),e=wS);var n=this.originX,i=this.originY;(n||i)&&(SS[4]=n,SS[5]=i,Cx(wS,e,SS),wS[4]-=n,wS[5]-=i,e=wS),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&X_(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&X_(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&MS(t[0]-1)>1e-10&&MS(t[3]-1)>1e-10?Math.sqrt(MS(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){CS(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-h*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&Dx(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),AS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function CS(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function BS(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=NS(i[0],n.width),u+=NS(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var zS="__zr_normal__",VS=AS.concat(["ignore"]),FS=Jy(AS,(function(t,e){return t[e]=!0,t}),{ignore:!1}),GS={},HS=new Hx(0,0,0,0),WS=function(){function t(t){this.id=Fy(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,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(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=HS;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(GS,n,u):BS(GS,n,u),r.x=GS.x,r.y=GS.y,o=GS.align,a=GS.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=NS(c[0],u.width),d=NS(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=lb,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?mS:vS},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&sw(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,pw(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},jy(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(l_(t))for(var n=t_(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(zS,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===zS;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(Xy(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lb),s}Gy("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lb)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Xy(i,t),o=Xy(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},d&&(S={});for(x=0;x<_;x++){M[m=g[x]]=n[m],d?S[m]=i[m]:n[m]=i[m]}}else if(d){I={};for(x=0;x<_;x++){I[m=g[x]]=zw(n[m]),YS(n,i,m)}}(w=new Uw(n,!1,!1,h?Qy(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}qy(WS,Q_),qy(WS,TS);const qS=WS;var ZS=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return my(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=Xy(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=Xy(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function rM(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return o_(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function oM(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),nM),t=(+t).toFixed(e),n?t:+t}function aM(t){return t.sort((function(t,e){return t-e})),t}function sM(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function lM(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function uM(t,e){var n=Math.max(sM(t),sM(e)),i=t+e;return n>nM?i:oM(i,n)}var cM=9007199254740991;function hM(t){var e=2*Math.PI;return(t%e+e)%e}function dM(t){return t>-eM&&t=10&&e++,e}function vM(t,e){var n=gM(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function mM(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function yM(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&Xy(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var sI=aI([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),lI=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return sI(this,t,e)},t}(),uI=new qb(50);function cI(t){if("string"==typeof t){var e=uI.get(t);return e&&e.image}return t}function hI(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=uI.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!pI(e=o.image)&&o.pending.push(a):((e=Cy.loadImage(t,dI,dI)).__zrImageSrc=t,uI.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function dI(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=kS(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function mI(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=kS(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?yI(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=kS(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function yI(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=II(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!SI[t]}function II(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var AI="__zr_style_"+Math.round(10*Math.random()),CI={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},TI={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};CI[AI]=!0;var DI=["z","z2","invisible"],kI=["invisible"],LI=function(t){function e(e){return t.call(this,e)||this}var n;return my(e,t),e.prototype._init=function(e){for(var n=t_(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(FI[0]=zI(r)*n+t,FI[1]=BI(r)*i+e,GI[0]=zI(o)*n+t,GI[1]=BI(o)*i+e,u(s,FI,GI),c(l,FI,GI),(r%=VI)<0&&(r+=VI),(o%=VI)<0&&(o+=VI),r>o&&!a?o+=VI:rr&&(HI[0]=zI(p)*n+t,HI[1]=BI(p)*i+e,u(s,HI,s),c(l,HI,l))}var KI={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$I=[],JI=[],QI=[],tA=[],eA=[],nA=[],iA=Math.min,rA=Math.max,oA=Math.cos,aA=Math.sin,sA=Math.abs,lA=Math.PI,uA=2*lA,cA="undefined"!=typeof Float32Array,hA=[];function dA(t){return Math.round(t/lA*1e8)/1e8%2*lA}function pA(t,e){var n=dA(t[0]);n<0&&(n+=uA);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=uA?r=n+uA:e&&n-r>=uA?r=n-uA:!e&&n>r?r=n+(uA-dA(n-r)):e&&n0&&(this._ux=sA(n/gS/t)||0,this._uy=sA(n/gS/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},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(t,e){return this._drawPendingPt(),this.addData(KI.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=sA(t-this._xi),i=sA(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(KI.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(KI.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(KI.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),hA[0]=i,hA[1]=r,pA(hA,o),i=hA[0];var a=(r=hA[1])-i;return this.addData(KI.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=oA(r)*n+t,this._yi=aA(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(KI.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(KI.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!cA||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){QI[0]=QI[1]=eA[0]=eA[1]=Number.MAX_VALUE,tA[0]=tA[1]=nA[0]=nA[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||sA(v)>i||h===e-1)&&(f=Math.sqrt(D*D+v*v),r=g,o=_);break;case KI.C:var m=t[h++],y=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];f=Nb(r,o,m,y,g,_,x,b,10),r=x,o=b;break;case KI.Q:f=Hb(r,o,m=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case KI.A:var w=t[h++],S=t[h++],M=t[h++],I=t[h++],A=t[h++],C=t[h++],T=C+A;h+=1,t[h++],p&&(a=oA(A)*M+w,s=aA(A)*I+S),f=rA(M,I)*iA(uA,Math.abs(C)),r=oA(T)*M+w,o=aA(T)*I+S;break;case KI.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case KI.Z:var D=a-r;v=s-o;f=Math.sqrt(D*D+v*v),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,p=this._ux,f=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x0&&(t.lineTo(c,h),_=0),b){case KI.M:n=r=d[x++],i=o=d[x++],t.moveTo(r,o);break;case KI.L:a=d[x++],s=d[x++];var S=sA(a-r),M=sA(s-o);if(S>p||M>f){if(v){if(m+(q=l[y++])>u){var I=(u-m)/q;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var A=S*S+M*M;A>_&&(c=a,h=s,_=A)}break;case KI.C:var C=d[x++],T=d[x++],D=d[x++],k=d[x++],L=d[x++],P=d[x++];if(v){if(m+(q=l[y++])>u){Eb(r,C,D,L,I=(u-m)/q,$I),Eb(o,T,k,P,I,JI),t.bezierCurveTo($I[1],JI[1],$I[2],JI[2],$I[3],JI[3]);break t}m+=q}t.bezierCurveTo(C,T,D,k,L,P),r=L,o=P;break;case KI.Q:C=d[x++],T=d[x++],D=d[x++],k=d[x++];if(v){if(m+(q=l[y++])>u){Fb(r,C,D,I=(u-m)/q,$I),Fb(o,T,k,I,JI),t.quadraticCurveTo($I[1],JI[1],$I[2],JI[2]);break t}m+=q}t.quadraticCurveTo(C,T,D,k),r=D,o=k;break;case KI.A:var O=d[x++],E=d[x++],R=d[x++],N=d[x++],B=d[x++],z=d[x++],V=d[x++],F=!d[x++],G=R>N?R:N,H=sA(R-N)>.001,W=B+z,U=!1;if(v)m+(q=l[y++])>u&&(W=B+z*(u-m)/q,U=!0),m+=q;if(H&&t.ellipse?t.ellipse(O,E,R,N,V,B,W,F):t.arc(O,E,G,B,W,F),U)break t;w&&(n=oA(B)*R+O,i=aA(B)*N+E),r=oA(W)*R+O,o=aA(W)*N+E;break;case KI.R:n=r=d[x],i=o=d[x+1],a=d[x++],s=d[x++];var j=d[x++],Y=d[x++];if(v){if(m+(q=l[y++])>u){var X=u-m;t.moveTo(a,s),t.lineTo(a+iA(X,j),s),(X-=j)>0&&t.lineTo(a+j,s+iA(X,Y)),(X-=Y)>0&&t.lineTo(a+rA(j-X,0),s+Y),(X-=j)>0&&t.lineTo(a,s+rA(Y-X,0));break t}m+=q}t.rect(a,s,j,Y);break;case KI.Z:if(v){var q;if(m+(q=l[y++])>u){I=(u-m)/q;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=q}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=KI,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function gA(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=xA);var d=Math.atan2(l,s);return d<0&&(d+=xA),d>=i&&d<=r||d+xA>=i&&d+xA<=r}function wA(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var SA=fA.CMD,MA=2*Math.PI,IA=1e-4;var AA=[-1,-1,-1],CA=[-1,-1];function TA(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(c=void 0,c=CA[0],CA[0]=CA[1],CA[1]=c),f=kb(e,i,o,s,CA[0]),p>1&&(g=kb(e,i,o,s,CA[1]))),2===p?me&&s>i&&s>o||s=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Tb(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=xb(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,AA);if(0===l)return 0;var u=Vb(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Bb(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);AA[0]=-l,AA[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=MA-1e-4){i=0,r=MA;var c=o?1:-1;return a>=AA[0]+t&&a<=AA[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=MA,r+=MA);for(var d=0,p=0;p<2;p++){var f=AA[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=MA+g),(g>=i&&g<=r||g+MA>=i&&g+MA<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function LA(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,p=0,f=0,g=0,v=0;v1&&(n||(h+=wA(d,p,f,g,i,r))),y&&(f=d=u[v],g=p=u[v+1]),m){case SA.M:d=f=u[v++],p=g=u[v++];break;case SA.L:if(n){if(gA(d,p,u[v],u[v+1],e,i,r))return!0}else h+=wA(d,p,u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case SA.C:if(n){if(vA(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=TA(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case SA.Q:if(n){if(mA(d,p,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=DA(d,p,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case SA.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var I=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(f=o,g=a):h+=wA(d,p,o,a,i,r);var A=(i-_)*w/b+_;if(n){if(bA(_,x,w,S,S+M,I,e,A,r))return!0}else h+=kA(_,x,w,S,S+M,I,A,r);d=Math.cos(S+M)*b+_,p=Math.sin(S+M)*w+x;break;case SA.R:if(f=d=u[v++],g=p=u[v++],o=f+u[v++],a=g+u[v++],n){if(gA(f,g,o,g,e,i,r)||gA(o,g,o,a,e,i,r)||gA(o,a,f,a,e,i,r)||gA(f,a,f,g,e,i,r))return!0}else h+=wA(o,g,o,a,i,r),h+=wA(f,a,f,g,i,r);break;case SA.Z:if(n){if(gA(d,p,f,g,e,i,r))return!0}else h+=wA(d,p,f,g,i,r);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l).5?vS:e>.2?"#eee":mS}if(t)return mS}return vS},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(o_(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===fw(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~ub},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new fA(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&ub)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return LA(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return LA(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ub,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:jy(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ub)},e.prototype.createStyle=function(t){return D_(PA,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=jy({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=jy({},i.shape),jy(s,n.shape)):(s=jy({},r?this.shape:i.shape),jy(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=jy({},this.shape);for(var u={},c=t_(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return D_(BA,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=PS(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(EI);zA.prototype.type="tspan";const VA=zA;var FA=Yy({x:0,y:0},CI),GA={style:Yy({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},TI.style)};var HA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.createStyle=function(t){return D_(FA,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return GA},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Hx(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(EI);HA.prototype.type="image";const WA=HA;var UA=Math.round;function jA(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(UA(2*i)===UA(2*r)&&(t.x1=t.x2=XA(i,s,!0)),UA(2*o)===UA(2*a)&&(t.y1=t.y2=XA(o,s,!0)),t):t}}function YA(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=XA(i,s,!0),t.y=XA(r,s,!0),t.width=Math.max(XA(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(XA(r+a,s,!1)-t.y,0===a?0:1),t):t}}function XA(t,e,n){if(!e)return t;var i=UA(2*t);return(i+UA(e))%2==0?i/2:(i+(n?1:-1))/2}var qA=function(){this.x=0,this.y=0,this.width=0,this.height=0},ZA={},KA=function(t){function e(e){return t.call(this,e)||this}return my(e,t),e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=YA(ZA,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(NA);KA.prototype.type="rect";const $A=KA;var JA={fill:"#000"},QA={style:Yy({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},TI.style)},tC=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=JA,n.attr(e),n}return my(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ep&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=vI(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,C=0;Cl&&wI(n,t.substring(l,u),e,s),wI(n,i[2],e,s,i[1]),l=fI.lastIndex}lo){b>0?(y.tokens=y.tokens.slice(0,b),v(y,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var C=w.width,T=null==C||"auto"===C;if("string"==typeof C&&"%"===C.charAt(C.length-1))P.percentWidth=C,c.push(P),P.contentWidth=kS(P.text,I);else{if(T){var D=w.backgroundColor,k=D&&D.image;k&&pI(k=cI(k))&&(P.width=Math.max(P.width,k.width*A/k.height))}var L=f&&null!=r?r-x:null;null!=L&&L=0&&"right"===(C=_[A]).align;)this._placeToken(C,t,b,f,I,"right",v),w-=C.width,I-=C.width,A--;for(M+=(n-(M-p)-(g-I)-w)/2;S<=A;)C=_[S],this._placeToken(C,t,b,f,M+C.width/2,"center",v),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&dC(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=cC(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(VA),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,g=!1,v=0,m=uC("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=lC("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||Sy,p.opacity=v_(s.opacity,e.opacity,1),oC(p,s),y&&(p.lineWidth=v_(s.lineWidth,e.lineWidth,v),p.lineDash=g_(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=y),m&&(p.fill=m);var x=t.contentWidth,b=t.contentHeight;d.setBoundingRect(new Hx(OS(p.x,x,p.textAlign),ES(p.y,b,p.textBaseline),x,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){(a=this._getOrCreateChild($A)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=g_(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(WA)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=i,m.width=r,m.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=g_(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=v_(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return aC(t)&&(e=[t.fontStyle,t.fontWeight,rC(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&x_(e)||t.textFont||t.font},e}(EI),eC={left:!0,right:1,center:1},nC={top:1,bottom:1,middle:1},iC=["fontStyle","fontWeight","fontSize","fontFamily"];function rC(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?by+"px":t+"px":t}function oC(t,e){for(var n=0;n=0,o=!1;if(t instanceof NA){var a=yC(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(PC(s)||PC(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=jy({},i),(u=jy({},u)).fill=s):!PC(u.fill)&&PC(s)?(o=!0,i=jy({},i),(u=jy({},u)).fill=EC(s)):!PC(u.stroke)&&PC(l)&&(o||(i=jy({},i),u=jy({},u)),u.stroke=EC(l)),i.style=u}}if(i&&null==i.z2){o||(i=jy({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:IC)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=Xy(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function lT(t,e,n){fT(t,!0),WC(t,YC),cT(t,e,n)}function uT(t,e,n,i){i?function(t){fT(t,!1)}(t):lT(t,e,n)}function cT(t,e,n){var i=fC(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var hT=["emphasis","blur","select"],dT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function pT(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=ST(f),s*=ST(f));var g=(r===o?-1:1)*ST((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,m=g*-s*d/a,y=(t+n)/2+IT(h)*v-MT(h)*m,_=(e+i)/2+MT(h)*v+IT(h)*m,x=DT([1,0],[(d-v)/a,(p-m)/s]),b=[(d-v)/a,(p-m)/s],w=[(-1*d-v)/a,(-1*p-m)/s],S=DT(b,w);if(TT(b,w)<=-1&&(S=AT),TT(b,w)>=1&&(S=0),S<0){var M=Math.round(S/AT*1e6)/1e6;S=2*AT+M%2*AT}c.addData(u,y,_,a,s,x,S,h,o)}var LT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,PT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var OT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.applyTransform=function(t){},e}(NA);function ET(t){return null!=t.setData}function RT(t,e){var n=function(t){var e=new fA;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=fA.CMD,l=t.match(LT);if(!l)return e;for(var u=0;uk*k+L*L&&(M=A,I=C),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(r/b-1),y1:I*(r/b-1)}}function nD(t,e){var n,i=JT(e.r,0),r=JT(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=KT(l-s),p=d>jT&&d%jT;if(p>tD&&(d=p),i>tD)if(d>jT-tD)t.moveTo(u+i*XT(s),c+i*YT(s)),t.arc(u,c,i,s,l,!h),r>tD&&(t.moveTo(u+r*XT(l),c+r*YT(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,A=void 0,C=void 0,T=void 0,D=void 0,k=i*XT(s),L=i*YT(s),P=r*XT(l),O=r*YT(l),E=d>tD;if(E){var R=e.cornerRadius;R&&(f=(n=function(t){var e;if(i_(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(R))[0],g=n[1],v=n[2],m=n[3]);var N=KT(i-r)/2;if(y=QT(N,v),_=QT(N,m),x=QT(N,f),b=QT(N,g),M=w=JT(y,_),I=S=JT(x,b),(w>tD||S>tD)&&(A=i*XT(l),C=i*YT(l),T=r*XT(s),D=r*YT(s),dtD){var U=QT(v,M),j=QT(m,M),Y=eD(T,D,k,L,i,U,h),X=eD(A,C,P,O,i,j,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),M0&&t.arc(u+Y.cx,c+Y.cy,U,ZT(Y.y0,Y.x0),ZT(Y.y1,Y.x1),!h),t.arc(u,c,i,ZT(Y.cy+Y.y1,Y.cx+Y.x1),ZT(X.cy+X.y1,X.cx+X.x1),!h),j>0&&t.arc(u+X.cx,c+X.cy,j,ZT(X.y1,X.x1),ZT(X.y0,X.x0),!h))}else t.moveTo(u+k,c+L),t.arc(u,c,i,s,l,!h);else t.moveTo(u+k,c+L);if(r>tD&&E)if(I>tD){U=QT(f,I),Y=eD(P,O,A,C,r,-(j=QT(g,I)),h),X=eD(k,L,T,D,r,-U,h);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),I0&&t.arc(u+Y.cx,c+Y.cy,j,ZT(Y.y0,Y.x0),ZT(Y.y1,Y.x1),!h),t.arc(u,c,r,ZT(Y.cy+Y.y1,Y.cx+Y.x1),ZT(X.cy+X.y1,X.cx+X.x1),h),U>0&&t.arc(u+X.cx,c+X.cy,U,ZT(X.y1,X.x1),ZT(X.y0,X.x0),!h))}else t.lineTo(u+P,c+O),t.arc(u,c,r,l,s,h);else t.lineTo(u+P,c+O)}else t.moveTo(u,c);t.closePath()}}}var iD=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},rD=function(t){function e(e){return t.call(this,e)||this}return my(e,t),e.prototype.getDefaultShape=function(){return new iD},e.prototype.buildPath=function(t,e){nD(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(NA);rD.prototype.type="sector";const oD=rD;var aD=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},sD=function(t){function e(e){return t.call(this,e)||this}return my(e,t),e.prototype.getDefaultShape=function(){return new aD},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(NA);sD.prototype.type="ring";const lD=sD;function uD(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;dED[1]){if(a=!1,r)return a;var u=Math.abs(ED[0]-OD[1]),c=Math.abs(OD[0]-ED[1]);Math.min(u,c)>i.len()&&(u0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function jD(t,e,n,i,r,o){UD("update",t,e,n,i,r,o)}function YD(t,e,n,i,r,o){UD("enter",t,e,n,i,r,o)}function XD(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function fk(t){return!t.isGroup}function gk(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){fk(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(fk(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),jD(t,i,n,fC(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=jy({},t.shape)),e}}function vk(t,e){return $y(t,(function(t){var n=t[0];n=JD(n,e.x),n=QD(n,e.x+e.width);var i=t[1];return i=JD(i,e.y),[n,i=QD(i,e.y+e.height)]}))}function mk(t,e,n){var i=jy({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Yy(r,n),new WA(i)):rk(t.replace("path://",""),i,n,"center")}function yk(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,v=xk(f,g,u,c)/p;if(v<0||v>1)return!1;var m=xk(f,g,h,d)/p;return!(m<0||m>1)}function xk(t,e,n,i){return t*i-n*e}function bk(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=o_(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Ky(t_(l),(function(t){L_(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=fC(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Yy({content:i,formatterParams:s},r)}}function wk(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Sk(t,e){if(t)if(i_(t))for(var n=0;n=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:mk,extendPath:function(t,e){return ek(t,e)},extendShape:function(t){return NA.extend(t)},getShapeClass:ik,getTransform:hk,groupTransition:gk,initProps:YD,isElementRemoved:XD,lineLineIntersect:_k,linePolygonIntersect:yk,makeImage:ok,makePath:rk,mergePath:sk,registerShape:nk,removeElement:qD,removeElementWithFadeOut:KD,resizePath:lk,setTooltipConfig:bk,subPixelOptimize:ck,subPixelOptimizeLine:uk,subPixelOptimizeRect:function(t){return YA(t.shape,t.shape,t.style),t},transformDirection:pk,traverseElements:Sk,updateProps:jD},Symbol.toStringTag,{value:"Module"}));var Ik={};function Ak(t,e){for(var n=0;n-1?rL:aL;function cL(t,e){t=t.toUpperCase(),lL[t]=new tL(e),sL[t]=e}function hL(t){return lL[t]}cL(oL,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),cL(rL,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var dL=1e3,pL=60*dL,fL=60*pL,gL=24*fL,vL=365*gL,mL={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},yL="{yyyy}-{MM}-{dd}",_L={year:"{yyyy}",month:"{yyyy}-{MM}",day:yL,hour:yL+" "+mL.hour,minute:yL+" "+mL.minute,second:yL+" "+mL.second,millisecond:mL.none},xL=["year","month","day","hour","minute","second","millisecond"],bL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wL(t,e){return"0000".substr(0,e-(t+="").length)+t}function SL(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 ML(t){return t===SL(t)}function IL(t,e,n,i){var r=fM(t),o=r[TL(n)](),a=r[DL(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[kL(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[LL(n)](),h=(c-1)%12+1,d=r[PL(n)](),p=r[OL(n)](),f=r[EL(n)](),g=(i instanceof tL?i:hL(i||uL)||lL[aL]).getModel("time"),v=g.get("month"),m=g.get("monthAbbr"),y=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,wL(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,wL(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,wL(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wL(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,wL(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,wL(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,wL(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,wL(f,3)).replace(/{S}/g,f+"")}function AL(t,e){var n=fM(t),i=n[DL(e)]()+1,r=n[kL(e)](),o=n[LL(e)](),a=n[PL(e)](),s=n[OL(e)](),l=0===n[EL(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function CL(t,e,n){var i=s_(t)?fM(t):t;switch(e=e||AL(t,n)){case"year":return i[TL(n)]();case"half-year":return i[DL(n)]()>=6?1:0;case"quarter":return Math.floor((i[DL(n)]()+1)/4);case"month":return i[DL(n)]();case"day":return i[kL(n)]();case"half-day":return i[LL(n)]()/24;case"hour":return i[LL(n)]();case"minute":return i[PL(n)]();case"second":return i[OL(n)]();case"millisecond":return i[EL(n)]()}}function TL(t){return t?"getUTCFullYear":"getFullYear"}function DL(t){return t?"getUTCMonth":"getMonth"}function kL(t){return t?"getUTCDate":"getDate"}function LL(t){return t?"getUTCHours":"getHours"}function PL(t){return t?"getUTCMinutes":"getMinutes"}function OL(t){return t?"getUTCSeconds":"getSeconds"}function EL(t){return t?"getUTCMilliseconds":"getMilliseconds"}function RL(t){return t?"setUTCFullYear":"setFullYear"}function NL(t){return t?"setUTCMonth":"setMonth"}function BL(t){return t?"setUTCDate":"setDate"}function zL(t){return t?"setUTCHours":"setHours"}function VL(t){return t?"setUTCMinutes":"setMinutes"}function FL(t){return t?"setUTCSeconds":"setSeconds"}function GL(t){return t?"setUTCMilliseconds":"setMilliseconds"}function HL(t){if(!xM(t))return o_(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function WL(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var UL=y_;function jL(t,e,n){function i(t){return t&&x_(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?fM(t):t;if(!isNaN(+s))return IL(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return a_(t)?i(t):s_(t)&&r(t)?t+"":"-";var l=_M(t);return r(l)?HL(l):a_(t)?i(t):"boolean"==typeof t?t+"":"-"}var YL=["a","b","c","d","e","f","g"],XL=function(t,e){return"{"+t+(null==e?"":e)+"}"};function qL(t,e,n){i_(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var eP=tP;function nP(t,e,n){n=UL(n||0);var i=e.width,r=e.height,o=rM(t.left,i),a=rM(t.top,r),s=rM(t.right,i),l=rM(t.bottom,r),u=rM(t.width,i),c=rM(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new Hx(o+n[3],a+n[0],u,c);return f.margin=n,f}function iP(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Hx(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=nP(Yy({width:a.width,height:a.height},e),n,i),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function rP(t){var e=t.layoutMode||t.constructor.layoutMode;return l_(e)?e:e?{type:e}:null}function oP(t,e,n){var i=n&&n.ignoreSize;!i_(i)&&(i=[i,i]);var r=a(QL[0],0),o=a(QL[1],1);function a(n,r){var o={},a=0,u={},c=0;if($L(n,(function(e){u[e]=t[e]})),$L(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=Wy(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return YM(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(tL);eI(uP,tL),oI(uP),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=QM(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=QM(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(uP),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return Ky(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return Ky(t,(function(t){Xy(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),Ky(s,(function(t){Xy(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);Xy(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(Ky(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),Ky(h.successor,d?f:p)}Ky(u,(function(){throw new Error("")}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}(uP,(function(t){var e=[];Ky(uP.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=$y(e,(function(t){return QM(t).main})),"dataset"!==t&&Xy(e,"dataset")<=0&&e.unshift("dataset");return e}));const cP=uP;var hP="";"undefined"!=typeof navigator&&(hP=navigator.platform||"");var dP="rgba(0, 0, 0, 0.2)";const pP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:dP,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:dP,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:dP,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:dP,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:dP,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:dP,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hP.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 fP=C_(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),gP="original",vP="arrayRows",mP="objectRows",yP="keyedColumns",_P="typedArray",xP="unknown",bP="column",wP="row",SP={Must:1,Might:2,Not:3},MP=FM();function IP(t,e,n){var i={},r=CP(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=MP(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;Ky(t=t.slice(),(function(e,n){var r=l_(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var VP="\0_ec_inner",FP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new tL(i),this._locale=new tL(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=WP(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,WP(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):OP(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Ky(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=C_(),s=e&&e.replaceMergeMainTypeMap;MP(this).datasetMap=C_(),Ky(t,(function(t,e){null!=t&&(cP.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Hy(t):Wy(n[e],t,!0))})),s&&s.each((function(t,e){cP.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),cP.topologicalTravel(o,cP.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=kP.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,TM(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=OM(a,o,l);(function(t,e,n){Ky(t,(function(t){var i=t.newOption;l_(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,cP),n[e]=null,i.set(e,null),r.set(e,0);var c,h=[],d=[],p=0;Ky(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=cP.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=jy({componentIndex:n},t.keyInfo);jy(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,i.set(e,d),r.set(e,p),"series"===e&&LP(this)}),this),this._seriesIndices||LP(this)},e.prototype.getOption=function(){var t=Hy(this.option);return Ky(t,(function(e,n){if(cP.hasClass(n)){for(var i=TM(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!zM(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[VP],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const QP=$P;var tO=Ky,eO=l_,nO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function iO(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=nO.length;n=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=uM(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var bO,wO,SO,MO,IO,AO=function(t){this.data=t.data||(t.sourceFormat===yP?{}:[]),this.sourceFormat=t.sourceFormat||xP,this.seriesLayoutBy=t.seriesLayoutBy||bP,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return jO(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function qO(t){var e,n;return l_(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function ZO(t){return new KO(t)}var KO=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},nE=function(){function t(t,e){if(!s_(e)){MM("")}this._opFn=eE[t],this._rvalFloat=_M(e)}return t.prototype.evaluate=function(t){return s_(t)?this._opFn(t,this._rvalFloat):this._opFn(_M(t),this._rvalFloat)},t}(),iE=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=s_(t)?t:_M(t),i=s_(e)?e:_M(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=o_(t),s=o_(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),rE=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_M(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=_M(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function oE(t,e){return"eq"===t||"ne"===t?new rE("eq"===t,e):L_(eE,t)?new nE(t,e):null}var aE=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return JO(t,e)},t}();function sE(t){if(!pE(t.sourceFormat)){MM("")}return t.data}function lE(t){var e=t.sourceFormat,n=t.data;if(!pE(e)){MM("")}if(e===vP){for(var i=[],r=0,o=n.length;r65535?vE:mE}function wE(t,e,n,i,r){var o=xE[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=$y(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&_<=c||isNaN(_))&&(a[s++]=p),p++}d=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g=u&&_<=c||isNaN(_))&&(x>=m&&x<=y||isNaN(x))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===r)for(g=0;g=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(bE(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;dn&&(n=i,r=I)}M>0&&Mu-p&&(s=u-p,a.length=s);for(var f=0;fc[1]&&(c[1]=v),h[d++]=m}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return JO(t[i],this._dimensions[i])}fE={arrayRows:t,objectRows:function(t,e,n,i){return JO(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return JO(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),ME=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,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 t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(AE(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=c_(a=o.get("data",!0))?_P:gP,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=g_(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=g_(c.sourceHeader,h.sourceHeader),f=g_(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||f?[TO(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[TO(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&CE("")}var o,a=[],s=[];return Ky(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||CE(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e,n){var i=TM(t),r=i.length;r||MM("");for(var o=0,a=r;o1||n>0&&!t.noHeader;return Ky(t.blocks,(function(t){var n=RE(t);n>=e&&(e=n+ +(i&&(!n||OE(t)&&!t.noHeader)))})),e}return 0}function NE(t,e,n,i){var r,o=e.noHeader,a=(r=RE(e),{html:kE[r],richText:LE[r]}),s=[],l=e.blocks||[];__(!l||i_(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(L_(c,u)){var h=new iE(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}Ky(l,(function(n,r){var o=e.valueFormatter,l=EE(n)(o?jy(jy({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):VE(s.join(""),o?n:a.html);if(o)return d;var p=jL(e.header,"ordinal",t.useUTC),f=DE(i,t.renderMode).nameStyle;return"richText"===t.renderMode?FE(t,p,f)+a.richText+d:VE('
'+ux(p)+"
"+d,n)}function BE(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return $y(t=i_(t)?t:[t],(function(t,e){return jL(t,i_(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":jL(l,"ordinal",u),p=e.valueType,f=a?[]:c(e.value),g=!s||!o,v=!s&&o,m=DE(i,r),y=m.nameStyle,_=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":FE(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(i_(e)?e.join(" "):e,o)}(t,f,g,v,_)):VE((s?"":h)+(o?"":function(t,e,n){return''+ux(t)+""}(d,!s,y))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=i_(t)?t:[t],''+$y(t,(function(t){return ux(t)})).join("  ")+""}(f,g,v,_)),n)}}function zE(t,e,n,i,r,o){if(t)return EE(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function VE(t,e){return'
'+t+'
'}function FE(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function GE(t,e){return ZL(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function HE(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var WE=function(){function t(){this.richTextStyles={},this._nextStyleNameId=bM()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=o_(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return o_(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};i_(e)?Ky(e,(function(t){return jy(n,t)})):jy(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function UE(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=i_(h),p=GE(o,a);if(c>1||d&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=Jy(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(PE("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Ky(i,(function(t){c(jO(o,n,t),t)})):Ky(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=jO(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var v=BM(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return PE("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[PE("nameValue",{markerType:"item",markerColor:p,name:_,noName:!x_(_),value:e,valueType:n})].concat(i||[])})}var jE=FM();function YE(t,e){return t.getName(e)||t.getId(e)}var XE="__universalTransitionEnabled",qE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return my(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=ZO({count:KE,reset:$E}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(jE(this).sourceManager=new ME(this)).prepareSource();var i=this.getInitialData(t,n);QE(i,this),this.dataTask.context.data=i,jE(this).dataBeforeProcessed=i,ZE(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rP(this),i=n?aP(t):{},r=this.subType;cP.hasClass(r)&&(r+="Series"),Wy(t,e.getTheme().get(this.subType)),Wy(t,this.getDefaultOption()),DM(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&oP(t,i,n)},e.prototype.mergeOption=function(t,e){t=Wy(this.option,t,!0),this.fillDataTextStyle(t.data);var n=rP(this);n&&oP(this.option,t,n);var i=jE(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);QE(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,jE(this).dataBeforeProcessed=r,ZE(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!c_(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=NP.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[YE(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[XE])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){l_(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return cP.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(cP);function ZE(t){var e=t.name;BM(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Ky(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function KE(t){return t.model.getRawData().count()}function $E(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),JE}function JE(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function QE(t,e){Ky(T_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,n_(tR,e))}))}function tR(t,e){var n=eR(t);return n&&n.setOutputEnd((e||this).count()),e}function eR(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}qy(qE,XO),qy(qE,NP),eI(qE,cP);const nR=qE;var iR=function(){function t(){this.group=new KS,this.uid=nL("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();tI(iR),oI(iR);const rR=iR;function oR(){var t=FM();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var aR=FM(),sR=oR(),lR=function(){function t(){this.group=new KS,this.uid=nL("viewChart"),this.renderTask=ZO({plan:hR,reset:dR}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&cR(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&cR(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Sk(this.group,t)},t.markUpdateMethod=function(t,e){aR(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function uR(t,e,n){t&&gT(t)&&("emphasis"===e?ZC:KC)(t,n)}function cR(t,e,n){var i=VM(t,e),r=e&&null!=e.highlightKey?function(t){var e=mC[t];return null==e&&vC<=32&&(e=mC[t]=vC++),e}(e.highlightKey):null;null!=i?Ky(TM(i),(function(e){uR(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){uR(t,n,r)}))}function hR(t){return sR(t.model)}function dR(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&aR(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),pR[l]}tI(lR),oI(lR);var pR={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)}}};const fR=lR;var gR="\0__throttleOriginMethod",vR="\0__throttleRate",mR="\0__throttleType";function yR(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function _R(t,e,n,i){var r=t[e];if(r){var o=r[gR]||r,a=r[mR];if(r[vR]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=yR(o,n,"debounce"===i))[gR]=o,r[mR]=i,r[vR]=n}return r}}function xR(t,e){var n=t[e];n&&n[gR]&&(n.clear&&n.clear(),t[e]=n[gR])}var bR=FM(),wR={itemStyle:aI(Kk,!0),lineStyle:aI(Xk,!0)},SR={lineStyle:"stroke",itemStyle:"fill"};function MR(t,e){var n=t.visualStyleMapper||wR[e];return n||(console.warn("Unknown style type '"+e+"'."),wR.itemStyle)}function IR(t,e){var n=t.visualDrawType||SR[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var AR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=MR(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=IR(t,i),l=o[s],u=r_(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||r_(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||r_(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=jy({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},CR=new tL,TR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=MR(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){CR.option=n[i];var a=r(CR);jy(t.ensureUniqueItemVisual(e,"style"),a),CR.option.decal&&(t.setItemVisual(e,"decal",CR.option.decal),CR.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},DR={performRawSeries:!0,overallReset:function(t){var e=C_();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),bR(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=bR(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=IR(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},kR=Math.PI;var LR=function(){function t(t,e,n,i){this._stageTaskMap=C_(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=C_();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Ky(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});__(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Ky(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=C_(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||ZO({plan:NR,reset:BR,count:FR}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||ZO({reset:PR});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=C_(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,ZO({reset:OR,onDirty:RR})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}__(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,Ky(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return r_(t)&&(t={overallReset:t,seriesType:GR(t)}),t.uid=nL("stageHandler"),e&&(t.visualType=e),t},t}();function PR(t){t.overallReset(t.ecModel,t.api,t.payload)}function OR(t){return t.overallProgress&&ER}function ER(){this.agent.dirty(),this.getDownstream().dirty()}function RR(){this.agent&&this.agent.dirty()}function NR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function BR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=TM(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$y(e,(function(t,e){return VR(e)})):zR}var zR=VR(0);function VR(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),nN=["symbol","symbolSize","symbolRotate","symbolOffset"],iN=nN.concat(["symbolKeepAspect"]),rN={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&CN(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=CN(i)?i:0,r=CN(r)?r:1,o=CN(o)?o:0,a=CN(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:s_(e)?[e]:i_(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=$y(r,(function(t){return t/a})),o/=a)}return[r,o]}var PN=new fA(!0);function ON(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function EN(t){return"string"==typeof t&&"none"!==t}function RN(t){var e=t.fill;return null!=e&&"none"!==e}function NN(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function BN(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function zN(t,e,n){var i=hI(e.image,e.__image,n);if(pI(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*O_),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var VN=["shadowBlur","shadowOffsetX","shadowOffsetY"],FN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function GN(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){qN(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?CI.opacity:a}(i||e.blend!==n.blend)&&(o||(qN(t,r),o=!0),t.globalCompositeOperation=e.blend||CI.blend);for(var s=0;s0&&t.unfinished);t.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(t,e,n){if(!this[cB])if(this._disposed)this.id;else{var i,r,o;if(l_(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[cB]=!0,!this._model||e){var a=new QP(this._api),s=this._theme,l=this._model=new UP;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},UB);var u={seriesTransition:o,optionChanged:!0};if(n)this[hB]={silent:i,updateParams:u},this[cB]=!1,this.getZr().wakeUp();else{try{yB(this),bB.update.call(this,null,u)}catch(c){throw this[hB]=null,this[cB]=!1,c}this._ssr||this._zr.flush(),this[hB]=null,this[cB]=!1,IB.call(this,i),AB.call(this,i)}}},e.prototype.setTheme=function(){},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||xy.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(xy.svgSupported){var t=this._zr;return Ky(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Ky(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Ky(i,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(ZB[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Ky(qB,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Hy(t)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=h)-(a*=h),p=(u*=h)-(s*=h),f=Cy.createCanvas(),g=tM(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var v="";return Ky(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new $A({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Ky(c,(function(t){var e=new WA({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return wB(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return wB(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Ky(HM(this._model,t),(function(t,i){i.indexOf("Models")>=0&&Ky(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;this.id},e.prototype.getVisual=function(t,e){var n=HM(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?aN(i,r,e):sN(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;Ky(FB,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&hN(o,(function(t){var e=fC(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=jy({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),Ky(HB,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),Ky(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(cN("map","selectchanged",e,i,t),cN("pie","selectchanged",e,i,t)):"select"===t.fromAction?(cN("map","selected",e,i,t),cN("pie","selected",e,i,t)):"unselect"===t.fromAction&&(cN("map","unselected",e,i,t),cN("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&XM(this.getDom(),$B,"");var t=this,e=t._api,n=t._model;Ky(t._componentsViews,(function(t){t.dispose(n,e)})),Ky(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete qB[t.id]}},e.prototype.resize=function(t){if(!this[cB])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[hB]&&(null==i&&(i=this[hB].silent),n=!0,this[hB]=null),this[cB]=!0;try{n&&yB(this),bB.update.call(this,{type:"resize",animation:jy({duration:0},t&&t.animation)})}catch(r){throw this[cB]=!1,r}this[cB]=!1,IB.call(this,i),AB.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(l_(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),XB[t]){var n=XB[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=jy({},t);return e.type=HB[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(l_(e)||(e={silent:!!e}),GB[t.type]&&this._model)if(this[cB])this._pendingActions.push(t);else{var n=e.silent;MB.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&xy.browser.weChat&&this._throttledZrFlush(),IB.call(this,n),AB.call(this,n)}},e.prototype.updateLabelLayout=function(){oB.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(XD(t))return;if(t instanceof NA&&function(t){var e=yC(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}yB=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),_B(t,!0),_B(t,!1),e.plan()},_B=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!xy.node&&!xy.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),oB.trigger("series:afterupdate",e,i,s)},EB=function(t){t[dB]=!0,t.getZr().wakeUp()},RB=function(t){t[dB]&&(t.getZr().storage.traverse((function(t){XD(t)||e(t)})),t[dB]=!1)},PB=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return my(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ZC(e,n),EB(t)},n.prototype.leaveEmphasis=function(e,n){KC(e,n),EB(t)},n.prototype.enterBlur=function(e){$C(e),EB(t)},n.prototype.leaveBlur=function(e){JC(e),EB(t)},n.prototype.enterSelect=function(e){QC(e),EB(t)},n.prototype.leaveSelect=function(e){tT(e),EB(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(YP))(t)},OB=function(t){function e(t,e){for(var n=0;n=0)){oz.push(n);var o=YR.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function sz(t,e){XB[t]=e}var lz=function(t){var e=(t=Hy(t)).type;e||MM("");var n=e.split(":");2!==n.length&&MM("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,hE.set(e,t)};rz(sB,AR),rz(lB,TR),rz(lB,DR),rz(sB,rN),rz(lB,oN),rz(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=eB(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=eB(r,e)}}))})),tz(_O),ez(900,(function(t){var e=C_();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(xO)})),sz("default",(function(t,e){Yy(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new KS,i=new $A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new pC({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 $A({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new CD({shape:{startAngle:-kR/2,endAngle:-kR/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*kR/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*kR/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),iz({type:CC,event:CC,update:CC},P_),iz({type:TC,event:TC,update:TC},P_),iz({type:DC,event:DC,update:DC},P_),iz({type:kC,event:kC,update:kC},P_),iz({type:LC,event:LC,update:LC},P_),QB("light",qR),QB("dark",tN);var uz=[],cz={registerPreprocessor:tz,registerProcessor:ez,registerPostInit:function(t){nz("afterinit",t)},registerPostUpdate:function(t){nz("afterupdate",t)},registerUpdateLifecycle:nz,registerAction:iz,registerCoordinateSystem:function(t,e){ZP.register(t,e)},registerLayout:function(t,e){az(jB,t,e,1e3,"layout")},registerVisual:rz,registerTransform:lz,registerLoading:sz,registerMap:function(t,e,n){var i=function(t){return aB[t]}("registerMap");i&&i(t,e,n)},registerImpl:function(t,e){aB[t]=e},PRIORITY:uB,ComponentModel:cP,ComponentView:rR,SeriesModel:nR,ChartView:fR,registerComponentModel:function(t){cP.registerClass(t)},registerComponentView:function(t){rR.registerClass(t)},registerSeriesModel:function(t){nR.registerClass(t)},registerChartView:function(t){fR.registerClass(t)},registerSubTypeDefaulter:function(t,e){cP.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){!function(t,e){$S[t]=e}(t,e)}};function hz(t){i_(t)?Ky(t,(function(t){hz(t)})):Xy(uz,t)>=0||(uz.push(t),r_(t)&&(t={install:t}),t.install(cz))}function dz(t){return null==t?0:t.length||1}function pz(t){return t}var fz=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||pz,this._newKeyGetter=i||pz,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d1)for(var a=0;a30}var Cz,Tz,Dz,kz,Lz,Pz,Oz,Ez=l_,Rz=$y,Nz="undefined"==typeof Int32Array?Array:Int32Array,Bz=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],zz=["_approximateExtent"],Vz=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;Sz(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===gP&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(i_(r=this.getVisual(e))?r=r.slice():Ez(r)&&(r=jy({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ez(e)?jy(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ez(t)?jy(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?jy(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;gC(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Ky(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Rz(this.dimensions,this._getDimInfo,this),this.hostModel)),Lz(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];r_(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(m_(arguments)))})},t.internalField=(Cz=function(t){var e=t._invertedIndicesMap;Ky(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new Nz(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();const Fz=Vz;function Gz(t,e){CO(t)||(t=DO(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=C_(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Ky(e,(function(t){var e;l_(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Az(a),l=i===t.dimensionsDefine,u=l?Iz(t):Mz(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=C_(c),d=new yE(a),p=0;p0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new wz({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Hz(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Wz=function(t){this.coordSysDims=[],this.axisMap=C_(),this.categoryAxisMap=C_(),this.coordSysName=t};var Uz={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",UM).models[0],o=t.getReferringComponents("yAxis",UM).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),jz(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),jz(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",UM).models[0];e.coordSysDims=["single"],n.set("single",r),jz(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",UM).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),jz(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),jz(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Ky(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),jz(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function jz(t){return"category"===t.get("type")}function Yz(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Sz(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Ky(i,(function(t,e){o_(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;Ky(i,(function(t){t.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Xz(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qz(t,e){return Xz(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Zz(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=DO(t)):o=(i=r.getSource()).sourceFormat===gP;var a=function(t){var e=t.get("coordinateSystem"),n=new Wz(e),i=Uz[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=ZP.get(i);return e&&e.coordSysDims&&(n=$y(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=yz(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=r_(l)?l:l?n_(IP,s,e):null,c=Gz(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&Ky(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),p=Yz(e,{schema:c,store:d}),f=new Fz(c,e);f.setCalculationInfo(p);var g=null!=h&&function(t){if(t.sourceFormat===gP){var e=function(t){var e=0;for(;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();oI(Kz);const $z=Kz;var Jz=0;function Qz(t){return l_(t)&&null!=t.value?t.value:t+""}const tV=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jz}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&$y(i,Qz);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!o_(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=C_(this.categories))},t}();function eV(t){return"interval"===t.type||"log"===t.type}function nV(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=vM(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=rV(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),oV(t,0,e),oV(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[oM(Math.ceil(t[0]/a)*a,s),oM(Math.floor(t[1]/a)*a,s)],t),r}function iV(t){var e=Math.pow(10,gM(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,oM(n*e)}function rV(t){return sM(t)+2}function oV(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function aV(t,e){return t>=e[0]&&t<=e[1]}function sV(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function lV(t,e){return t*(e[1]-e[0])+e[0]}var uV=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new tV({})),i_(i)&&(i=new tV({categories:$y(i,(function(t){return l_(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return my(e,t),e.prototype.parse=function(t){return null==t?NaN:o_(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return aV(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return sV(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(lV(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}($z);$z.registerClass(uV);const cV=uV;var hV=oM,dV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return my(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return aV(t,this._extent)},e.prototype.normalize=function(t){return sV(t,this._extent)},e.prototype.scale=function(t){return lV(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rV(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:hV(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&c0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Ky(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=rM(t.get("barWidth"),i),p=rM(t.get("barMaxWidth"),i),f=rM(t.get("barMinWidth")||(AV(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:_V(r),stackId:yV(t)})})),wV(n)}function wV(t){var e={};Ky(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Ky(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=t_(i).length;o=Math.max(35-4*a,15)+"%"}var s=rM(o,r),l=rM(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Ky(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;Ky(i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;Ky(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function SV(t,e){var n=xV(t,e),i=bV(n);Ky(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=yV(t),o=i[_V(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function MV(t){return{seriesType:t,plan:oR(),reset:function(t){if(IV(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=Xz(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),p=AV(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=p&&vV(3*r),u=p&&s&&vV(3*r),y=p&&vV(r),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(c?g:o,i),M=b.get(a,i),I=d,A=void 0;c&&(A=+S-b.get(o,i));var C=void 0,T=void 0,D=void 0,k=void 0;if(h){var L=n.dataToPoint([S,M]);if(c)I=n.dataToPoint([A,M])[0];C=I,T=L[1]+m,D=L[0]-I,k=v,Math.abs(D)0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(i_(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return IL(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=bL,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&m<=i[1]&&h++)}var y=(i[1]-i[0])/e;if(h>1.5*y&&d>y/1.5)break;if(u.push(g),h>y||t===o[p])break}c=[]}}var _=Qy($y(u,(function(t){return Qy(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],b=_.length-1;for(p=0;p<_.length;++p)for(var w=_[p],S=0;Sn&&(this._approxInterval=n);var o=TV.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function kV(t){return(t/=30*gL)>6?6:t>3?3:t>2?2:1}function LV(t){return(t/=fL)>12?12:t>6?6:t>3.5?4:t>2?2:1}function PV(t,e){return(t/=e?pL:dL)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function OV(t){return vM(t,!0)}function EV(t,e,n){var i=new Date(t);switch(SL(e)){case"year":case"month":i[NL(n)](0);case"day":i[BL(n)](1);case"hour":i[zL(n)](0);case"minute":i[VL(n)](0);case"second":i[FL(n)](0),i[GL(n)](0)}return i.getTime()}$z.registerClass(CV);const RV=CV;var NV=$z.prototype,BV=pV.prototype,zV=oM,VV=Math.floor,FV=Math.ceil,GV=Math.pow,HV=Math.log,WV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new pV,e._interval=0,e}return my(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return $y(BV.getTicks.call(this,t),(function(t){var e=t.value,r=oM(GV(this.base,e));return r=e===n[0]&&this._fixMin?jV(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?jV(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=HV(this.base);t=HV(Math.max(0,t))/n,e=HV(Math.max(0,e))/n,BV.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=NV.getExtent.call(this);e[0]=GV(t,e[0]),e[1]=GV(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=jV(e[0],n[0])),this._fixMax&&(e[1]=jV(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=HV(t[0])/HV(e),t[1]=HV(t[1])/HV(e),NV.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,gM(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[oM(FV(e[0]/r)*r),oM(VV(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){BV.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return aV(t=HV(t)/HV(this.base),this._extent)},e.prototype.normalize=function(t){return sV(t=HV(t)/HV(this.base),this._extent)},e.prototype.scale=function(t){return t=lV(t,this._extent),GV(this.base,t)},e.type="log",e}($z),UV=WV.prototype;function jV(t,e){return zV(t,sM(e))}UV.getMinorTicks=BV.getMinorTicks,UV.getLabel=BV.getLabel,$z.registerClass(WV);const YV=WV;var XV=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[ZV[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[qV[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),qV={min:"_determinedMin",max:"_determinedMax"},ZV={min:"_dataMin",max:"_dataMax"};function KV(t,e,n){var i=t.rawExtentInfo;return i||(i=new XV(t,e,n),t.rawExtentInfo=i,i)}function $V(t,e){return null==e?null:p_(e)?NaN:t.parse(e)}function JV(t,e){var n=t.type,i=KV(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=xV("bar",a),l=!1;if(Ky(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=bV(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[_V(e)];return null!=i&&null!=n?i[yV(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Ky(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;Ky(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function QV(t,e){var n=e,i=JV(t,n),r=i.extent,o=n.get("splitNumber");t instanceof YV&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function tF(t,e){if(e=e||t.get("type"))switch(e){case"category":return new cV({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new RV({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new($z.getClass(e)||pV)}}function eF(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):o_(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):r_(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(nF(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function nF(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function iF(t){var e=t.get("interval");return null==e?"auto":e}function rF(t){return"category"===t.type&&0===iF(t.getLabelModel())}function oF(t,e){var n={};return Ky(t.mapDimensionsAll(e),(function(e){n[qz(t,e)]=!0})),t_(n)}var aF=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),sF=1e-8;function lF(t,e){return Math.abs(t-e)n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function xF(t,e){return $y(Qy((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),Ky(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=_F(r,i,n);break;case"Polygon":case"MultiLineString":yF(r,i,n);break;case"MultiPolygon":Ky(r,(function(t,e){return yF(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new fF(o[0],o.slice(1)));break;case"MultiPolygon":Ky(i.coordinates,(function(t){t[0]&&r.push(new fF(t[0],t.slice(1)))}));break;case"LineString":r.push(new gF([i.coordinates]));break;case"MultiLineString":r.push(new gF(i.coordinates))}var a=new vF(n[e||"name"],r,n.cp);return a.properties=n,a}))}var bF=FM();function wF(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=MF(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=eF(t);return{labels:$y(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function SF(t,e){return"category"===t.type?function(t,e){var n,i,r=IF(t,"ticks"),o=iF(e),a=AF(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r_(o))n=DF(t,o,!0);else if("auto"===o){var s=MF(t,t.getLabelModel());i=s.labelCategoryInterval,n=$y(s.labels,(function(t){return t.tickValue}))}else n=TF(t,i=o,!0);return CF(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:$y(t.scale.getTicks(),(function(t){return t.value}))}}function MF(t,e){var n,i,r=IF(t,"labels"),o=iF(e),a=AF(r,o);return a||(r_(o)?n=DF(t,o):(i="auto"===o?function(t){var e=bF(t).autoInterval;return null!=e?e:bF(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=TF(t,i)),CF(r,o,{labels:n,labelCategoryInterval:i}))}function IF(t,e){return bF(t)[e]||(bF(t)[e]=[])}function AF(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=rF(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function DF(t,e,n){var i=t.scale,r=eF(t),o=[];return Ky(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var kF=[0,1],LF=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return lM(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&PF(n=n.slice(),i.count()),iM(t,kF,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&PF(n=n.slice(),i.count());var r=iM(t,n,kF,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=$y(SF(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;Ky(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=oM(t),e=oM(e),c?t>e:t0&&t<100||(t=5),$y(this.scale.getMinorTicks(t),(function(t){return $y(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return wF(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(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()}}(t),n=eF(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f,g,v=PS(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var m=d/c,y=p/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=bF(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}(this)},t}();function PF(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const OF=LF;var EF=2*Math.PI,RF=fA.CMD,NF=["top","right","bottom","left"];function BF(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function zF(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%EF<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=_A(r),r=_A(d)}else i=_A(i),r=_A(r);i>r&&(r+=EF);var p=Math.atan2(s,a);if(p<0&&(p+=EF),p>=i&&p<=r||p+EF>=i&&p+EF<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(m-s)*(m-s);return y<_?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(_))}function VF(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function FF(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var GF=[];function HF(t,e,n){var i=FF(e.x,e.y,e.width,e.height,t.x,t.y,GF);return n.set(GF[0],GF[1]),i}function WF(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p0){e=e/180*Math.PI,UF.fromArray(t[0]),jF.fromArray(t[1]),YF.fromArray(t[2]),Px.sub(XF,UF,jF),Px.sub(qF,YF,jF);var n=XF.len(),i=qF.len();if(!(n<.001||i<.001)){XF.scale(1/n),qF.scale(1/i);var r=XF.dot(qF);if(Math.cos(e)1&&Px.copy($F,YF),$F.toArray(t[1])}}}}function QF(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,UF.fromArray(t[0]),jF.fromArray(t[1]),YF.fromArray(t[2]),Px.sub(XF,jF,UF),Px.sub(qF,YF,jF);var i=XF.len(),r=qF.len();if(!(i<.001||r<.001))if(XF.scale(1/i),qF.scale(1/r),XF.dot(e)=a)Px.copy($F,YF);else{$F.scaleAndAdd(qF,o/Math.tan(Math.PI/2-s));var l=YF.x!==jF.x?($F.x-jF.x)/(YF.x-jF.x):($F.y-jF.y)/(YF.y-jF.y);if(isNaN(l))return;l<0?Px.copy($F,jF):l>1&&Px.copy($F,YF)}$F.toArray(t[1])}}}function tG(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function eG(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=U_(i[0],i[1]),o=U_(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Y_([],i[1],i[0],a/r),l=Y_([],i[1],i[2],a/o),u=Y_([],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],i[2][0],i[2][1])}else for(var c=1;c0&&o&&x(-c/a,0,a);var f,g,v=t[0],m=t[a-1];return y(),f<0&&b(-f,.8),g<0&&b(g,.8),y(),_(f,g,1),_(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[e]-i,g=r-m.rect[e]-m.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function x(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){x(-(o[l-1]*h),l,a)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}function aG(t,e,n,i){return oG(t,"y","height",e,n,i)}function sG(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Hx(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(p.oldLayoutSelect),Xy(u,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),jD(n,s,e,a)}else if(n.attr(s),!Bk(n).valueAnimation){var c=g_(n.style.opacity,1);n.style.opacity=0,YD(n,{style:{opacity:c}},e,a)}if(p.oldLayout=s,n.states.select){var h=p.oldLayoutSelect={};fG(h,s,gG),fG(h,n.states.select,gG)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};fG(d,s,gG),fG(d,n.states.emphasis,gG)}Vk(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(p=pG(i)).oldLayout;var p,f={points:i.shape.points};r?(i.attr({shape:r}),jD(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,YD(i,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}();const mG=vG;var yG=FM();var _G=Math.sin,xG=Math.cos,bG=Math.PI,wG=2*Math.PI,SG=180/bG,MG=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=yw(c-wG)||(u?l>=wG:-l>=wG),d=l>0?l%wG:l%wG+wG,p=!1;p=!!h||!yw(c)&&d>=bG==!!u;var f=t+n*xG(o),g=e+i*_G(o);this._start&&this._add("M",f,g);var v=Math.round(r*SG);if(h){var m=1/this._p,y=(u?1:-1)*(wG-m);this._add("A",n,i,v,1,+u,t+n*xG(o+y),e+i*_G(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var _=t+n*xG(a),x=e+i*_G(a);this._add("A",n,i,v,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h"}(r,o)+("style"!==r?ux(a):a||"")+(i?""+n+$y(i,(function(e){return t(e)})).join(n)+n:"")+function(t){return""}(r)}(t)}function zG(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function VG(t,e,n,i){return NG("svg","root",{width:t,height:e,xmlns:LG,"xmlns:xlink":PG,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var FG={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},GG="transform-origin";function HG(t,e,n){var i=jy({},t.shape);jy(i,e),t.buildPath(n,i);var r=new IG;return r.reset(Tw(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function WG(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[GG]=n+"px "+i+"px")}var UG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function jG(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function YG(t){return o_(t)?FG[t]?"cubic-bezier("+FG[t]+")":Ub(t)?t:"":""}function XG(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof DD){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(Ky(o,(function(t){var e=zG(n.zrId);e.animation=!0,XG(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=t_(o),u=l.length;if(u){var c=o[r=l[u-1]];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=jG(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length)return jG(c,n)+" "+r[0]+" both"}for(var v in l){(s=g(l[v]))&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}var qG=Math.round;function ZG(t){return t&&o_(t.src)}function KG(t){return t&&r_(t.toDataURL)}function $G(t,e,n,i){kG((function(r,o){var a="fill"===r||"stroke"===r;a&&Aw(o)?sH(e,t,r,i):a&&Sw(o)?lH(n,t,r,i):t[r]=o}),e,n,!1),function(t,e,n){var i=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(i)){var r=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=vw(i.shadowColor),f=p.opacity,g=p.color,v=d/2/l+" "+d/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=NG("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[NG("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:v,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=Cw(a)}}(n,t,i)}function JG(t){return yw(t[0]-1)&&yw(t[1])&&yw(t[2])&&yw(t[3]-1)}function QG(t,e,n){if(e&&(!function(t){return yw(t[4])&&yw(t[5])}(e)||!JG(e))){var i=n?10:1e4;t.transform=JG(e)?"translate("+qG(e[4]*i)/i+" "+qG(e[5]*i)/i+")":function(t){return"matrix("+_w(t[0])+","+_w(t[1])+","+_w(t[2])+","+_w(t[3])+","+xw(t[4])+","+xw(t[5])+")"}(e)}}function tH(t,e,n){for(var i=t.points,r=[],o=0;ol?IH(t,null==n[h+1]?null:n[h+1].elm,n,s,h):AH(t,e,a,l))}(n,i,r):bH(r)?(bH(t.text)&&vH(n,""),IH(n,null,r,0,r.length-1)):bH(i)?AH(n,i,0,i.length-1):bH(t.text)&&vH(n,""):t.text!==e.text&&(bH(i)&&AH(n,i,0,i.length-1),vH(n,e.text)))}var DH=0,kH=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=jy({},n),this.root=t,this._id="zr"+DH++,this._oldVNode=VG(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=RG("svg");CH(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(SH(t,e))TH(t,e);else{var n=t.elm,i=fH(n);MH(e),null!==i&&(hH(i,e.elm,gH(n)),AH(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return aH(t,zG(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=zG(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=NG("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Aw(n))sH({fill:n},r.attrs,"fill",i);else if(Sw(n))lH({style:{fill:n},dirty:P_,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=vw(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=NG("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=$y(t_(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(NG("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=$y(t_(t),(function(e){return e+r+$y(t_(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=$y(t_(e),(function(t){return"@keyframes "+t+r+$y(t_(e[t]),(function(n){return n+r+$y(t_(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var c=NG("style","stl",{},[],u);o.push(c)}}return VG(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},BG(this.renderToVNode({animation:g_(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:g_(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var v=f+1;v=a)}}for(var c=this.__startIndex;c15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?BH:0),this._needsManuallyCompositing),u.__builtin__||Gy("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),s.__dirty&lb&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Ky(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Wy(n[t],e,!0):n[t]=e;for(var i=0;i-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},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:4,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 GH(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=jO(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var WH=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return my(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=MN(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=UH,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ZC(this.childAt(0))},e.prototype.downplay=function(){KC(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):jD(d,h,a,n),$D(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,YD(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=Dk(v),d=m.getShallow("scale"),p=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var _=AN(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),p&&f.attr("cursor",p);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof WA){var w=f.style;f.useStyle(jy({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(jy({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;Tk(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):GH(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=f.ensureState("emphasis");A.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;A.scaleX=this._sizeX*C,A.scaleY=this._sizeY*C,this.setSymbolScale(1),uT(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=fC(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&qD(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();qD(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return IN(t.getItemVisual(e,"symbolSize"))},e}(KS);function UH(t,e){this.parent.drift(t,e)}const jH=WH;function YH(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function XH(t){return null==t||l_(t)||(t={isIgnore:t}),t||{}}function qH(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Dk(e),cursorStyle:e.get("cursor")}}var ZH=function(){function t(t){this.group=new KS,this._SymbolCtor=t||jH}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=XH(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=qH(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(YH(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(YH(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):jD(d,v,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qH(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=XH(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=$y(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return Xz(e,h[0])&&(d=!0,h[0]=p),Xz(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function JH(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var QH=Math.min,tW=Math.max;function eW(t,e){return isNaN(t)||isNaN(e)}function nW(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,v=0;v=r||g<0)break;if(eW(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v=i||eW(w,S))p=m,f=y;else{A=w-u,C=S-c;var k=m-u,L=w-m,P=y-c,O=S-y,E=void 0,R=void 0;if("x"===s){var N=A>0?1:-1;p=m-N*(E=Math.abs(k))*a,f=y,T=m+N*(R=Math.abs(L))*a,D=y}else if("y"===s){var B=C>0?1:-1;p=m,f=y-B*(E=Math.abs(P))*a,T=m,D=y+B*(R=Math.abs(O))*a}else E=Math.sqrt(k*k+P*P),p=m-A*a*(1-(I=(R=Math.sqrt(L*L+O*O))/(R+E))),f=y-C*a*(1-I),D=y+C*a*I,T=QH(T=m+A*a*I,tW(w,m)),D=QH(D,tW(S,y)),T=tW(T,QH(w,m)),f=y-(C=(D=tW(D,QH(S,y)))-y)*E/R,p=QH(p=m-(A=T-m)*E/R,tW(u,m)),f=QH(f,tW(c,y)),T=m+(A=m-(p=tW(p,QH(u,m))))*R/E,D=y+(C=y-(f=tW(f,QH(c,y))))*R/E}t.bezierCurveTo(h,d,p,f,m,y),h=T,d=D}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var iW=function(){this.smooth=0,this.smoothConstraint=!0},rW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return my(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iW},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&eW(n[2*r-2],n[2*r-1]);r--);for(;i=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],p=r[l++],f=r[l++];var m=a?Pb(n,u,h,p,t,s):Pb(i,c,d,f,t,s);if(m>0)for(var y=0;y=0){v=a?kb(i,c,d,f,_):kb(n,u,h,p,_);return a?[t,v]:[v,t]}}n=p,i=f}}},e}(NA),oW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e}(iW),aW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return my(e,t),e.prototype.getDefaultShape=function(){return new oW},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&eW(n[2*o-2],n[2*o-1]);o--);for(;r=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=sw(e[r]),s=sw(e[o]),l=i-r,u=pw([Kb(ew(a[0],s[0],l)),Kb(ew(a[1],s[1],l)),Kb(ew(a[2],s[2],l)),$b(ew(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function mW(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Ky(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function yW(t,e){return[t[2*e],t[2*e+1]]}function _W(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=$y(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=vW(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,v=g-f;if(v<.001)return"transparent";Ky(d,(function(t){t.offset=(t.coord-f)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new LD(0,0,0,0,d,!0);return m[r]=f,m[r+"2"]=g,m}}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&h.type===r.type&&A===this._step){m&&!f?f=this._newPolygon(u,x):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ZL(C));var T=g.getClipPath();if(T)YD(T,{shape:xW(this,r,!1,t).shape},t);else g.setClipPath(xW(this,r,!0,t));b&&d.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),hW(this._stackedOnPoints,x)&&hW(this._points,u)||(v?this._doUpdateAnimation(a,x,r,n,A,y,w):(A&&(u=gW(u,r,A,w),x&&(x=gW(x,r,A,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else b&&d.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,I),A&&(u=gW(u,r,A,w),x&&(x=gW(x,r,A,w))),p=this._newPolyline(u),m?f=this._newPolygon(u,x):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ZL(C)),g.setClipPath(xW(this,r,!0,t));var D=t.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled");(p.useStyle(Yy(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),pT(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);fC(p).seriesIndex=t.seriesIndex,uT(p,k,L,P);var O=fW(t.get("smooth")),E=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:E,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(Yy(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(N=fW(R.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:N,smoothMonotone:E,connectNulls:w}),pT(f,t,"areaStyle"),fC(f).seriesIndex=t.seriesIndex,uT(f,k,L,P)}var B=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=A,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){fC(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=VM(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new jH(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fR.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=VM(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fR.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;UC(this._polyline,t),e&&UC(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new rW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new aW({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");r_(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=r_(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var m=n;i?(d=m.x,p=m.x+m.width,f=t.x):(d=m.y+m.height,p=m.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var _=r_(u)?u(o):l*y+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(_W(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new pC({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(Tk(o,Dk(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?HH(r,n):GH(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?p:0)*(v?-1:1),x=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!h){var A=yW(u,S[0]);s.attr({x:A[0]+_,y:A[1]+x}),r&&(I=c.getRawValue(S[0]))}else{(A=l.getPointOn(y,b))&&s.attr({x:A[0]+_,y:A[1]+x});var C=c.getRawValue(S[0]),T=c.getRawValue(S[1]);r&&(I=ZM(n,d,C,T,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;A=yW(u,D);r&&(I=c.getRawValue(D)),s.attr({x:A[0]+_,y:A[1]+x})}if(r){var k=Bk(s);"function"==typeof k.setLabelText&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=$H(r,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||l&&pW(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),jD(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),jD(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;o_(r)?p=MW[r]:r_(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,IW))}}}}}var CW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.getInitialData=function(t,e){return Zz(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)Ky(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,h=0;ha){u=(d+l)/2;break}1===h&&(c=p-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}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"},e}(nR);nR.registerClass(CW);const TW=CW;const DW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.getInitialData=function(){return Zz(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=iL(TW.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(TW);var kW=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};const LW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return my(e,t),e.prototype.getDefaultShape=function(){return new kW},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){KD(e,t,fC(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(fR),zW={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=RW(e.x,t.x),s=NW(e.x+e.width,r),l=RW(e.y,t.y),u=NW(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=NW(e.r,t.r),o=RW(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},VW={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new $A({shape:jy({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?LW:oD,c=new u({shape:i,z2:1});c.name="item";var h,d,p=YW(r);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===LW}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return BS(t,e,n);var r=h(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=d?Math.abs(u-c)/2:0,y=Math.cos,_=Math.sin,x=s+u*y(f),b=l+u*_(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*y(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*y(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+p*y(f)+PW(f,o+m,!1),b=l+p*_(f)+OW(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*y(f)+PW(f,-o+m,!1),b=l+p*_(f)+OW(f,-o+m,!1),w="left",S="middle";break;case"middle":x=s+p*y(v),b=l+p*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*y(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*y(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+p*y(g)+PW(g,o+m,!0),b=l+p*_(g)+OW(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*y(g)+PW(g,-o+m,!0),b=l+p*_(g)+OW(g,-o+m,!0),w="right",S="middle";break;default:return BS(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?jD:YD)(c,{shape:g},o)}return c}};function FW(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?jD:YD)(n,{shape:l},e,r,null),(a?jD:YD)(n,{shape:u},e?t.baseAxis.model:null,r)}function GW(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function YW(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function XW(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;jy(u,EW(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=Dk(i);Tk(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:GH(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(s_(i))t.setTextConfig({rotation:i});else if(i_(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?d:g,YW(a),i.get(["label","rotate"]))}zk(f,p,o.getRawValue(n),(function(t){return HH(e,t)}));var v=i.getModel(["emphasis"]);uT(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),pT(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",Ky(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var qW=function(){},ZW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return my(e,t),e.prototype.getDefaultShape=function(){return new qW},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);fC(this).dataIndex=e>=0?e:null}),30,!1);function JW(t,e,n){if(cW(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const QW=BW;var tU=2*Math.PI,eU=Math.PI/180;function nU(t,e){return nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iU(t,e){var n=nU(t,e),i=t.get("center"),r=t.get("radius");i_(r)||(r=[0,r]);var o,a,s=rM(n.width,e.getWidth()),l=rM(n.height,e.getHeight()),u=Math.min(s,l),c=rM(r[0],u/2),h=rM(r[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else i_(i)||(i=[i,i]),o=rM(i[0],s)+n.x,a=rM(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function rU(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=nU(t,n),o=iU(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*eU,h=t.get("minAngle")*eU,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var p=e.getSum(i),f=Math.PI/(p||d)*2,g=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),y=e.getDataExtent(i);y[0]=0;var _=tU,x=0,b=c,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(i="area"!==v?0===p&&m?f:t*f:tU/d)n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function uU(t){return"center"===t.position}function cU(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*aU,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),_=v.get("alignTo"),x=rM(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=rM(S,u);var M=w.get("length2");if(M=rM(M,u),Math.abs(h.endAngle-h.startAngle)0?"right":"left":k>0?"left":"right"}var z=Math.PI,V=0,F=v.get("rotate");if(s_(F))V=F*(z/180);else if("center"===m)V=0;else if("radial"===F||!0===F){V=k<0?-D+z:-D}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var G=Math.atan2(k,L);G<0&&(G=2*z+G),L>0&&(G=z+G),V=G-z}if(o=!!V,d.x=I,d.y=A,d.rotation=V,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:T});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;W.y-=U/2,W.height+=U,r.push({label:d,labelLine:f,position:m,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Px(k,L),linePoints:C,textAlign:T,labelDistance:y,labelAlignTo:_,edgeDistance:x,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},e.type="pie",e}(fR);function pU(t,e,n){e=i_(e)&&{coordDimensions:e}||jy({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Gz(i,e).dimensions,o=new Fz(r,t);return o.initData(i,n),o}var fU=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();const gU=fU;var vU=FM(),mU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new gU(e_(this.getData,this),e_(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pU(this,{coordDimensions:["value"],encodeDefaulter:n_(AP,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=vU(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=function(t,e){var n=Jy(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=$y(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=$y(r,(function(t){return Math.floor(t)})),s=Jy(a,(function(t,e){return t+e}),0),l=$y(r,(function(t,e){return t-a[e]}));su&&(u=l[h],c=h);++a[c],l[c]=0,++s}return $y(a,(function(t){return t/i}))}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){DM(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(nR);const yU=mU;const _U=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return my(e,t),e.prototype.getInitialData=function(t,e){return Zz(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(nR);var xU=function(){},bU=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return my(e,t),e.prototype.getDefaultShape=function(){return new xU},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const SU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=SW("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new wU:new KH,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(fR);const MU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(cP);var IU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",UM).models[0]},e.type="cartesian2dAxis",e}(cP);qy(IU,aF);var AU={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},CU=Wy({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},AU),TU=Wy({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},AU);const DU={category:CU,value:TU,time:Wy({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TU),log:Yy({logBase:10},TU)};var kU={value:1,category:1,time:1,log:1};function LU(t,e,n,i){Ky(kU,(function(r,o){var a=Wy(Wy({},DU[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return my(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=rP(this),i=n?aP(t):{};Wy(t,e.getTheme().get(o+"Axis")),Wy(t,this.getDefaultOption()),t.type=PU(t),n&&oP(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=tV.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",PU)}function PU(t){return t.type||(t.data?"category":"value")}var OU=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return $y(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Qy(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}();var EU=["x","y"];function RU(t){return"interval"===t.type||"time"===t.type}var NU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=EU,e}return my(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(RU(t)&&RU(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Lx([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Hx(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return X_(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return X_(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Hx(n,i,r,o)},e}(OU);const BU=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return my(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(OF);function zU(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),f_(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function VU(t){return"cartesian2d"===t.get("coordinateSystem")}function FU(t){var e={xAxisModel:null,yAxisModel:null};return Ky(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,UM).models[0];e[i]=o})),e}var GU=Math.log;function HU(t,e,n){var i=pV.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=JV(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=GU(t.base);u=[GU(u[0])/d,GU(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;vu[0]&&isFinite(g)&&isFinite(u[0]);)f=iV(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=iV(f));var m=f*a;(g=oM((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=oM(m)):v>0&&u[1]<=0&&(v=0,g=-oM(m))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,v+f*_),i.setInterval.call(t,f),(y||_)&&i.setNiceExtent.call(t,g+f,v-f)}var WU=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=EU,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=t_(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;eV(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(QV(l,s),eV(l)&&(e=a))}r.length&&(e||QV((e=r.pop()).scale,e.model),Ky(r,(function(t){HU(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Ky(n.x,(function(t){jU(n,"y",t,r)})),Ky(n.y,(function(t){jU(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=nP(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Ky(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(Ky(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof cV?n.count():(i=n.getTicks()).length;var a,s,l,u,c,h,d,p=t.getLabelModel(),f=eF(t),g=1;r>40&&(g=Math.ceil(r/40));for(var v=0;v0&&i>0||n<0&&i<0)}(t)}const XU=WU;var qU=Math.PI,ZU=function(){function t(t,e){this.group=new KS,this.opt=e,this.axisModel=t,Yy(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new KS({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!KU[t]},t.prototype.add=function(t){KU[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=hM(e-t);return dM(o)?(r=n>0?"top":"bottom",i="center"):dM(o-qU)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),KU={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(X_(s,s,a),X_(l,l,a));var c=jy({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new _D({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});uk(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);o_(d)&&(d=[d,d]),(o_(p)||s_(p))&&(p=[p,p]);var f=AN(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Ky([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var r=MN(d[i],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=tj(r.getTicksCoords(),e.transform,l,Yy(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;ch[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,QU(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*qU/180),QU(s)?o=ZU.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=hM(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;dM(a-qU/2)?(o=l?"bottom":"top",r="center"):dM(a-1.5*qU)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*qU&&a>qU/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=f_(t.nameTruncateMaxWidth,v.maxWidth,a),_=new pC({x:p[0],y:p[1],rotation:o.rotation,silent:ZU.isLabelSilent(e),style:kk(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(bk({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=ZU.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,fC(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function $U(t){t&&(t.ignore=!0)}function JU(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Ix([]);return Dx(r,r,-t.rotation),n.applyTransform(Cx([],r,t.getLocalTransform())),i.applyTransform(Cx([],r,e.getLocalTransform())),n.intersect(i)}}function QU(t){return"middle"===t||"center"===t}function tj(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function rj(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[aj(t)]}function oj(t){return!!t.get(["handle","show"])}function aj(t){return t.type+"||"+t.id}var sj={};const lj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=rj(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=oj(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=Yy({color:h.color},a));var p=Wy(Hy(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(o_(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else r_(l)&&(p.name=l(p.name,p));var g=new tL(p,null,this.ecModel);return qy(g,aF.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Wy({lineStyle:{color:"#bbb"}},Dj.axisLine),axisLabel:kj(Dj.axisLabel,!1),axisTick:kj(Dj.axisTick,!1),splitLine:kj(Dj.splitLine,!0),splitArea:kj(Dj.splitArea,!0),indicator:[]},e}(cP);var Pj=["axisLine","axisTickLabel","axisName"],Oj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;Ky($y(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new ej(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){Ky(Pj,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=i_(c)?c:[c],p=i_(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=e.cx,y=e.cy,_=0;_3?1.4:r>1?1.2:1.1;Hj(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);Hj(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Fj(this._zr,"globalPan")||Hj(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Q_);function Yj(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Xj(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var qj,Zj={axisPointer:1,tooltip:1,brush:1};function Kj(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!Zj.hasOwnProperty(i.mainType)&&r&&r.model!==n}function $j(t){o_(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Jj={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Qj=t_(Jj),tY={"alignment-baseline":"textBaseline","stop-color":"stopColor"},eY=t_(tY),nY=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=$j(t);this._defsUsePending=[];var i=new KS;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),lY(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=mY(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new KS).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new $A({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=qj[s];if(u&&L_(qj,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=iY[s];if(d&&L_(iY,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new VA({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});aY(e,n),lY(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(qj={g:function(t,e){var n=new KS;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new $A;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new FT;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new _D;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new WT;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=sY(i));var r=new dD({shape:{points:n||[]},silent:!0});return aY(e,r),lY(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=sY(i));var r=new gD({shape:{points:n||[]},silent:!0});return aY(e,r),lY(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new WA;return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new KS;return aY(e,a),lY(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new KS;return aY(e,a),lY(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=NT(t.getAttribute("d")||"");return aY(e,n),lY(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),iY={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new LD(e,n,i,r);return rY(t,o),oY(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new PD(e,n,i);return rY(t,r),oY(t,r),r}};function rY(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function oY(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};vY(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function aY(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Yy(e.__inheritedStyle,t.__inheritedStyle))}function sY(t){for(var e=dY(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=dY(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":Tx(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":kx(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Dx(r,r,-parseFloat(l[0])*fY);break;case"skewX":Cx(r,[1,0,Math.tan(parseFloat(l[0])*fY),1,0,0],r);break;case"skewY":Cx(r,[1,Math.tan(parseFloat(l[0])*fY),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),vY(t,a,s),i||function(t,e,n){for(var i=0;i0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=C_(),n=C_(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Tk(e,Dk(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(RY(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function GY(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):fC(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function HY(t,e,n,i,r){t.data||bk({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function WY(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return uT(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=fC(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function UY(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),Ky(t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(nR);const qY=XY;function ZY(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),Ky(e,(function(t,e){for(var n,i,r,o=(n=$y(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},Ky(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c1?(p.width=d,p.height=d/_):(p.height=d,p.width=d*_),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,p=nP(b,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var sX=function(){function t(){this.dimensions=nX}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new oX(o+r,o,jy({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=aX,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),Ky(r,(function(t,r){var o=$y(t,(function(t){return t.get("nameMap")})),a=new oX(r,r,jy({nameMap:Uy(o)},i(t[0])));a.zoomLimit=f_.apply(null,$y(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=aX,a.resize(t[0],e),Ky(t,(function(t){t.coordinateSystem=a,function(t,e){Ky(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=C_(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=bX(s),o=wX(o),s&&o;){r=bX(r),a=wX(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(MX(SX(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!bX(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!wX(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function yX(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function _X(t){return arguments.length?t:IX}function xX(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function bX(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function wX(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function SX(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function MX(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function IX(t,e){return t.parentNode===e.parentNode?1:2}var AX=function(){this.parentPoint=[],this.childPoints=[]},CX=function(t){function e(e){return t.call(this,e)||this}return my(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new AX},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=rM(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;dy.x)||(x-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),A=I*(Math.PI/180),C=v.getTextContent();C&&(v.setTextConfig({position:M.get("position")||S,rotation:null==I?-x:A,origin:"center"}),C.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),D="relative"===T?T_(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;D&&(fC(n).focus=D),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new MD({shape:OX(c,h,d,r,r)})),jD(g,{shape:OX(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],y=0;ye&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(o_(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function qX(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function ZX(t,e){return Xy(qX(t),e)>=0}function KX(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var $X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return my(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new tL(n,this,this.ecModel),r=YX.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return PE("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=KX(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(nR);const JX=$X;function QX(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function tq(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=_X((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=_X());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),QX(l,(function(t){v=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=xX(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),QX(l,(function(t){m=(t.getLayout().x+p)*g,v="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),QX(l,(function(t){v=(t.getLayout().x+p)*f,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})))}}}(t,e)}))}function eq(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();jy(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var nq=["treemapZoomToNode","treemapRender","treemapMove"];function iq(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=BP(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}function rq(t){var e=0;Ky(t.children,(function(t){rq(t);var n=t.value;i_(n)&&(n=n[0]),e+=n}));var n=t.value;i_(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i_(t.value)?t.value[0]=n:t.value=n}const oq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return my(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};rq(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new tL({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=TM(e.get("color")),o=TM(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],Ky(t,(function(t){var e=new tL(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=$y(i||[],(function(t){return new tL(t,o,e)}),this),s=YX.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return PE("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=KX(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},jy(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=C_(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){iq(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(nR);var aq=function(){function t(t){this.group=new KS,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,i),iP(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=NM(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,c,h,d,p,f,g,v=0,m=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),_=(s=e.pos,l=e.box,c=l.width,h=l.height,d=rM(s.left,c),p=rM(s.top,h),f=rM(s.right,c),g=rM(s.bottom,h),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=c),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=h),u=UL(u||0),{width:Math.max(f-d-u[1]-u[3],0),height:Math.max(g-p-u[0]-u[2],0)}),x=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],I=M.node,A=M.width,C=M.text;x>_.width&&(x-=A-m,A=m,C=null);var T=new dD({shape:{points:sq(v,0,A,y,S===b.length-1,0===S)},style:Yy(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pC({style:kk(r,{text:C})}),textConfig:{position:"inside"},z2:1e4*IC,onclick:n_(a,I)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=kk(o,{text:C}),T.ensureState("emphasis").style=w,uT(T,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(T),lq(T,t,I),v+=A+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function sq(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function lq(t,e,n){fC(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&KX(n,e)}}const uq=aq;var cq=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Hx(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Tx(s,s,[-(e-=a.x),-(n-=a.y)]),kx(s,s,[t.scale,t.scale]),Tx(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&KL(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new uq(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(ZX(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(fR);const wq=bq;var Sq=Ky,Mq=l_,Iq=-1,Aq=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=Hy(e);this.type=i,this.mappingMethod=n,this._normalizeData=Nq[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Cq(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,Ky(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Sq(e,(function(t,e){n[t]=e})),!i_(i)){var r=[];l_(i)?Sq(i,(function(t,e){var i=n[e];r[null!=i?i:Iq]=t})):r[Iq]=i,i=Rq(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):Cq(r,!0):(__("linear"!==n||r.dataExtent),Cq(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return e_(this._normalizeData,this)},t.listVisualTypes=function(){return t_(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){l_(t)?Ky(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=i_(e)?[]:l_(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&Sq(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(i_(t))t=t.slice();else{if(!Mq(t))return[];var e=[];Sq(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new zq(h);return Vq(d).drColorMappingBy=c,d}(0,r,o,0,u,p);Ky(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=jy({},e);if(r){var s=r.type,l="color"===s&&Vq(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);Gq(t,o,n,i)}}))}else s=Hq(u),c.fill=s}}function Hq(t){var e=Wq(t,"color");if(e){var n=Wq(t,"colorAlpha"),i=Wq(t,"colorSaturation");return i&&(e=hw(e,null,null,i)),n&&(e=dw(e,n)),e}}function Wq(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Uq(t,e){var n=t.get(e);return i_(n)&&n.length?{name:e,range:n}:null}var jq=Math.max,Yq=Math.min,Xq=f_,qq=Ky,Zq=["itemStyle","borderWidth"],Kq=["itemStyle","gapWidth"],$q=["upperLabel","show"],Jq=["upperLabel","height"];const Qq={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=nP(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=rM(Xq(s.width,l[0]),r),c=rM(Xq(s.height,l[1]),o),h=i&&i.type,d=XX(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=qX(f);if("treemapMove"!==h){var v="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;dcM&&(u=cM),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?jq(u*i/l,l/(u*r)):1/0}function nZ(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;hi&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+w,h=m[0]<0?"right":"left",i.originX=-f*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+u[0],i.y=u[1]+w,h=m[0]>=0?"right":"left",i.originX=f*x,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(KS);const WZ=HZ;function UZ(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Dk(e)}}function jZ(t){return isNaN(t[0])||isNaN(t[1])}function YZ(t){return t&&!jZ(t[0])&&!jZ(t[1])}const XZ=function(){function t(t){this.group=new KS,this._LineCtor=t||WZ}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=UZ(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=UZ(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function eK(t,e){var n=[],i=Fb,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[N_(l[0]),N_(l[1])],l[2]&&l.__original.push(N_(l[2])));var h=l.__original;if(null!=l[2]){if(R_(r[0],h[0]),R_(r[1],h[2]),R_(r[2],h[1]),u&&"none"!==u){var d=wZ(t.node1),p=tK(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=wZ(t.node2),p=tK(r,h[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}R_(l[0],r[0]),R_(l[1],r[2]),R_(l[2],r[1])}else{if(R_(o[0],h[0]),R_(o[1],h[1]),V_(a,o[1],o[0]),H_(a,a),u&&"none"!==u){d=wZ(t.node1);z_(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=wZ(t.node2);z_(o[1],o[1],a,-d*e)}R_(l[0],o[0]),R_(l[1],o[1])}}))}function nK(t){return"view"===t.type}const iK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(t,e){var n=new KH,i=new XZ,r=this.group;this._controller=new jj(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(nK(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):jD(s,l,t)}eK(t.getGraph(),bZ(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),IZ(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),_Z(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(fC(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(fC(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){CZ(t,f,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Kj(e,n,t)})),nK(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Yj(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Xj(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),eK(t.getGraph(),bZ(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=bZ(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){eK(t.getGraph(),bZ(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(fR);function rK(t){return"_EC_"+t}var oK=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[rK(t)]){var i=new aK(t,e);return i.hostGraph=this,this.nodes.push(i),n[rK(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[rK(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(s_(t)&&(t=this.nodes[t]),s_(e)&&(e=this.nodes[e]),t instanceof aK||(t=i[rK(t)]),e instanceof aK||(e=i[rK(e)]),t&&e){var o=t.id+"-"+e.id,a=new sK(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof aK&&(t=t.id),e instanceof aK&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof aK||(e=this._nodesMap[rK(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}qy(aK,lK("hostGraph","data")),qy(sK,lK("hostGraph","edgeData"));const uK=oK;function cK(t,e,n,i,r){for(var o=new uK(i),a=0;a "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=Zz(t,n);else{var g=ZP.get(f),v=g&&g.dimensions||[];Xy(v,"value")<0&&v.concat(["value"]);var m=Gz(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(p=new Fz(m,n)).initData(t)}var y=new Fz(["value"],n);return y.initData(l,s),r&&r(p,y),NX({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}const hK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return my(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new gU(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),DM(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){cZ(n=this)&&(n.__curvenessList=[],n.__edgeMap={},hZ(n));var a=cK(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=tL.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return Ky(a.edges,(function(t){!function(t,e,n,i){if(cZ(n)){var r=dZ(t,e,n),o=n.__edgeMap,a=o[pZ(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),PE("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return UE({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=$y(this.option.categories||[],(function(t){return null!=t.value?t:jy({value:0},t)})),e=new Fz(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(nR);var dK={type:"graphRoam",event:"graphRoam",update:"none"};var pK=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};const fK=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return my(e,t),e.prototype.getDefaultShape=function(){return new pK},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(NA);function gK(t,e){var n=null==t?"":t+"";return e&&(o_(e)?n=e.replace("{value}",n):r_(e)&&(n=e(t))),n}var vK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:rM(n[0],e.getWidth()),cy:rM(n[1],e.getHeight()),r:rM(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?LW:oD,h=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];pA(f,!a);for(var g=(l=f[1])-(s=f[0]),v=s,m=[],y=0;h&&y=t&&(0===e?0:i[e-1][0])Math.PI/2&&(z+=Math.PI):"tangential"===B?z=-M-Math.PI/2:s_(B)&&(z=B*Math.PI/180),0===z?h.add(new pC({style:kk(_,{text:O,x:R,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0})):h.add(new pC({style:kk(_,{text:O,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:R,originY:N,rotation:z}))}if(y.get("show")&&k!==x){P=(P=y.get("distance"))?P+l:l;for(var V=0;V<=b;V++){u=Math.cos(M),c=Math.sin(M);var F=new _D({shape:{x1:u*(f-P)+d,y1:c*(f-P)+p,x2:u*(f-S-P)+d,y2:c*(f-S-P)+p},silent:!0,style:T});"auto"===T.stroke&&F.setStyle({stroke:i((k+V/b)/x)}),h.add(F),M+=A}M-=A}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),m=v.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),x=[y,_],b=[o,a];function w(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=rM(o.get("width"),r.r),s=rM(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=rM(u[0],r.r),h=rM(u[1],r.r),d=o.get("keepAspect");return(i=l?MN(l,c-a/2,h-s,a,s,null,d):new fK({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?LW:oD,i=f.get("overlap"),a=i?f.get("width"):l/v.count(),u=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=_-v.get(m,t)%_),h}(g||p)&&(v.diff(c).add((function(e){var n=v.get(m,e);if(p){var i=w(e,o);YD(i,{rotation:-((isNaN(+n)?b[0]:iM(n,x,b,!0))+Math.PI/2)},t),u.add(i),v.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");YD(r,{shape:{endAngle:iM(n,x,b,a)}},t),u.add(r),gC(t.seriesIndex,v.dataType,e,r),d[e]=r}})).update((function(e,n){var i=v.get(m,e);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,jD(s,{rotation:-((isNaN(+i)?b[0]:iM(i,x,b,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(g){var l=h[n],y=S(e,l?l.shape.endAngle:o),_=f.get("clip");jD(y,{shape:{endAngle:iM(i,x,b,_)}},t),u.add(y),gC(t.seriesIndex,v.dataType,e,y),d[e]=y}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(s instanceof WA){var c=s.style;s.useStyle(jy({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(iM(v.get(m,t),x,[0,1],!0))),s.z2EmphasisLift=0,pT(s,e),uT(s,r,o,a)}if(g){var h=d[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,pT(h,e),uT(h,r,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=MN(r,e.cx-i/2+rM(o[0],e.r),e.cy-i/2+rM(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new KS,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new pC({silent:!0}),d[t]=new pC({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new KS,v=i(iM(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),_=r.cx+rM(y[0],r.r),x=r.cy+rM(y[1],r.r);(T=h[e]).attr({z2:f?0:2,style:kk(m,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(T)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+rM(w[0],r.r),M=r.cy+rM(w[1],r.r),I=rM(b.get("width"),r.r),A=rM(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,T=d[e],D=b.get("formatter");T.attr({z2:f?0:2,style:kk(b,{x:S,y:M,text:gK(o,D),width:isNaN(I)?null:I,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:C})}),zk(T,{normal:b},o,(function(t){return gK(t,D)})),p&&Vk(T,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return gK(a?a.interpolatedValue:o,D)}}),g.add(T)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(fR);const mK=vK;const yK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return my(e,t),e.prototype.getInitialData=function(t,e){return pU(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(nR);var _K=["itemStyle","opacity"],xK=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new gD,a=new pC;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return my(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(_K);l=null==l?1:l,n||$D(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,YD(i,{style:{opacity:l}},r,e)):jD(i,{style:{opacity:l},shape:{points:a.points}},r,e),pT(i,o),this._updateLabel(t,e),uT(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;Tk(r,Dk(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Px(c[0][0],c[0][1]):null},jD(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),nG(n,iG(a),{stroke:u})},e}(dD);const bK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return my(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new xK(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){KD(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(fR);const wK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new gU(e_(this.getData,this),e_(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return pU(this,{coordDimensions:["value"],encodeDefaulter:n_(AP,this)})},e.prototype._defaultLabelLine=function(t){DM(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(nR);function SK(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&NK(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function NK(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const BK=EK;var zK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&Wy(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Ky(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];Ky(Qy(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(cP);const VK=zK;const FK=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return my(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(OF);function GK(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=WK(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=WK(s,[0,a]),r=o=WK(s,[r,o]),i=0}e[0]=WK(e[0],n),e[1]=WK(e[1],n);var l=HK(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=WK(e[i],h),u=HK(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function HK(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function WK(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var UK=Ky,jK=Math.min,YK=Math.max,XK=Math.floor,qK=Math.ceil,ZK=oM,KK=Math.PI;function $K(t,e){return jK(YK(t,e[0]),e[1])}function JK(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function QK(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();UK(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),QV(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=$K(e.get("axisExpandWidth"),l),h=$K(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=$K(p[1]-p[0],l),p[1]=p[0]+t):(t=$K(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||XK(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[XK(ZK(p[0]/c,1))+1,qK(ZK(p[1]/c,1))-1],v=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),UK(n,(function(e,n){var o=(i.axisExpandable?QK:JK)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:KK/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=[1,0,0,1,0,0];Dx(c,c,u),Tx(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];Ky(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?GK(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[YK(0,o[1]*s/d-d/2)])[1]=jK(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();const e$={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new t$(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",UM).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var n$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return my(e,t),e.prototype.getAreaSelectStyle=function(){return aI([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=Hy(t);if(e)for(var n=e.length-1;n>=0;n--)aM(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;iu$}(t)||o){if(a&&!o){"single"===s.brushMode&&I$(t);var l=Hy(s);l.brushType=H$(l.brushType,a),l.panelId=a===r$?null:a.panelId,o=t._creatingCover=m$(t,l),t._covers.push(o)}if(o){var u=j$[H$(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(z$(t,o,t._track)),i&&(y$(t,o),u.updateCommon(t,o)),_$(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&S$(t,e,n)&&I$(t)&&(r={isEnd:i,removeOnClick:!0});return r}function H$(t,e){return"auto"===t?e.defaultBrushType:t}var W$={mousedown:function(t){if(this._dragging)U$(this,t);else if(!t.target||!t.target.draggable){V$(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=S$(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=S$(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new tL(r[a],this,e));if(i&&n)return cK(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return PE("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return PE("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(nR);const lJ=sJ;function uJ(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){Ky(t,(function(t){var e=_J(t.outEdges,yJ),n=_J(t.inEdges,yJ),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yh-1?p:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)dJ(s,l*=.99,a),hJ(s,r,n,i,a),xJ(s,l,a),hJ(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";Ky(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),Ky(t,(function(t){var e=0,n=0;Ky(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),Ky(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,o,a,0!==Qy(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function cJ(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function hJ(t,e,n,i,r){var o="vertical"===r?"x":"y";Ky(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function dJ(t,e,n){Ky(t.slice().reverse(),(function(t){Ky(t,(function(t){if(t.outEdges.length){var i=_J(t.outEdges,pJ,n)/_J(t.outEdges,yJ);if(isNaN(i)){var r=t.outEdges.length;i=r?_J(t.outEdges,fJ,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-mJ(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-mJ(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function pJ(t,e){return mJ(t.node2,e)*t.getValue()}function fJ(t,e){return mJ(t.node2,e)}function gJ(t,e){return mJ(t.node1,e)*t.getValue()}function vJ(t,e){return mJ(t.node1,e)}function mJ(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function yJ(t){return t.getValue()}function _J(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)})),Ky(n,(function(e){var n=new zq({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&Ky(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var wJ=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var v=[];Ky(g,(function(t,e){var n;i_(t)?(n=t.slice(),t.unshift(e)):i_(t.value)?((n=jy({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,y=[{name:c,type:yz(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:yz(f),dimsDef:m.slice()}];return pU(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:n_(IP,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),SJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return my(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(nR);qy(SJ,wJ,!0);const MJ=SJ;var IJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=TJ(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?($D(n),DJ(s,n,i,t)):n=TJ(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(fR),AJ=function(){},CJ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return my(e,t),e.prototype.getDefaultShape=function(){return new AJ},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var x=[m,_];i.push(x)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var RJ=["color","borderColor"],NJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Sk(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&FJ(s,a))return;var l=VJ(a,n,!0);YD(l,{shape:{points:a.ends}},t,n),GJ(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&FJ(s,c)?i.remove(u):(u?(jD(u,{shape:{points:c.ends}},t,a),$D(u)):u=VJ(c),GJ(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),jJ(t,this.group);var e=t.get("clip",!0)?uW(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=VJ(i.getItemLayout(n));GJ(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){jJ(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(fR),BJ=function(){},zJ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return my(e,t),e.prototype.getDefaultShape=function(){return new BJ},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(NA);function VJ(t,e,n){var i=t.ends;return new zJ({shape:{points:n?HJ(i,t):i},z2:100})}function FJ(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(RJ);e.useStyle(o),e.style.fill=null,e.style.stroke=r}const XJ=NJ;var qJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return my(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(nR);qy(qJ,wJ,!0);const ZJ=qJ;function KJ(t){t&&i_(t.series)&&Ky(t.series,(function(t){l_(t)&&"k"===t.type&&(t.type="candlestick")}))}var $J=["itemStyle","borderColor"],JJ=["itemStyle","borderColor0"],QJ=["itemStyle","borderColorDoji"],tQ=["itemStyle","color"],eQ=["itemStyle","color0"];const nQ={seriesType:"candlestick",plan:oR(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?tQ:eQ)}function i(t,e){return e.get(0===t?QJ:t>0?$J:JJ)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,jy(e.ensureUniqueItemVisual(r,"style"),s)}}}}};function iQ(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}const rQ={seriesType:"candlestick",plan:oR(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=rM(g_(t.get("barMaxWidth"),r),r),a=rM(g_(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?rM(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=$y(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){var r,a,h=vV(4*n.count),d=0,p=[],f=[],g=i.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var m=g.get(o,a),y=g.get(s,a),_=g.get(l,a),x=g.get(u,a),b=g.get(c,a);isNaN(m)||isNaN(x)||isNaN(b)?(h[d++]=NaN,d+=3):(h[d++]=iQ(g,a,y,_,l,v),p[0]=m,p[1]=x,r=e.dataToPoint(p,null,f),h[d++]=r?r[0]:NaN,h[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),h[d++]=r?r[1]:NaN)}i.setLayout("largePoints",h)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var h=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(u,r),g=a.get(c,r),v=Math.min(d,p),m=Math.max(d,p),y=M(v,h),_=M(m,h),x=M(f,h),b=M(g,h),w=[];I(w,_,0),I(w,y,1),w.push(C(b),C(_),C(x),C(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:iQ(a,r,d,p,l,S),initBaseline:d>p?_[1]:y[1],ends:w,brushRect:A(f,g,h)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var r=e.slice(),o=e.slice();r[0]=ck(r[0]+i/2,1,!1),o[0]=ck(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function A(t,e,n){var r=M(t,n),o=M(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=ck(t[0],1),t}}}}};function oQ(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var aQ=function(t){function e(e,n){var i=t.call(this)||this,r=new jH(e,n),o=new KS;return i.add(r),i.add(o),i.updateData(e,n),i}return my(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=r_(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return U_(t.__p1,t.__cp1)+U_(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Bb,l=zb;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(cQ);const pQ=dQ;var fQ=function(){this.polyline=!1,this.curveness=0,this.segs=[]},gQ=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return my(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fQ},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){if(mA(u,c,(u+d)/2-(c-p)*r,(c+p)/2-(d-u)*r,d,p,o,t,e))return a}else if(gA(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var mQ={seriesType:"lines",plan:oR(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&uW(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=yQ.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new vQ:new XZ(r?i?pQ:hQ:i?cQ:WZ),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(fR);var xQ="undefined"==typeof Uint32Array?Array:Uint32Array,bQ="undefined"==typeof Float64Array?Array:Float64Array;function wQ(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=$y(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Uy([e,t[0],t[1]])})))}var SQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return my(e,t),e.prototype.init=function(e){e.data=e.data||[],wQ(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(wQ(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=T_(this._flatCoords,e.flatCoords),this._flatCoordsOffset=T_(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(nR);const MQ=SQ;function IQ(t){return t instanceof Array||(t=[t,t]),t}const AQ={seriesType:"lines",reset:function(t){var e=IQ(t.get("symbol")),n=IQ(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=IQ(n.getShallow("symbol",!0)),r=IQ(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var CQ=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Cy.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p0){var I=o(m)?s:l;m>0&&(m=m*S+w),_[x++]=I[M],_[x++]=I[M+1],_[x++]=I[M+2],_[x++]=I[M+3]*m*256}else x+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Cy.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const TQ=CQ;function DQ(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var kQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):DQ(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(DQ(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Sk(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=cW(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=Dk(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;Is[1]||Dl[1])continue;var k=u.dataToPoint([T,D]);A=new $A({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;A=new $A({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),_=Dk(L)}A.shape.r=y;var O=t.getRawValue(I),E="-";O&&null!=O[2]&&(E=O[2]+""),Tk(A,_,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:E}),A.ensureState("emphasis").style=g,A.ensureState("blur").style=v,A.ensureState("select").style=m,uT(A,b,w,S),A.incremental=r,r&&(A.states.emphasis.hoverLayer=!0),p.add(A),f.setItemGraphicEl(I,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new TQ;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),y=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=$y(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:-1}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=i_(f)?f.slice():null==f?["100%","100%"]:[f,f];c[d.index]=rM(c[d.index],p),c[h.index]=rM(c[h.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var o=t.get(OQ)||0;o&&(RQ.attr({scaleX:e[0],scaleY:e[1],rotation:n}),RQ.updateTransform(),o/=RQ.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,h.symbolScale,l,i,h);var d=h.symbolSize,p=AN(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(i){var m=Math.abs(l),y=f_(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=rM(y,e[p.index]),b=Math.max(g+2*x,0),w=_?0:2*x,S=xM(i),M=S?i:JQ((m+w)/b);b=g+2*(x=(m-M*g)/2/(_?M:Math.max(M-1,1))),w=_?0:2*x,S||"fixed"===i||(M=u?JQ((Math.abs(u)+w)/b):0),v=M*b-w,h.repeatTimes=M,h.symbolMargin=x}var I=f*(v/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(A[0]+=o[0],A[1]+=o[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[p.index]=n[p.xy];var T=h.barRectShape=jy({},n);T[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+I)),T[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=c.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function BQ(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function zQ(t){var e=t.symbolPatternSize,n=MN(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function VQ(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(ZQ(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function FQ(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?KQ(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=zQ(n),r.add(o),KQ(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function GQ(t,e,n){var i=jy({},e.barRectShape),r=t.__pictorialBarRect;r?KQ(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new $A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function HQ(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=jy({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)jD(r,{shape:o},s,l);else{o[a.wh]=0,r=new $A({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],Mk[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function WQ(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=UQ,n.isAnimationEnabled=jQ,n}function UQ(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function jQ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YQ(t,e,n,i){var r=new KS,o=new KS;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?VQ(r,e,n):FQ(r,0,n),GQ(r,n,i),HQ(r,e,n,i),r.__pictorialShapeStr=qQ(t,n),r.__pictorialSymbolMeta=n,r}function XQ(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];ZQ(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),Ky(o,(function(t){qD(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function qQ(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function ZQ(t,e,n){Ky(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function KQ(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&Mk[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function $Q(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");ZQ(t,(function(t){if(t instanceof WA){var e=t.style;t.useStyle(jy({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)];Tk(t.__pictorialBarRect,Dk(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:GH(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),uT(t,c,h,o.get("disabled"))}function JQ(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const QQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:EQ[+s],categoryDim:EQ[1-+s]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=WQ(r,t),n=NQ(r,t,e,u),o=YQ(r,u,n);r.setItemGraphicEl(t,o),i.add(o),$Q(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=WQ(r,t),s=NQ(r,t,a,u),l=qQ(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;jD(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?VQ(t,e,n,!0):FQ(t,e,n,!0);GQ(t,n,!0),HQ(t,e,n,!0)}(n,u,s):n=YQ(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),$Q(n,u,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&XQ(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){XQ(i,fC(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(fR);const t0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return my(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=iL(TW.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(TW);const e0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return my(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new gz(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;fMath.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-w,a>Math.PI/2&&(S="left")):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var M=f(d,"rotate"),I=0;"radial"===M?(I=_A(-a))>Math.PI/2&&I<1.5*Math.PI&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-a)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):s_(M)&&(I=M*Math.PI/180),g.rotation=_A(I)})),c.dirtyStyle()},e}(oD);const s0=a0;var l0="sunburstRootToNode",u0="sunburstHighlight",c0="sunburstUnhighlight";const h0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h,d,p=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function c(s,c){!function(i,r){u||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new s0(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==c?null:r[c])}new gz(r,i,s,s).add(c).update(c).remove(n_(c,null)).execute()}(c,p),h=a,(d=s).depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,h,t,e,n):(r.virtualPiece=new s0(h,t,e,n),l.add(r.virtualPiece)),d.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(d.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)KL(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:l0,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(fR);function d0(t){var e=0;Ky(t.children,(function(t){d0(t);var n=t.value;i_(n)&&(n=n[0]),e+=n}));var n=t.value;i_(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),i_(t.value)?t.value[0]=n:t.value=n}const p0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return my(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};d0(n);var i=this._levelModels=$y(t.levels||[],(function(t){return new tL(t,this,e)}),this),r=YX.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=KX(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){iq(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(nR);var f0=Math.PI/180;function g0(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");i_(i)||(i=[0,i]),i_(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=rM(e[0],r),l=rM(e[1],o),u=rM(i[0],a/2),c=rM(i[1],a/2),h=-t.get("startAngle")*f0,d=t.get("minAngle")*f0,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&v0(f,v);var m=0;Ky(f.children,(function(t){!isNaN(t.getValue())&&m++}));var y=f.getValue(),_=Math.PI/(y||m)*2,x=f.depth>0,b=f.height-(x?-1:1),w=(c-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,A=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===y&&M?_:r*_;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&o_(o)&&(o=uw(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),jy(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var y0={color:"fill",borderColor:"stroke"},_0={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},x0=FM();const b0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Zz(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=x0(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(nR);function w0(t,e){return e=e||[0,0],$y(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function S0(t,e){return e=e||[0,0],$y([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function M0(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function I0(t,e){return e=e||[0,0],$y(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function A0(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||L_(t,"text")))}function C0(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},L_(a,"text")&&(o.text=a.text),L_(a,"rich")&&(o.rich=a.rich),L_(a,"textFill")&&(o.fill=a.textFill),L_(a,"textStroke")&&(o.stroke=a.textStroke),L_(a,"fontFamily")&&(o.fontFamily=a.fontFamily),L_(a,"fontSize")&&(o.fontSize=a.fontSize),L_(a,"fontStyle")&&(o.fontStyle=a.fontStyle),L_(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=L_(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),L_(a,"textPosition")&&(i.position=a.textPosition),L_(a,"textOffset")&&(i.offset=a.textOffset),L_(a,"textRotation")&&(i.rotation=a.textRotation),L_(a,"textDistance")&&(i.distance=a.textDistance)}return T0(o,t),Ky(o.rich,(function(t){T0(t,t)})),{textConfig:i,textContent:r}}function T0(t,e){e&&(e.font=e.textFont||e.font,L_(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),L_(e,"textAlign")&&(t.align=e.textAlign),L_(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),L_(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),L_(e,"textWidth")&&(t.width=e.textWidth),L_(e,"textHeight")&&(t.height=e.textHeight),L_(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),L_(e,"textPadding")&&(t.padding=e.textPadding),L_(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),L_(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),L_(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),L_(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),L_(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),L_(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),L_(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function D0(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";k0(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Ky(e.rich,(function(t){k0(t,t)})),i}function k0(t,e){e&&(L_(e,"fill")&&(t.textFill=e.fill),L_(e,"stroke")&&(t.textStroke=e.fill),L_(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),L_(e,"font")&&(t.font=e.font),L_(e,"fontStyle")&&(t.fontStyle=e.fontStyle),L_(e,"fontWeight")&&(t.fontWeight=e.fontWeight),L_(e,"fontSize")&&(t.fontSize=e.fontSize),L_(e,"fontFamily")&&(t.fontFamily=e.fontFamily),L_(e,"align")&&(t.textAlign=e.align),L_(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),L_(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),L_(e,"width")&&(t.textWidth=e.width),L_(e,"height")&&(t.textHeight=e.height),L_(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),L_(e,"padding")&&(t.textPadding=e.padding),L_(e,"borderColor")&&(t.textBorderColor=e.borderColor),L_(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),L_(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),L_(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),L_(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),L_(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),L_(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),L_(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),L_(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),L_(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),L_(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var L0={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},P0=t_(L0);Jy(AS,(function(t,e){return t[e]=1,t}),{}),AS.join(", ");var O0=["","style","shape","extra"],E0=FM();function R0(t,e,n,i,r){var o=t+"Animation",a=WD(t,i,r)||{},s=E0(e).userDuring;return a.duration>0&&(a.during=s?e_(H0,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),jy(a,n[o]),a}function N0(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=E0(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var i=0;i=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!r&&(r=i.style={});var p=t_(n);for(u=0;u0&&t.animateFrom(d,p)}else!function(t,e,n,i,r){if(r){var o=R0("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,c);B0(t,e),u?t.dirty():t.markRedraw()}function B0(t,e){for(var n=E0(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var d=t_(a);for(c=0;ci[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:e_(I0,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function s1(t){return t instanceof NA}function l1(t){return t instanceof EI}const u1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=f1(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){v1(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&z0(n,x0(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);v1(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?uW(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=f1(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=s);var r=y(i,K0).getItemStyle(),o=_(i,K0),a=kk(o,null,null,!0,!0);a.text=o.getShallow("show")?v_(t.getFormattedLabel(i,K0),t.getFormattedLabel(i,$0),GH(e,i)):null;var l=Lk(o,null,!0);return b(n,r),r=D0(r,a,l),n&&x(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),L_(y0,t)){var i=e.getItemVisual(n,"style");return i?i[y0[t]]:null}if(L_(_0,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=h;f--){var g=e.childAt(f);w1(e,g,r)}}(t,h,n,i,r),a>=0?o.replaceAt(h,a):o.add(h),h}function y1(t,e,n){var i,r=x0(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(L_(i,"pathData")||L_(i,"d")))&&A1(a)!==r.customPathData||"image"===o&&L_(s,"image")&&s.image!==r.customImagePath}function _1(t,e,n){var i=e?x1(t,e):t,r=e?b1(t,i,K0):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?x1(s,e):s:null;if(r&&(n.isLegacy||A0(r,o,!!a,!!l))){n.isLegacy=!0;var u=C0(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function x1(t,e){return e?t?t[e]:null:t}function b1(t,e,n){var i=e&&e.style;return null==i&&n===K0&&t&&(i=t.styleEmphasis),i}function w1(t,e,n){e&&z0(e,x0(t).option,n)}function S1(t,e){var n=t&&t.name;return null!=n?n:r1+e}function M1(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;m1(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function I1(t){var e=this.context,n=e.oldChildren[t];n&&z0(n,x0(n).option,e.seriesModel)}function A1(t){return t&&(t.pathData||t.d)}var C1=FM(),T1=Hy,D1=e_;function k1(t,e,n,i){L1(C1(n).lastProp,i)||(C1(n).lastProp=i,e?jD(n,i,t):(n.stopAnimation(),n.attr(i)))}function L1(t,e){if(l_(t)&&l_(e)){var n=!0;return Ky(e,(function(e,i){n=n&&L1(t[i],e)})),!!n}return t===e}function P1(t,e){t[e.get(["label","show"])?"show":"hide"]()}function O1(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function E1(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}const R1=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=n_(k1,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new KS,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);E1(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=rj(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=C1(t).pointerEl=new Mk[r.type](T1(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=C1(t).labelEl=new pC(T1(e.label));t.add(r),P1(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=C1(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=C1(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),P1(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=mk(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_x(t.event)},onmousedown:D1(this._onHandleDragMove,this,0,0),drift:D1(this._onHandleDragMove,this),ondragend:D1(this._onHandleDragEnd,this)}),i.add(r)),E1(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");i_(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,_R(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){k1(this._axisPointerModel,!e&&this._moveAnimation,this._handle,O1(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(O1(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(O1(i)),C1(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xR(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function N1(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function B1(t,e,n,i,r){var o=z1(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=UL(a.get("padding")||0),l=a.getFont(),u=PS(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:kk(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function z1(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:nF(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Ky(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),o_(a)?o=a.replace("{value}",o):r_(a)&&(o=a(s))}return o}function V1(t,e,n){var i=[1,0,0,1,0,0];return Dx(i,i,n.rotation),Tx(i,i,n.position),dk([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function F1(t,e,n,i,r,o){var a=ej.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),B1(e,i,r,o,{position:V1(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function G1(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function H1(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function W1(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var U1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=j1(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=N1(i),h=Y1[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}F1(e,t,zU(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=zU(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=V1(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=j1(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(R1);function j1(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Y1={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:G1([e,n[0]],[e,n[1]],X1(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:H1([e-i/2,n[0]],[i,r],X1(t))}}};function X1(t){return"x"===t.dim?0:1}const q1=U1;const Z1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(cP);var K1=FM(),$1=Ky;function J1(t,e,n){if(!xy.node){var i=e.getZr();K1(i).records||(K1(i).records={}),function(t,e){if(K1(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);$1(K1(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}K1(t).initialized=!0,n("click",n_(t2,"click")),n("mousemove",n_(t2,"mousemove")),n("globalout",Q1)}(i,e),(K1(i).records[t]||(K1(i).records[t]={})).handler=n}}function Q1(t,e,n){t.handler("leave",null,n)}function t2(t,e,n,i){e.handler(t,n,i)}function e2(t,e){if(!xy.node){var n=e.getZr();(K1(n).records||{})[t]&&(K1(n).records[t]=null)}}const n2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";J1("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){e2("axisPointer",e)},e.prototype.dispose=function(t,e){e2("axisPointer",e)},e.type="axisPointer",e}(rR);function i2(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=VM(o,t);if(null==a||a<0||i_(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(h),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues($y(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var r2=FM();function o2(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||e_(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){c2(r)&&(r=i2({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=c2(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||c2(r),d={},p={},f={list:[],map:{}},g={showPointer:n_(s2,p),showTooltip:n_(l2,f)};Ky(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Ky(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&a2(t,a,g,!1,d)}}))}));var v={};return Ky(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Ky(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,u2(e),u2(t)))),v[t.key]=o}}))})),Ky(v,(function(t,e){a2(c[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];Ky(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(t,e,n,i){if(c2(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=r2(i)[r]||{},a=r2(i)[r]={};Ky(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Ky(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Ky(o,(function(t,e){!a[e]&&l.push(t)})),Ky(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function a2(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Ky(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),Ky(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&jy(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function s2(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function l2(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=aj(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function u2(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function c2(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function h2(t){lj.registerAxisPointerClass("CartesianAxisPointer",q1),t.registerComponentModel(Z1),t.registerComponentView(n2),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!i_(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=nj(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o2)}var d2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var c=N1(i),h=p2[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];Dx(d,d,s),Tx(d,d,[i.cx,i.cy]),l=dk([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=ej.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));B1(t,n,i,r,d)},e}(R1);var p2={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:G1(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:W1(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:W1(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const f2=d2;const g2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(cP);var v2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",UM).models[0]},e.type="polarAxis",e}(cP);qy(v2,aF);var m2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="angleAxis",e}(v2),y2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="radiusAxis",e}(v2),_2=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return my(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(OF);_2.prototype.dataToRadius=OF.prototype.dataToCoord,_2.prototype.radiusToData=OF.prototype.coordToData;const x2=_2;var b2=FM(),w2=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return my(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=PS(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=b2(t.model),d=h.lastAutoInterval,p=h.lastTickCount;return null!=d&&null!=p&&Math.abs(d-c)<=1&&Math.abs(p-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(OF);w2.prototype.dataToAngle=OF.prototype.dataToCoord,w2.prototype.angleToData=OF.prototype.coordToData;const S2=w2;var M2=["radius","angle"],I2=function(){function t(t){this.dimensions=M2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new x2,this._angleAxis=new S2,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return A2(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return A2(e)===this?this.pointToData(n):null},t}();function A2(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const C2=I2;function T2(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();Ky(oF(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),Ky(oF(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),QV(i.scale,i.model),QV(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function D2(t,e){if(t.type=e.get("type"),t.scale=tF(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}const k2={dimensions:M2,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new C2(i+"");r.update=T2;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");D2(o,s),D2(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=rM(i[0],r),t.cy=rM(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:i_(l)||(l=[0,l]);var u=[rM(l[0],s),rM(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",UM).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var L2=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function P2(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function O2(t){return t.getRadiusAxis().inverse?0:1}function E2(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var R2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return my(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=$y(n.getViewLabels(),(function(t){t=Hy(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));E2(s),E2(o),Ky(L2,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||N2[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(lj),N2={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=O2(n),u=l?0:1;(a=0===o[u]?new FT({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new lD({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[O2(n)],u=$y(i,(function(t){return new _D({shape:P2(n,[l,l+s],t.coord)})}));t.add(sk(u,{style:Yy(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[O2(n)],c=[],h=0;hf?"left":"right",m=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];l_(y)&&y.textStyle&&(a=new tL(y.textStyle,l,l.ecModel))}var _=new pC({silent:ej.isLabelSilent(e),style:kk(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(t.add(_),c){var x=ej.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,fC(_).eventData=x}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c=0?"p":"n",A=x;y&&(i[s][M]||(i[s][M]={p:x,n:x}),A=i[s][M][I]);var C=void 0,T=void 0,D=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-x,P=o.dataToCoord(M);Math.abs(L)=k})}}}))}var Y2={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},X2={splitNumber:5},q2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="polar",e}(rR);function Z2(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),f_(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var K2=["axisLine","axisTickLabel","axisName"],$2=["splitArea","splitLine"],J2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return my(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new KS;var s=Z2(e),l=new ej(e,s);Ky(K2,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Ky($2,(function(t){e.get([t,"show"])&&Q2[t](this,this.group,this._axisGroup,e)}),this),gk(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){hj(this)},e.type="singleAxis",e}(lj),Q2={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],v=0;v=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return a5(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return a5(e)===this?this.pointToData(n):null},t}();function a5(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const s5={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new o5(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",UM).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:r5};var l5=["x","y"],u5=["width","height"],c5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=p5(a,1-d5(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=N1(i),h=h5[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}F1(e,t,Z2(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Z2(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=V1(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=d5(r),s=p5(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=p5(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(R1),h5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:G1([e,n[0]],[e,n[1]],d5(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:H1([e-i/2,n[0]],[i,r],d5(t))}}};function d5(t){return t.isHorizontal()?0:1}function p5(t,e){var n=t.getRect();return[n[l5[e]],n[l5[e]]+n[u5[e]]]}const f5=c5;var g5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="single",e}(rR);function v5(t,e){var n,i=t.cellSize;1===(n=i_(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=$y([0,1],(function(t){return function(t,e){return null!=t[QL[e][0]]||null!=t[QL[e][1]]&&null!=t[QL[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));oP(t,e,{type:"box",ignoreSize:r})}const m5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(e,n,i){var r=aP(e);t.prototype.init.apply(this,arguments),v5(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),v5(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(cP);var y5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new $A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new gD({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return o_(t)&&t?(n=t,Ky(e,(function(t,e){n=n.replace("{"+e+"}",i?ux(t):t)})),n):r_(t)?t(e):e.nameMap;var n,i},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new pC({z2:30,style:kk(r,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),i.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!o_(o)||(o&&(e=hL(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/x5)-Math.floor(n[0].time/x5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(e){var n=new t(e);i.push(n),e.coordinateSystem=n})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function S5(t,e){var n;return Ky(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var M5=["transition","enterFrom","leaveTo"],I5=M5.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function A5(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?M5:I5,r=0;r=0;l--){var d,p,f;if(f=null!=(p=NM((d=n[l]).id,null))?r.get(p):null){var g=f.parent,v=(h=D5(g),{}),m=iP(f,d,g===i?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:d.hv,boundingMode:d.bounding},v);if(!D5(f).isNew&&m){for(var y=d.transition,_={},x=0;x=0)?_[b]=w:f[b]=w}jD(f,_,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){O5(n,D5(n).option,e,t._lastGraphicModel)})),this._elMap=C_()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(rR);function L5(t){var e=new(L_(T5,t)?T5[t]:ik(t))({});return D5(e).type=t,e}function P5(t,e,n,i){var r=L5(n);return e.add(r),i.set(t,r),D5(r).id=t,D5(r).isNew=!0,r}function O5(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){O5(t,e,n,i)})),z0(t,e,i),n.removeKey(D5(t).id))}function E5(t,e,n,i){t.isGroup||Ky([["cursor",EI.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];L_(e,i)?t[i]=g_(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),Ky(t_(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=r_(i)?i:null}})),L_(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var R5=["x","y","radius","angle","single"],N5=["cartesian2d","polar","singleAxis"];function B5(t){return t+"Axis"}function z5(t,e){var n,i=C_(),r=[],o=C_();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function V5(t){var e=t.ecModel,n={infoList:[],infoMap:C_()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(B5(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var F5=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),G5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return my(e,t),e.prototype.init=function(t,e,n){var i=H5(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=H5(t);Wy(this.option,t,!0),Wy(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Ky([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=C_();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Ky(R5,(function(n){var i=this.getReferringComponents(B5(n),jM);if(i.specified){e=!0;var r=new F5;Ky(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new F5;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",UM).models[0];a&&Ky(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",UM).models[0]&&o.add(t.componentIndex)}))}}}i&&Ky(R5,(function(e){if(i){var r=n.findComponents({mainType:B5(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new F5;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Ky([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(B5(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Ky(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(B5(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Ky([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Ky(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=B5(this._dimName),i=e.getReferringComponents(n,UM).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Hy(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];X5(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(iM(c,o,n))):(e=!0,c=iM(h=null==h?n[u]:i.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),q5(s),q5(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";GK(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=iM(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];X5(n,(function(t){!function(t,e,n){e&&Ky(oF(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=KV(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&X5(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=$y(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;lo[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else X5(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));X5(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;X5(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=iM(n[0]+o,n,[0,100],!0):null!=r&&(o=iM(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=lM(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const K5=Z5;const $5={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(B5(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new K5(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=C_();return Ky(n,(function(t){Ky(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var J5=!1;function Q5(t){J5||(J5=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,$5),function(t){t.registerAction("dataZoom",(function(t,e){Ky(z5(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function t3(t){t.registerComponentModel(U5),t.registerComponentView(Y5),Q5(t)}var e3=function(){},n3={};function i3(t,e){n3[t]=e}function r3(t){return n3[t]}const o3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Ky(this.option.feature,(function(t,n){var i=r3(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Wy(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(cP);function a3(t,e){var n=UL(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new $A({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var s3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];Ky(s,(function(t,e){u.push(e)})),new gz(this._featureNames||[],u).add(c).update(c).remove(n_(c,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=nP(i,o,r);eP(e.get("orient"),t,e.get("itemGap"),a.width,a.height),iP(t,i,o,r)}(r,t,n),r.add(a3(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!r_(l)&&e){var u=l.style||(l.style={}),c=PS(e,pC.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):h-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function c(c,h){var d,p=u[c],f=u[h],g=s[p],v=new tL(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:v.option.onclick,featureName:p};else{var m=r3(p);if(!m)return;d=new m}l[p]=d}else if(!(d=l[f]))return;d.uid=nL("toolbox-feature"),d.model=v,d.ecModel=e,d.api=n;var y=d instanceof e3;p||!f?!v.get("show")||y&&d.unusable?y&&d.remove&&d.remove(e,n):(!function(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof e3&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};o_(p)?(u={})[l]=p:u=p;o_(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};Ky(u,(function(l,u){var p=mk(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new pC({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(f),bk({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?ZC:KC)(p),r.add(p),p.on("click",e_(s.onclick,s,e,n,u)),g[u]=p}))}(v,d,p),v.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?ZC:KC)(i[t])},d instanceof e3&&d.render&&d.render(v,e,n,i)):y&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){Ky(this._features,(function(t){t instanceof e3&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){Ky(this._features,(function(n){n instanceof e3&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){Ky(this._features,(function(n){n instanceof e3&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(rR);const l3=s3;const u3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=xy.browser;if(r_(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=a.split(","),h=c[0].indexOf("base64")>-1,d=r?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var y=m.contentWindow,_=y.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),y.focus(),_.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var x=n.get("lang"),b='',w=window.open();w.document.write(b),w.document.title=i}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(e3);var c3="__ec_magicType_stack__",h3=[["line","bar"],["stack"]],d3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Ky(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(p3[n]){var o,a={series:[]};Ky(h3,(function(t){Xy(t,n)>=0&&Ky(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=p3[n](e,r,t,i);o&&(Yy(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,UM).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=Wy({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(e3),p3={line:function(t,e,n,i){if("bar"===t)return Wy({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return Wy({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===c3;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),Wy({id:e,stack:r?"":c3},i.get(["option","stack"])||{},!0)}};iz({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const f3=d3;var g3=new Array(60).join("-"),v3="\t";function m3(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var y3=new RegExp("["+v3+"]+","g");function _3(t,e){var n=t.split(new RegExp("\n*"+g3+"\n*","g")),i={series:[]};return Ky(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(v3)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=$y(m3(e.shift()).split(y3),(function(t){return{name:t,data:[]}})),r=0;r=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=R3[t.brushType](0,n,e);t.__rangeOffset={offset:B3[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Ky(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Ky(i.coordSyses,(function(i){var r=R3[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Ky(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=R3[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?B3[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=V3(n),o=V3(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return $y(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:q$(i),isTargetByCursor:K$(i,t,n.coordSysModel),getLinearBrushOtherExtent:Z$(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Xy(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=L3(e,t),r=0;rt[1]&&t.reverse(),t}function L3(t,e){return HM(t,e,{includeMainTypes:T3})}var P3={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=C_(),a={},s={};(n||i||r)&&(Ky(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Ky(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Ky(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Ky(r.getCartesians(),(function(t,e){(Xy(n,t.getAxis("x").model)>=0||Xy(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:E3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Ky(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:E3.geo})}))}},O3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],E3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(hk(t)),e}},R3={lineX:n_(N3,0),lineY:n_(N3,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[k3([r[0],o[0]]),k3([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:$y(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function N3(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=k3($y([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var B3={lineX:n_(z3,0),lineY:n_(z3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return $y(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function z3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function V3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const F3=D3;var G3,H3,W3=Ky,U3=CM+"toolbox-dataZoom_",j3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new X$(n.getZr()),this._brushController.on("brush",e_(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new F3(X3(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return I3(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){Y3[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new F3(X3(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=I3(t);S3(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=GK(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];W3(t,(function(t,n){e.push(Hy(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(e3),Y3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=I3(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return S3(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function X3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}G3="dataZoom",H3=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=HM(t,X3(i));return W3(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),W3(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:U3+e+o};a[n]=o,r.push(a)}},__(null==kP.get(G3)&&H3),kP.set(G3,H3);const q3=j3;const Z3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(cP);function K3(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function $3(t){if(xy.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'
'}(n,i,r)),o_(t))o.innerHTML=t+a;else if(t){o.innerHTML="",i_(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!xy.node&&n.getDom()){var r=g4(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=WM(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=YM(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=fC(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=d4;l.x=i.x,l.y=i.y,l.update(),fC(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=i2(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(g4(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===f4([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,hN(n,(function(t){return null!=fC(t).dataIndex?(r=t,!0):null!=fC(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=e_(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=f4([e.tooltipOption],i),a=this._renderMode,s=[],l=PE("section",{blocks:[],noHeader:!0}),u=[],c=new WE;Ky(t,(function(t){Ky(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=z1(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=PE("section",{header:o,noHeader:!x_(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Ky(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=nF(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",ZL(f.color),a);var g=qO(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var m=f4([d],i).get("valueFormatter");h.blocks.push(m?jy({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=zE(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=fC(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=f4([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new WE;g.marker=v.makeTooltipMarker("item",ZL(g.color),h);var m=qO(s.formatTooltip(l,!1,u)),y=p.get("order"),_=p.get("valueFormatter"),x=m.frag,b=x?zE(_?jy({valueFormatter:_},x):x,v,h,y,i.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=fC(e),r=i.tooltipConfig.option||{};if(o_(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=f4(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new WE;this._showOrMove(l,(function(){var n=Hy(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(o_(c)){var p=t.ecModel.get("useUTC"),f=i_(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=IL(f.axisValue,h,p)),h=qL(h,n,!0)}else if(r_(c)){var g=e_((function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||i_(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:i_(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),r_(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),i_(e))n=rM(e[0],s),i=rM(e[1],l);else if(l_(e)){var p=e;p.width=u[0],p.height=u[1];var f=nP(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(o_(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=v4(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=v4(h)?u[1]/2:"bottom"===h?u[1]:0),K3(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Ky(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Ky(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Ky(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Ky(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!xy.node&&e.getDom()&&(xR(this,"_updatePosition"),this._tooltipContent.dispose(),e2("itemTooltip",e))},e.type="tooltip",e}(rR);function f4(t,e,n){var i,r=e.ecModel;n?(i=new tL(n,r,r),i=new tL(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof tL&&(a=a.get("tooltip",!0)),o_(a)&&(a={formatter:a}),a&&(i=new tL(a,i,r)))}return i}function g4(t,e){return t.dispatchAction||e_(e.dispatchAction,e)}function v4(t){return"center"===t||"middle"===t}const m4=p4;var y4=["rect","polygon","keep","clear"];function _4(t,e){var n=TM(t?t.brush:[]);if(n.length){var i=[];Ky(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;i_(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,i),a={},Ky(o=u,(function(t){a[t]=1})),o.length=0,Ky(a,(function(t,e){o.push(e)})),e&&!u.length&&u.push.apply(u,y4)}}var x4=Ky;function b4(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function w4(t,e,n){var i={};return x4(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);x4(t[e],(function(t,i){if(zq.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new zq(r),"opacity"===i&&((r=Hy(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new zq(r))}}))})),i}function S4(t,e,n){var i;Ky(n,(function(t){e.hasOwnProperty(t)&&b4(e[t])&&(i=!0)})),i&&Ky(n,(function(n){e.hasOwnProperty(n)&&b4(e[n])?t[n]=Hy(e[n]):delete t[n]}))}var M4={lineX:I4(0),lineY:I4(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&uF(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(uF(i,r,o)||uF(i,r+a,o)||uF(i,r,o+s)||uF(i,r+a,o+s)||Hx.create(t).contain(l[0],l[1])||yk(r,o,r+a,o,i)||yk(r,o,r,o+s,i)||yk(r+a,o,r+a,o+s,i)||yk(r,o+s,r+a,o+s,i))||void 0}}};function I4(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return A4(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&R4(e)}};function R4(t){return new Hx(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const N4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new X$(e.getZr())).on("brush",e_(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){k4(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:Hy(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:Hy(n),$from:e})},e.type="brush",e}(rR);function B4(t,e){return Wy({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new tL(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const z4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return my(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&S4(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=$y(t,(function(t){return B4(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=B4(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(cP);var V4=["rect","polygon","lineX","lineY","keep","clear"];const F4=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,Ky(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Ky(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:V4.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(e3);var G4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return my(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(cP),H4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=g_(t.get("textBaseline"),t.get("textVerticalAlign")),l=new pC({style:kk(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new pC({style:kk(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){KL(d,"_"+t.get("target"))})),p&&h.on("click",(function(){KL(p,"_"+t.get("subtarget"))})),fC(l).eventData=fC(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=nP(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new $A({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(rR);const W4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return my(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Ky(n,(function(e,n){var i,o=NM(LM(e),"");l_(e)?(i=Hy(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new Fz([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(cP);var U4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="timeline.slider",e.defaultOption=iL(W4.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(W4);qy(U4,XO.prototype);const j4=U4;const Y4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="timeline",e}(rR);const X4=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return my(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(OF);var q4=Math.PI,Z4=FM(),K4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return PE("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Ky(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return nP(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:q4/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=t.get(["label","rotate"])||0;y=y*q4/180;var _=p.get("position",!0),x=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===_||"bottom"===_?(x&&(i=[0,0],S+=m),b&&(r=[S,0],S+=m),w&&(o=[M-g,0],M-=m)):(x&&(i=[M-g,0],M-=m),b&&(r=[0,0],S+=m),w&&(o=[M-g,0],M-=m));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;Tx(o,o,[-a,-s]),Dx(o,o,-q4/2),Tx(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p,f=t.labelPosOpt;null==f||o_(f)?(m(h,u,l,1,p="+"===f?0:1),m(d,c,l,1,1-p)):(m(h,u,l,1,p=f>=0?0:1),d[1]=h[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new cV({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new RV({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new pV}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new X4("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new KS;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new _D({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:jy({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new _D({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Yy({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Ky(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:e_(r._changeTimeline,r,t.value)},d=$4(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),lT(d);var p=fC(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],Ky(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new pC({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:e_(r._changeTimeline,r,a),silent:!1,style:kk(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=kk(u),d.ensureState("progress").style=kk(c),e.add(d),lT(d),Z4(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=NS(g_(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=mk(t.get(["controlStyle",e]),i||{},new Hx(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),lT(h)}}c(t.nextBtnPosition,"next",e_(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",e_(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",e_(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=e_(s._handlePointerDrag,s),t.ondragend=e_(s._handlePointerDragend,s),J4(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){J4(t,s._progressLine,o,n,i)}};this._currentPointer=$4(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=aM(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var h6={min:n_(c6,"min"),max:n_(c6,"max"),average:n_(c6,"average"),median:n_(c6,"median")};function d6(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!i_(e.coord)&&i_(r)){var o=p6(e,n,i,t);if((e=Hy(e)).type&&h6[e.type]&&o.baseAxis&&o.valueAxis){var a=Xy(r,o.baseAxis.dim),s=Xy(r,o.valueAxis.dim),l=h6[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&i_(r))for(var u=e.coord,c=0;c<2;c++)h6[u[c]]&&(u[c]=v6(n,n.mapDimension(r[c]),u[c]));else e.coord=[];return e}}function p6(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function f6(t,e){return!(t&&t.containData&&e.coord&&!u6(e))||t.containData(e.coord)}function g6(t,e){return t?function(t,n,i,r){return JO(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return JO(t.value,e[r])}}function v6(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var m6=FM();const y6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.init=function(){this.markerGroupMap=C_()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){m6(t).keep=!1})),e.eachSeries((function(t){var r=s6.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!m6(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){m6(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Ky(t,(function(t){var i=s6.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?$C(t):JC(t))}))}))},e.type="marker",e}(rR);function _6(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=rM(a.get("x"),n.getWidth()),l=rM(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}const x6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=s6.getMarkerModelFromSeries(t,"markPoint");e&&(_6(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new KH),u=function(t,e,n){var i;i=t?$y(t&&t.dimensions,(function(t){return jy(jy({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Fz(i,n),o=$y(n.get("data"),n_(d6,e));t&&(o=Qy(o,n_(f6,t)));var a=g6(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),_6(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(r_(i)||r_(r)||r_(o)||r_(s)){var c=e.getRawValue(t),h=e.getDataParams(t);r_(i)&&(i=i(c,h)),r_(r)&&(r=r(c,h)),r_(o)&&(o=o(c,h)),r_(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=sN(a,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){fC(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(y6);const b6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(s6);var w6=FM(),S6=function(t,e,n,i){var r,o=t.getData();if(i_(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=f_(i.yAxis,i.xAxis);else{var u=p6(i,o,e,t);s=u.valueAxis,l=v6(o,qz(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,d=Hy(i),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var f=n.get("precision");f>=0&&s_(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[d6(t,r[0]),d6(t,r[1]),jy({},r[2])];return g[2].type=g[2].type||null,Wy(g[2],g[0]),Wy(g[2],g[1]),g};function M6(t){return!isNaN(t)&&!isFinite(t)}function I6(t,e,n,i){var r=1-t,o=i.dimensions[t];return M6(e[r])&&M6(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function A6(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(I6(1,n,i,t)||I6(0,n,i,t)))return!0}return f6(t,e[0])&&f6(t,e[1])}function C6(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rM(s.get("x"),r.getWidth()),u=rM(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(cW(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;M6(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):M6(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}const T6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=s6.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=w6(e).from,o=w6(e).to;r.each((function(e){C6(r,e,!0,t,n),C6(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new XZ);this.group.add(l.group);var u=function(t,e,n){var i;i=t?$y(t&&t.dimensions,(function(t){return jy(jy({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Fz(i,n),o=new Fz(i,n),a=new Fz([],n),s=$y(n.get("data"),n_(S6,e,t,n));t&&(s=Qy(s,n_(A6,t)));var l=g6(!!t,i);return r.initData($y(s,(function(t){return t[0]})),null,l),o.initData($y(s,(function(t){return t[1]})),null,l),a.initData($y(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,d=u.line;w6(e).from=c,w6(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);C6(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sN(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:g_(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:g_(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:g_(o.get("symbolSize"),f[r?0:1]),symbol:g_(o.get("symbol",!0),p[r?0:1]),style:s})}i_(p)||(p=[p,p]),i_(f)||(f=[f,f]),i_(g)||(g=[g,g]),i_(v)||(v=[v,v]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){fC(t).dataModel=e,t.traverse((function(t){fC(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(y6);const D6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(s6);var k6=FM(),L6=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=d6(t,r),s=d6(t,o),l=a.coord,u=s.coord;l[0]=f_(l[0],-1/0),l[1]=f_(l[1],-1/0),u[0]=f_(u[0],1/0),u[1]=f_(u[1],1/0);var c=Uy([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function P6(t){return!isNaN(t)&&!isFinite(t)}function O6(t,e,n,i){var r=1-t;return P6(e[r])&&P6(n[r])}function E6(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return cW(t,"cartesian2d")?!(!n||!i||!O6(1,n,i)&&!O6(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!u6(e)&&!u6(n))||t.containZone(e.coord,n.coord)}(t,r,o):f6(t,r)||f6(t,o)}function R6(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rM(s.get(n[0]),r.getWidth()),u=rM(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),_=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(cW(a,"cartesian2d")){var v=a.getAxis("x"),m=a.getAxis("y"),y=t.get(n[0],e),_=t.get(n[1],e);P6(y)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):P6(_)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var N6=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];const B6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=s6.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=$y(N6,(function(r){return R6(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new KS});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=$y(t&&t.dimensions,(function(t){var n=e.getData();return jy(jy({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=$y(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new Fz(r,n)}else i=new Fz(r=[{name:"value",type:"float"}],n);var s=$y(n.get("data"),n_(L6,e,t,n));t&&(s=Qy(s,n_(E6,t)));var l=t?function(t,e,n,i){return JO(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return JO(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=$y(N6,(function(n){return R6(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];aM(h),aM(d);var p=!!(l[0]>h[1]||l[1]d[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(cP);const V6=z6;var F6=n_,G6=Ky,H6=KS,W6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return my(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new H6),this.group.add(this._selectorGroup=new H6),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=nP(l,u,c),d=this.layoutInner(t,r,h,i,a,s),p=nP(Yy({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=a3(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=C_(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),G6(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new H6;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style");this._createItem(d,a,o,r,e,t,f,v,g,u,i).on("click",F6(U6,a,null,i,c)).on("mouseover",F6(Y6,d.name,null,i,c)).on("mouseout",F6(X6,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),f=sw(d.fill);f&&0===f[3]&&(f[3]=.2,d=jy(jy({},d),{fill:pw(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},d,p,u,i).on("click",F6(U6,null,a,i,c)).on("mouseover",F6(Y6,null,a,i,c)).on("mouseout",F6(X6,null,a,i,c)),l.set(a,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();G6(t,(function(t){var i=t.type,r=new pC({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Tk(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),lT(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),G6(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?eB(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[c]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=m||l||"roundRect",i,a,s,h,f,c),_=new H6,x=i.getModel("textStyle");if(!r_(t.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=MN(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,S=o,M=r.get("formatter"),I=e;o_(M)&&M?I=M.replace("{name}",null!=e?e:""):r_(M)&&(I=M(e));var A=f?x.getTextColor():i.get("inactiveColor");_.add(new pC({style:kk(x,{text:I,x:w,y:p/2,fill:A,align:S,verticalAlign:"middle"},{inheritColor:A})}));var C=new $A({shape:_.getBoundingRect(),invisible:!0}),T=i.getModel("tooltip");return T.get("show")&&bk({el:C,componentModel:r,itemName:e,itemTooltipOption:T.option}),_.add(C),_.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(_),lT(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();eP(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){eP("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+h[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(rR);function U6(t,e,n,i){X6(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Y6(t,e,n,i)}function j6(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],m=g_(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-d[r]:g[i]+=d[r]+m);v[1-i]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var y={x:0,y:0};if(y[r]=p?n[r]:h[r],y[o]=Math.max(h[o],d[o]),y[a]=Math.min(0,d[a]+v[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-m,0),_[o]=y[o],u.setClipPath(new $A({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&jD(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Ky(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",o_(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=e8[r],a=n8[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=c;++f)(!(m=y(l[f]))&&v.e>g.s+i||m&&!_(m,g.s))&&(g=v.i>g.i?v:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)(m=y(l[f]))&&_(v,m.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(q6);const r8=i8;function o8(t){hz($6),t.registerComponentModel(Q6),t.registerComponentView(r8),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}const a8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="dataZoom.inside",e.defaultOption=iL(W5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(W5);var s8=FM();function l8(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function u8(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function c8(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function h8(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=s8(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=C_());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){Ky(V5(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:n_(c8,e),dispatchAction:n_(u8,t),dataZoomInfoMap:null,controller:null},i=n.controller=new jj(t.getZr());return Ky(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=C_())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),_R(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else l8(i,t)}))}))}var d8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return my(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){s8(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:e_(p8.pan,this),zoom:e_(p8.zoom,this),scrollMove:e_(p8.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=s8(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return GK(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:f8((function(t,e,n,i,r,o){var a=g8[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:f8((function(t,e,n,i,r,o){return g8[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function f8(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return GK(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var g8={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const v8=d8;function m8(t){Q5(t),t.registerComponentModel(a8),t.registerComponentView(v8),h8(t)}const y8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=iL(W5.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(W5);var _8=$A,x8="horizontal",b8="vertical",w8=["line","bar","candlestick","scatter"],S8={easing:"cubicOut",duration:100,delay:0},M8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return my(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=e_(this._onBrush,this),this._onBrushEnd=e_(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),_R(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){xR(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new KS;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===x8?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=aP(t.option);Ky(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=nP(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b8&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==x8||r?n===x8&&r?{scaleY:a?1:-1,scaleX:-1}:n!==b8||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new _8({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new _8({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:e_(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=p[1]/(r.count()-1),m=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)m+=v;else{var n=null==t||isNaN(t)||""===t,i=n?0:iM(t,u,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([m,0]),g.push([m,0])),f.push([m,i]),g.push([m,i]),m+=v,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _,x,b,w,S,M=this.dataZoomModel,I=0;I<3;I++){var A=(_=1===I,x=void 0,b=void 0,w=void 0,S=void 0,x=M.getModel(_?"selectedDataBackground":"dataBackground"),b=new KS,w=new dD({shape:{points:s},segmentIgnoreThreshold:1,style:x.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),S=new gD({shape:{points:l},segmentIgnoreThreshold:1,style:x.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),b.add(w),b.add(S),b);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){Ky(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&Xy(w8,t.get("type"))<0)){var a,s=i.getComponent(B5(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new _8({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new _8({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Ky([0,1],(function(e){var o=a.get("handleIcon");!bN[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=MN(o,-1,0,2,2,null,!0);s.attr({cursor:I8(this._orient),draggable:!0,drift:e_(this._onDragMove,this,e),ondragend:e_(this._onDragEnd,this),onmouseover:e_(this._showDataInfo,this,!0),onmouseout:e_(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=rM(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),lT(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new pC({silent:!0,invisible:!0,style:kk(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=rM(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new $A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=MN(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new $A({invisible:!0,shape:{y:o[1]-v,height:d+v}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:I8(this._orient),drift:e_(this._onDragMove,this,"all"),ondragstart:e_(this._showDataInfo,this,!0),ondragend:e_(this._onDragEnd,this),onmouseover:e_(this._showDataInfo,this,!0),onmouseout:e_(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[iM(t[0],[0,100],e,!0),iM(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];GK(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?iM(o.minSpan,a,r,!0):null,null!=o.maxSpan?iM(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=aM([iM(i[0],r,a,!0),iM(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=aM(n.slice()),r=this._size;Ky([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Px(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=aM([iM(n.x,i,r,!0),iM(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(_x(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new _8({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?S8:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=V5(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(j5);function I8(t){return"vertical"===t?"ns-resize":"ew-resize"}const A8=M8;function C8(t){t.registerComponentModel(y8),t.registerComponentView(A8),Q5(t)}var T8={get:function(t,e,n){var i=Hy((D8[t]||{})[e]);return n&&i_(i)?i[i.length-1]:i}},D8={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const k8=T8;var L8=zq.mapVisual,P8=zq.eachVisual,O8=i_,E8=Ky,R8=aM,N8=iM,B8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return my(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&S4(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=e_(t,this),this.controllerVisuals=w4(this.option.controller,e,t),this.targetVisuals=w4(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=TM(t),e},e.prototype.eachTargetSeries=function(t,e){Ky(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],i_(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return o_(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):r_(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=R8([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});Wy(i,n),Wy(r,n);var o=this.isCategory();function a(n){O8(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},E8(i,(function(t,e){if(zq.isValidType(e)){var n=k8.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";E8(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&Hy(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&Hy(n)||(o?s[0]:[s[0],s[0]])),l.symbol=L8(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;P8(u,(function(t){t>c&&(c=t)})),l.symbolSize=L8(u,(function(t){return N8(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(cP);const z8=B8;var V8=[20,140],F8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=V8[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=V8[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i_(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Ky(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=aM((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=G8(this,"outOfRange",this.getExtent()),n=G8(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new KS("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();q8([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=X8(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=dk(n.handleLabelPoints[l],hk(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=X8(t,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=dk(l.indicatorLabelPoint,hk(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?m:"middle",align:y?"center":m});var _={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(_,b),v.animateTo(x,b)}else u.attr(_),v.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Sr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||Q8(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function o9(t,e,n,i){for(var r=e.targetVisuals[i],o=zq.prepareVisualTypes(r),a={color:sN(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(n9,i9),Ky(r9,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(s9))}function h9(t){t.registerComponentModel(H8),t.registerComponentView(e9),c9(t)}var d9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return my(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],p9[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=Hy(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=$y(this._pieceList,(function(t){return t=Hy(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=zq.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Ky(e.pieces,(function(t){Ky(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),Ky(n,(function(t,n){var i=!1;Ky(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&Ky(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=k8.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,Ky(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;Ky(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Hy(t)},e.prototype.getValueState=function(t){var e=zq.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){zq.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return Ky(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=iL(z8.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(z8),p9={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function f9(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const g9=d9;const v9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return my(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=f_(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),Ky(l.viewPieceList,(function(i){var l=i.piece,u=new KS;u.onclick=e_(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new pC({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),eP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:Y8(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return j8(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new KS,a=this.visualMapModel.textStyleModel;o.add(new pC({style:kk(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=$y(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(MN(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=Hy(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,Ky(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(W8);function m9(t){t.registerComponentModel(g9),t.registerComponentView(v9),c9(t)}var y9={label:{enabled:!0},decal:{show:!1}},_9=FM(),x9={};function b9(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=Hy(y9);Wy(i.label,t.getLocaleModel().get("aria"),!1),Wy(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=C_();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),_9(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(r_(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=BP(e.ecModel,e.name,x9,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=_9(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=BP(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(t,e){var n=t?jy(jy({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=Yy(o.option,i),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=d?r(o.get(["general","withTitle"]),{title:d}):o.get(["general","withoutTitle"]);var p=[];s+=r(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,t.getLocaleModel().get(["series","typeNames"])[_]||"自定义图")});var s=e.getData();if(s.count()>u)i+=r(o.get(["data","partialData"]),{displayCnt:u});else i+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),d=o.get(["data","separator","end"]),f=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},M9=function(){function t(t){var e;if(null==(this._condVal=o_(t)?new RegExp(t):(e=t,"[object RegExp]"===ky.call(e)?t:null))){MM("")}}return t.prototype.evaluate=function(t){var e=typeof t;return o_(e)?this._condVal.test(t):!!s_(e)&&this._condVal.test(t+"")},t}(),I9=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),A9=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&C.push(e),e=[t,n]}function O(t,n,i,r){V9(t,i)&&V9(n,r)||e.push(t,n,i,r,i,r)}for(var E=0;EH:j2&&C.push(e),C}function G9(t,e,n,i,r,o,a,s,l,u){if(V9(t,n)&&V9(e,i)&&V9(r,a)&&V9(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,v=i-e,m=r-a,y=o-s,_=g*g+v*v,x=m*m+y*y;if(_=0&&x-w*w=0)l.push(a,s);else{var S=[],M=[];Eb(t,n,r,a,.5,S),Eb(e,i,o,s,.5,M),G9(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),G9(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function H9(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),h=H9([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p1?null:new Px(p*l+t,p*u+e)}function Y9(t,e,n){var i=new Px;Px.sub(i,n,e),i.normalize();var r=new Px;return Px.sub(r,t,e),r.dot(i)}function X9(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function q9(t){var e=t.points,n=[],i=[];WI(e,n,i);var r=new Hx(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Px,c=new Px;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;or,a=H9([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(_=0;_0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function h7(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=$y(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return $y(o,(function(o,a){return{cp:o,z:c7(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function d7(t){return $9(t.path,t.count)}function p7(t){return i_(t[0])}function f7(t,e){for(var n=[],i=t.length,r=0;r=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var g7={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);p7(t)&&(s=t,l=e),p7(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?f7(l,s):f7(h?e:t,[h?t:e]),p=0,f=0;fy7))for(var i=n.getIndices(),r=function(t){for(var e=t.dimensions,n=0;n0&&i.group.traverse((function(t){t instanceof NA&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function A7(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function C7(t){return i_(t)?t.sort().join(","):t}function T7(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function D7(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:T7(e.oldData[n]),dim:t.dimension})})),Ky(TM(t.to),(function(t){var i=D7(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:T7(r),dim:t.dimension})}})),r.length>0&&o.length>0&&I7(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=C_(),i=C_(),r=C_();return Ky(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=A7(e),l=C7(s);i.set(l,{dataGroupId:o,data:a}),i_(s)&&Ky(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),Ky(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=A7(t),s=C7(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:T7(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:T7(o),data:o}]});else if(i_(a)){var u=[];Ky(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:T7(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:T7(o)}]})}else{var c=r.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:T7(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:T7(o)})}}}})),n}(i,n);Ky(o.keys(),(function(t){var n=o.get(t);I7(n.oldSeries,n.newSeries,e)}))}Ky(n.updatedSeries,(function(t){t[XE]&&(t[XE]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c(ln("data-v-aebb9598"),t=t(),un(),t),L7={class:"content1"},P7={class:"content_left"},O7={class:"content_left_item1"},E7=k7((()=>Ar("div",{class:"content_left_item1_head"},[Ar("span",null,"当日员工产量TOP10")],-1))),R7={class:"content_left_item1_content"},N7={class:"content_left_item1_content_row_name"},B7={class:"content_left_item1_content_row_line"},z7={class:"content_left_item1_content_row_num"},V7={class:"content_left_item2"},F7=k7((()=>Ar("div",{class:"content_left_item2_head"},[Ar("span",null,"仓库实时余量统计")],-1))),G7={class:"content_left_item2_content"},H7=Lr('
物料名称 / 工序
仓库
货架
数量
',1),W7={class:"scroll_item_row"},U7={class:"scroll_item_row"},j7={class:"scroll_item_row"},Y7={class:"scroll_item_row"},X7={class:"content_center"},q7={class:"content_center_top"},Z7={class:"content_center_top_list"},K7=["onClick"],$7={key:0,class:"content_center_top_form"},J7=Lr('
计划编码
物料名称
物料编码
计划数量
各工序完成情况
良品数/完工数
',1),Q7={class:"scroll_item_row"},ttt={class:"scroll_item_row"},ett={class:"scroll_item_row"},ntt={class:"scroll_item_row"},itt={class:"scroll_item_row"},rtt=["onClick"],ott=k7((()=>Ar("div",{class:"scroll_item_row_item_x"},null,-1))),att={key:0},stt={key:1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAZCAYAAAC/zUevAAAAAXNSR0IArs4c6QAAAwdJREFUSEvFlk1IVFEUx//n3acoYxFRbtqUFGI2juUESkFIG503IpWFkEJJBgbmqmhRYGmbIAiyiDAiC4LpY5EzY9pCWpSRH/BmEFoUYtCihVFkkuPce2LGN9OUX6My49u99849/98995w/l7BWz1h/FraV/47I01ow6EF/OzOfB+O5dBi1aYcQQX8DmO9Zmw/JbFqfVogM88UeReINgCwL4r4sMhrSBzH6cqOQchjA1ggAA0EVUqVwVk2lB4JbNRHc6wNQYVXghxTCicKKj2lrTD3gvcKgSxYAg6laOlzdsaFIeSVE0GuAKSIY1SKgPVxkxICiHKmFCHjzBCjSBxusXfdJ+2AlqFUlWkPqIN56srUc2wABjqggY1xmTpeg4PDE/96UMghh+rpAqLcEpzXC/hm7MTSfOaYEQjO9Z4joVlyQ0SgdRudC7kwY6t6kZYjTmoahsN3Vt1obzzD9pYr4NYBMq+s6pd1oXCwviYDvIYA669zuSP1XCwqPhVYEY/bmCgqPANhiGdKwyqZ92OGaXhRCD/puMKMlIWhQClWDwqrPywLxeITIt70CoXx2HU1InUuw0xhfKg/B7LUJTXaCufZvME2QUsfDxe7epRLE/utB3zVmnLPeFRFVJnu88cbUgt5mYroOICOWiMGXld1oAxEvBiNM3xEQnsZimPmicrivJruBf6ZDD3SXMbQnsTO1kvRIIepQWPFt3qRmT74gNQhgndWI3XKXq3op8MXNasS/WejqMUAHE0ZsXNNQM2fOR/tzdDn1noECK/aTlCEndh/6nmwVot0zb7DHI/R8WxsTLiTETDP4rCpy342tEQG/B+Cj1vuUIK0sZK8MLAdgYQgrizD9VSDuSvD+CNMDOTnZpOXYmgiI9JA1DFwv7e5HywVYEiKaMODN05ieEaE4rgd8YGA7AH32G3fIInfzSgCSg4hEjfVniZ9TtwGcnCtEAzKUewBO50xqIeLH4zsFws2EO+JXqVQJiqu+rBQg+UokKMxeVvUOAm8kphMzDte71QBE1v4BQakDwfLPV9MAAAAASUVORK5CYII=",alt:""},ltt={class:"scroll_item_row_item_wz"},utt={class:"scroll_item_row"},ctt={key:1,class:"content_center_top_form1"},htt=Lr('
工序名称
计划个数
计划数量
良品数
不良品数
未完工数量
不良率
',1),dtt={class:"scroll_item_row"},ptt={class:"scroll_item_row"},ftt={class:"scroll_item_row"},gtt={class:"scroll_item_row"},vtt={class:"scroll_item_row"},mtt={class:"scroll_item_row"},ytt={class:"scroll_item_row"},_tt={class:"content_center_bottom"},xtt=k7((()=>Ar("div",{class:"content_center_bottom_head"},[Ar("span",null,"报工日志")],-1))),btt={class:"content_center_bottom_b"},wtt=Lr('
员工名称
物料名称
物料编码
报工时间
良品数
不良品数
不良率
',1),Stt={class:"scroll_item_row"},Mtt={class:"scroll_item_row"},Itt={class:"scroll_item_row"},Att={class:"scroll_item_row"},Ctt={class:"scroll_item_row"},Ttt={class:"scroll_item_row"},Dtt={class:"scroll_item_row"},ktt={class:"content_right"},Ltt={class:"content_right_top"},Ptt=k7((()=>Ar("div",{class:"content_right_top_head"},[Ar("span",null,"近7天不良品分布")],-1))),Ott={class:"content_right_top_nr"},Ett={key:0,class:"content_right_top_nr_bottom_yuan"},Rtt=k7((()=>Ar("span",null,"不良项分布",-1))),Ntt=k7((()=>Ar("div",{class:"content_right_top_nr_top",id:"lineChrat"},null,-1))),Btt=k7((()=>Ar("div",{class:"content_right_top_nr_bottom",id:"pieChart"},null,-1))),ztt={class:"content_right_bottom"},Vtt=k7((()=>Ar("div",{class:"content_right_bottom_head"},[Ar("span",null,"设备巡检记录")],-1))),Ftt={class:"content_right_bottom_nr"},Gtt=Lr('
巡检时间
巡检设备
巡检结果
巡检人员
',1),Htt={class:"scroll_item_row"},Wtt={class:"scroll_item_row"},Utt={class:"scroll_item_row"},jtt={class:"scroll_item_row"},Ytt={__name:"index",setup(t){const e=qm();let n=se({production:[],marginStatistics:[],plannedProgress:[],processProgress:[],log:[],patrolInspection:[],dayDistribution:[],typeDistribution:[],num:0,baseNum:0}),{baseNum:i}=De(n),r=we(null),o=we(null),a=we(null),s=we(null),l=we(null),u=we(null),c=we(null),h=we(null),d=we(null),p=we(null),f=we(null),g=we([{name:"成品计划进度",id:1,active:!0,background:"tab_select_grey@2x.png",activeBackground:"tab_select@2x.png"},{name:"工序进度",id:2,active:!1,background:"tab_select_grey@2x.png",activeBackground:"tab_select@2x.png"}]);const v=vv(),m=eo((()=>v.companyId)),y=eo((()=>v.departId));mn((()=>y.value),(t=>{t&&_()})),P();const _=()=>{hv(m.value,y.value).then((t=>{t.length>0&&(n.baseNum=t[0].doneNum,n.production=t)})),function(t,e){return cv.get(`statistics/getStockList/${t}/${e}`)}(m.value,y.value).then((t=>{n.marginStatistics=t,Xe((()=>{L()}))})),dv(m.value,y.value).then((t=>{n.plannedProgress=t,Xe((()=>{P()}))})),pv(m.value,y.value,{capacity:9999,model:{},page:1}).then((t=>{n.log=t.records,Xe((()=>{E()}))})),function(t,e,n){return cv.post(`statistics/getDeviceCheckPage/${t}/${e}`,n)}(m.value,y.value,{capacity:9999,model:{},page:1}).then((t=>{n.patrolInspection=t.records,Xe((()=>{R()}))})),fv(m.value,y.value,"").then((t=>{t&&t.length>0&&(n.dayDistribution=t.map((t=>({date:t.createTime,num:t.unqualifiedNum}))),function(){let t,e=JB(document.getElementById("lineChrat")),i=[],r=[],o=0;n.dayDistribution.forEach((t=>{i.push(t.date),r.push(t.num),o+=t.num})),t={title:{text:`近七日不良品总数:${o}`,textStyle:{color:"#fff",fontSize:12}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{width:.5,color:["#fff"]}},axisLabel:{textStyle:{color:"#fff"}},data:i},yAxis:{type:"value",splitLine:{lineStyle:{width:.5,color:["#fff"]}},axisLabel:{textStyle:{color:"#fff"}}},series:[{data:r,type:"line",lineStyle:{color:"#03D2B5",width:1},areaStyle:{color:new LD(0,0,0,1,[{offset:0,color:"rgba(3, 210, 181, .9)"},{offset:1,color:"rgba(3, 210, 181, 0)"}])}}],tooltip:{trigger:"axis"},legend:{name:"1adssad",itemWidth:10,itemHeight:10,itemGap:4,textStyle:{color:"#fff"}}},t&&e.setOption(t)}())})),gv(m.value,y.value,"").then((t=>{t&&t.length>0&&(n.num=0,n.typeDistribution=t.map((t=>(n.num+=t.unqualifiedNum,{name:t.categoryName,num:t.unqualifiedNum}))),function(){let t=JB(document.getElementById("pieChart")),e=[],i=[];n.typeDistribution.forEach((t=>{e.push(t.name),i.push({name:t.name,value:t.num})}));let r={legend:{show:!1,type:"scroll",orient:"vertical",right:10,top:20,bottom:20,data:e},series:[{type:"pie",radius:["60%","70%"],itemStyle:{borderRadius:4,borderColor:"rgba(52, 88, 159, 0.4)",borderWidth:4},center:["50%","50%"],labelLine:{show:!1},label:{formatter:"{dot| } {title|{b} {c}}\n\n{per|{d}%}",rich:{title:{color:"#fff"},per:{color:"#01D9FE"},dot:{backgroundColor:"inherit",width:8,height:8,borderRadius:4}}},endLabel:{show:!0,distance:5,color:"red"},data:i,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 1)"}}}]};r&&t.setOption(r)}())})),function(t,e){return cv.get(`statistics/getPlanData/${t}/${e}`)}(m.value,y.value).then((t=>{v.setNum(t)}))};Jn((()=>{clearTimeout(r.value),clearTimeout(o.value),clearTimeout(a.value),clearTimeout(s.value),clearTimeout(l.value),clearTimeout(u.value)}));const x=t=>{clearTimeout(o.value),clearTimeout(a.value),g.value.forEach(((e,i)=>{i===t?(0==i?dv(m.value,y.value).then((t=>{n.plannedProgress=t,Xe((()=>{P()}))})):function(t,e){return cv.get(`statistics/getProcedureProcessList/${t}/${e}`)}(m.value,y.value).then((t=>{n.processProgress=t,Xe((()=>{O()}))})),e.active=!0):e.active=!1}))};function b(){clearTimeout(r.value)}function w(){clearTimeout(o.value)}function S(){clearTimeout(a.value)}function M(){clearTimeout(s.value)}function I(){clearTimeout(l.value)}function A(){L()}function C(){P()}function T(){O()}function D(){E()}function k(){R()}function L(){clearTimeout(r.value);let t=we(100);r.value=setInterval(N,t.value)}function P(){clearTimeout(o.value);let t=we(100);o.value=setInterval(B,t.value)}function O(){clearTimeout(a.value);let t=we(100);a.value=setInterval(z,t.value)}function E(){clearTimeout(s.value);let t=we(100);s.value=setInterval(V,t.value)}function R(){clearTimeout(l.value);let t=we(100);l.value=setInterval(F,t.value)}function N(){let t=c.value;if(0==t.offsetHeight)t=c.value;else{if(t.children.length<8)return void clearTimeout(r.value);if(t.scrollTop+=1,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}function B(){let t=h.value;if(0==t.offsetHeight)t=h.value;else{if(t.children.length<7)return void clearTimeout(o.value);if(t.scrollTop+=1,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}function z(){let t=d.value;if(0==t.offsetHeight)t=d.value;else{if(t.children.length<7)return void clearTimeout(a.value);if(t.scrollTop+=1,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}function V(){let t=p.value;if(0==t.offsetHeight)t=p.value;else{if(t.children.length<6)return void clearTimeout(s.value);if(t.scrollTop+=1,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}function F(){let t=f.value;if(0==t.offsetHeight)t=f.value;else{if(t.children.length<7)return void clearTimeout(l.value);if(t.scrollTop+=1,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}return qn((()=>{y.value&&(u.value=setInterval(_(),6e4))})),(t,r)=>{const o=pf,a=Cd;return gr(),_r("div",L7,[Ar("div",P7,[Ar("div",O7,[E7,Ar("div",R7,[(gr(!0),_r(ur,null,ui(Ae(n).production,((t,e)=>(gr(),_r("div",{class:"content_left_item1_content_row",key:e},[Ar("div",N7,[Ar("div",{class:j(e>2?"num bg1":"num bg2")},Z(e+1),3),Ar("span",null,Z(t.userName),1)]),Ar("div",B7,[Cr(o,{"show-text":!1,percentage:t.doneNum/Ae(i)*100},null,8,["percentage"])]),Ar("div",z7,Z(t.doneNum),1)])))),128))])]),Ar("div",V7,[F7,Ar("div",G7,[H7,Ar("div",{onMouseenter:b,onMouseleave:A,class:"main_container"},[Ar("div",{ref_key:"scrollContainer",ref:c,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(n).marginStatistics,((t,e)=>(gr(),_r("div",{key:e,class:j(e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2")},[Ar("div",W7,Z(t.materialName)+" / "+Z(t.procedureName),1),Ar("div",U7,Z(t.warehouseName),1),Ar("div",j7,Z(t.location),1),Ar("div",Y7,Z(t.num)+Z(t.unitName),1)],2)))),128))],512)],32)])])]),Ar("div",X7,[Ar("div",q7,[Ar("div",Z7,[(gr(!0),_r(ur,null,ui(Ae(g),((t,e)=>(gr(),_r("div",{onClick:t=>x(e),class:j(t.active?"content_center_top_list_item bg4":"content_center_top_list_item bg3"),key:e},Z(t.name),11,K7)))),128))]),Ae(g)[0].active?(gr(),_r("div",$7,[J7,Ar("div",{onMouseenter:w,onMouseleave:C,class:"main_container"},[Ar("div",{ref_key:"scrollContainer1",ref:h,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(n).plannedProgress,((t,n)=>(gr(),_r("div",{key:n,class:j(n%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2")},[Ar("div",Q7,Z(t.code),1),Ar("div",ttt,Z(t.materialName),1),Ar("div",ett,Z(t.materialCode),1),Ar("div",ntt,Z(t.num),1),Ar("div",itt,[(gr(!0),_r(ur,null,ui(t.procedureList,((t,n)=>(gr(),xr(a,{key:n,effect:"dark",content:"已报工良品数"+t.doneNum+";工序计划数"+t.planNum,placement:"top"},{default:cn((()=>[Ar("div",{class:"scroll_item_row_item",onClick:n=>{return i=t.procedureId,r=t.procedureName,v.setProcedureName(r),void e.push({name:"process",query:{procedureId:i}});var i,r}},[ott,t.rate<100?(gr(),_r("span",att,Z(t.rate)+"%",1)):(gr(),_r("img",stt)),Ar("span",ltt,Z(t.procedureName),1)],8,rtt)])),_:2},1032,["content"])))),128))]),Ar("div",utt,Z(t.qualifiedNum)+"/"+Z(t.doneNum),1)],2)))),128))],512)],32)])):Pr("",!0),Ae(g)[1].active?(gr(),_r("div",ctt,[htt,Ar("div",{onMouseenter:S,onMouseleave:T,class:"main_container"},[Ar("div",{ref_key:"scrollContainer2",ref:d,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(n).processProgress,((t,e)=>(gr(),_r("div",{key:e,class:j(e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2")},[Ar("div",dtt,Z(t.procedureName),1),Ar("div",ptt,Z(t.planCount),1),Ar("div",ftt,Z(t.num),1),Ar("div",gtt,Z(t.qualifiedNum),1),Ar("div",vtt,Z(t.unqualifiedNum),1),Ar("div",mtt,Z(t.undoneNum),1),Ar("div",ytt,Z(t.unqualifiedRate)+"%",1)],2)))),128))],512)],32)])):Pr("",!0)]),Ar("div",_tt,[xtt,Ar("div",btt,[wtt,Ar("div",{onMouseenter:M,onMouseleave:D,class:"main_container"},[Ar("div",{ref_key:"scrollContainer3",ref:p,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(n).log,((t,e)=>(gr(),_r("div",{key:e,class:j(e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2")},[Ar("div",Stt,Z(t.userName),1),Ar("div",Mtt,Z(t.materialName),1),Ar("div",Itt,Z(t.materialCode),1),Ar("div",Att,Z(t.createTime),1),Ar("div",Ctt,Z(t.qualifiedNum?t.qualifiedNum:"-"),1),Ar("div",Ttt,Z(t.unqualifiedNum),1),Ar("div",Dtt,Z(t.unqualifiedRate?t.unqualifiedRate:"0")+"%",1)],2)))),128))],512)],32)])])]),Ar("div",ktt,[Ar("div",Ltt,[Ptt,Ar("div",Ott,[Ae(n).typeDistribution.length>0?(gr(),_r("div",Ett,[Ar("span",null,Z(Ae(n).num),1),Rtt])):Pr("",!0),Ntt,Btt])]),Ar("div",ztt,[Vtt,Ar("div",Ftt,[Gtt,Ar("div",{onMouseenter:I,onMouseleave:k,class:"main_container"},[Ar("div",{ref_key:"scrollContainer4",ref:f,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(n).patrolInspection,((t,e)=>(gr(),_r("div",{key:e,class:j(e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2")},[Ar("div",Htt,Z(t.checkdate),1),Ar("div",Wtt,Z(t.deviceName),1),Ar("div",Utt,Z(0==t.status?"合格":"不合格"),1),Ar("div",jtt,Z(t.userName),1)],2)))),128))],512)],32)])])])])}}},Xtt=Km(Ytt,[["__scopeId","data-v-aebb9598"]]),qtt=t=>(ln("data-v-cac462fa"),t=t(),un(),t),Ztt={class:"proccess-content"},Ktt={class:"process-left"},$tt={class:"proccess-plan"},Jtt=qtt((()=>Ar("div",{class:"header-title"},"工序计划进度",-1))),Qtt={class:"table-content"},tet=Lr('
物料名称
物料编码
计划数量
良品数
不良品数
未完工数量
不良率
',1),eet={class:"scroll_item_row"},net={class:"scroll_item_row"},iet={class:"scroll_item_row"},ret={class:"scroll_item_row"},oet={class:"scroll_item_row"},aet={class:"scroll_item_row"},set={class:"scroll_item_row"},uet={class:"today-yield"},cet=qtt((()=>Ar("div",{class:"header-title"},"当日员工产量TOP10",-1))),het={class:"yield-content"},det={class:"yield-content-left"},pet={class:"content_left_item1_content"},fet={class:"content_left_item1_content_row_name"},get={class:"content_left_item1_content_row_line"},vet={class:"content_left_item1_content_row_num"},met={class:"yield-content-left"},yet={class:"content_left_item1_content"},_et={class:"content_left_item1_content_row_name"},xet={class:"num bg1"},bet={class:"content_left_item1_content_row_line"},wet={class:"content_left_item1_content_row_num"},Met={class:"process-right"},Iet={class:"report-log"},Aet=qtt((()=>Ar("div",{class:"header-title"},"报工日志",-1))),Cet={class:"table-content"},Tet=Lr('
员工名称
物料名称
物料编码
报工时间
良品数
不良品数
不良率
',1),Det={class:"scroll_item_row"},ket={class:"scroll_item_row"},Let={class:"scroll_item_row"},Pet={class:"scroll_item_row"},Oet={class:"scroll_item_row"},Eet={class:"scroll_item_row"},Ret={class:"scroll_item_row"},Net={class:"bad-diagram"},Bet=qtt((()=>Ar("div",{class:"header-title"},"近7天不良品分布",-1))),zet={class:"bad-content"},Vet=qtt((()=>Ar("div",{id:"day-distribution"},null,-1))),Fet={class:"pie"},Get={class:"content_right_top_nr_bottom_yuan"},Het=qtt((()=>Ar("span",null,"不良项分布",-1))),Wet=qtt((()=>Ar("div",{id:"type-distribution"},null,-1))),Uet={__name:"process",setup(t){const e=Zm(),n=vv();let i=we(null),r=we(null),o=we(null),a=we(null),s=we(null);const l=se({listData:[],reportListData:[],top1:[],top2:[],baseNum:0,allBad:0,dayDistribution:[],typeDistribution:[{categoryName:"外观不良",unqualifiedNum:15},{categoryName:"有毛刺",unqualifiedNum:12},{categoryName:"尺寸不良",unqualifiedNum:22},{categoryName:"有划痕",unqualifiedNum:5},{categoryName:"其他",unqualifiedNum:2}]});let{listData:u,top1:c,top2:h,baseNum:d,allBad:p}=De(l);function f(){var t,i,r;(t=n.companyId,i=n.departId,r={procedureId:e.query.procedureId},cv.get(`statistics/getProcedurePlanData/${t}/${i}`,{params:r})).then((t=>{n.setNum(t)})),hv(n.companyId,n.departId,{procedureId:e.query.procedureId}).then((t=>{t.length&&(l.baseNum=t[0].doneNum,l.top1=[],l.top2=[],t.length<=5?l.top1=t:t.forEach(((t,e)=>{e<5?l.top1.push(t):l.top2.push(t)})))})),function(t,e,n){return cv.get(`statistics/getProcedurePlansList/${t}/${e}`,{params:n})}(n.companyId,n.departId,{procedureId:e.query.procedureId}).then((t=>{l.listData=t,_()})),pv(n.companyId,n.departId,{capacity:9999,page:1,model:{procedureId:e.query.procedureId}}).then((t=>{l.reportListData=t.records,b()})),fv(n.companyId,n.departId,e.query.procedureId).then((t=>{l.dayDistribution=t,function(){let t,e=JB(document.getElementById("day-distribution")),n=[],i=[];l.dayDistribution.forEach((t=>{n.push(t.createTime),i.push(t.unqualifiedNum)})),t={title:{text:" 近七日不良品总数:67",textStyle:{color:"#fff",fontSize:12}},xAxis:{type:"category",boundaryGap:!1,splitLine:{lineStyle:{width:.5,color:["#fff"]}},axisLabel:{textStyle:{color:"#fff"}},data:n},yAxis:{type:"value",splitLine:{lineStyle:{width:.5,color:["#fff"]}},axisLabel:{textStyle:{color:"#fff"}}},series:[{data:i,type:"line",lineStyle:{color:"#03D2B5",width:1},areaStyle:{color:new LD(0,0,0,1,[{offset:0,color:"rgba(3, 210, 181, .9)"},{offset:1,color:"rgba(3, 210, 181, 0)"}])}}],tooltip:{trigger:"axis"},legend:{name:"1adssad",itemWidth:10,itemHeight:10,itemGap:4,textStyle:{color:"#fff"}}},t&&e.setOption(t)}()})),gv(n.companyId,n.departId,e.query.procedureId).then((t=>{l.typeDistribution=t,l.allBad=t.reduce(((t,e)=>t+e.unqualifiedNum),0),function(){let t=JB(document.getElementById("type-distribution")),e=[],n=[];l.typeDistribution.forEach((t=>{e.push(t.categoryName),n.push({name:t.categoryName,value:t.unqualifiedNum})}));let i={legend:{show:!1,type:"scroll",orient:"vertical",right:10,top:20,bottom:20,data:e},series:[{type:"pie",radius:["60%","70%"],itemStyle:{borderRadius:4,borderColor:"rgba(52, 88, 159, 0.4)",borderWidth:4},center:["50%","50%"],labelLine:{show:!1},label:{formatter:"{dot| } {title|{b} {c}}\n\n{per|{d}%}",rich:{title:{color:"#fff"},per:{color:"#01D9FE"},dot:{backgroundColor:"inherit",width:8,height:8,borderRadius:4}}},endLabel:{show:!0,distance:5,color:"red"},data:n,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 1)"}}}]};i&&t.setOption(i)}()}))}function g(){clearTimeout(r.value)}function v(){_()}function m(){clearTimeout(o.value)}function y(){b()}function _(){clearTimeout(r.value),r.value=setInterval(x,100)}function x(){let t=a.value;if(0==t.offsetHeight)t=a.value;else{if(t.children.length<=10)return void clearTimeout(r.value);if(t.scrollTop+=1.5,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}function b(){clearTimeout(o.value),o.value=setInterval(w,100)}function w(){let t=s.value;if(0==t.offsetHeight)t=s.value;else{if(t.children.length<=10)return void clearTimeout(o.value);if(t.scrollTop+=1.5,t.scrollTop>=t.scrollHeight-t.clientHeight){let e=t.children[0];t.removeChild(e),t.append(e)}}}return $n((()=>{clearTimeout(r.value),clearTimeout(o.value),clearTimeout(i.value)})),qn((()=>{f(),i.value=setInterval((()=>{f()}),6e3)})),Jn((()=>{clearTimeout(r.value),clearTimeout(o.value),clearTimeout(i.value)})),(t,e)=>{const n=pf;return gr(),_r("div",Ztt,[Ar("div",Ktt,[Ar("div",$tt,[Jtt,Ar("div",Qtt,[tet,Ar("div",{onMouseenter:g,onMouseleave:v,class:"tablel_container"},[Ar("div",{ref_key:"planContainer",ref:a,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(Ae(u),((t,e)=>(gr(),_r("div",{key:t.id,class:j(["scroll_item",e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2"])},[Ar("div",eet,Z(t.materialName),1),Ar("div",net,Z(t.materialCode),1),Ar("div",iet,Z(t.num),1),Ar("div",ret,Z(t.qualifiedNum),1),Ar("div",oet,Z(t.unqualifiedNum),1),Ar("div",aet,Z(t.undoneNum),1),Ar("div",set,Z(t.unqualifiedRate)+"%",1)],2)))),128))],512)],32)])]),Ar("div",uet,[cet,Ar("div",het,[Ar("div",det,[Ar("div",pet,[(gr(!0),_r(ur,null,ui(Ae(c),((t,e)=>(gr(),_r("div",{class:"content_left_item1_content_row",key:e},[Ar("div",fet,[Ar("div",{class:j(e>2?"num bg1":"num bg2")},Z(e+1),3),Ar("span",null,Z(t.userName),1)]),Ar("div",get,[Cr(n,{"show-text":!1,percentage:t.doneNum/Ae(d)*100},null,8,["percentage"])]),Ar("div",vet,Z(t.doneNum),1)])))),128))])]),Ar("div",met,[Ar("div",yet,[(gr(!0),_r(ur,null,ui(Ae(h),((t,e)=>(gr(),_r("div",{class:"content_left_item1_content_row",key:e},[Ar("div",_et,[Ar("div",xet,Z(e+6),1),Ar("span",null,Z(t.userName),1)]),Ar("div",bet,[Cr(n,{"show-text":!1,percentage:t.doneNum/Ae(d)*100},null,8,["percentage"])]),Ar("div",wet,Z(t.doneNum),1)])))),128))])])])])]),Ar("div",Met,[Ar("div",Iet,[Aet,Ar("div",Cet,[Tet,Ar("div",{onMouseenter:m,onMouseleave:y,class:"tablel_container"},[Ar("div",{ref_key:"reportLogContainer",ref:s,class:"scroll_container"},[(gr(!0),_r(ur,null,ui(t.reportListData,((t,e)=>(gr(),_r("div",{key:t.id,class:j(["scroll_item",e%2==0?"scroll_item scroll_item_bg1":"scroll_item scroll_item_bg2"])},[Ar("div",Det,Z(t.userName),1),Ar("div",ket,Z(t.materialName),1),Ar("div",Let,Z(t.materialCode),1),Ar("div",Pet,Z(t.createTime),1),Ar("div",Oet,Z(t.qualifiedNum),1),Ar("div",Eet,Z(t.unqualifiedNum),1),Ar("div",Ret,Z(t.unqualifiedRate)+"%",1)],2)))),128))],512)],32)])]),Ar("div",Net,[Bet,Ar("div",zet,[Vet,Ar("div",Fet,[Ar("div",Get,[Ar("span",null,Z(Ae(p)),1),Het]),Wet])])])])])}}},jet=Km(Uet,[["__scopeId","data-v-cac462fa"]]);console.log("screen");const Yet=function(t){const e=om(t.routes,t),n=t.parseQuery||km,i=t.stringifyQuery||Lm,r=t.history,o=zm(),a=zm(),s=zm(),l=Se(Uv);let u=Uv;mv&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=_v.bind(null,(t=>""+t)),h=_v.bind(null,Tm),d=_v.bind(null,Dm);function p(t,o){if(o=yv({},o||l.value),"string"==typeof t){const i=Mv(n,t,o.path),a=e.resolve({path:i.path},o),s=r.createHref(i.fullPath);return yv(i,a,{params:d(a.params),hash:Dm(i.hash),redirectedFrom:void 0,href:s})}let a;if("path"in t)a=yv({},t,{path:Mv(n,t.path,o.path).path});else{const e=yv({},t.params);for(const t in e)null==e[t]&&delete e[t];a=yv({},t,{params:h(e)}),o.params=h(o.params)}const s=e.resolve(a,o),u=t.hash||"";s.params=c(d(s.params));const p=function(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}(i,yv({},t,{hash:(f=u,Am(f).replace(wm,"{").replace(Mm,"}").replace(xm,"^")),path:s.path}));var f;const g=r.createHref(p);return yv({fullPath:p,hash:u,query:i===Lm?Pm(t.query):t.query||{}},s,{redirectedFrom:void 0,href:g})}function f(t){return"string"==typeof t?Mv(n,t,l.value.path):yv({},t)}function g(t,e){if(u!==t)return qv(8,{from:e,to:t})}function v(t){return y(t)}function m(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let i="function"==typeof n?n(t):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=f(i):{path:i},i.params={}),yv({query:t.query,hash:t.hash,params:"path"in i?{}:t.params},i)}}function y(t,e){const n=u=p(t),r=l.value,o=t.state,a=t.force,s=!0===t.replace,c=m(n);if(c)return y(yv(f(c),{state:"object"==typeof c?yv({},o,c.state):o,force:a,replace:s}),e||n);const h=n;let d;return h.redirectedFrom=e,!a&&function(t,e,n){const i=e.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Av(e.matched[i],n.matched[r])&&Cv(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}(i,r,n)&&(d=qv(16,{to:h,from:r}),L(r,r,!0,!1)),(d?Promise.resolve(d):b(h,r)).catch((t=>Zv(t)?Zv(t,2)?t:k(t):D(t,h,r))).then((t=>{if(t){if(Zv(t,2))return y(yv({replace:s},f(t.to),{state:"object"==typeof t.to?yv({},o,t.to.state):o,force:a}),e||h)}else t=S(h,r,!0,s,o);return w(h,r,t),t}))}function _(t,e){const n=g(t,e);return n?Promise.reject(n):Promise.resolve()}function x(t){const e=E.values().next().value;return e&&"function"==typeof e.runWithContext?e.runWithContext(t):t()}function b(t,e){let n;const[i,r,s]=function(t,e){const n=[],i=[],r=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;aAv(t,o)))?i.push(o):n.push(o));const s=t.matched[a];s&&(e.matched.find((t=>Av(t,s)))||r.push(s))}return[n,i,r]}(t,e);n=Fm(i.reverse(),"beforeRouteLeave",t,e);for(const o of i)o.leaveGuards.forEach((i=>{n.push(Vm(i,t,e))}));const l=_.bind(null,t,e);return n.push(l),N(n).then((()=>{n=[];for(const i of o.list())n.push(Vm(i,t,e));return n.push(l),N(n)})).then((()=>{n=Fm(r,"beforeRouteUpdate",t,e);for(const i of r)i.updateGuards.forEach((i=>{n.push(Vm(i,t,e))}));return n.push(l),N(n)})).then((()=>{n=[];for(const i of s)if(i.beforeEnter)if(bv(i.beforeEnter))for(const r of i.beforeEnter)n.push(Vm(r,t,e));else n.push(Vm(i.beforeEnter,t,e));return n.push(l),N(n)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),n=Fm(s,"beforeRouteEnter",t,e),n.push(l),N(n)))).then((()=>{n=[];for(const i of a.list())n.push(Vm(i,t,e));return n.push(l),N(n)})).catch((t=>Zv(t,8)?t:Promise.reject(t)))}function w(t,e,n){s.list().forEach((i=>x((()=>i(t,e,n)))))}function S(t,e,n,i,o){const a=g(t,e);if(a)return a;const s=e===Uv,u=mv?history.state:{};n&&(i||s?r.replace(t.fullPath,yv({scroll:s&&u&&u.scroll},o)):r.push(t.fullPath,o)),l.value=t,L(t,e,n,s),k()}let M;function I(){M||(M=r.listen(((t,e,n)=>{if(!R.listening)return;const i=p(t),o=m(i);if(o)return void y(yv(o,{replace:!0}),i).catch(xv);u=i;const a=l.value;var s,c;mv&&(s=zv(a.fullPath,n.delta),c=Nv(),Vv.set(s,c)),b(i,a).catch((t=>Zv(t,12)?t:Zv(t,2)?(y(t.to,i).then((t=>{Zv(t,20)&&!n.delta&&n.type===kv.pop&&r.go(-1,!1)})).catch(xv),Promise.reject()):(n.delta&&r.go(-n.delta,!1),D(t,i,a)))).then((t=>{(t=t||S(i,a,!1))&&(n.delta&&!Zv(t,8)?r.go(-n.delta,!1):n.type===kv.pop&&Zv(t,20)&&r.go(-1,!1)),w(i,a,t)})).catch(xv)})))}let A,C=zm(),T=zm();function D(t,e,n){k(t);const i=T.list();return i.length?i.forEach((i=>i(t,e,n))):console.error(t),Promise.reject(t)}function k(t){return A||(A=!t,I(),C.list().forEach((([e,n])=>t?n(t):e())),C.reset()),t}function L(e,n,i,r){const{scrollBehavior:o}=t;if(!mv||!o)return Promise.resolve();const a=!i&&function(t){const e=Vv.get(t);return Vv.delete(t),e}(zv(e.fullPath,0))||(r||!i)&&history.state&&history.state.scroll||null;return Xe().then((()=>o(e,n,a))).then((t=>t&&Bv(t))).catch((t=>D(t,e,n)))}const P=t=>r.go(t);let O;const E=new Set,R={currentRoute:l,listening:!0,addRoute:function(t,n){let i,r;return Wv(t)?(i=e.getRecordMatcher(t),r=n):r=t,e.addRoute(r,i)},removeRoute:function(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)},hasRoute:function(t){return!!e.getRecordMatcher(t)},getRoutes:function(){return e.getRoutes().map((t=>t.record))},resolve:p,options:t,push:v,replace:function(t){return v(yv(f(t),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:T.add,isReady:function(){return A&&l.value!==Uv?Promise.resolve():new Promise(((t,e)=>{C.add([t,e])}))},install(t){t.component("RouterLink",Hm),t.component("RouterView",Xm),t.config.globalProperties.$router=this,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>Ae(l)}),mv&&!O&&l.value===Uv&&(O=!0,v(r.location).catch((t=>{})));const e={};for(const i in Uv)Object.defineProperty(e,i,{get:()=>l.value[i],enumerable:!0});t.provide(Rm,this),t.provide(Nm,le(e)),t.provide(Bm,l);const n=t.unmount;E.add(t),t.unmount=function(){E.delete(t),E.size<1&&(u=Uv,M&&M(),M=null,l.value=Uv,O=!1,A=!1),n()}}};function N(t){return t.reduce(((t,e)=>t.then((()=>x(e)))),Promise.resolve())}return R}({history:function(t){const e=function(t){const{history:e,location:n}=window,i={value:Gv(t,n)},r={value:e.state};function o(i,o,a){const s=t.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?t:t.slice(s))+i:Fv()+t+i;try{e[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(u){console.error(u),n[a?"replace":"assign"](l)}}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:function(t,n){const a=yv({},r.value,e.state,{forward:t,scroll:Nv()});o(a.current,a,!0),o(t,yv({},Hv(i.value,t,null),{position:a.position+1},n),!1),i.value=t},replace:function(t,n){o(t,yv({},e.state,Hv(r.value.back,t,r.value.forward,!0),n,{position:r.value.position}),!0),i.value=t}}}(t=function(t){if(!t)if(mv){const e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),Sv(t)}(t)),n=function(t,e,n,i){let r=[],o=[],a=null;const s=({state:o})=>{const s=Gv(t,location),l=n.value,u=e.value;let c=0;if(o){if(n.value=s,e.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else i(s);r.forEach((t=>{t(n.value,l,{delta:c,type:kv.pop,direction:c?c>0?Pv.forward:Pv.back:Pv.unknown})}))};function l(){const{history:t}=window;t.state&&t.replaceState(yv({},t.state,{scroll:Nv()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(t){r.push(t);const e=()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)};return o.push(e),e},destroy:function(){for(const t of o)t();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(t,e.state,e.location,e.replace),i=yv({location:"",base:t,go:function(t,e=!0){e||n.pauseListeners(),history.go(t)},createHref:Rv.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}("screen"),routes:[{path:"/",name:"home",component:Xtt},{path:"/process",name:"process",component:jet}]}),Xet=((...t)=>{const e=Ho().createApp(...t),{mount:n}=e;return e.mount=t=>{const i=function(t){if(v(t)){return document.querySelector(t)}return t}(t);if(!i)return;const r=e._component;g(r)||r.render||r.template||(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e})(gy);Xet.use(function(){const t=Q(!0),e=t.run((()=>we({})));let n=[],i=[];const r=ve({install(t){jo(r),r._a=t,t.provide(Yo,r),t.config.globalProperties.$pinia=r,i.forEach((t=>n.push(t))),i=[]},use(t){return this._a?n.push(t):i.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}()),Xet.use(Yet),Xet.mount("#app");