const e=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=null==e?void 0:e(r);if(!1===n||!i)return null==t?void 0:t(r)};
/**
* @vue/shared v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */function t(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const n={},r=[],i=()=>{},o=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),l=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,d=(e,t)=>c.call(e,t),p=Array.isArray,h=e=>"[object Map]"===w(e),f=e=>"[object Set]"===w(e),g=e=>"[object Date]"===w(e),v=e=>"function"==typeof e,m=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,x=e=>(b(e)||v(e))&&v(e.then)&&v(e.catch),_=Object.prototype.toString,w=e=>_.call(e),S=e=>w(e).slice(8,-1),C=e=>"[object Object]"===w(e),T=e=>m(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,M=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,I=k((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),E=/\B([A-Z])/g,O=k((e=>e.replace(E,"-$1").toLowerCase())),D=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=k((e=>e?"on".concat(D(e)):"")),L=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},B=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t},z=e=>{const t=m(e)?Number(e):NaN;return isNaN(t)?e:t};let F;const V=()=>F||(F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),H=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function j(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=m(r)?q(r):j(r);if(i)for(const e in i)t[e]=i[e]}return t}if(m(e)||b(e))return e}const W=/;(?![^(]*\))/g,G=/:([^]+)/,U=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(U,"").split(W).forEach((e=>{if(e){const n=e.split(G);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(m(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const X=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function K(e){return!!e||""===e}function $(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$(e[r],t[r]);return n}(e,t);if(n=b(e),r=b(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!$(e[n],t[n]))return!1}}return String(e)===String(t)}function Z(e,t){return e.findIndex((e=>$(e,t)))}const J=e=>!(!e||!0!==e.__v_isRef),Q=e=>m(e)?e:null==e?"":p(e)||b(e)&&(e.toString===_||!v(e.toString))?J(e)?Q(e.value):JSON.stringify(e,ee,2):String(e),ee=(e,t)=>J(t)?ee(e,t.value):h(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,[t,n],r)=>(e[te(t,r)+" =>"]=n,e)),{})}:f(t)?{["Set(".concat(t.size,")")]:[...t.values()].map((e=>te(e)))}:y(t)?te(t):!b(t)||p(t)||C(t)?t:String(t),te=(e,t="")=>{var n;return y(e)?"Symbol(".concat(null!=(n=e.description)?n:t,")"):e};
/**
* @vue/reactivity v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let ne,re;class ie{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ne,!e&&ne&&(this.index=(ne.scopes||(ne.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ne;try{return ne=this,e()}finally{ne=t}}}on(){ne=this}off(){ne=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function oe(e){return new ie(e)}function ae(e,t=ne){t&&t.active&&t.effects.push(e)}function se(){return ne}function le(e){ne&&ne.cleanups.push(e)}class ue{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ae(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ve();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(t.computed.value,this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),me()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=he,t=re;try{return he=!0,re=this,this._runnings++,ce(this),this.fn()}finally{de(this),this._runnings--,re=t,he=e}}stop(){this.active&&(ce(this),de(this),this.onStop&&this.onStop(),this.active=!1)}}function ce(e){e._trackId++,e._depsLength=0}function de(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)pe(e.deps[t],e);e.deps.length=e._depsLength}}function pe(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let he=!0,fe=0;const ge=[];function ve(){ge.push(he),he=!1}function me(){const e=ge.pop();he=void 0===e||e}function ye(){fe++}function be(){for(fe--;!fe&&_e.length;)_e.shift()()}function xe(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&pe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const _e=[];function we(e,t,n){ye();for(const r of e.keys()){let n;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=t),r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&_e.push(r.scheduler)))}be()}const Se=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ce=new WeakMap,Te=Symbol(""),Me=Symbol("");function ke(e,t,n){if(he&&re){let t=Ce.get(e);t||Ce.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Se((()=>t.delete(n)))),xe(re,r)}}function Ae(e,t,n,r,i,o){const a=Ce.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&p(e)){const e=Number(r);a.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":p(e)?T(n)&&s.push(a.get("length")):(s.push(a.get(Te)),h(e)&&s.push(a.get(Me)));break;case"delete":p(e)||(s.push(a.get(Te)),h(e)&&s.push(a.get(Me)));break;case"set":h(e)&&s.push(a.get(Te))}ye();for(const l of s)l&&we(l,4);be()}const Ie=t("__proto__,__v_isRef,__isVue"),Ee=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),Oe=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=wt(this);for(let t=0,i=this.length;t<i;t++)ke(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(wt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ve(),ye();const n=wt(this)[t].apply(this,e);return be(),me(),n}})),e}function Pe(e){y(e)||(e=String(e));const t=wt(this);return ke(t,0,e),t.hasOwnProperty(e)}class Le{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?pt:dt:i?ct:ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=p(e);if(!r){if(o&&d(Oe,t))return Reflect.get(Oe,t,n);if("hasOwnProperty"===t)return Pe}const a=Reflect.get(e,t,n);return(y(t)?Ee.has(t):Ie(t))?a:(r||ke(e,0,t),i?a:It(a)?o&&T(t)?a:a.value:b(a)?r?gt(a):ht(a):a)}}class Re extends Le{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){const t=bt(i);if(xt(n)||bt(n)||(i=wt(i),n=wt(n)),!p(e)&&It(i)&&!It(n))return!t&&(i.value=n,!0)}const o=p(e)&&T(t)?Number(t)<e.length:d(e,t),a=Reflect.set(e,t,n,r);return e===wt(r)&&(o?L(n,i)&&Ae(e,"set",t,n):Ae(e,"add",t,n)),a}deleteProperty(e,t){const n=d(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ae(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return y(t)&&Ee.has(t)||ke(e,0,t),n}ownKeys(e){return ke(e,0,p(e)?"length":Te),Reflect.ownKeys(e)}}class Be extends Le{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ne=new Re,ze=new Be,Fe=new Re(!0),Ve=new Be(!0),He=e=>e,je=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,r=!1){const i=wt(e=e.__v_raw),o=wt(t);n||(L(t,o)&&ke(i,0,t),ke(i,0,o));const{has:a}=je(i),s=r?He:n?Tt:Ct;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function Ge(e,t=!1){const n=this.__v_raw,r=wt(n),i=wt(e);return t||(L(e,i)&&ke(r,0,e),ke(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Ue(e,t=!1){return e=e.__v_raw,!t&&ke(wt(e),0,Te),Reflect.get(e,"size",e)}function qe(e){e=wt(e);const t=wt(this);return je(t).has.call(t,e)||(t.add(e),Ae(t,"add",e,e)),this}function Ye(e,t){t=wt(t);const n=wt(this),{has:r,get:i}=je(n);let o=r.call(n,e);o||(e=wt(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?L(t,a)&&Ae(n,"set",e,t):Ae(n,"add",e,t),this}function Xe(e){const t=wt(this),{has:n,get:r}=je(t);let i=n.call(t,e);i||(e=wt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Ae(t,"delete",e,void 0),o}function Ke(){const e=wt(this),t=0!==e.size,n=e.clear();return t&&Ae(e,"clear",void 0,void 0),n}function $e(e,t){return function(n,r){const i=this,o=i.__v_raw,a=wt(o),s=t?He:e?Tt:Ct;return!e&&ke(a,0,Te),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Ze(e,t,n){return function(...r){const i=this.__v_raw,o=wt(i),a=h(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=i[e](...r),c=n?He:t?Tt:Ct;return!t&&ke(o,0,l?Me:Te),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Qe(){const e={get(e){return We(this,e)},get size(){return Ue(this)},has:Ge,add:qe,set:Ye,delete:Xe,clear:Ke,forEach:$e(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ue(this)},has:Ge,add:qe,set:Ye,delete:Xe,clear:Ke,forEach:$e(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ue(this,!0)},has(e){return Ge.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:$e(!0,!1)},r={get(e){return We(this,e,!0,!0)},get size(){return Ue(this,!0)},has(e){return Ge.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:$e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Ze(i,!1,!1),n[i]=Ze(i,!0,!1),t[i]=Ze(i,!1,!0),r[i]=Ze(i,!0,!0)})),[e,n,t,r]}const[et,tt,nt,rt]=Qe();function it(e,t){const n=t?e?rt:nt:e?tt:et;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}const ot={get:it(!1,!1)},at={get:it(!1,!0)},st={get:it(!0,!1)},lt={get:it(!0,!0)},ut=new WeakMap,ct=new WeakMap,dt=new WeakMap,pt=new WeakMap;function ht(e){return bt(e)?e:mt(e,!1,Ne,ot,ut)}function ft(e){return mt(e,!1,Fe,at,ct)}function gt(e){return mt(e,!0,ze,st,dt)}function vt(e){return mt(e,!0,Ve,lt,pt)}function mt(e,t,n,r,i){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(S(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function yt(e){return bt(e)?yt(e.__v_raw):!(!e||!e.__v_isReactive)}function bt(e){return!(!e||!e.__v_isReadonly)}function xt(e){return!(!e||!e.__v_isShallow)}function _t(e){return!!e&&!!e.__v_raw}function wt(e){const t=e&&e.__v_raw;return t?wt(t):e}function St(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Ct=e=>b(e)?ht(e):e,Tt=e=>b(e)?gt(e):e;class Mt{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ue((()=>e(this._value)),(()=>At(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=wt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||At(e,4),kt(e),e.effect._dirtyLevel>=2&&At(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kt(e){var t;he&&re&&(e=wt(e),xe(re,null!=(t=e.dep)?t:e.dep=Se((()=>e.dep=void 0),e instanceof Mt?e:void 0)))}function At(e,t=4,n,r){const i=(e=wt(e)).dep;i&&we(i,t)}function It(e){return!(!e||!0!==e.__v_isRef)}function Et(e){return Dt(e,!1)}function Ot(e){return Dt(e,!0)}function Dt(e,t){return It(e)?e:new Pt(e,t)}class Pt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:wt(e),this._value=t?e:Ct(e)}get value(){return kt(this),this._value}set value(e){const t=this.__v_isShallow||xt(e)||bt(e);e=t?e:wt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Ct(e),At(this,4))}}function Lt(e){return It(e)?e.value:e}const Rt={get:(e,t,n)=>Lt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return It(i)&&!It(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Bt(e){return yt(e)?e:new Proxy(e,Rt)}class Nt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>kt(this)),(()=>At(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function zt(e){return new Nt(e)}function Ft(e){const t=p(e)?new Array(e.length):{};for(const n in e)t[n]=Wt(e,n);return t}class Vt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Ce.get(e);return n&&n.get(t)}(wt(this._object),this._key)}}class Ht{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function jt(e,t,n){return It(e)?e:v(e)?new Ht(e):b(e)&&arguments.length>1?Wt(e,t,n):Et(e)}function Wt(e,t,n){const r=e[t];return It(r)?r:new Vt(e,t,n)}const Gt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ut(e,t,n,r){try{return r?e(...r):e()}catch(i){Yt(i,t,n)}}function qt(e,t,n,r){if(v(e)){const i=Ut(e,t,n,r);return i&&x(i)&&i.catch((e=>{Yt(e,t,n)})),i}if(p(e)){const i=[];for(let o=0;o<e.length;o++)i.push(qt(e[o],t,n,r));return i}}function Yt(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,o="https://vuejs.org/error-reference/#runtime-".concat(n);for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return ve(),Ut(a,null,10,[e,i,o]),void me()}}let Xt=!1,Kt=!1;const $t=[];let Zt=0;const Jt=[];let Qt=null,en=0;const tn=Promise.resolve();let nn=null;function rn(e){const t=nn||tn;return e?t.then(this?e.bind(this):e):t}function on(e){$t.length&&$t.includes(e,Xt&&e.allowRecurse?Zt+1:Zt)||(null==e.id?$t.push(e):$t.splice(function(e){let t=Zt+1,n=$t.length;for(;t<n;){const r=t+n>>>1,i=$t[r],o=cn(i);o<e||o===e&&i.pre?t=r+1:n=r}return t}(e.id),0,e),an())}function an(){Xt||Kt||(Kt=!0,nn=tn.then(pn))}function sn(e){p(e)?Jt.push(...e):Qt&&Qt.includes(e,e.allowRecurse?en+1:en)||Jt.push(e),an()}function ln(e,t,n=(Xt?Zt+1:0)){for(;n<$t.length;n++){const t=$t[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;$t.splice(n,1),n--,t()}}}function un(e){if(Jt.length){const e=[...new Set(Jt)].sort(((e,t)=>cn(e)-cn(t)));if(Jt.length=0,Qt)return void Qt.push(...e);for(Qt=e,en=0;en<Qt.length;en++){const e=Qt[en];!1!==e.active&&e()}Qt=null,en=0}}const cn=e=>null==e.id?1/0:e.id,dn=(e,t)=>{const n=cn(e)-cn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pn(e){Kt=!1,Xt=!0,$t.sort(dn);try{for(Zt=0;Zt<$t.length;Zt++){const e=$t[Zt];e&&!1!==e.active&&Ut(e,null,14)}}finally{Zt=0,$t.length=0,un(),Xt=!1,nn=null,($t.length||Jt.length)&&pn()}}let hn,fn=[];function gn(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||n;let o=r;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in i){const e="".concat("modelValue"===s?"model":s,"Modifiers"),{number:t,trim:a}=i[e]||n;a&&(o=r.map((e=>m(e)?e.trim():e))),t&&(o=r.map(N))}let l,u=i[l=P(t)]||i[l=P(I(t))];!u&&a&&(u=i[l=P(O(t))]),u&&qt(u,e,6,o);const c=i[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,qt(c,e,6,o)}}function vn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},s=!1;if(!v(e)){const r=e=>{const n=vn(e,t,!0);n&&(s=!0,l(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||s?(p(o)?o.forEach((e=>a[e]=null)):l(a,o),b(e)&&r.set(e,a),a):(b(e)&&r.set(e,null),null)}function mn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,O(t))||d(e,t))}let yn=null,bn=null;function xn(e){const t=yn;return yn=e,bn=e&&e.type.__scopeId||null,t}function _n(e){bn=e}function wn(){bn=null}function Sn(e,t=yn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&yo(-1);const i=xn(t);let o;try{o=e(...n)}finally{xn(i),r._d&&yo(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Cn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:d,props:p,data:h,setupState:f,ctx:g,inheritAttrs:v}=e,m=xn(e);let y,b;try{if(4&n.shapeFlag){const e=i||r,t=e;y=Po(c.call(t,e,d,p,f,h,g)),b=l}else{const e=t;0,y=Po(e.length>1?e(p,{attrs:l,slots:a,emit:u}):e(p,null)),b=t.props?l:Tn(l)}}catch(_){ho.length=0,Yt(_,e,1),y=ko(co)}let x=y;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=x;e.length&&7&t&&(o&&e.some(s)&&(b=Mn(b,o)),x=Io(x,b,!1,!0))}return n.dirs&&(x=Io(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),y=x,xn(m),y}const Tn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Mn=(e,t)=>{const n={};for(const r in e)s(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function kn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!mn(n,o))return!0}return!1}function An({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const In="components",En="directives";function On(e,t){return Rn(In,e,!0,t)||e}const Dn=Symbol.for("v-ndc");function Pn(e){return m(e)?Rn(In,e,!1)||e:e||Dn}function Ln(e){return Rn(En,e)}function Rn(e,t,n=!0,r=!1){const i=yn||Ho;if(i){const n=i.type;if(e===In){const e=ra(n,!1);if(e&&(e===t||e===I(t)||e===D(I(t))))return n}const o=Bn(i[e]||n[e],t)||Bn(i.appContext[e],t);return!o&&r?n:o}}function Bn(e,t){return e&&(e[t]||e[I(t)]||e[D(I(t))])}const Nn=e=>e.__isSuspense;let zn=0;const Fn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(null==e)!function(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=e.suspense=Hn(e,i,r,t,d,n,o,a,s,l);u(null,p.pendingBranch=e.ssContent,d,null,r,p,o,a),p.deps>0?(Vn(e,"onPending"),Vn(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Gn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:v,isHydrating:m}=d;if(g)d.pendingBranch=p,So(p,g)?(l(g,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0?d.resolve():v&&(m||(l(f,h,n,r,i,null,o,a,s),Gn(d,h)))):(d.pendingId=zn++,m?(d.isHydrating=!1,d.activeBranch=g):u(g,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0?d.resolve():(l(f,h,n,r,i,null,o,a,s),Gn(d,h))):f&&So(p,f)?(l(f,p,n,r,i,d,o,a,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0&&d.resolve()));else if(f&&So(p,f))l(f,p,n,r,i,d,o,a,s),Gn(d,p);else if(Vn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=zn++,l(null,p,d.hiddenContainer,null,i,d,o,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,r,i,a,s,l,u)}},hydrate:function(e,t,n,r,i,o,a,s,l){const u=t.suspense=Hn(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);0===u.deps&&u.resolve(!1,!0);return c},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=jn(r?n.default:n),e.ssFallback=r?jn(n.fallback):ko(co)}};function Vn(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Hn(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:g,remove:v}}=u;let m;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const b=e.props?z(e.props.timeout):void 0,x=o,_={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:zn++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:a,pendingId:s,effects:l,parentComponent:u,container:c}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=i&&a.transition&&"out-in"===a.transition.mode,d&&(i.transition.afterLeave=()=>{s===_.pendingId&&(p(a,c,o===x?f(i):o,0),sn(l))}),i&&(g(i.el)!==_.hiddenContainer&&(o=f(i)),h(i,u,_,!0)),d||p(a,c,o,0)),Gn(_,a),_.pendingBranch=null,_.isInFallback=!1;let v=_.parent,b=!1;for(;v;){if(v.pendingBranch){v.effects.push(...l),b=!0;break}v=v.parent}b||d||sn(l),_.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Vn(r,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:o}=_;Vn(t,"onFallback");const a=f(n),u=()=>{_.isInFallback&&(d(null,e,i,a,r,null,o,s,l),Gn(_,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),_.isInFallback=!0,h(n,r,null,!0),c||u()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const r=!!_.pendingBranch;r&&_.deps++;const i=e.vnode.el;e.asyncDep.catch((t=>{Yt(t,e,0)})).then((o=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Jo(e,o,!1),i&&(s.el=i);const l=!i&&e.subTree.el;t(e,s,g(i||e.subTree.el),i?null:f(e.subTree),_,a,n),l&&v(l),An(e,s.el),r&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function jn(e){let t;if(v(e)){const n=mo&&e._c;n&&(e._d=!1,go()),e=e(),n&&(e._d=!0,t=fo,vo())}if(p(e)){const t=function(e,t=!0){let n;for(let r=0;r<e.length;r++){const t=e[r];if(!wo(t))return;if(t.type!==co||"v-if"===t.children){if(n)return;n=t}}return n}(e);e=t}return e=Po(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Wn(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):sn(e)}function Gn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,An(r,i))}function Un(e,t,n=Ho,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{ve();const i=Uo(n),o=qt(t,n,e,r);return i(),me(),o});return r?i.unshift(o):i.push(o),o}}const qn=e=>(t,n=Ho)=>{$o&&"sp"!==e||Un(e,((...e)=>t(...e)),n)},Yn=qn("bm"),Xn=qn("m"),Kn=qn("bu"),$n=qn("u"),Zn=qn("bum"),Jn=qn("um"),Qn=qn("sp"),er=qn("rtg"),tr=qn("rtc");function nr(e,t=Ho){Un("ec",e,t)}function rr(e,t){if(null===yn)return e;const r=na(yn),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,a,s,l=n]=t[o];e&&(v(e)&&(e={mounted:e,updated:e}),e.deep&&Ei(a),i.push({dir:e,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function ir(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(ve(),qt(l,n,8,[e.el,s,e,t]),me())}}function or(e,t,n,r){let i;const o=n&&n[r];if(p(e)||m(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(b(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];i[r]=t(e[a],a,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}function ar(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}
/*! #__NO_SIDE_EFFECTS__ */function sr(e,t){return v(e)?(()=>l({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function ur(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=ko(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}function cr(e,t,n={},r,i){if(yn.isCE||yn.parent&&lr(yn.parent)&&yn.parent.isCE)return"default"!==t&&(n.name=t),ko("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),go();const a=o&&dr(o(n)),s=_o(lo,{key:n.key||a&&a.key||"_".concat(t)},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function dr(e){return e.some((e=>!wo(e)||e.type!==co&&!(e.type===lo&&!dr(e.children))))?e:null}const pr=e=>e?Yo(e)?na(e):pr(e.parent):null,hr=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pr(e.parent),$root:e=>pr(e.root),$emit:e=>e.emit,$options:e=>Mr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,on(e.update)}),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>Ai.bind(e)}),fr=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),gr={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:i,data:o,props:a,accessCache:s,type:l,appContext:u}=e;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return a[t]}else{if(fr(i,t))return s[t]=1,i[t];if(o!==n&&d(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&d(c,t))return s[t]=3,a[t];if(r!==n&&d(r,t))return s[t]=4,r[t];wr&&(s[t]=0)}}const p=hr[t];let h,f;return p?("$attrs"===t&&ke(e.attrs,0,""),p(e)):(h=l.__cssModules)&&(h=h[t])?h:r!==n&&d(r,t)?(s[t]=4,r[t]):(f=u.config.globalProperties,d(f,t)?f[t]:void 0)},set({_:e},t,r){const{data:i,setupState:o,ctx:a}=e;return fr(o,t)?(o[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=r,!0))},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!r[s]||e!==n&&d(e,s)||fr(t,s)||(l=a[0])&&d(l,s)||d(i,s)||d(hr,s)||d(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},vr=l({},gr,{get(e,t){if(t!==Symbol.unscopables)return gr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!H(t)});function mr(){return br().slots}function yr(){return br().attrs}function br(){const e=jo();return e.setupContext||(e.setupContext=ta(e))}function xr(e){return p(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function _r(e,t){return e&&t?p(e)&&p(t)?e.concat(t):l({},xr(e),xr(t)):e||t}let wr=!0;function Sr(e){const t=Mr(e),n=e.proxy,r=e.ctx;wr=!1,t.beforeCreate&&Cr(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:h,mounted:f,beforeUpdate:g,updated:m,activated:y,deactivated:x,beforeDestroy:_,beforeUnmount:w,destroyed:S,unmounted:C,render:T,renderTracked:M,renderTriggered:k,errorCaptured:A,serverPrefetch:I,expose:E,inheritAttrs:O,components:D,directives:P,filters:L}=t;if(c&&function(e,t,n=i){p(e)&&(e=Er(e));for(const r in e){const n=e[r];let i;i=b(n)?"default"in n?Fr(n.from||r,n.default,!0):Fr(n.from||r):Fr(n),It(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(c,r,null),s)for(const i in s){const e=s[i];v(e)&&(r[i]=e.bind(n))}if(o){const t=o.call(n,n);b(t)&&(e.data=ht(t))}if(wr=!0,a)for(const p in a){const e=a[p],t=v(e)?e.bind(n,n):v(e.get)?e.get.bind(n,n):i,o=!v(e)&&v(e.set)?e.set.bind(n):i,s=ia({get:t,set:o});Object.defineProperty(r,p,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(l)for(const i in l)Tr(l[i],r,n,i);if(u){const e=v(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{zr(t,e[t])}))}function R(e,t){p(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Cr(d,e,"c"),R(Yn,h),R(Xn,f),R(Kn,g),R($n,m),R(Ri,y),R(Bi,x),R(nr,A),R(tr,M),R(er,k),R(Zn,w),R(Jn,C),R(Qn,I),p(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===i&&(e.render=T),null!=O&&(e.inheritAttrs=O),D&&(e.components=D),P&&(e.directives=P)}function Cr(e,t,n){qt(p(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Tr(e,t,n,r){const i=r.includes(".")?Ii(n,r):()=>n[r];if(m(e)){const n=t[e];v(n)&&Mi(i,n)}else if(v(e))Mi(i,e.bind(n));else if(b(e))if(p(e))e.forEach((e=>Tr(e,t,n,r)));else{const r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Mi(i,r,e)}}function Mr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach((e=>kr(l,e,a,!0))),kr(l,t,a)):l=t,b(t)&&o.set(t,l),l}function kr(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&kr(e,o,n,!0),i&&i.forEach((t=>kr(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Ar[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Ar={data:Ir,props:Pr,emits:Pr,methods:Dr,computed:Dr,beforeCreate:Or,created:Or,beforeMount:Or,mounted:Or,beforeUpdate:Or,updated:Or,beforeDestroy:Or,beforeUnmount:Or,destroyed:Or,unmounted:Or,activated:Or,deactivated:Or,errorCaptured:Or,serverPrefetch:Or,components:Dr,directives:Dr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=l(Object.create(null),e);for(const r in t)n[r]=Or(e[r],t[r]);return n},provide:Ir,inject:function(e,t){return Dr(Er(e),Er(t))}};function Ir(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Er(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Or(e,t){return e?[...new Set([].concat(e,t))]:t}function Dr(e,t){return e?l(Object.create(null),e,t):t}function Pr(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),xr(e),xr(null!=t?t:{})):t}function Lr(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rr=0;function Br(e,t){return function(n,r=null){v(n)||(n=l({},n)),null==r||b(r)||(r=null);const i=Lr(),o=new WeakSet;let a=!1;const s=i.app={_uid:Rr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:la,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&v(e.install)?(o.add(e),e.install(s,...t)):v(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,l,u){if(!a){const c=ko(n,r);return c.appContext=i,!0===u?u="svg":!1===u&&(u=void 0),l&&t?t(c,o):e(c,o,u),a=!0,s._container=o,o.__vue_app__=s,na(c.component)}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s),runWithContext(e){const t=Nr;Nr=s;try{return e()}finally{Nr=t}}};return s}}let Nr=null;function zr(e,t){if(Ho){let n=Ho.provides;const r=Ho.parent&&Ho.parent.provides;r===n&&(n=Ho.provides=Object.create(r)),n[e]=t}else;}function Fr(e,t,n=!1){const r=Ho||yn;if(r||Nr){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Nr._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function Vr(){return!!(Ho||yn||Nr)}const Hr={},jr=()=>Object.create(Hr),Wr=e=>Object.getPrototypeOf(e)===Hr;function Gr(e,t,r,i){const[o,a]=e.propsOptions;let s,l=!1;if(t)for(let n in t){if(M(n))continue;const u=t[n];let c;o&&d(o,c=I(n))?a&&a.includes(c)?(s||(s={}))[c]=u:r[c]=u:mn(e.emitsOptions,n)||n in i&&u===i[n]||(i[n]=u,l=!0)}if(a){const t=wt(r),i=s||n;for(let n=0;n<a.length;n++){const s=a[n];r[s]=Ur(o,t,s,i[s],e,!d(i,s))}}return l}function Ur(e,t,n,r,i,o){const a=e[n];if(null!=a){const e=d(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&v(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const a=Uo(i);r=o[n]=e.call(null,t),a()}}else r=e}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==O(n)||(r=!0))}return r}function qr(e,t,i=!1){const o=t.propsCache,a=o.get(e);if(a)return a;const s=e.props,u={},c=[];let h=!1;if(!v(e)){const n=e=>{h=!0;const[n,r]=qr(e,t,!0);l(u,n),r&&c.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!h)return b(e)&&o.set(e,r),r;if(p(s))for(let r=0;r<s.length;r++){const e=I(s[r]);Yr(e)&&(u[e]=n)}else if(s)for(const n in s){const e=I(n);if(Yr(e)){const t=s[n],r=u[e]=p(t)||v(t)?{type:t}:l({},t);if(r){const t=$r(Boolean,r.type),n=$r(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||d(r,"default"))&&c.push(e)}}}const f=[u,c];return b(e)&&o.set(e,f),f}function Yr(e){return"$"!==e[0]&&!M(e)}function Xr(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Kr(e,t){return Xr(e)===Xr(t)}function $r(e,t){return p(t)?t.findIndex((t=>Kr(t,e))):v(t)&&Kr(t,e)?0:-1}const Zr=e=>"_"===e[0]||"$stable"===e,Jr=e=>p(e)?e.map(Po):[Po(e)],Qr=(e,t,n)=>{if(t._n)return t;const r=Sn(((...e)=>Jr(t(...e))),n);return r._c=!1,r},ei=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Zr(i))continue;const n=e[i];if(v(n))t[i]=Qr(0,n,r);else if(null!=n){const e=Jr(n);t[i]=()=>e}}},ti=(e,t)=>{const n=Jr(t);e.slots.default=()=>n},ni=(e,t)=>{const n=e.slots=jr();if(32&e.vnode.shapeFlag){const e=t._;e?(l(n,t),B(n,"_",e,!0)):ei(t,n)}else t&&ti(e,t)},ri=(e,t,r)=>{const{vnode:i,slots:o}=e;let a=!0,s=n;if(32&i.shapeFlag){const e=t._;e?r&&1===e?a=!1:(l(o,t),r||1!==e||delete o._):(a=!t.$stable,ei(t,o)),s=t}else t&&(ti(e,t),s={default:1});if(a)for(const n in o)Zr(n)||null!=s[n]||delete o[n]};function ii(e,t,r,i,o=!1){if(p(e))return void e.forEach(((e,n)=>ii(e,t&&(p(t)?t[n]:t),r,i,o)));if(lr(i)&&!o)return;const a=4&i.shapeFlag?na(i.component):i.el,s=o?null:a,{i:l,r:c}=e,h=t&&t.r,f=l.refs===n?l.refs={}:l.refs,g=l.setupState;if(null!=h&&h!==c&&(m(h)?(f[h]=null,d(g,h)&&(g[h]=null)):It(h)&&(h.value=null)),v(c))Ut(c,l,12,[s,f]);else{const t=m(c),n=It(c);if(t||n){const i=()=>{if(e.f){const n=t?d(g,c)?g[c]:f[c]:c.value;o?p(n)&&u(n,a):p(n)?n.includes(a)||n.push(a):t?(f[c]=[a],d(g,c)&&(g[c]=f[c])):(c.value=[a],e.k&&(f[e.k]=c.value))}else t?(f[c]=s,d(g,c)&&(g[c]=s)):n&&(c.value=s,e.k&&(f[e.k]=s))};s?(i.id=-1,ci(i,r)):i()}}}let oi=!1;const ai=()=>{oi||(oi=!0)},si=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,li=e=>8===e.nodeType;function ui(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:l,insert:u,createComment:c}}=e,d=(n,r,a,l,c,b=!1)=>{b=b||!!r.dynamicChildren;const x=li(n)&&"["===n.data,_=()=>g(n,r,a,l,c,x),{type:w,ref:S,shapeFlag:C,patchFlag:T}=r;let M=n.nodeType;r.el=n,-2===T&&(b=!1,r.dynamicChildren=null);let k=null;switch(w){case uo:3!==M?""===r.children?(u(r.el=i(""),s(n),n),k=n):k=_():(n.data!==r.children&&(ai(),n.data=r.children),k=o(n));break;case co:y(n)?(k=o(n),m(r.el=n.content.firstChild,n,a)):k=8!==M||x?_():o(n);break;case po:if(x&&(M=(n=o(n)).nodeType),1===M||3===M){k=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===k.nodeType?k.outerHTML:k.data),t===r.staticCount-1&&(r.anchor=k),k=o(k);return x?o(k):k}_();break;case lo:k=x?f(n,r,a,l,c,b):_();break;default:if(1&C)k=1===M&&r.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?p(n,r,a,l,c,b):_();else if(6&C){r.slotScopeIds=c;const e=s(n);if(k=x?v(n):li(n)&&"teleport start"===n.data?v(n,n.data,"teleport end"):o(n),t(r,e,null,a,l,si(e),b),lr(r)){let t;x?(t=ko(lo),t.anchor=k?k.previousSibling:e.lastChild):t=3===n.nodeType?Eo(""):ko("div"),t.el=n,r.component.subTree=t}}else 64&C?k=8!==M?_():r.type.hydrate(n,r,a,l,c,b,e,h):128&C&&(k=r.type.hydrate(n,r,a,l,si(s(n)),c,b,e,d))}return null!=S&&ii(S,null,l,r),k},p=(e,t,n,i,o,s)=>{s=s||!!t.dynamicChildren;const{type:u,props:c,patchFlag:d,shapeFlag:p,dirs:f,transition:g}=t,v="input"===u||"option"===u;if(v||-1!==d){f&&ir(t,null,n,"created");let u,b=!1;if(y(e)){b=vi(i,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;b&&g.beforeEnter(r),m(r,e,n),t.el=e=r}if(16&p&&(!c||!c.innerHTML&&!c.textContent)){let r=h(e.firstChild,t,e,n,i,o,s);for(;r;){ai();const e=r;r=r.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(ai(),e.textContent=t.children);if(c)if(v||!s||48&d)for(const t in c)(v&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!M(t)||"."===t[0])&&r(e,t,null,c[t],void 0,void 0,n);else c.onClick&&r(e,"onClick",null,c.onClick,void 0,void 0,n);(u=c&&c.onVnodeBeforeMount)&&No(u,n,t),f&&ir(t,null,n,"beforeMount"),((u=c&&c.onVnodeMounted)||f||b)&&Wn((()=>{u&&No(u,n,t),b&&g.enter(e),f&&ir(t,null,n,"mounted")}),i)}return e.nextSibling},h=(e,t,r,o,a,s,l)=>{l=l||!!t.dynamicChildren;const c=t.children,p=c.length;for(let h=0;h<p;h++){const t=l?c[h]:c[h]=Po(c[h]);e?e=d(e,t,o,a,s,l):t.type!==uo||t.children?(ai(),n(null,t,r,null,o,a,si(r),s)):u(t.el=i(""),r)}return e},f=(e,t,n,r,i,a)=>{const{slotScopeIds:l}=t;l&&(i=i?i.concat(l):l);const d=s(e),p=h(o(e),t,d,n,r,i,a);return p&&li(p)&&"]"===p.data?o(t.anchor=p):(ai(),u(t.anchor=c("]"),d,p),p)},g=(e,t,r,i,a,u)=>{if(ai(),t.el=null,u){const t=v(e);for(;;){const n=o(e);if(!n||n===t)break;l(n)}}const c=o(e),d=s(e);return l(e),n(null,t,d,c,r,i,si(d),a),c},v=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=o(e))&&li(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return o(e);r--}return e},m=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),un(),void(t._vnode=e);d(t.firstChild,e,null,null,null),un(),t._vnode=e},d]}const ci=Wn;function di(e){return hi(e)}function pi(e){return hi(e,ui)}function hi(e,t){V().__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:p,setElementText:h,parentNode:f,nextSibling:g,setScopeId:v=i,insertStaticContent:m}=e,y=(e,t,n,r=null,i=null,o=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!So(e,t)&&(r=K(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case uo:b(e,t,n,r);break;case co:x(e,t,n,r);break;case po:null==e&&_(t,n,r,a);break;case lo:D(e,t,n,r,i,o,a,s,l);break;default:1&d?w(e,t,n,r,i,o,a,s,l):6&d?P(e,t,n,r,i,o,a,s,l):(64&d||128&d)&&u.process(e,t,n,r,i,o,a,s,l,J)}null!=c&&i&&ii(c,e&&e.ref,o,t||e,!t)},b=(e,t,n,r)=>{if(null==e)o(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,n,r)=>{null==e?o(t.el=c(t.children||""),n,r):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},w=(e,t,n,r,i,o,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?S(t,n,r,i,o,a,s,l):k(e,t,i,o,a,s,l)},S=(e,t,n,r,i,a,u,c)=>{let d,p;const{props:f,shapeFlag:g,transition:v,dirs:m}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&g?h(d,e.children):16&g&&T(e.children,d,null,r,i,fi(e,a),u,c),m&&ir(e,null,r,"created"),C(d,e,e.scopeId,u,r),f){for(const t in f)"value"===t||M(t)||s(d,t,null,f[t],a,e.children,r,i,X);"value"in f&&s(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&No(p,r,e)}m&&ir(e,null,r,"beforeMount");const y=vi(i,v);y&&v.beforeEnter(d),o(d,t,n),((p=f&&f.onVnodeMounted)||y||m)&&ci((()=>{p&&No(p,r,e),y&&v.enter(d),m&&ir(e,null,r,"mounted")}),i)},C=(e,t,n,r,i)=>{if(n&&v(e,n),r)for(let o=0;o<r.length;o++)v(e,r[o]);if(i){if(t===i.subTree){const t=i.vnode;C(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,o,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?Lo(e[u]):Po(e[u]);y(null,l,t,n,r,i,o,a,s)}},k=(e,t,r,i,o,a,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||n,g=t.props||n;let v;if(r&&gi(r,!1),(v=g.onVnodeBeforeUpdate)&&No(v,r,t,e),p&&ir(t,e,r,"beforeUpdate"),r&&gi(r,!0),d?A(e.dynamicChildren,d,u,r,i,fi(t,o),a):l||F(e,t,u,null,r,i,fi(t,o),a,!1),c>0){if(16&c)E(u,t,f,g,r,i,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 n=t.dynamicProps;for(let t=0;t<n.length;t++){const a=n[t],l=f[a],c=g[a];c===l&&"value"!==a||s(u,a,l,c,o,e.children,r,i,X)}}1&c&&e.children!==t.children&&h(u,t.children)}else l||null!=d||E(u,t,f,g,r,i,o);((v=g.onVnodeUpdated)||p)&&ci((()=>{v&&No(v,r,t,e),p&&ir(t,e,r,"updated")}),i)},A=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===lo||!So(l,u)||70&l.shapeFlag)?f(l.el):n;y(l,u,c,null,r,i,o,a,!0)}},E=(e,t,r,i,o,a,l)=>{if(r!==i){if(r!==n)for(const n in r)M(n)||n in i||s(e,n,r[n],null,l,t.children,o,a,X);for(const n in i){if(M(n))continue;const u=i[n],c=r[n];u!==c&&"value"!==n&&s(e,n,c,u,l,t.children,o,a,X)}"value"in i&&s(e,"value",r.value,i.value,l)}},D=(e,t,n,r,i,a,s,l,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(d,n,r),o(p,n,r),T(t.children||[],n,p,i,a,s,l,c)):h>0&&64&h&&f&&e.dynamicChildren?(A(e.dynamicChildren,f,n,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&mi(e,t,!0)):F(e,t,n,p,i,a,s,l,c)},P=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):L(t,n,r,i,o,a,l):B(e,t,l)},L=(e,t,n,r,i,o,a)=>{const s=e.component=Vo(e,r,i);if(Oi(e)&&(s.ctx.renderer=J),Zo(s),s.asyncDep){if(i&&i.registerDep(s,N,a),!e.el){const e=s.subTree=ko(co);x(null,e,t,n)}}else N(s,e,t,n,i,o,a)},B=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||kn(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?kn(r,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!mn(u,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void z(r,t,n);r.next=t,function(e){const t=$t.indexOf(e);t>Zt&&$t.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,r,o,a,s)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=yi(e);if(n)return t&&(t.el=u.el,z(e,t,s)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let c,d=t;gi(e,!1),t?(t.el=u.el,z(e,t,s)):t=u,n&&R(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&No(c,i,t,u),gi(e,!0);const p=Cn(e),h=e.subTree;e.subTree=p,y(h,p,f(h.el),K(h),e,o,a),t.el=p.el,null===d&&An(e,p.el),r&&ci(r,o),(c=t.props&&t.props.onVnodeUpdated)&&ci((()=>No(c,i,t,u)),o)}else{let i;const{el:s,props:l}=t,{bm:u,m:c,parent:d}=e,p=lr(t);if(gi(e,!1),u&&R(u),!p&&(i=l&&l.onVnodeBeforeMount)&&No(i,d,t),gi(e,!0),s&&ee){const n=()=>{e.subTree=Cn(e),ee(s,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Cn(e);y(null,i,n,r,e,o,a),t.el=i.el}if(c&&ci(c,o),!p&&(i=l&&l.onVnodeMounted)){const e=t;ci((()=>No(i,d,e)),o)}(256&t.shapeFlag||d&&lr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&ci(e.a,o),e.isMounted=!0,t=n=r=null}},u=e.effect=new ue(l,i,(()=>on(c)),e.scope),c=e.update=()=>{u.dirty&&u.run()};c.id=e.uid,gi(e,!0),c()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=wt(i),[l]=e.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;Gr(e,t,i,o)&&(u=!0);for(const o in s)t&&(d(t,o)||(r=O(o))!==o&&d(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(i[o]=Ur(l,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&d(t,e)||(delete o[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(mn(e.emitsOptions,a))continue;const c=t[a];if(l)if(d(o,a))c!==o[a]&&(o[a]=c,u=!0);else{const t=I(a);i[t]=Ur(l,s,t,c,e,!1)}else c!==o[a]&&(o[a]=c,u=!0)}}u&&Ae(e.attrs,"set","")}(e,t.props,r,n),ri(e,t.children,n),ve(),ln(e),me()},F=(e,t,n,r,i,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void j(u,d,n,r,i,o,a,s,l);if(256&p)return void H(u,d,n,r,i,o,a,s,l)}8&f?(16&c&&X(u,i,o),d!==u&&h(n,d)):16&c?16&f?j(u,d,n,r,i,o,a,s,l):X(u,i,o,!0):(8&c&&h(n,""),16&f&&T(d,n,r,i,o,a,s,l))},H=(e,t,n,i,o,a,s,l,u)=>{t=t||r;const c=(e=e||r).length,d=t.length,p=Math.min(c,d);let h;for(h=0;h<p;h++){const r=t[h]=u?Lo(t[h]):Po(t[h]);y(e[h],r,n,null,o,a,s,l,u)}c>d?X(e,o,a,!0,!1,p):T(t,n,i,o,a,s,l,u,p)},j=(e,t,n,i,o,a,s,l,u)=>{let c=0;const d=t.length;let p=e.length-1,h=d-1;for(;c<=p&&c<=h;){const r=e[c],i=t[c]=u?Lo(t[c]):Po(t[c]);if(!So(r,i))break;y(r,i,n,null,o,a,s,l,u),c++}for(;c<=p&&c<=h;){const r=e[p],i=t[h]=u?Lo(t[h]):Po(t[h]);if(!So(r,i))break;y(r,i,n,null,o,a,s,l,u),p--,h--}if(c>p){if(c<=h){const e=h+1,r=e<d?t[e].el:i;for(;c<=h;)y(null,t[c]=u?Lo(t[c]):Po(t[c]),n,r,o,a,s,l,u),c++}}else if(c>h)for(;c<=p;)G(e[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=h;c++){const e=t[c]=u?Lo(t[c]):Po(t[c]);null!=e.key&&v.set(e.key,c)}let m,b=0;const x=h-g+1;let _=!1,w=0;const S=new Array(x);for(c=0;c<x;c++)S[c]=0;for(c=f;c<=p;c++){const r=e[c];if(b>=x){G(r,o,a,!0);continue}let i;if(null!=r.key)i=v.get(r.key);else for(m=g;m<=h;m++)if(0===S[m-g]&&So(r,t[m])){i=m;break}void 0===i?G(r,o,a,!0):(S[i-g]=c+1,i>=w?w=i:_=!0,y(r,t[i],n,null,o,a,s,l,u),b++)}const C=_?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(S):r;for(m=C.length-1,c=x-1;c>=0;c--){const e=g+c,r=t[e],p=e+1<d?t[e+1].el:i;0===S[c]?y(null,r,n,p,o,a,s,l,u):_&&(m<0||c!==C[m]?W(r,n,p,2):m--)}}},W=(e,t,n,r,i=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void W(e.component.subTree,t,n,r);if(128&c)return void e.suspense.move(t,n,r);if(64&c)return void s.move(e,t,n,J);if(s===lo){o(a,t,n);for(let e=0;e<u.length;e++)W(u[e],t,n,r);return void o(e.anchor,t,n)}if(s===po)return void(({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=g(e),o(e,n,r),e=i;o(t,n,r)})(e,t,n);if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(a),o(a,t,n),ci((()=>l.enter(a)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),i&&i()}))};r?r(a,s,u):u()}else o(a,t,n)},G=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:p,memoIndex:h}=e;if(-2===d&&(i=!1),null!=s&&ii(s,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&c)return void t.ctx.deactivate(e);const f=1&c&&p,g=!lr(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&No(v,t,e),6&c)Y(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);f&&ir(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,J,r):u&&(o!==lo||d>0&&64&d)?X(u,t,n,!1,!0):(o===lo&&384&d||!i&&16&c)&&X(l,t,n),r&&U(e)}(g&&(v=a&&a.onVnodeUnmounted)||f)&&ci((()=>{v&&No(v,t,e),f&&ir(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===lo)return void q(n,r);if(t===po)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),a(e),e=n;a(t)})(e);const o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,a=()=>t(n,o);r?r(e.el,o,a):a()}else o()},q=(e,t)=>{let n;for(;e!==t;)n=g(e),a(e),e=n;a(t)},Y=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:a,um:s,m:l,a:u}=e;bi(l),bi(u),r&&R(r),i.stop(),o&&(o.active=!1,G(a,e,t,n)),s&&ci(s,t),ci((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},X=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)G(e[a],t,n,r,i)},K=e=>6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el);let $=!1;const Z=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),$||($=!0,ln(),un(),$=!1),t._vnode=e},J={p:y,um:G,m:W,r:U,mt:L,mc:T,pc:F,pbc:A,n:K,o:e};let Q,ee;return t&&([Q,ee]=t(J)),{render:Z,hydrate:Q,createApp:Br(Z,Q)}}function fi({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function vi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function mi(e,t,n=!1){const r=e.children,i=t.children;if(p(r)&&p(i))for(let o=0;o<r.length;o++){const e=r[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=Lo(i[o]),t.el=e.el),n||-2===t.patchFlag||mi(e,t)),t.type===uo&&(t.el=e.el)}}function yi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yi(t)}function bi(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const xi=Symbol.for("v-scx"),_i=()=>Fr(xi);function wi(e,t){return ki(e,null,t)}function Si(e,t){return ki(e,null,{flush:"post"})}function Ci(e,t){return ki(e,null,{flush:"sync"})}const Ti={};function Mi(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:r,deep:o,flush:a,once:s,onTrack:l,onTrigger:c}=n){if(t&&s){const e=t;t=(...t)=>{e(...t),M()}}const d=Ho,h=e=>!0===o?e:Ei(e,!1===o?1:void 0);let f,g,m=!1,y=!1;if(It(e)?(f=()=>e.value,m=xt(e)):yt(e)?(f=()=>h(e),m=!0):p(e)?(y=!0,m=e.some((e=>yt(e)||xt(e))),f=()=>e.map((e=>It(e)?e.value:yt(e)?h(e):v(e)?Ut(e,d,2):void 0))):f=v(e)?t?()=>Ut(e,d,2):()=>(g&&g(),qt(e,d,3,[x])):i,t&&o){const e=f;f=()=>Ei(e())}let b,x=e=>{g=C.onStop=()=>{Ut(e,d,4),g=C.onStop=void 0}};if($o){if(x=i,t?r&&qt(t,d,3,[f(),y?[]:void 0,x]):f(),"sync"!==a)return i;{const e=_i();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(Ti):Ti;const w=()=>{if(C.active&&C.dirty)if(t){const e=C.run();(o||m||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(g&&g(),qt(t,d,3,[e,_===Ti?void 0:y&&_[0]===Ti?[]:_,x]),_=e)}else C.run()};let S;w.allowRecurse=!!t,"sync"===a?S=w:"post"===a?S=()=>ci(w,d&&d.suspense):(w.pre=!0,d&&(w.id=d.uid),S=()=>on(w));const C=new ue(f,i,S),T=se(),M=()=>{C.stop(),T&&u(T.effects,C)};return t?r?w():_=C.run():"post"===a?ci(C.run.bind(C),d&&d.suspense):C.run(),b&&b.push(M),M}function Ai(e,t,n){const r=this.proxy,i=m(e)?e.includes(".")?Ii(r,e):()=>r[e]:e.bind(r,r);let o;v(t)?o=t:(o=t.handler,n=t);const a=Uo(this),s=ki(i,o.bind(r),n);return a(),s}function Ii(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Ei(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,It(e))Ei(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)Ei(e[r],t,n);else if(f(e)||h(e))e.forEach((e=>{Ei(e,t,n)}));else if(C(e)){for(const r in e)Ei(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ei(e[r],t,n)}return e}const Oi=e=>e.type.__isKeepAlive,Di={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=jo(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,p=d("div");function h(e){Fi(e),c(e,n,s,!0)}function f(e){i.forEach(((t,n)=>{const r=ra(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=i.get(e);a&&So(t,a)?a&&Fi(a):h(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;u(e,t,n,0,s),l(o.vnode,e,t,n,o,s,r,e.slotScopeIds,i),ci((()=>{o.isDeactivated=!1,o.a&&R(o.a);const t=e.props&&e.props.onVnodeMounted;t&&No(t,o.parent,e)}),s)},r.deactivate=e=>{const t=e.component;bi(t.m),bi(t.a),u(e,p,null,1,s),ci((()=>{t.da&&R(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&No(n,t.parent,e),t.isDeactivated=!0}),s)},Mi((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>Li(e,t))),t&&f((e=>!Li(t,e)))}),{flush:"post",deep:!0});let v=null;const m=()=>{null!=v&&(Nn(n.subTree.type)?ci((()=>{i.set(v,Vi(n.subTree))}),n.subTree.suspense):i.set(v,Vi(n.subTree)))};return Xn(m),$n(m),Zn((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,i=Vi(t);if(e.type!==i.type||e.key!==i.key)h(e);else{Fi(i);const e=i.component.da;e&&ci(e,r)}}))})),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!(wo(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let s=Vi(r);const l=s.type,u=ra(lr(s)?s.type.__asyncResolved||{}:l),{include:c,exclude:d,max:p}=e;if(c&&(!u||!Li(c,u))||d&&u&&Li(d,u))return a=s,r;const h=null==s.key?l:s.key,f=i.get(h);return s.el&&(s=Io(s),128&r.shapeFlag&&(r.ssContent=s)),v=h,f?(s.el=f.el,s.component=f.component,s.transition&&Ji(s,s.transition),s.shapeFlag|=512,o.delete(h),o.add(h)):(o.add(h),p&&o.size>parseInt(p,10)&&g(o.values().next().value)),s.shapeFlag|=256,a=s,Nn(r.type)?r:s}}},Pi=Di;function Li(e,t){return p(e)?e.some((e=>Li(e,t))):m(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function Ri(e,t){Ni(e,"a",t)}function Bi(e,t){Ni(e,"da",t)}function Ni(e,t,n=Ho){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Un(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Oi(e.parent.vnode)&&zi(r,t,n,e),e=e.parent}}function zi(e,t,n,r){const i=Un(t,e,r,!0);Jn((()=>{u(r[t],i)}),n)}function Fi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Vi(e){return 128&e.shapeFlag?e.ssContent:e}const Hi=Symbol("_leaveCb"),ji=Symbol("_enterCb");function Wi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xn((()=>{e.isMounted=!0})),Zn((()=>{e.isUnmounting=!0})),e}const Gi=[Function,Array],Ui={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gi,onEnter:Gi,onAfterEnter:Gi,onEnterCancelled:Gi,onBeforeLeave:Gi,onLeave:Gi,onAfterLeave:Gi,onLeaveCancelled:Gi,onBeforeAppear:Gi,onAppear:Gi,onAfterAppear:Gi,onAppearCancelled:Gi},qi=e=>{const t=e.subTree;return t.component?qi(t.component):t},Yi={name:"BaseTransition",props:Ui,setup(e,{slots:t}){const n=jo(),r=Wi();return()=>{const i=t.default&&Qi(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1)for(const e of i)if(e.type!==co){o=e;break}const a=wt(e),{mode:s}=a;if(r.isLeaving)return $i(o);const l=Zi(o);if(!l)return $i(o);let u=Ki(l,a,r,n,(e=>u=e));Ji(l,u);const c=n.subTree,d=c&&Zi(c);if(d&&d.type!==co&&!So(l,d)&&qi(n).type!==co){const e=Ki(d,a,r,n);if(Ji(d,e),"out-in"===s&&l.type!==co)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},$i(o);"in-out"===s&&l.type!==co&&(e.delayLeave=(e,t,n)=>{Xi(r,d)[String(d.key)]=d,e[Hi]=()=>{t(),e[Hi]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return o}}};function Xi(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:x}=t,_=String(e.key),w=Xi(n,e),S=(e,t)=>{e&&qt(e,r,9,t)},C=(e,t)=>{const n=t[1];S(e,t),p(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:a,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!o)return;r=m||l}t[Hi]&&t[Hi](!0);const i=w[_];i&&So(e,i)&&i.el[Hi]&&i.el[Hi](),S(r,[t])},enter(e){let t=u,r=c,i=d;if(!n.isMounted){if(!o)return;t=y||u,r=b||c,i=x||d}let a=!1;const s=e[ji]=t=>{a||(a=!0,S(t?i:r,[e]),T.delayedLeave&&T.delayedLeave(),e[ji]=void 0)};t?C(t,[e,s]):s()},leave(t,r){const i=String(e.key);if(t[ji]&&t[ji](!0),n.isUnmounting)return r();S(h,[t]);let o=!1;const a=t[Hi]=n=>{o||(o=!0,r(),S(n?v:g,[t]),t[Hi]=void 0,w[i]===e&&delete w[i])};w[i]=e,f?C(f,[t,a]):a()},clone(e){const o=Ki(e,t,n,r,i);return i&&i(o),o}};return T}function $i(e){if(Oi(e))return(e=Io(e)).children=null,e}function Zi(e){if(!Oi(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Ji(e,t){6&e.shapeFlag&&e.component?Ji(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qi(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===lo?(128&a.patchFlag&&i++,r=r.concat(Qi(a.children,t,s))):(t||a.type!==co)&&r.push(null!=s?Io(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}const eo=e=>e&&(e.disabled||""===e.disabled),to=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,no=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,ro=(e,t)=>{const n=e&&e.to;if(m(n)){if(t){return t(n)}return null}return n},io={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:g,createComment:v}}=u,m=eo(t.props);let{shapeFlag:y,children:b,dynamicChildren:x}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");h(e,n,r),h(u,n,r);const d=t.target=ro(t.props,f),p=t.targetAnchor=g("");d&&(h(p,d),"svg"===a||to(d)?a="svg":("mathml"===a||no(d))&&(a="mathml"));const v=(e,t)=>{16&y&&c(b,e,t,i,o,a,s,l)};m?v(n,u):d&&v(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=eo(e.props),v=g?n:c,y=g?r:h;if("svg"===a||to(c)?a="svg":("mathml"===a||no(c))&&(a="mathml"),x?(p(e.dynamicChildren,x,v,i,o,a,s),mi(e,t,!0)):l||d(e,t,v,y,i,o,a,s,!1),m)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):oo(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ro(t.props,f);e&&oo(t,e,null,u,0)}else g&&oo(t,c,h,u,1)}so(t)},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetAnchor:u,target:c,props:d}=e;if(c&&i(u),o&&i(l),16&a){const e=o||!eo(d);for(let i=0;i<s.length;i++){const o=s[i];r(o,t,n,e,!!o.dynamicChildren)}}},move:oo,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=t.target=ro(t.props,l);if(c){const l=c._lpa||c.firstChild;if(16&t.shapeFlag)if(eo(t.props))t.anchor=u(a(e),t,s(e),n,r,i,o),t.targetAnchor=l;else{t.anchor=a(e);let s=l;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(l,t,c,n,r,i,o)}so(t)}return t.anchor&&a(t.anchor)}};function oo(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===o;if(d&&r(a,t,n),(!d||eo(c))&&16&l)for(let p=0;p<u.length;p++)i(u[p],t,n,2);d&&r(s,t,n)}const ao=io;function so(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const lo=Symbol.for("v-fgt"),uo=Symbol.for("v-txt"),co=Symbol.for("v-cmt"),po=Symbol.for("v-stc"),ho=[];let fo=null;function go(e=!1){ho.push(fo=e?null:[])}function vo(){ho.pop(),fo=ho[ho.length-1]||null}let mo=1;function yo(e){mo+=e}function bo(e){return e.dynamicChildren=mo>0?fo||r:null,vo(),mo>0&&fo&&fo.push(e),e}function xo(e,t,n,r,i,o){return bo(Mo(e,t,n,r,i,o,!0))}function _o(e,t,n,r,i){return bo(ko(e,t,n,r,i,!0))}function wo(e){return!!e&&!0===e.__v_isVNode}function So(e,t){return e.type===t.type&&e.key===t.key}const Co=({key:e})=>null!=e?e:null,To=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?m(e)||It(e)||v(e)?{i:yn,r:e,k:t,f:!!n}:e:null);function Mo(e,t=null,n=null,r=0,i=null,o=(e===lo?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Co(t),ref:t&&To(t),scopeId:bn,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:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yn};return s?(Ro(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=m(n)?8:16),mo>0&&!a&&fo&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&fo.push(l),l}const ko=function(e,t=null,n=null,r=0,i=null,o=!1){e&&e!==Dn||(e=co);if(wo(e)){const r=Io(e,t,!0);return n&&Ro(r,n),mo>0&&!o&&fo&&(6&r.shapeFlag?fo[fo.indexOf(e)]=r:fo.push(r)),r.patchFlag=-2,r}a=e,v(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=Ao(t);let{class:e,style:n}=t;e&&!m(e)&&(t.class=Y(e)),b(n)&&(_t(n)&&!p(n)&&(n=l({},n)),t.style=j(n))}const s=m(e)?1:Nn(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:v(e)?2:0;return Mo(e,t,n,r,i,s,o,!0)};function Ao(e){return e?_t(e)||Wr(e)?l({},e):e:null}function Io(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?Bo(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Co(u),ref:t&&t.ref?n&&o?p(o)?o.concat(To(t)):[o,To(t)]:To(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==lo?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ji(c,l.clone(c)),c}function Eo(e=" ",t=0){return ko(uo,null,e,t)}function Oo(e,t){const n=ko(po,null,e);return n.staticCount=t,n}function Do(e="",t=!1){return t?(go(),_o(co,null,e)):ko(co,null,e)}function Po(e){return null==e||"boolean"==typeof e?ko(co):p(e)?ko(lo,null,e.slice()):"object"==typeof e?Lo(e):ko(uo,null,String(e))}function Lo(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Io(e)}function Ro(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ro(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Wr(t)?3===r&&yn&&(1===yn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=yn}}else v(t)?(t={default:t,_ctx:yn},n=32):(t=String(t),64&r?(n=16,t=[Eo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bo(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=Y([t.class,r.class]));else if("style"===e)t.style=j([t.style,r.style]);else if(a(e)){const n=t[e],i=r[e];!i||n===i||p(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function No(e,t,n,r=null){qt(e,t,7,[n,r])}const zo=Lr();let Fo=0;function Vo(e,t,r){const i=e.type,o=(t?t.appContext:e.appContext)||zo,a={uid:Fo++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ie(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qr(i,o),emitsOptions:vn(i,o),emit:null,emitted:null,propsDefaults:n,inheritAttrs:i.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.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};return a.ctx={_:a},a.root=t?t.root:a,a.emit=gn.bind(null,a),e.ce&&e.ce(a),a}let Ho=null;const jo=()=>Ho||yn;let Wo,Go;{const e=V(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Wo=t("__VUE_INSTANCE_SETTERS__",(e=>Ho=e)),Go=t("__VUE_SSR_SETTERS__",(e=>$o=e))}const Uo=e=>{const t=Ho;return Wo(e),e.scope.on(),()=>{e.scope.off(),Wo(t)}},qo=()=>{Ho&&Ho.scope.off(),Wo(null)};function Yo(e){return 4&e.vnode.shapeFlag}let Xo,Ko,$o=!1;function Zo(e,t=!1){t&&Go(t);const{props:n,children:r}=e.vnode,i=Yo(e);!function(e,t,n,r=!1){const i={},o=jr();e.propsDefaults=Object.create(null),Gr(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:ft(i):e.type.props?e.props=i:e.props=o,e.attrs=o}(e,n,i,t),ni(e,r);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gr);const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?ta(e):null,i=Uo(e);ve();const o=Ut(r,e,0,[e.props,n]);if(me(),i(),x(o)){if(o.then(qo,qo),t)return o.then((n=>{Jo(e,n,t)})).catch((t=>{Yt(t,e,0)}));e.asyncDep=o}else Jo(e,o,t)}else Qo(e,t)}(e,t):void 0;return t&&Go(!1),o}function Jo(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Bt(t)),Qo(e,n)}function Qo(e,t,n){const r=e.type;if(!e.render){if(!t&&Xo&&!r.render){const t=r.template||Mr(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,s=l(l({isCustomElement:n,delimiters:o},i),a);r.render=Xo(t,s)}}e.render=r.render||i,Ko&&Ko(e)}{const t=Uo(e);ve();try{Sr(e)}finally{me(),t()}}}const ea={get:(e,t)=>(ke(e,0,""),e[t])};function ta(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ea),slots:e.slots,emit:e.emit,expose:t}}function na(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bt(St(e.exposed)),{get:(t,n)=>n in t?t[n]:n in hr?hr[n](e):void 0,has:(e,t)=>t in e||t in hr})):e.proxy}function ra(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const ia=(e,t)=>{const n=function(e,t,n=!1){let r,o;const a=v(e);return a?(r=e,o=i):(r=e.get,o=e.set),new Mt(r,o,a||!o,n)}(e,0,$o);return n};function oa(e,t,r=n){const i=jo(),o=I(t),a=O(t),s=zt(((n,s)=>{let l;return Ci((()=>{const n=e[t];L(l,n)&&(l=n,s())})),{get:()=>(n(),r.get?r.get(l):l),set(e){const n=i.vnode.props;n&&(t in n||o in n||a in n)&&("onUpdate:".concat(t)in n||"onUpdate:".concat(o)in n||"onUpdate:".concat(a)in n)||!L(e,l)||(l=e,s()),i.emit("update:".concat(t),r.set?r.set(e):e)}}})),l="modelValue"===t?"modelModifiers":"".concat(t,"Modifiers");return s[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[l]||{}:s,done:!1}:{done:!0}}},s}function aa(e,t,n){const r=arguments.length;return 2===r?b(t)&&!p(t)?wo(t)?ko(e,null,[t]):ko(e,t):ko(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&wo(n)&&(n=[n]),ko(e,t,n))}function sa(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(L(n[r],t[r]))return!1;return mo>0&&fo&&fo.push(e),!0}const la="3.4.31",ua=i,ca=Gt,da=hn,pa=function e(t,n){var r,i;if(hn=t,hn)hn.enabled=!0,fn.forEach((({event:e,args:t})=>hn.emit(e,...t))),fn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{hn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,fn=[])}),3e3)}else fn=[]},ha={createComponentInstance:Vo,setupComponent:Zo,renderComponentRoot:Cn,setCurrentRenderingInstance:xn,isVNode:wo,normalizeVNode:Po,getComponentPublicInstance:na},fa="undefined"!=typeof document?document:null,ga=fa&&fa.createElement("template"),va={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?fa.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?fa.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?fa.createElement(e,{is:n}):fa.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>fa.createTextNode(e),createComment:e=>fa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{ga.innerHTML="svg"===r?"<svg>".concat(e,"</svg>"):"mathml"===r?"<math>".concat(e,"</math>"):e;const i=ga.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ma="transition",ya="animation",ba=Symbol("_vtc"),xa=(e,{slots:t})=>aa(Yi,Ta(e),t);xa.displayName="Transition";const _a={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},wa=xa.props=l({},Ui,_a),Sa=(e,t=[])=>{p(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ca=e=>!!e&&(p(e)?e.some((e=>e.length>1)):e.length>1);function Ta(e){const t={};for(const l in e)l in _a||(t[l]=e[l]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o="".concat(n,"-enter-from"),enterActiveClass:a="".concat(n,"-enter-active"),enterToClass:s="".concat(n,"-enter-to"),appearFromClass:u=o,appearActiveClass:c=a,appearToClass:d=s,leaveFromClass:p="".concat(n,"-leave-from"),leaveActiveClass:h="".concat(n,"-leave-active"),leaveToClass:f="".concat(n,"-leave-to")}=e,g=function(e){if(null==e)return null;if(b(e))return[Ma(e.enter),Ma(e.leave)];{const t=Ma(e);return[t,t]}}(i),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:C=y,onAppear:T=x,onAppearCancelled:M=_}=t,k=(e,t,n)=>{Aa(e,t?d:s),Aa(e,t?c:a),n&&n()},A=(e,t)=>{e._isLeaving=!1,Aa(e,p),Aa(e,f),Aa(e,h),t&&t()},I=e=>(t,n)=>{const i=e?T:x,a=()=>k(t,e,n);Sa(i,[t,a]),Ia((()=>{Aa(t,e?u:o),ka(t,e?d:s),Ca(i)||Oa(t,r,v,a)}))};return l(t,{onBeforeEnter(e){Sa(y,[e]),ka(e,o),ka(e,a)},onBeforeAppear(e){Sa(C,[e]),ka(e,u),ka(e,c)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ka(e,p),ka(e,h),Ra(),Ia((()=>{e._isLeaving&&(Aa(e,p),ka(e,f),Ca(w)||Oa(e,r,m,n))})),Sa(w,[e,n])},onEnterCancelled(e){k(e,!1),Sa(_,[e])},onAppearCancelled(e){k(e,!0),Sa(M,[e])},onLeaveCancelled(e){A(e),Sa(S,[e])}})}function Ma(e){return z(e)}function ka(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ba]||(e[ba]=new Set)).add(t)}function Aa(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ba];n&&(n.delete(t),n.size||(e[ba]=void 0))}function Ia(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ea=0;function Oa(e,t,n,r){const i=e._endId=++Ea,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Da(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,p),o()},p=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c<l&&d()}),s+1),e.addEventListener(u,p)}function Da(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r("".concat(ma,"Delay")),o=r("".concat(ma,"Duration")),a=Pa(i,o),s=r("".concat(ya,"Delay")),l=r("".concat(ya,"Duration")),u=Pa(s,l);let c=null,d=0,p=0;t===ma?a>0&&(c=ma,d=a,p=o.length):t===ya?u>0&&(c=ya,d=u,p=l.length):(d=Math.max(a,u),c=d>0?a>u?ma:ya:null,p=c?c===ma?o.length:l.length:0);return{type:c,timeout:d,propCount:p,hasTransform:c===ma&&/\b(transform|all)(,|$)/.test(r("".concat(ma,"Property")).toString())}}function Pa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>La(t)+La(e[n]))))}function La(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ra(){return document.body.offsetHeight}const Ba=Symbol("_vod"),Na=Symbol("_vsh"),za={beforeMount(e,{value:t},{transition:n}){e[Ba]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Fa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Fa(e,!0),r.enter(e)):r.leave(e,(()=>{Fa(e,!1)})):Fa(e,t))},beforeUnmount(e,{value:t}){Fa(e,t)}};function Fa(e,t){e.style.display=t?e[Ba]:"none",e[Na]=!t}const Va=Symbol("");function Ha(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Ha(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)ja(e.el,t);else if(e.type===lo)e.children.forEach((e=>Ha(e,t)));else if(e.type===po){let{el:n,anchor:r}=e;for(;n&&(ja(n,t),n!==r);)n=n.nextSibling}}function ja(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty("--".concat(e),t[e]),r+="--".concat(e,": ").concat(t[e],";");n[Va]=r}}const Wa=/(^|;)\s*display\s*:/;const Ga=/\s*!important$/;function Ua(e,t,n){if(p(n))n.forEach((n=>Ua(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Ya[t];if(n)return n;let r=I(t);if("filter"!==r&&r in e)return Ya[t]=r;r=D(r);for(let i=0;i<qa.length;i++){const n=qa[i]+r;if(n in e)return Ya[t]=n}return t}(e,t);Ga.test(n)?e.setProperty(O(r),n.replace(Ga,""),"important"):e[r]=n}}const qa=["Webkit","Moz","ms"],Ya={};const Xa="http://www.w3.org/1999/xlink";function Ka(e,t,n,r,i,o=X(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Xa,t.slice(6,t.length)):e.setAttributeNS(Xa,t,n):null==n||o&&!K(n)?e.removeAttribute(t):e.setAttribute(t,o?"":y(n)?String(n):n)}function $a(e,t,n,r){e.addEventListener(t,n,r)}const Za=Symbol("_vei");function Ja(e,t,n,r,i=null){const o=e[Za]||(e[Za]={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Qa.test(e)){let n;for(t={};n=e.match(Qa);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):O(e.slice(2));return[n,t]}(t);if(r){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();qt(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ns(),n}(r,i);$a(e,n,a,s)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),o[t]=void 0)}}const Qa=/(?:Once|Passive|Capture)$/;let es=0;const ts=Promise.resolve(),ns=()=>es||(ts.then((()=>es=0)),es=Date.now());const rs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;
/*! #__NO_SIDE_EFFECTS__ */
function is(e,t,n){const r=sr(e,t);class i extends as{constructor(e){super(r,e,n)}}return i.def=r,i}
/*! #__NO_SIDE_EFFECTS__ */const os="undefined"!=typeof HTMLElement?HTMLElement:class{};class as extends os{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,rn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Hs(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let i;if(n&&!p(n))for(const o in n){const e=n[o];(e===Number||e&&e.type===Number)&&(o in this._props&&(this._props[o]=z(this._props[o])),(i||(i=Object.create(null)))[I(o)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(I))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=I(e);this._numberProps&&this._numberProps[n]&&(t=z(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(O(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(O(e),t+""):t||this.removeAttribute(O(e))))}_update(){Hs(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ko(this._def,l({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),O(e)!==e&&t(O(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof as){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const ss=new WeakMap,ls=new WeakMap,us=Symbol("_moveCb"),cs=Symbol("_enterCb"),ds={name:"TransitionGroup",props:l({},wa,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=jo(),r=Wi();let i,o;return $n((()=>{if(!i.length)return;const t=e.moveClass||"".concat(e.name||"v","-move");if(!function(e,t,n){const r=e.cloneNode(),i=e[ba];i&&i.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=Da(r);return o.removeChild(r),a}(i[0].el,n.vnode.el,t))return;i.forEach(hs),i.forEach(fs);const r=i.filter(gs);Ra(),r.forEach((e=>{const n=e.el,r=n.style;ka(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[us]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n[us]=null,Aa(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const a=wt(e),s=Ta(a);let l=a.tag||lo;if(i=[],o)for(let e=0;e<o.length;e++){const t=o[e];t.el&&t.el instanceof Element&&(i.push(t),Ji(t,Ki(t,s,r,n)),ss.set(t,t.el.getBoundingClientRect()))}o=t.default?Qi(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&Ji(t,Ki(t,s,r,n))}return ko(l,null,o)}}},ps=ds;function hs(e){const t=e.el;t[us]&&t[us](),t[cs]&&t[cs]()}function fs(e){ls.set(e,e.el.getBoundingClientRect())}function gs(e){const t=ss.get(e),n=ls.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform="translate(".concat(r,"px,").concat(i,"px)"),t.transitionDuration="0s",e}}const vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>R(t,e):t};function ms(e){e.target.composing=!0}function ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bs=Symbol("_assign"),xs={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[bs]=vs(i);const o=r||i.props&&"number"===i.props.type;$a(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=N(r)),e[bs](r)})),n&&$a(e,"change",(()=>{e.value=e.value.trim()})),t||($a(e,"compositionstart",ms),$a(e,"compositionend",ys),$a(e,"change",ys))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[bs]=vs(a),e.composing)return;const s=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:N(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(i&&e.value.trim()===s)return}e.value=s}}},_s={deep:!0,created(e,t,n){e[bs]=vs(n),$a(e,"change",(()=>{const t=e._modelValue,n=Ms(e),r=e.checked,i=e[bs];if(p(t)){const e=Z(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(f(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ks(e,r))}))},mounted:ws,beforeUpdate(e,t,n){e[bs]=vs(n),ws(e,t,n)}};function ws(e,{value:t,oldValue:n},r){e._modelValue=t,p(t)?e.checked=Z(t,r.props.value)>-1:f(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=$(t,ks(e,!0)))}const Ss={created(e,{value:t},n){e.checked=$(t,n.props.value),e[bs]=vs(n),$a(e,"change",(()=>{e[bs](Ms(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[bs]=vs(r),t!==n&&(e.checked=$(t,r.props.value))}},Cs={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=f(t);$a(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?N(Ms(e)):Ms(e)));e[bs](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,rn((()=>{e._assigning=!1}))})),e[bs]=vs(r)},mounted(e,{value:t,modifiers:{number:n}}){Ts(e,t)},beforeUpdate(e,t,n){e[bs]=vs(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ts(e,t)}};function Ts(e,t,n){const r=e.multiple,i=p(t);if(!r||i||f(t)){for(let n=0,o=e.options.length;n<o;n++){const o=e.options[n],a=Ms(o);if(r)if(i){const e=typeof a;o.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):Z(t,a)>-1}else o.selected=t.has(a);else if($(Ms(o),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ms(e){return"_value"in e?e._value:e.value}function ks(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const As={created(e,t,n){Es(e,t,n,null,"created")},mounted(e,t,n){Es(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Es(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Es(e,t,n,r,"updated")}};function Is(e,t){switch(e){case"SELECT":return Cs;case"TEXTAREA":return xs;default:switch(t){case"checkbox":return _s;case"radio":return Ss;default:return xs}}}function Es(e,t,n,r,i){const o=Is(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Os=["ctrl","shift","alt","meta"],Ds={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Os.some((n=>e["".concat(n,"Key")]&&!t.includes(n)))},Ps=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Ds[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Ls={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=O(n.key);return t.some((e=>e===r||Ls[e]===r))?e(n):void 0})},Bs=l({patchProp:(e,t,n,r,i,o,l,u,c)=>{const d="svg"===i;"class"===t?function(e,t,n){const r=e[ba];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,d):"style"===t?function(e,t,n){const r=e.style,i=m(n);let o=!1;if(n&&!i){if(t)if(m(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Ua(r,t,"")}else for(const e in t)null==n[e]&&Ua(r,e,"");for(const e in n)"display"===e&&(o=!0),Ua(r,e,n[e])}else if(i){if(t!==n){const e=r[Va];e&&(n+=";"+e),r.cssText=n,o=Wa.test(n)}}else t&&e.removeAttribute("style");Ba in e&&(e[Ba]=o?r.display:"",e[Na]&&(r.display="none"))}(e,n,r):a(t)?s(t)||Ja(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&rs(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(rs(t)&&m(n))return!1;return t in e}(e,t,r,d))?(!function(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const r="OPTION"===s?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=K(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(u){}l&&e.removeAttribute(t)}(e,t,r,o,l,u,c),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Ka(e,t,r,d,0,"value"!==t)):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Ka(e,t,r,d))}},va);let Ns,zs=!1;function Fs(){return Ns||(Ns=di(Bs))}function Vs(){return Ns=zs?Ns:pi(Bs),zs=!0,Ns}const Hs=(...e)=>{Fs().render(...e)},js=(...e)=>{Vs().hydrate(...e)},Ws=(...e)=>{const t=Fs().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Us(e);if(!r)return;const i=t._component;v(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,Gs(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Gs(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Us(e){if(m(e)){return document.querySelector(e)}return e}let qs=!1;const Ys=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Yi,BaseTransitionPropsValidators:Ui,Comment:co,DeprecationTypes:null,EffectScope:ie,ErrorCodes:{SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},ErrorTypeStrings:ca,Fragment:lo,KeepAlive:Pi,ReactiveEffect:ue,Static:po,Suspense:Fn,Teleport:ao,Text:uo,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:xa,TransitionGroup:ps,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:as,assertNumber:function(e,t){},callWithAsyncErrorHandling:qt,callWithErrorHandling:Ut,camelize:I,capitalize:D,cloneVNode:Io,compatUtils:null,compile:()=>{},computed:ia,createApp:Ws,createBlock:_o,createCommentVNode:Do,createElementBlock:xo,createElementVNode:Mo,createHydrationRenderer:pi,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:di,createSSRApp:(...e)=>{const t=Vs().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Us(e);if(t)return n(t,!0,Gs(t))},t},createSlots:ar,createStaticVNode:Oo,createTextVNode:Eo,createVNode:ko,customRef:zt,defineAsyncComponent:function(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:a=!0,onError:s}=e;let l,u=null,c=0;const d=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((c++,u=null,d()))),(()=>n(e)),c+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return sr({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Ho;if(l)return()=>ur(l,e);const t=t=>{u=null,Yt(t,e,13,!r)};if(a&&e.suspense||$o)return d().then((t=>()=>ur(t,e))).catch((e=>(t(e),()=>r?ko(r,{error:e}):null)));const s=Et(!1),c=Et(),p=Et(!!i);return i&&setTimeout((()=>{p.value=!1}),i),null!=o&&setTimeout((()=>{if(!s.value&&!c.value){const e=new Error("Async component timed out after ".concat(o,"ms."));t(e),c.value=e}}),o),d().then((()=>{s.value=!0,e.parent&&Oi(e.parent.vnode)&&(e.parent.effect.dirty=!0,on(e.parent.update))})).catch((e=>{t(e),c.value=e})),()=>s.value&&l?ur(l,e):c.value&&r?ko(r,{error:c.value}):n&&!p.value?ko(n):void 0}})},defineComponent:sr,defineCustomElement:is,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:(e,t)=>is(e,t,js),defineSlots:function(){return null},devtools:da,effect:function(e,t){e.effect instanceof ue&&(e=e.effect.fn);const n=new ue(e,i,(()=>{n.dirty&&n.run()}));t&&(l(n,t),t.scope&&ae(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r},effectScope:oe,getCurrentInstance:jo,getCurrentScope:se,getTransitionRawChildren:Qi,guardReactiveProps:Ao,h:aa,handleError:Yt,hasInjectionContext:Vr,hydrate:js,initCustomFormatter:function(){},initDirectivesForSSR:()=>{qs||(qs=!0,xs.getSSRProps=({value:e})=>({value:e}),Ss.getSSRProps=({value:e},t)=>{if(t.props&&$(t.props.value,e))return{checked:!0}},_s.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Z(e,t.props.value)>-1)return{checked:!0}}else if(f(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},As.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Is(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},za.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:Fr,isMemoSame:sa,isProxy:_t,isReactive:yt,isReadonly:bt,isRef:It,isRuntimeOnly:()=>!Xo,isShallow:xt,isVNode:wo,markRaw:St,mergeDefaults:function(e,t){const n=xr(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?p(e)||v(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t["__skip_".concat(r)]&&(e.skipFactory=!0)}return n},mergeModels:_r,mergeProps:Bo,nextTick:rn,normalizeClass:Y,normalizeProps:function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!m(t)&&(e.class=Y(t)),n&&(e.style=j(n)),e},normalizeStyle:j,onActivated:Ri,onBeforeMount:Yn,onBeforeUnmount:Zn,onBeforeUpdate:Kn,onDeactivated:Bi,onErrorCaptured:nr,onMounted:Xn,onRenderTracked:tr,onRenderTriggered:er,onScopeDispose:le,onServerPrefetch:Qn,onUnmounted:Jn,onUpdated:$n,openBlock:go,popScopeId:wn,provide:zr,proxyRefs:Bt,pushScopeId:_n,queuePostFlushCb:sn,reactive:ht,readonly:gt,ref:Et,registerRuntimeCompiler:function(e){Xo=e,Ko=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vr))}},render:Hs,renderList:or,renderSlot:cr,resolveComponent:On,resolveDirective:Ln,resolveDynamicComponent:Pn,resolveFilter:null,resolveTransitionHooks:Ki,setBlockTracking:yo,setDevtoolsHook:pa,setTransitionHooks:Ji,shallowReactive:ft,shallowReadonly:vt,shallowRef:Ot,ssrContextKey:xi,ssrUtils:ha,stop:function(e){e.effect.stop()},toDisplayString:Q,toHandlerKey:P,toHandlers:function(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?"on:".concat(r):P(r)]=e[r];return n},toRaw:wt,toRef:jt,toRefs:Ft,toValue:function(e){return v(e)?e():Lt(e)},transformVNodeArgs:function(e){},triggerRef:function(e){At(e,4)},unref:Lt,useAttrs:yr,useCssModule:function(e="$style"){{const t=jo();if(!t)return n;const r=t.type.__cssModules;if(!r)return n;const i=r[e];return i||n}},useCssVars:function(e){const t=jo();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll('[data-v-owner="'.concat(t.uid,'"]'))).forEach((e=>ja(e,n)))},r=()=>{const r=e(t.proxy);Ha(t.subTree,r),n(r)};Xn((()=>{Si(r);const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Jn((()=>e.disconnect()))}))},useModel:oa,useSSRContext:_i,useSlots:mr,useTransitionState:Wi,vModelCheckbox:_s,vModelDynamic:As,vModelRadio:Ss,vModelSelect:Cs,vModelText:xs,vShow:za,version:la,warn:ua,watch:Mi,watchEffect:wi,watchPostEffect:Si,watchSyncEffect:Ci,withAsyncContext:function(e){const t=jo();let n=e();return qo(),x(n)&&(n=n.catch((e=>{throw Uo(t),e}))),[n,()=>Uo(t)]},withCtx:Sn,withDefaults:function(e,t){return null},withDirectives:rr,withKeys:Rs,withMemo:function(e,t,n,r){const i=n[r];if(i&&sa(i,e))return i;const o=t();return o.memo=e.slice(),o.memoIndex=r,n[r]=o},withModifiers:Ps,withScopeId:e=>Sn},Symbol.toStringTag,{value:"Module"}));
/**
* vue v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/var Xs,Ks=Object.defineProperty,$s=Object.defineProperties,Zs=Object.getOwnPropertyDescriptors,Js=Object.getOwnPropertySymbols,Qs=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,tl=(e,t,n)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function nl(e,t){const n=Ot();var r,i;return wi((()=>{n.value=e()}),(r=((e,t)=>{for(var n in t||(t={}))Qs.call(t,n)&&tl(e,n,t[n]);if(Js)for(var n of Js(t))el.call(t,n)&&tl(e,n,t[n]);return e})({},t),i={flush:null!=void 0?void 0:"sync"},$s(r,Zs(i)))),gt(n)}const rl="undefined"!=typeof window,il=e=>"function"==typeof e,ol=e=>"string"==typeof e,al=()=>{},sl=rl&&(null==(Xs=null==window?void 0:window.navigator)?void 0:Xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ll(e){return"function"==typeof e?e():Lt(e)}function ul(e,t){return function(...n){return new Promise(((r,i)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(i)}))}}function cl(e){return!!se()&&(le(e),!0)}function dl(e,t=200,n={}){return ul(function(e,t={}){let n,r,i=al;const o=e=>{clearTimeout(e),i(),i=al};return a=>{const s=ll(e),l=ll(t.maxWait);return n&&o(n),s<=0||void 0!==l&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise(((e,u)=>{i=t.rejectOnCancel?u:e,l&&!r&&(r=setTimeout((()=>{n&&o(n),r=null,e(a())}),l)),n=setTimeout((()=>{r&&o(r),r=null,e(a())}),s)}))}}(t,n),e)}function pl(e,t=200,n=!1,r=!0,i=!1){return ul(function(e,t=!0,n=!0,r=!1){let i,o,a=0,s=!0,l=al;const u=()=>{i&&(clearTimeout(i),i=void 0,l(),l=al)};return c=>{const d=ll(e),p=Date.now()-a,h=()=>o=c();return u(),d<=0?(a=Date.now(),h()):(p>d&&(n||!s)?(a=Date.now(),h()):t&&(o=new Promise(((e,t)=>{l=r?t:e,i=setTimeout((()=>{a=Date.now(),s=!0,e(h()),u()}),Math.max(0,d-p))}))),n||i||(i=setTimeout((()=>s=!0),d)),s=!1,o)}}(t,n,r,i),e)}function hl(e,t=!0){jo()?Xn(e):t?e():rn(e)}function fl(e,t,n={}){const{immediate:r=!0}=n,i=Et(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...n){a(),i.value=!0,o=setTimeout((()=>{i.value=!1,o=null,e(...n)}),ll(t))}return r&&(i.value=!0,rl&&l()),cl(s),{isPending:gt(i),start:l,stop:s}}function gl(e){var t;const n=ll(e);return null!=(t=null==n?void 0:n.$el)?t:n}const vl=rl?window:void 0,ml=rl?window.document:void 0;function yl(...e){let t,n,r,i;if(ol(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=vl):[t,n,r,i]=e,!t)return al;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach((e=>e())),o.length=0},s=Mi((()=>[gl(t),ll(i)]),(([e,t])=>{a(),e&&o.push(...n.flatMap((n=>r.map((r=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,n,r,t))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),a()};return cl(l),l}let bl=!1;function xl(e={}){var t;const{window:n=vl}=e,r=null!=(t=e.document)?t:null==n?void 0:n.document,i=function(e,t){let n,r,i;const o=Et(!0),a=()=>{o.value=!0,i()};Mi(e,a,{flush:"sync"});const s=il(t)?t:t.get,l=il(t)?void 0:t.set,u=zt(((e,t)=>(r=e,i=t,{get:()=>(o.value&&(n=s(),o.value=!1),r(),n),set(e){null==l||l(e)}})));return Object.isExtensible(u)&&(u.trigger=a),u}((()=>null),(()=>null==r?void 0:r.activeElement));return n&&(yl(n,"blur",(e=>{null===e.relatedTarget&&i.trigger()}),!0),yl(n,"focus",i.trigger,!0)),i}function _l(e,t=!1){const n=Et(),r=()=>n.value=Boolean(e());return r(),hl(r,t),n}const wl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Sl="__vueuse_ssr_handlers__";wl[Sl]=wl[Sl]||{};var Cl=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,kl=(e,t)=>{var n={};for(var r in e)Tl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Cl)for(var r of Cl(e))t.indexOf(r)<0&&Ml.call(e,r)&&(n[r]=e[r]);return n};function Al(e,t,n={}){const r=n,{window:i=vl}=r,o=kl(r,["window"]);let a;const s=_l((()=>i&&"ResizeObserver"in i)),l=()=>{a&&(a.disconnect(),a=void 0)},u=Mi((()=>gl(e)),(e=>{l(),s.value&&i&&e&&(a=new ResizeObserver(t),a.observe(e,o))}),{immediate:!0,flush:"post"}),c=()=>{l(),u()};return cl(c),{isSupported:s,stop:c}}function Il(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0}=t,a=Et(0),s=Et(0),l=Et(0),u=Et(0),c=Et(0),d=Et(0),p=Et(0),h=Et(0);function f(){const t=gl(e);if(!t)return void(n&&(a.value=0,s.value=0,l.value=0,u.value=0,c.value=0,d.value=0,p.value=0,h.value=0));const r=t.getBoundingClientRect();a.value=r.height,s.value=r.bottom,l.value=r.left,u.value=r.right,c.value=r.top,d.value=r.width,p.value=r.x,h.value=r.y}return Al(e,f),Mi((()=>gl(e)),(e=>!e&&f())),i&&yl("scroll",f,{capture:!0,passive:!0}),r&&yl("resize",f,{passive:!0}),hl((()=>{o&&f()})),{height:a,bottom:s,left:l,right:u,top:c,width:d,x:p,y:h,update:f}}var El,Ol,Dl=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable;function Rl(e,t,n={}){const r=n,{window:i=vl}=r,o=((e,t)=>{var n={};for(var r in e)Pl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dl)for(var r of Dl(e))t.indexOf(r)<0&&Ll.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let a;const s=_l((()=>i&&"MutationObserver"in i)),l=()=>{a&&(a.disconnect(),a=void 0)},u=Mi((()=>gl(e)),(e=>{l(),s.value&&i&&e&&(a=new MutationObserver(t),a.observe(e,o))}),{immediate:!0}),c=()=>{l(),u()};return cl(c),{isSupported:s,stop:c}}(Ol=El||(El={})).UP="UP",Ol.RIGHT="RIGHT",Ol.DOWN="DOWN",Ol.LEFT="LEFT",Ol.NONE="NONE";var Bl=Object.defineProperty,Nl=Object.getOwnPropertySymbols,zl=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,Vl=(e,t,n)=>t in e?Bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))zl.call(t,n)&&Vl(e,n,t[n]);if(Nl)for(var n of Nl(t))Fl.call(t,n)&&Vl(e,n,t[n])})({linear:function(e){return e}},{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 Hl=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},jl=(e,t)=>Math.abs(Hl(e)-Hl(t));var Wl="object"==typeof global&&global&&global.Object===Object&&global,Gl="object"==typeof self&&self&&self.Object===Object&&self,Ul=Wl||Gl||Function("return this")(),ql=Ul.Symbol,Yl=Object.prototype,Xl=Yl.hasOwnProperty,Kl=Yl.toString,$l=ql?ql.toStringTag:void 0;var Zl=Object.prototype.toString;var Jl="[object Null]",Ql="[object Undefined]",eu=ql?ql.toStringTag:void 0;function tu(e){return null==e?void 0===e?Ql:Jl:eu&&eu in Object(e)?function(e){var t=Xl.call(e,$l),n=e[$l];try{e[$l]=void 0;var r=!0}catch(o){}var i=Kl.call(e);return r&&(t?e[$l]=n:delete e[$l]),i}(e):function(e){return Zl.call(e)}(e)}function nu(e){return null!=e&&"object"==typeof e}var ru="[object Symbol]";function iu(e){return"symbol"==typeof e||nu(e)&&tu(e)==ru}function ou(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var au=Array.isArray,su=1/0,lu=ql?ql.prototype:void 0,uu=lu?lu.toString:void 0;function cu(e){if("string"==typeof e)return e;if(au(e))return ou(e,cu)+"";if(iu(e))return uu?uu.call(e):"";var t=e+"";return"0"==t&&1/e==-su?"-0":t}var du=/\s/;var pu=/^\s+/;function hu(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&du.test(e.charAt(t)););return t}(e)+1).replace(pu,""):e}function fu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var gu=NaN,vu=/^[-+]0x[0-9a-f]+$/i,mu=/^0b[01]+$/i,yu=/^0o[0-7]+$/i,bu=parseInt;function xu(e){if("number"==typeof e)return e;if(iu(e))return gu;if(fu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=hu(e);var n=mu.test(e);return n||yu.test(e)?bu(e.slice(2),n?2:8):vu.test(e)?gu:+e}function _u(e){return e}var wu="[object AsyncFunction]",Su="[object Function]",Cu="[object GeneratorFunction]",Tu="[object Proxy]";function Mu(e){if(!fu(e))return!1;var t=tu(e);return t==Su||t==Cu||t==wu||t==Tu}var ku,Au=Ul["__core-js_shared__"],Iu=(ku=/[^.]+$/.exec(Au&&Au.keys&&Au.keys.IE_PROTO||""))?"Symbol(src)_1."+ku:"";var Eu=Function.prototype.toString;function Ou(e){if(null!=e){try{return Eu.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Du=/^\[object .+?Constructor\]$/,Pu=Function.prototype,Lu=Object.prototype,Ru=Pu.toString,Bu=Lu.hasOwnProperty,Nu=RegExp("^"+Ru.call(Bu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zu(e){return!(!fu(e)||(t=e,Iu&&Iu in t))&&(Mu(e)?Nu:Du).test(Ou(e));var t}function Fu(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return zu(n)?n:void 0}var Vu=Fu(Ul,"WeakMap"),Hu=Object.create,ju=function(){function e(){}return function(t){if(!fu(t))return{};if(Hu)return Hu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Wu(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Gu=Date.now;var Uu,qu,Yu,Xu=function(){try{var e=Fu(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ku=Xu?function(e,t){return Xu(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:_u,$u=(Uu=Ku,qu=0,Yu=0,function(){var e=Gu(),t=16-(e-Yu);if(Yu=e,t>0){if(++qu>=800)return arguments[0]}else qu=0;return Uu.apply(void 0,arguments)});var Zu=9007199254740991,Ju=/^(?:0|[1-9]\d*)$/;function Qu(e,t){var n=typeof e;return!!(t=null==t?Zu:t)&&("number"==n||"symbol"!=n&&Ju.test(e))&&e>-1&&e%1==0&&e<t}function ec(e,t,n){"__proto__"==t&&Xu?Xu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function tc(e,t){return e===t||e!=e&&t!=t}var nc=Object.prototype.hasOwnProperty;function rc(e,t,n){var r=e[t];nc.call(e,t)&&tc(r,n)&&(void 0!==n||t in e)||ec(e,t,n)}function ic(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?ec(n,s,l):rc(n,s,l)}return n}var oc=Math.max;function ac(e,t,n){return t=oc(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=oc(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}var sc=9007199254740991;function lc(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=sc}function uc(e){return null!=e&&lc(e.length)&&!Mu(e)}var cc=Object.prototype;function dc(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||cc)}function pc(e){return nu(e)&&"[object Arguments]"==tu(e)}var hc=Object.prototype,fc=hc.hasOwnProperty,gc=hc.propertyIsEnumerable,vc=pc(function(){return arguments}())?pc:function(e){return nu(e)&&fc.call(e,"callee")&&!gc.call(e,"callee")};var mc="object"==typeof exports&&exports&&!exports.nodeType&&exports,yc=mc&&"object"==typeof module&&module&&!module.nodeType&&module,bc=yc&&yc.exports===mc?Ul.Buffer:void 0,xc=(bc?bc.isBuffer:void 0)||function(){return!1},_c={};function wc(e){return function(t){return e(t)}}_c["[object Float32Array]"]=_c["[object Float64Array]"]=_c["[object Int8Array]"]=_c["[object Int16Array]"]=_c["[object Int32Array]"]=_c["[object Uint8Array]"]=_c["[object Uint8ClampedArray]"]=_c["[object Uint16Array]"]=_c["[object Uint32Array]"]=!0,_c["[object Arguments]"]=_c["[object Array]"]=_c["[object ArrayBuffer]"]=_c["[object Boolean]"]=_c["[object DataView]"]=_c["[object Date]"]=_c["[object Error]"]=_c["[object Function]"]=_c["[object Map]"]=_c["[object Number]"]=_c["[object Object]"]=_c["[object RegExp]"]=_c["[object Set]"]=_c["[object String]"]=_c["[object WeakMap]"]=!1;var Sc="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cc=Sc&&"object"==typeof module&&module&&!module.nodeType&&module,Tc=Cc&&Cc.exports===Sc&&Wl.process,Mc=function(){try{var e=Cc&&Cc.require&&Cc.require("util").types;return e||Tc&&Tc.binding&&Tc.binding("util")}catch(t){}}(),kc=Mc&&Mc.isTypedArray,Ac=kc?wc(kc):function(e){return nu(e)&&lc(e.length)&&!!_c[tu(e)]},Ic=Object.prototype.hasOwnProperty;function Ec(e,t){var n=au(e),r=!n&&vc(e),i=!n&&!r&&xc(e),o=!n&&!r&&!i&&Ac(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!Ic.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Qu(u,l))||s.push(u);return s}function Oc(e,t){return function(n){return e(t(n))}}var Dc=Oc(Object.keys,Object),Pc=Object.prototype.hasOwnProperty;function Lc(e){return uc(e)?Ec(e):function(e){if(!dc(e))return Dc(e);var t=[];for(var n in Object(e))Pc.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Rc=Object.prototype.hasOwnProperty;function Bc(e){if(!fu(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=dc(e),n=[];for(var r in e)("constructor"!=r||!t&&Rc.call(e,r))&&n.push(r);return n}function Nc(e){return uc(e)?Ec(e,!0):Bc(e)}var zc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fc=/^\w*$/;function Vc(e,t){if(au(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!iu(e))||(Fc.test(e)||!zc.test(e)||null!=t&&e in Object(t))}var Hc=Fu(Object,"create");var jc=Object.prototype.hasOwnProperty;var Wc=Object.prototype.hasOwnProperty;function Gc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Uc(e,t){for(var n=e.length;n--;)if(tc(e[n][0],t))return n;return-1}Gc.prototype.clear=function(){this.__data__=Hc?Hc(null):{},this.size=0},Gc.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gc.prototype.get=function(e){var t=this.__data__;if(Hc){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return jc.call(t,e)?t[e]:void 0},Gc.prototype.has=function(e){var t=this.__data__;return Hc?void 0!==t[e]:Wc.call(t,e)},Gc.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hc&&void 0===t?"__lodash_hash_undefined__":t,this};var qc=Array.prototype.splice;function Yc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yc.prototype.clear=function(){this.__data__=[],this.size=0},Yc.prototype.delete=function(e){var t=this.__data__,n=Uc(t,e);return!(n<0)&&(n==t.length-1?t.pop():qc.call(t,n,1),--this.size,!0)},Yc.prototype.get=function(e){var t=this.__data__,n=Uc(t,e);return n<0?void 0:t[n][1]},Yc.prototype.has=function(e){return Uc(this.__data__,e)>-1},Yc.prototype.set=function(e,t){var n=this.__data__,r=Uc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Xc=Fu(Ul,"Map");function Kc(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function $c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$c.prototype.clear=function(){this.size=0,this.__data__={hash:new Gc,map:new(Xc||Yc),string:new Gc}},$c.prototype.delete=function(e){var t=Kc(this,e).delete(e);return this.size-=t?1:0,t},$c.prototype.get=function(e){return Kc(this,e).get(e)},$c.prototype.has=function(e){return Kc(this,e).has(e)},$c.prototype.set=function(e,t){var n=Kc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Zc="Expected a function";function Jc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Zc);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Jc.Cache||$c),n}Jc.Cache=$c;var Qc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ed=/\\(\\)?/g,td=function(e){var t=Jc(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Qc,(function(e,n,r,i){t.push(r?i.replace(ed,"$1"):n||e)})),t}));function nd(e,t){return au(e)?e:Vc(e,t)?[e]:td(function(e){return null==e?"":cu(e)}(e))}var rd=1/0;function id(e){if("string"==typeof e||iu(e))return e;var t=e+"";return"0"==t&&1/e==-rd?"-0":t}function od(e,t){for(var n=0,r=(t=nd(t,e)).length;null!=e&&n<r;)e=e[id(t[n++])];return n&&n==r?e:void 0}function ad(e,t,n){var r=null==e?void 0:od(e,t);return void 0===r?n:r}function sd(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ld=ql?ql.isConcatSpreadable:void 0;function ud(e){return au(e)||vc(e)||!!(ld&&e&&e[ld])}function cd(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=ud),i||(i=[]);++o<a;){var s=e[o];n(s)?sd(i,s):i[i.length]=s}return i}function dd(e){return(null==e?0:e.length)?cd(e):[]}var pd=Oc(Object.getPrototypeOf,Object),hd="[object Object]",fd=Function.prototype,gd=Object.prototype,vd=fd.toString,md=gd.hasOwnProperty,yd=vd.call(Object);function bd(){if(!arguments.length)return[];var e=arguments[0];return au(e)?e:[e]}function xd(e){var t=this.__data__=new Yc(e);this.size=t.size}xd.prototype.clear=function(){this.__data__=new Yc,this.size=0},xd.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xd.prototype.get=function(e){return this.__data__.get(e)},xd.prototype.has=function(e){return this.__data__.has(e)},xd.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yc){var r=n.__data__;if(!Xc||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $c(r)}return n.set(e,t),this.size=n.size,this};var _d="object"==typeof exports&&exports&&!exports.nodeType&&exports,wd=_d&&"object"==typeof module&&module&&!module.nodeType&&module,Sd=wd&&wd.exports===_d?Ul.Buffer:void 0,Cd=Sd?Sd.allocUnsafe:void 0;function Td(e,t){if(t)return e.slice();var n=e.length,r=Cd?Cd(n):new e.constructor(n);return e.copy(r),r}function Md(){return[]}var kd=Object.prototype.propertyIsEnumerable,Ad=Object.getOwnPropertySymbols,Id=Ad?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Ad(e),(function(t){return kd.call(e,t)})))}:Md;var Ed=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sd(t,Id(e)),e=pd(e);return t}:Md;function Od(e,t,n){var r=t(e);return au(e)?r:sd(r,n(e))}function Dd(e){return Od(e,Lc,Id)}function Pd(e){return Od(e,Nc,Ed)}var Ld=Fu(Ul,"DataView"),Rd=Fu(Ul,"Promise"),Bd=Fu(Ul,"Set"),Nd="[object Map]",zd="[object Promise]",Fd="[object Set]",Vd="[object WeakMap]",Hd="[object DataView]",jd=Ou(Ld),Wd=Ou(Xc),Gd=Ou(Rd),Ud=Ou(Bd),qd=Ou(Vu),Yd=tu;(Ld&&Yd(new Ld(new ArrayBuffer(1)))!=Hd||Xc&&Yd(new Xc)!=Nd||Rd&&Yd(Rd.resolve())!=zd||Bd&&Yd(new Bd)!=Fd||Vu&&Yd(new Vu)!=Vd)&&(Yd=function(e){var t=tu(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ou(n):"";if(r)switch(r){case jd:return Hd;case Wd:return Nd;case Gd:return zd;case Ud:return Fd;case qd:return Vd}return t});var Xd=Object.prototype.hasOwnProperty;var Kd=Ul.Uint8Array;function $d(e){var t=new e.constructor(e.byteLength);return new Kd(t).set(new Kd(e)),t}var Zd=/\w*$/;var Jd=ql?ql.prototype:void 0,Qd=Jd?Jd.valueOf:void 0;function ep(e,t){var n=t?$d(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var tp="[object Boolean]",np="[object Date]",rp="[object Map]",ip="[object Number]",op="[object RegExp]",ap="[object Set]",sp="[object String]",lp="[object Symbol]",up="[object ArrayBuffer]",cp="[object DataView]",dp="[object Float32Array]",pp="[object Float64Array]",hp="[object Int8Array]",fp="[object Int16Array]",gp="[object Int32Array]",vp="[object Uint8Array]",mp="[object Uint8ClampedArray]",yp="[object Uint16Array]",bp="[object Uint32Array]";function xp(e,t,n){var r,i,o,a=e.constructor;switch(t){case up:return $d(e);case tp:case np:return new a(+e);case cp:return function(e,t){var n=t?$d(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case dp:case pp:case hp:case fp:case gp:case vp:case mp:case yp:case bp:return ep(e,n);case rp:return new a;case ip:case sp:return new a(e);case op:return(o=new(i=e).constructor(i.source,Zd.exec(i))).lastIndex=i.lastIndex,o;case ap:return new a;case lp:return r=e,Qd?Object(Qd.call(r)):{}}}function _p(e){return"function"!=typeof e.constructor||dc(e)?{}:ju(pd(e))}var wp=Mc&&Mc.isMap,Sp=wp?wc(wp):function(e){return nu(e)&&"[object Map]"==Yd(e)};var Cp=Mc&&Mc.isSet,Tp=Cp?wc(Cp):function(e){return nu(e)&&"[object Set]"==Yd(e)},Mp=1,kp=2,Ap=4,Ip="[object Arguments]",Ep="[object Function]",Op="[object GeneratorFunction]",Dp="[object Object]",Pp={};function Lp(e,t,n,r,i,o){var a,s=t&Mp,l=t&kp,u=t&Ap;if(void 0!==a)return a;if(!fu(e))return e;var c=au(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Xd.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Wu(e,a)}else{var d=Yd(e),p=d==Ep||d==Op;if(xc(e))return Td(e,s);if(d==Dp||d==Ip||p&&!i){if(a=l||p?{}:_p(e),!s)return l?function(e,t){return ic(e,Ed(e),t)}(e,function(e,t){return e&&ic(t,Nc(t),e)}(a,e)):function(e,t){return ic(e,Id(e),t)}(e,function(e,t){return e&&ic(t,Lc(t),e)}(a,e))}else{if(!Pp[d])return i?e:{};a=xp(e,d,s)}}o||(o=new xd);var h=o.get(e);if(h)return h;o.set(e,a),Tp(e)?e.forEach((function(r){a.add(Lp(r,t,n,r,e,o))})):Sp(e)&&e.forEach((function(r,i){a.set(i,Lp(r,t,n,i,e,o))}));var f=c?void 0:(u?l?Pd:Dd:l?Nc:Lc)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,(function(r,i){f&&(r=e[i=r]),rc(a,i,Lp(r,t,n,i,e,o))})),a}Pp[Ip]=Pp["[object Array]"]=Pp["[object ArrayBuffer]"]=Pp["[object DataView]"]=Pp["[object Boolean]"]=Pp["[object Date]"]=Pp["[object Float32Array]"]=Pp["[object Float64Array]"]=Pp["[object Int8Array]"]=Pp["[object Int16Array]"]=Pp["[object Int32Array]"]=Pp["[object Map]"]=Pp["[object Number]"]=Pp[Dp]=Pp["[object RegExp]"]=Pp["[object Set]"]=Pp["[object String]"]=Pp["[object Symbol]"]=Pp["[object Uint8Array]"]=Pp["[object Uint8ClampedArray]"]=Pp["[object Uint16Array]"]=Pp["[object Uint32Array]"]=!0,Pp["[object Error]"]=Pp[Ep]=Pp["[object WeakMap]"]=!1;function Rp(e){return Lp(e,4)}function Bp(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $c;++t<n;)this.add(e[t])}function Np(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}Bp.prototype.add=Bp.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Bp.prototype.has=function(e){return this.__data__.has(e)};var zp=1,Fp=2;function Vp(e,t,n,r,i,o){var a=n&zp,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=n&Fp?new Bp:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(r)var v=a?r(g,f,d,t,e,o):r(f,g,d,e,t,o);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!Np(t,(function(e,t){if(a=t,!h.has(a)&&(f===e||i(f,e,n,r,o)))return h.push(t);var a}))){p=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function Hp(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function jp(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Wp=1,Gp=2,Up="[object Boolean]",qp="[object Date]",Yp="[object Error]",Xp="[object Map]",Kp="[object Number]",$p="[object RegExp]",Zp="[object Set]",Jp="[object String]",Qp="[object Symbol]",eh="[object ArrayBuffer]",th="[object DataView]",nh=ql?ql.prototype:void 0,rh=nh?nh.valueOf:void 0;var ih=1,oh=Object.prototype.hasOwnProperty;var ah=1,sh="[object Arguments]",lh="[object Array]",uh="[object Object]",ch=Object.prototype.hasOwnProperty;function dh(e,t,n,r,i,o){var a=au(e),s=au(t),l=a?lh:Yd(e),u=s?lh:Yd(t),c=(l=l==sh?uh:l)==uh,d=(u=u==sh?uh:u)==uh,p=l==u;if(p&&xc(e)){if(!xc(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new xd),a||Ac(e)?Vp(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case th:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case eh:return!(e.byteLength!=t.byteLength||!o(new Kd(e),new Kd(t)));case Up:case qp:case Kp:return tc(+e,+t);case Yp:return e.name==t.name&&e.message==t.message;case $p:case Jp:return e==t+"";case Xp:var s=Hp;case Zp:var l=r&Wp;if(s||(s=jp),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=Gp,a.set(e,t);var c=Vp(s(e),s(t),r,i,o,a);return a.delete(e),c;case Qp:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,l,n,r,i,o);if(!(n&ah)){var h=c&&ch.call(e,"__wrapped__"),f=d&&ch.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,v=f?t.value():t;return o||(o=new xd),i(g,v,n,r,o)}}return!!p&&(o||(o=new xd),function(e,t,n,r,i,o){var a=n&ih,s=Dd(e),l=s.length;if(l!=Dd(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:oh.call(t,c)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,o):r(g,v,c,e,t,o);if(!(void 0===m?g===v||i(g,v,n,r,o):m)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}function ph(e,t,n,r,i){return e===t||(null==e||null==t||!nu(e)&&!nu(t)?e!=e&&t!=t:dh(e,t,n,r,ph,i))}var hh=1,fh=2;function gh(e){return e==e&&!fu(e)}function vh(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function mh(e){var t=function(e){for(var t=Lc(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,gh(i)]}return t}(e);return 1==t.length&&t[0][2]?vh(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=n[i])[0],l=e[s],u=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else{var c=new xd;if(!ph(u,l,hh|fh,r,c))return!1}}return!0}(n,0,t)}}function yh(e,t){return null!=e&&t in Object(e)}function bh(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=nd(t,e)).length,o=!1;++r<i;){var a=id(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&lc(i)&&Qu(a,i)&&(au(e)||vc(e))}(e,t,yh)}var xh=1,_h=2;function wh(e){return Vc(e)?(t=id(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return od(t,e)}}(e);var t}function Sh(e){return"function"==typeof e?e:null==e?_u:"object"==typeof e?au(e)?(t=e[0],n=e[1],Vc(t)&&gh(n)?vh(id(t),n):function(e){var r=ad(e,t);return void 0===r&&r===n?bh(e,t):ph(n,r,xh|_h)}):mh(e):wh(e);var t,n}var Ch=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};var Th,Mh=(Th=function(e,t){return e&&Ch(e,t,Lc)},function(e,t){if(null==e)return e;if(!uc(e))return Th(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),kh=function(){return Ul.Date.now()},Ah="Expected a function",Ih=Math.max,Eh=Math.min;function Oh(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(Ah);function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function g(){var e=kh();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?Eh(n,o-(e-u)):n}(e))}function v(e){return s=void 0,p&&r?h(e):(r=i=void 0,a)}function m(){var e=kh(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),h(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=xu(t)||0,fu(n)&&(c=!!n.leading,o=(d="maxWait"in n)?Ih(xu(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},m.flush=function(){return void 0===s?a:v(kh())},m}function Dh(e,t,n){(void 0!==n&&!tc(e[t],n)||void 0===n&&!(t in e))&&ec(e,t,n)}function Ph(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Lh(e,t,n,r,i,o,a){var s=Ph(e,n),l=Ph(t,n),u=a.get(l);if(u)Dh(e,n,u);else{var c,d=o?o(s,l,n+"",e,t,a):void 0,p=void 0===d;if(p){var h=au(l),f=!h&&xc(l),g=!h&&!f&&Ac(l);d=l,h||f||g?au(s)?d=s:nu(c=s)&&uc(c)?d=Wu(s):f?(p=!1,d=Td(l,!0)):g?(p=!1,d=ep(l,!0)):d=[]:function(e){if(!nu(e)||tu(e)!=hd)return!1;var t=pd(e);if(null===t)return!0;var n=md.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&vd.call(n)==yd}(l)||vc(l)?(d=s,vc(s)?d=function(e){return ic(e,Nc(e))}(s):fu(s)&&!Mu(s)||(d=_p(l))):p=!1}p&&(a.set(l,d),i(d,l,r,o,a),a.delete(l)),Dh(e,n,d)}}function Rh(e,t,n,r,i){e!==t&&Ch(t,(function(o,a){if(i||(i=new xd),fu(o))Lh(e,t,a,n,Rh,r,i);else{var s=r?r(Ph(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Dh(e,a,s)}}),Nc)}function Bh(e,t){var n=-1,r=uc(e)?Array(e.length):[];return Mh(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Nh(e,t){return cd(function(e,t){return(au(e)?ou:Bh)(e,Sh(t))}(e,t))}function zh(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Fh(e,t){return ph(e,t)}function Vh(e){return null==e}function Hh(e){return void 0===e}var jh,Wh=(jh=function(e,t,n){Rh(e,t,n)},function(e,t){return $u(ac(e,t,_u),e+"")}((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=jh.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!fu(n))return!1;var r=typeof t;return!!("number"==r?uc(n)&&Qu(t,n.length):"string"==r&&t in n)&&tc(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&jh(e,a,n,i)}return e})));function Gh(e,t,n,r){if(!fu(e))return e;for(var i=-1,o=(t=nd(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=id(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var c=s[l];void 0===(u=void 0)&&(u=fu(c)?c:Qu(t[i+1])?[]:{})}rc(s,l,u),s=s[l]}return e}function Uh(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=od(e,a);n(s,a)&&Gh(o,nd(a,e),s)}return o}(e,t,(function(t,n){return bh(e,n)}))}var qh=function(e){return $u(ac(e,void 0,dd),e+"")}((function(e,t){return null==e?{}:Uh(e,t)}));function Yh(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return fu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oh(e,t,{leading:r,maxWait:t,trailing:i})}const Xh=e=>void 0===e,Kh=e=>"boolean"==typeof e,$h=e=>"number"==typeof e,Zh=e=>"undefined"!=typeof Element&&e instanceof Element,Jh=e=>Vh(e),Qh=e=>e===window,ef=e=>rl?window.requestAnimationFrame(e):setTimeout(e,16),tf=e=>rl?window.cancelAnimationFrame(e):clearTimeout(e),nf=e=>D(e),rf=e=>Object.keys(e),of=(e,t,n)=>({get value(){return ad(e,t,n)},set value(n){!function(e,t,n){null==e||Gh(e,t,n)}(e,t,n)}});class af extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function sf(e,t){throw new af("[".concat(e,"] ").concat(t))}const lf=(e="")=>e.split(" ").filter((e=>!!e.trim())),uf=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},cf=(e,t)=>{e&&t.trim()&&e.classList.add(...lf(t))},df=(e,t)=>{e&&t.trim()&&e.classList.remove(...lf(t))},pf=(e,t)=>{var n;if(!rl||!e||!t)return"";let r=I(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const i=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch(i){return e.style[r]}};function hf(e,t="px"){return e?$h(e)||m(n=e)&&!Number.isNaN(Number(n))?"".concat(e).concat(t):m(e)?e:void 0:"";var n}const ff=(e,t)=>{if(!rl)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=pf(e,n);return["scroll","auto","overlay"].some((e=>r.includes(e)))},gf=(e,t)=>{if(!rl)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(ff(n,t))return n;n=n.parentNode}return n};let vf;const mf=(e,t)=>Qh(t)?e.ownerDocument.documentElement:t,yf=e=>Qh(e)?window.scrollY:e.scrollTop,bf=e=>{if(!rl||""===e)return null;if(m(e))try{return document.querySelector(e)}catch(t){return null}return e};
/*! Element Plus Icons Vue v2.3.1 */
var xf=sr({name:"ArrowDown",__name:"arrow-down",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("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"})]))}),_f=sr({name:"ArrowLeft",__name:"arrow-left",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}),wf=sr({name:"ArrowRight",__name:"arrow-right",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}),Sf=sr({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),Cf=sr({name:"CaretRight",__name:"caret-right",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),Tf=sr({name:"CaretTop",__name:"caret-top",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}),Mf=sr({name:"CircleCheck",__name:"circle-check",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),Mo("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"})]))}),kf=sr({name:"CircleCloseFilled",__name:"circle-close-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}),Af=sr({name:"CircleClose",__name:"circle-close",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("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.248z"}),Mo("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),If=sr({name:"CloseBold",__name:"close-bold",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}),Ef=sr({name:"Close",__name:"close",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("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"})]))}),Of=sr({name:"DArrowLeft",__name:"d-arrow-left",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}),Df=sr({name:"DArrowRight",__name:"d-arrow-right",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}),Pf=sr({name:"FullScreen",__name:"full-screen",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}),Lf=sr({name:"Hide",__name:"hide",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),Mo("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}),Rf=sr({name:"InfoFilled",__name:"info-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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"})]))}),Bf=sr({name:"Loading",__name:"loading",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}),Nf=sr({name:"Minus",__name:"minus",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}),zf=sr({name:"MoreFilled",__name:"more-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}),Ff=sr({name:"Plus",__name:"plus",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}),Vf=sr({name:"RefreshLeft",__name:"refresh-left",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}),Hf=sr({name:"RefreshRight",__name:"refresh-right",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}),jf=sr({name:"ScaleToOriginal",__name:"scale-to-original",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}),Wf=sr({name:"Search",__name:"search",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),Gf=sr({name:"StarFilled",__name:"star-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}),Uf=sr({name:"Star",__name:"star",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}),qf=sr({name:"SuccessFilled",__name:"success-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}),Yf=sr({name:"View",__name:"view",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}),Xf=sr({name:"WarningFilled",__name:"warning-filled",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}),Kf=sr({name:"ZoomIn",__name:"zoom-in",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}),$f=sr({name:"ZoomOut",__name:"zoom-out",setup:e=>(e,t)=>(go(),xo("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[Mo("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))});const Zf="__epPropKey",Jf=(e,t)=>{if(!b(e)||b(n=e)&&n[Zf])return e;var n;const{values:r,required:i,default:o,type:a,validator:s}=e,l=r||s?n=>{let i=!1,a=[];if(r&&(a=Array.from(r),d(e,"default")&&a.push(o),i||(i=a.includes(n))),s&&(i||(i=s(n))),!i&&a.length>0){const e=[...new Set(a)].map((e=>JSON.stringify(e))).join(", ");ua("Invalid prop: validation failed".concat(t?' for prop "'.concat(t,'"'):"",". Expected one of [").concat(e,"], got value ").concat(JSON.stringify(n),"."))}return i}:void 0,u={type:a,required:!!i,validator:l,[Zf]:!0};return d(e,"default")&&(u.default=o),u},Qf=e=>zh(Object.entries(e).map((([e,t])=>[e,Jf(t,e)]))),eg=[String,Object,Function],tg={Close:Ef},ng={Close:Ef,SuccessFilled:qf,InfoFilled:Rf,WarningFilled:Xf,CircleCloseFilled:kf},rg={success:qf,warning:Xf,error:kf,info:Rf},ig={validating:Bf,success:Mf,error:Af},og=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},ag=e=>(e.install=i,e),sg={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"},lg="update:modelValue",ug="change",cg="input",dg=["","default","small","large"];var pg=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(pg||{});function hg(e){return wo(e)&&e.type===lo}function fg(e){return wo(e)&&!hg(e)&&!function(e){return wo(e)&&e.type===co}(e)}const gg=e=>{const t=p(e)?e:[e],n=[];return t.forEach((e=>{var t;p(e)?n.push(...gg(e)):wo(e)&&p(e.children)?n.push(...gg(e.children)):(n.push(e),wo(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...gg(e.component.subTree)))})),n},vg=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);const mg=["class","style"],yg=/^on[A-Z]/,bg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ia((()=>((null==n?void 0:n.value)||[]).concat(mg))),i=jo();return ia(i?()=>{var e;return zh(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&yg.test(e)))))}:()=>({}))},xg=({from:e,replacement:t,scope:n,version:r,ref:i,type:o="API"},a)=>{Mi((()=>Lt(a)),(e=>{}),{immediate:!0})},_g=(e,t,n,r)=>{let i={offsetX:0,offsetY:0};const o=t=>{const n=t.clientX,o=t.clientY,{offsetX:a,offsetY:s}=i,l=e.value.getBoundingClientRect(),u=l.left,c=l.top,d=l.width,p=l.height,h=document.documentElement.clientWidth,f=document.documentElement.clientHeight,g=-u+a,v=-c+s,m=h-u-d+a,y=f-c-p+s,b=t=>{let l=a+t.clientX-n,u=s+t.clientY-o;(null==r?void 0:r.value)||(l=Math.min(Math.max(l,g),m),u=Math.min(Math.max(u,v),y)),i={offsetX:l,offsetY:u},e.value&&(e.value.style.transform="translate(".concat(hf(l),", ").concat(hf(u),")"))},x=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",x)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Xn((()=>{wi((()=>{n.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):a()}))})),Zn((()=>{a()}))};var wg={name:"en",el:{breadcrumb:{label:"Breadcrumb"},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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Sg=e=>(t,n)=>Cg(t,n,Lt(e)),Cg=(e,t,n)=>ad(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return"".concat(null!=(r=null==t?void 0:t[n])?r:"{".concat(n,"}"))})),Tg=Symbol("localeContextKey"),Mg=e=>{const t=e||Fr(Tg,Et());return(e=>({lang:ia((()=>Lt(e).name)),locale:It(e)?e:Et(e),t:Sg(e)}))(ia((()=>t.value||wg)))},kg="el",Ag=(e,t,n,r,i)=>{let o="".concat(e,"-").concat(t);return n&&(o+="-".concat(n)),r&&(o+="__".concat(r)),i&&(o+="--".concat(i)),o},Ig=Symbol("namespaceContextKey"),Eg=e=>{const t=e||(jo()?Fr(Ig,Et(kg)):Et(kg));return ia((()=>Lt(t)||kg))},Og=(e,t)=>{const n=Eg(t);return{namespace:n,b:(t="")=>Ag(n.value,e,t,"",""),e:t=>t?Ag(n.value,e,"",t,""):"",m:t=>t?Ag(n.value,e,"","",t):"",be:(t,r)=>t&&r?Ag(n.value,e,t,r,""):"",em:(t,r)=>t&&r?Ag(n.value,e,"",t,r):"",bm:(t,r)=>t&&r?Ag(n.value,e,t,"",r):"",bem:(t,r,i)=>t&&r&&i?Ag(n.value,e,t,r,i):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?"".concat("is-").concat(e):""},cssVar:e=>{const t={};for(const r in e)e[r]&&(t["--".concat(n.value,"-").concat(r)]=e[r]);return t},cssVarName:e=>"--".concat(n.value,"-").concat(e),cssVarBlock:t=>{const r={};for(const i in t)t[i]&&(r["--".concat(n.value,"-").concat(e,"-").concat(i)]=t[i]);return r},cssVarBlockName:t=>"--".concat(n.value,"-").concat(e,"-").concat(t)}},Dg=(e,t={})=>{It(e)||sf("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Og("popup"),r=ia((()=>n.bm("parent","hidden")));if(!rl||uf(document.body,r.value))return;let i=0,o=!1,a="0";const s=()=>{setTimeout((()=>{df(null==document?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)}),200)};Mi(e,(e=>{if(!e)return void s();o=!uf(document.body,r.value),o&&(a=document.body.style.width),i=(e=>{var t;if(!rl)return 0;if(void 0!==vf)return vf;const n=document.createElement("div");n.className="".concat(e,"-scrollbar__wrap"),n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),vf=r-o,vf})(n.namespace.value);const t=document.documentElement.clientHeight<document.body.scrollHeight,l=pf(document.body,"overflowY");i>0&&(t||"scroll"===l)&&o&&(document.body.style.width="calc(100% - ".concat(i,"px)")),cf(document.body,r.value)})),le((()=>s()))},Pg=Jf({type:Boolean,default:null}),Lg=Jf({type:Function}),Rg=e=>{const t="update:".concat(e),n="onUpdate:".concat(e),r=[t];return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:o,shouldProceed:a,onShow:s,onHide:l})=>{const u=jo(),{emit:c}=u,d=u.props,p=ia((()=>v(d[n]))),h=ia((()=>null===d[e])),f=e=>{!0!==r.value&&(r.value=!0,i&&(i.value=e),v(s)&&s(e))},g=e=>{!1!==r.value&&(r.value=!1,i&&(i.value=e),v(l)&&l(e))},m=e=>{if(!0===d.disabled||v(a)&&!a())return;const n=p.value&&rl;n&&c(t,!0),!h.value&&n||f(e)},y=e=>{if(!0===d.disabled||!rl)return;const n=p.value&&rl;n&&c(t,!1),!h.value&&n||g(e)},b=e=>{Kh(e)&&(d.disabled&&e?p.value&&c(t,!1):r.value!==e&&(e?f():g()))};return Mi((()=>d[e]),b),o&&void 0!==u.appContext.config.globalProperties.$route&&Mi((()=>({...u.proxy.$route})),(()=>{o.value&&r.value&&y()})),Xn((()=>{b(d[e])})),{hide:y,show:m,toggle:()=>{r.value?y():m()},hasUpdateHandler:p}},useModelToggleProps:{[e]:Pg,[n]:Lg},useModelToggleEmits:r}};Rg("modelValue");const Bg=e=>{const t=jo();return ia((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))};var Ng="top",zg="bottom",Fg="right",Vg="left",Hg="auto",jg=[Ng,zg,Fg,Vg],Wg="start",Gg="end",Ug="clippingParents",qg="viewport",Yg="popper",Xg="reference",Kg=jg.reduce((function(e,t){return e.concat([t+"-"+Wg,t+"-"+Gg])}),[]),$g=[].concat(jg,[Hg]).reduce((function(e,t){return e.concat([t,t+"-"+Wg,t+"-"+Gg])}),[]),Zg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Jg(e){return e?(e.nodeName||"").toLowerCase():null}function Qg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ev(e){return e instanceof Qg(e).Element||e instanceof Element}function tv(e){return e instanceof Qg(e).HTMLElement||e instanceof HTMLElement}function nv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Qg(e).ShadowRoot||e instanceof ShadowRoot)}var rv={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!tv(i)||!Jg(i)||(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!tv(r)||!Jg(r)||(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function iv(e){return e.split("-")[0]}var ov=Math.max,av=Math.min,sv=Math.round;function lv(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(tv(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=sv(n.width)/a||1),o>0&&(i=sv(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function uv(e){var t=lv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function cv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dv(e){return Qg(e).getComputedStyle(e)}function pv(e){return["table","td","th"].indexOf(Jg(e))>=0}function hv(e){return((ev(e)?e.ownerDocument:e.document)||window.document).documentElement}function fv(e){return"html"===Jg(e)?e:e.assignedSlot||e.parentNode||(nv(e)?e.host:null)||hv(e)}function gv(e){return tv(e)&&"fixed"!==dv(e).position?e.offsetParent:null}function vv(e){for(var t=Qg(e),n=gv(e);n&&pv(n)&&"static"===dv(n).position;)n=gv(n);return n&&("html"===Jg(n)||"body"===Jg(n)&&"static"===dv(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&tv(e)&&"fixed"===dv(e).position)return null;var n=fv(e);for(nv(n)&&(n=n.host);tv(n)&&["html","body"].indexOf(Jg(n))<0;){var r=dv(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function mv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yv(e,t,n){return ov(e,av(t,n))}function bv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xv(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var _v={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=iv(n.placement),l=mv(s),u=[Vg,Fg].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return bv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xv(e,jg))}(i.padding,n),d=uv(o),p="y"===l?Ng:Vg,h="y"===l?zg:Fg,f=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],v=vv(o),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-g/2,b=c[p],x=m-d[u]-c[h],_=m/2-d[u]/2+y,w=yv(b,_,x),S=l;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!cv(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wv(e){return e.split("-")[1]}var Sv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,g=void 0===f?0:f,v="function"==typeof c?c({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Vg,x=Ng,_=window;if(u){var w=vv(n),S="clientHeight",C="clientWidth";if(w===Qg(n)&&("static"!==dv(w=hv(n)).position&&"absolute"===s&&(S="scrollHeight",C="scrollWidth")),i===Ng||(i===Vg||i===Fg)&&o===Gg)x=zg,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[S])-r.height,g*=l?1:-1;if(i===Vg||(i===Ng||i===zg)&&o===Gg)b=Fg,h-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[C])-r.width,h*=l?1:-1}var T,M=Object.assign({position:s},u&&Sv),k=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:sv(t*r)/r||0,y:sv(n*r)/r||0}}({x:h,y:g}):{x:h,y:g};return h=k.x,g=k.y,l?Object.assign({},M,((T={})[x]=y?"0":"",T[b]=m?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",T)):Object.assign({},M,((t={})[x]=y?g+"px":"",t[b]=m?h+"px":"",t.transform="",t))}var Tv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:iv(t.placement),variation:wv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Cv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Mv={passive:!0};var kv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Qg(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Mv)})),s&&l.addEventListener("resize",n.update,Mv),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Mv)})),s&&l.removeEventListener("resize",n.update,Mv)}},data:{}},Av={left:"right",right:"left",bottom:"top",top:"bottom"};function Iv(e){return e.replace(/left|right|bottom|top/g,(function(e){return Av[e]}))}var Ev={start:"end",end:"start"};function Ov(e){return e.replace(/start|end/g,(function(e){return Ev[e]}))}function Dv(e){var t=Qg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pv(e){return lv(hv(e)).left+Dv(e).scrollLeft}function Lv(e){var t=dv(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Rv(e){return["html","body","#document"].indexOf(Jg(e))>=0?e.ownerDocument.body:tv(e)&&Lv(e)?e:Rv(fv(e))}function Bv(e,t){var n;void 0===t&&(t=[]);var r=Rv(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Qg(r),a=i?[o].concat(o.visualViewport||[],Lv(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Bv(fv(a)))}function Nv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zv(e,t){return t===qg?Nv(function(e){var t=Qg(e),n=hv(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Pv(e),y:s}}(e)):ev(t)?function(e){var t=lv(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Nv(function(e){var t,n=hv(e),r=Dv(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=ov(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ov(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Pv(e),l=-r.scrollTop;return"rtl"===dv(i||n).direction&&(s+=ov(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(hv(e)))}function Fv(e,t,n){var r="clippingParents"===t?function(e){var t=Bv(fv(e)),n=["absolute","fixed"].indexOf(dv(e).position)>=0&&tv(e)?vv(e):e;return ev(n)?t.filter((function(e){return ev(e)&&cv(e,n)&&"body"!==Jg(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=zv(e,n);return t.top=ov(r.top,t.top),t.right=av(r.right,t.right),t.bottom=av(r.bottom,t.bottom),t.left=ov(r.left,t.left),t}),zv(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vv(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?iv(i):null,a=i?wv(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Ng:t={x:s,y:n.y-r.height};break;case zg:t={x:s,y:n.y+n.height};break;case Fg:t={x:n.x+n.width,y:l};break;case Vg:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?mv(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Wg:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Gg:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Hv(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?Ug:o,s=n.rootBoundary,l=void 0===s?qg:s,u=n.elementContext,c=void 0===u?Yg:u,d=n.altBoundary,p=void 0!==d&&d,h=n.padding,f=void 0===h?0:h,g=bv("number"!=typeof f?f:xv(f,jg)),v=c===Yg?Xg:Yg,m=e.rects.popper,y=e.elements[p?v:c],b=Fv(ev(y)?y:y.contextElement||hv(e.elements.popper),a,l),x=lv(e.elements.reference),_=Vv({reference:x,element:m,strategy:"absolute",placement:i}),w=Nv(Object.assign({},m,_)),S=c===Yg?w:x,C={top:b.top-S.top+g.top,bottom:S.bottom-b.bottom+g.bottom,left:b.left-S.left+g.left,right:S.right-b.right+g.right},T=e.modifiersData.offset;if(c===Yg&&T){var M=T[i];Object.keys(C).forEach((function(e){var t=[Fg,zg].indexOf(e)>=0?1:-1,n=[Ng,zg].indexOf(e)>=0?"y":"x";C[e]+=M[n]*t}))}return C}var jv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,g=n.allowedAutoPlacements,v=t.options.placement,m=iv(v),y=l||(m===v||!f?[Iv(v)]:function(e){if(iv(e)===Hg)return[];var t=Iv(e);return[Ov(e),t,Ov(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(iv(n)===Hg?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?$g:l,c=wv(r),d=c?s?Kg:Kg.filter((function(e){return wv(e)===c})):jg,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=Hv(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[iv(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,S=!0,C=b[0],T=0;T<b.length;T++){var M=b[T],k=iv(M),A=wv(M)===Wg,I=[Ng,zg].indexOf(k)>=0,E=I?"width":"height",O=Hv(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),D=I?A?Fg:Vg:A?zg:Ng;x[E]>_[E]&&(D=Iv(D));var P=Iv(D),L=[];if(o&&L.push(O[k]<=0),s&&L.push(O[D]<=0,O[P]<=0),L.every((function(e){return e}))){C=M,S=!1;break}w.set(M,L)}if(S)for(var R=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},B=f?3:1;B>0;B--){if("break"===R(B))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Wv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gv(e){return[Ng,Fg,zg,Vg].some((function(t){return e[t]>=0}))}var Uv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Hv(t,{elementContext:"reference"}),s=Hv(t,{altBoundary:!0}),l=Wv(a,r),u=Wv(s,i,o),c=Gv(l),d=Gv(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var qv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=$g.reduce((function(e,n){return e[n]=function(e,t,n){var r=iv(e),i=[Vg,Ng].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Vg,Fg].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var Yv={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Xv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,g=void 0===f?0:f,v=Hv(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=iv(t.placement),y=wv(t.placement),b=!y,x=mv(m),_=function(e){return"x"===e?"y":"x"}(x),w=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,M="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(o){var I,E="y"===x?Ng:Vg,O="y"===x?zg:Fg,D="y"===x?"height":"width",P=w[x],L=P+v[E],R=P-v[O],B=h?-C[D]/2:0,N=y===Wg?S[D]:C[D],z=y===Wg?-C[D]:-S[D],F=t.elements.arrow,V=h&&F?uv(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[E],W=H[O],G=yv(0,S[D],V[D]),U=b?S[D]/2-B-G-j-M.mainAxis:N-G-j-M.mainAxis,q=b?-S[D]/2+B+G+W+M.mainAxis:z+G+W+M.mainAxis,Y=t.elements.arrow&&vv(t.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(I=null==k?void 0:k[x])?I:0,$=P+q-K,Z=yv(h?av(L,P+U-K-X):L,P,h?ov(R,$):R);w[x]=Z,A[x]=Z-P}if(s){var J,Q="x"===x?Ng:Vg,ee="x"===x?zg:Fg,te=w[_],ne="y"===_?"height":"width",re=te+v[Q],ie=te-v[ee],oe=-1!==[Ng,Vg].indexOf(m),ae=null!=(J=null==k?void 0:k[_])?J:0,se=oe?re:te-S[ne]-C[ne]-ae+M.altAxis,le=oe?te+S[ne]+C[ne]-ae-M.altAxis:ie,ue=h&&oe?function(e,t,n){var r=yv(e,t,n);return r>n?n:r}(se,te,le):yv(h?se:re,te,h?le:ie);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function Kv(e,t,n){void 0===n&&(n=!1);var r=tv(t),i=tv(t)&&function(e){var t=e.getBoundingClientRect(),n=sv(t.width)/e.offsetWidth||1,r=sv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=hv(t),a=lv(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Jg(t)||Lv(o))&&(s=function(e){return e!==Qg(e)&&tv(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Dv(e)}(t)),tv(t)?((l=lv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Pv(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $v(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function Zv(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Jv={placement:"bottom",modifiers:[],strategy:"absolute"};function Qv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function em(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Jv:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jv,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;u(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:ev(e)?Bv(e):e.contextElement?Bv(e.contextElement):[],popper:Bv(t)};var c=function(e){var t=$v(e);return Zg.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=c.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:l,options:r}),u=function(){};a.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Qv(t,n)){i.rects={reference:Kv(t,vv(n),"fixed"===i.options.strategy),popper:uv(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,u=o.options,c=void 0===u?{}:u,d=o.name;"function"==typeof a&&(i=a({state:i,options:c,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:Zv((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!Qv(e,t))return l;function u(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}em(),em({defaultModifiers:[kv,Yv,Tv,rv]});var tm=em({defaultModifiers:[kv,Yv,Tv,rv,qv,jv,Xv,_v,Uv]});const nm=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),n=zh(t.map((t=>[t,e.styles[t]||{}]))),r=zh(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:r}}(e);Object.assign(a.value,t)},requires:["computeStyles"]},i=ia((()=>{const{onFirstUpdate:e,placement:t,strategy:i,modifiers:o}=Lt(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:i||"absolute",modifiers:[...o||[],r,{name:"applyStyles",enabled:!1}]}})),o=Ot(),a=Et({styles:{popper:{position:Lt(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return Mi(i,(e=>{const t=Lt(o);t&&t.setOptions(e)}),{deep:!0}),Mi([e,t],(([e,t])=>{s(),e&&t&&(o.value=tm(e,t,Lt(i)))})),Zn((()=>{s()})),{state:ia((()=>{var e;return{...(null==(e=Lt(o))?void 0:e.state)||{}}})),styles:ia((()=>Lt(a).styles)),attributes:ia((()=>Lt(a).attributes)),update:()=>{var e;return null==(e=Lt(o))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=Lt(o))?void 0:e.forceUpdate()},instanceRef:ia((()=>Lt(o)))}};const rm=e=>{if(!e)return{onClick:i,onMousedown:i,onMouseup:i};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{n=e.target===e.currentTarget}}};function im(){let e;const t=()=>window.clearTimeout(e);return cl((()=>t())),{registerTimeout:(n,r)=>{t(),e=window.setTimeout(n,r)},cancelTimeout:t}}const om={prefix:Math.floor(1e4*Math.random()),current:0},am=Symbol("elIdInjection"),sm=()=>jo()?Fr(am,om):om,lm=e=>{const t=sm(),n=Eg();return ia((()=>Lt(e)||"".concat(n.value,"-id-").concat(t.prefix,"-").concat(t.current++)))};let um=[];const cm=e=>{const t=e;t.key===sg.esc&&um.forEach((e=>e(t)))};let dm;const pm=()=>{const e=Eg(),t=sm(),n=ia((()=>"".concat(e.value,"-popper-container-").concat(t.prefix))),r=ia((()=>"#".concat(n.value)));return{id:n,selector:r}},hm=()=>{const{id:e,selector:t}=pm();return Yn((()=>{rl&&(dm||document.body.querySelector(t.value)||(dm=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))})),{id:e,selector:t}},fm=Qf({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),gm=Symbol("elForwardRef"),vm={current:0},mm=Et(0),ym=Symbol("elZIndexContextKey"),bm=Symbol("zIndexContextKey"),xm=e=>{const t=jo()?Fr(ym,vm):vm,n=e||(jo()?Fr(bm,void 0):void 0),r=ia((()=>{const e=Lt(n);return $h(e)?e:2e3})),i=ia((()=>r.value+mm.value));return!rl&&Fr(ym),{initialZIndex:r,currentZIndex:i,nextZIndex:()=>(t.current++,mm.value=t.current,i.value)}};const _m=(e,t)=>{const n={},r=Ot([]);return{children:r,addChild:i=>{n[i.uid]=i,r.value=((e,t,n)=>gg(e.subTree).filter((e=>{var n;return wo(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component})).map((e=>e.component.uid)).map((e=>n[e])).filter((e=>!!e)))(e,t,n)},removeChild:e=>{delete n[e],r.value=r.value.filter((t=>t.uid!==e))}}},wm=Jf({type:String,values:dg,required:!1}),Sm=Symbol("size");function Cm(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const i=jo(),{emit:o}=i,a=Ot(),s=Et(!1);return Mi(a,(e=>{e&&e.setAttribute("tabindex","-1")})),yl(a,"click",(()=>{var t;null==(t=e.value)||t.focus()})),{wrapperRef:a,isFocused:s,handleFocus:e=>{s.value||(s.value=!0,o("focus",e),null==t||t())},handleBlur:e=>{var t;!!v(n)&&n(e)||e.relatedTarget&&(null==(t=a.value)?void 0:t.contains(e.relatedTarget))||(s.value=!1,o("blur",e),null==r||r())}}}const Tm=["",void 0,null],Mm=Qf({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>v(e)?!e():!e}}),km=Qf({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Am=e=>qh(km,e),Im=Symbol(),Em=Et();function Om(e,t=void 0){const n=jo()?Fr(Im,Em):Em;return e?ia((()=>{var r,i;return null!=(i=null==(r=n.value)?void 0:r[e])?i:t})):n}const Dm=(e,t,n=!1)=>{const r=!!jo(),i=r?Om():void 0,o=null!=void 0?undefined:r?zr:void 0;if(!o)return;const a=ia((()=>{const t=Lt(e);return(null==i?void 0:i.value)?Pm(i.value,t):t}));return o(Im,a),o(Tg,ia((()=>a.value.locale))),o(Ig,ia((()=>a.value.namespace))),o(bm,ia((()=>a.value.zIndex))),o(Sm,{size:ia((()=>a.value.size||""))}),!n&&Em.value||(Em.value=a.value),a},Pm=(e,t)=>{const n=[...new Set([...rf(e),...rf(t)])],r={};for(const i of n)r[i]=void 0!==t[i]?t[i]:e[i];return r},Lm={},Rm=Qf({zIndex:{type:[Number,String],default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Bm={scroll:({scrollTop:e,fixed:t})=>$h(e)&&Kh(t),[ug]:e=>Kh(e)};var Nm=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const zm="ElAffix",Fm=sr({...sr({name:zm}),props:Rm,emits:Bm,setup(e,{expose:t,emit:n}){const r=e,i=Og("affix"),o=Ot(),a=Ot(),s=Ot(),{height:l}=function(e={}){const{window:t=vl,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:o=!0}=e,a=Et(n),s=Et(r),l=()=>{t&&(o?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),hl(l),yl("resize",l,{passive:!0}),i&&yl("orientationchange",l,{passive:!0}),{width:a,height:s}}(),{height:u,width:c,top:d,bottom:p,update:h}=Il(a,{windowScroll:!1}),f=Il(o),g=Et(!1),v=Et(0),m=Et(0),y=ia((()=>({height:g.value?"".concat(u.value,"px"):"",width:g.value?"".concat(c.value,"px"):""}))),b=ia((()=>{if(!g.value)return{};const e=r.offset?hf(r.offset):0;return{height:"".concat(u.value,"px"),width:"".concat(c.value,"px"),top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:m.value?"translateY(".concat(m.value,"px)"):"",zIndex:r.zIndex}})),x=()=>{if(s.value)if(v.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,"top"===r.position)if(r.target){const e=f.bottom.value-r.offset-u.value;g.value=r.offset>d.value&&f.bottom.value>0,m.value=e<0?e:0}else g.value=r.offset>d.value;else if(r.target){const e=l.value-f.top.value-r.offset-u.value;g.value=l.value-r.offset<p.value&&l.value>f.top.value,m.value=e<0?-e:0}else g.value=l.value-r.offset<p.value};return Mi(g,(e=>n("change",e))),Xn((()=>{var e;r.target?(o.value=null!=(e=document.querySelector(r.target))?e:void 0,o.value||sf(zm,"Target does not exist: ".concat(r.target))):o.value=document.documentElement,s.value=gf(a.value,!0),h()})),yl(s,"scroll",(()=>{h(),n("scroll",{scrollTop:v.value,fixed:g.value})})),wi(x),t({update:x,updateRoot:h}),(e,t)=>(go(),xo("div",{ref_key:"root",ref:a,class:Y(Lt(i).b()),style:j(Lt(y))},[Mo("div",{class:Y({[Lt(i).m("fixed")]:g.value}),style:j(Lt(b))},[cr(e.$slots,"default")],6)],6))}});const Vm=og(Nm(Fm,[["__file","affix.vue"]])),Hm=Qf({size:{type:[Number,String]},color:{type:String}});const jm=og(Nm(sr({...sr({name:"ElIcon",inheritAttrs:!1}),props:Hm,setup(e){const t=e,n=Og("icon"),r=ia((()=>{const{size:e,color:n}=t;return e||n?{fontSize:Xh(e)?void 0:hf(e),"--color":n}:{}}));return(e,t)=>(go(),xo("i",Bo({class:Lt(n).b(),style:Lt(r)},e.$attrs),[cr(e.$slots,"default")],16))}}),[["__file","icon.vue"]])),Wm=Symbol("formContextKey"),Gm=Symbol("formItemContextKey"),Um=(e,t={})=>{const n=Et(void 0),r=t.prop?n:Bg("size"),i=t.global?n:(()=>{const e=Fr(Sm,{});return ia((()=>Lt(e.size)||""))})(),o=t.form?{size:void 0}:Fr(Wm,void 0),a=t.formItem?{size:void 0}:Fr(Gm,void 0);return ia((()=>r.value||Lt(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||i.value||""))},qm=e=>{const t=Bg("disabled"),n=Fr(Wm,void 0);return ia((()=>t.value||Lt(e)||(null==n?void 0:n.disabled)||!1))},Ym=()=>({form:Fr(Wm,void 0),formItem:Fr(Gm,void 0)}),Xm=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Et(!1)),r||(r=Et(!1));const i=Et();let o;const a=ia((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return Xn((()=>{o=Mi([jt(e,"id"),n],(([e,n])=>{const o=null!=e?e:n?void 0:lm().value;o!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==r?void 0:r.value)||n||!o||t.addInputId(o)),i.value=o)}),{immediate:!0})})),Jn((()=>{o&&o(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:a,inputId:i}},Km=Qf({size:{type:String,values:dg},disabled:Boolean}),$m=Qf({...Km,model:Object,rules:{type:Object},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Zm={validate:(e,t,n)=>(p(e)||m(e))&&Kh(t)&&m(n)};function Jm(){const e=Et([]),t=ia((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?"".concat(t,"px"):""}));function n(n){const r=e.value.indexOf(n);return-1===r&&t.value,r}return{autoLabelWidth:t,registerLabelWidth:function(t,r){if(t&&r){const i=n(r);e.value.splice(i,1,t)}else t&&e.value.push(t)},deregisterLabelWidth:function(t){const r=n(t);r>-1&&e.value.splice(r,1)}}}const Qm=(e,t)=>{const n=bd(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e};var ey=Nm(sr({...sr({name:"ElForm"}),props:$m,emits:Zm,setup(e,{expose:t,emit:n}){const r=e,i=[],o=Um(),a=Og("form"),s=ia((()=>{const{labelPosition:e,inline:t}=r;return[a.b(),a.m(o.value||"default"),{[a.m("label-".concat(e))]:e,[a.m("inline")]:t}]})),l=(e=[])=>{r.model&&Qm(i,e).forEach((e=>e.resetField()))},u=(e=[])=>{Qm(i,e).forEach((e=>e.clearValidate()))},c=ia((()=>!!r.model)),d=async e=>h(void 0,e),p=async(e=[])=>{if(!c.value)return!1;const t=(e=>{if(0===i.length)return[];const t=Qm(i,e);return t.length?t:[]})(e);if(0===t.length)return!0;let n={};for(const i of t)try{await i.validate("")}catch(r){n={...n,...r}}return 0===Object.keys(n).length||Promise.reject(n)},h=async(e=[],t)=>{const n=!v(t);try{const n=await p(e);return!0===n&&await(null==t?void 0:t(n)),n}catch(i){if(i instanceof Error)throw i;const e=i;return r.scrollToError&&f(Object.keys(e)[0]),await(null==t?void 0:t(!1,e)),n&&Promise.reject(e)}},f=e=>{var t;const n=Qm(i,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(r.scrollIntoViewOptions))};return Mi((()=>r.rules),(()=>{r.validateOnRuleChange&&d().catch((e=>{}))}),{deep:!0}),zr(Wm,ht({...Ft(r),emit:n,resetFields:l,clearValidate:u,validateField:h,getField:e=>i.find((t=>t.prop===e)),addField:e=>{i.push(e)},removeField:e=>{e.prop&&i.splice(i.indexOf(e),1)},...Jm()})),t({validate:d,validateField:h,resetFields:l,clearValidate:u,scrollToField:f,fields:i}),(e,t)=>(go(),xo("form",{class:Y(Lt(s))},[cr(e.$slots,"default")],2))}}),[["__file","form.vue"]]);function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ty.apply(this,arguments)}function ny(e){return(ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ry(e,t){return(ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function iy(e,t,n){return(iy=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ry(i,n.prototype),i}).apply(null,arguments)}function oy(e){var t="function"==typeof Map?new Map:void 0;return oy=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return iy(e,arguments,ny(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ry(r,e)},oy(e)}var ay=/%[sdj%]/g,sy=function(){};function ly(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function uy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(ay,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return e}})):e}function cy(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function dy(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}([])}var py=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ry(t,n),r}(oy(Error));function hy(e,t,n,r,i){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);dy(a,n,(function(e){return r(e),e.length?o(new py(e,ly(e))):t(i)}))}));return o.catch((function(e){return e})),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise((function(t,o){var d=function(e){if(c.push.apply(c,e),++u===l)return r(c),c.length?o(new py(c,ly(c))):t(i)};s.length||(r(c),t(i)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?dy(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e||[]),++i===o&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function fy(e,t){return function(n){var r,i;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function gy(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=ty({},e[n],r):e[n]=r}return e}var vy,my=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!cy(t,o||e.type)||r.push(uy(i.messages.required,e.fullField))},yy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,by=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xy={integer:function(e){return xy.number(e)&&parseInt(e,10)===e},float:function(e){return xy.number(e)&&!xy.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!xy.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(yy)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(vy)return vy;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(e){return e&&e.exact?o:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+i+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+i+t(e),"g")};var u=l.v4().source,c=l.v6().source;return vy=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(by)}},_y="enum",wy={required:my,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(uy(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)my(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?xy[o](t)||r.push(uy(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(uy(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,u=null,c="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(c?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(uy(i.messages[u].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(uy(i.messages[u].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(uy(i.messages[u].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(uy(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[_y]=Array.isArray(e[_y])?e[_y]:[],-1===e[_y].indexOf(t)&&r.push(uy(i.messages[_y],e.fullField,e[_y].join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(uy(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(uy(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Sy=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t,o)&&!e.required)return n();wy.required(e,t,r,a,i,o),cy(t,o)||wy.type(e,t,r,a,i)}n(a)},Cy={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t,"string")&&!e.required)return n();wy.required(e,t,r,o,i,"string"),cy(t,"string")||(wy.type(e,t,r,o,i),wy.range(e,t,r,o,i),wy.pattern(e,t,r,o,i),!0===e.whitespace&&wy.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&wy.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&(wy.type(e,t,r,o,i),wy.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&wy.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),cy(t)||wy.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&(wy.type(e,t,r,o,i),wy.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&(wy.type(e,t,r,o,i),wy.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();wy.required(e,t,r,o,i,"array"),null!=t&&(wy.type(e,t,r,o,i),wy.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&wy.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i),void 0!==t&&wy.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t,"string")&&!e.required)return n();wy.required(e,t,r,o,i),cy(t,"string")||wy.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t,"date")&&!e.required)return n();var a;if(wy.required(e,t,r,o,i),!cy(t,"date"))a=t instanceof Date?t:new Date(t),wy.type(e,a,r,o,i),a&&wy.range(e,a.getTime(),r,o,i)}n(o)},url:Sy,hex:Sy,email:Sy,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;wy.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cy(t)&&!e.required)return n();wy.required(e,t,r,o,i)}n(o)}};function Ty(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var My=Ty(),ky=function(){function e(e){this.rules=null,this._messages=My,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=gy(Ty(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);if(a.messages){var l=this.messages();l===My&&(l=Ty()),gy(l,a.messages),a.messages=l}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],r=o[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(o===t&&(o=ty({},o)),r=o[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:ty({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:o,field:e}))}))}));var c={};return hy(u,a,(function(t,n){var r,i=t.rule,s=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function l(e,t){return ty({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var d=u.map(fy(i,o));if(a.first&&d.length)return c[i.field]=1,n(d);if(s){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(fy(i,o)):a.error&&(d=[a.error(i,uy(a.messages.required,i.field))]),n(d);var p={};i.defaultField&&Object.keys(t.value).map((function(e){p[e]=i.defaultField})),p=ty({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(l.bind(null,e))}));var f=new e(h);f.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),f.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)r=i.asyncValidator(i,t.value,u,t.source,a);else if(i.validator){try{r=i.validator(i,t.value,u,t.source,a)}catch(d){console.error,a.suppressValidatorError||setTimeout((function(){throw d}),0),u(d.message)}!0===r?u():!1===r?u("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)}r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,r=[],i={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,t):r.push(t);r.length?(i=ly(r),s(r,i)):s(null,o)}(e)}),o)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Cy.hasOwnProperty(e.type))throw new Error(uy("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Cy.required:Cy[this.getType(e)]||void 0},e}();ky.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Cy[e]=t},ky.warning=sy,ky.messages=My,ky.validators=Cy;const Ay=Qf({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:[String,Array]},required:{type:Boolean,default:void 0},rules:{type:[Object,Array]},error:String,validateStatus:{type:String,values:["","error","validating","success"]},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:dg}}),Iy="ElLabelWrap";var Ey=sr({name:Iy,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Fr(Wm,void 0),r=Fr(Gm);r||sf(Iy,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Og("form"),o=Et(),a=Et(0),s=(r="update")=>{rn((()=>{t.default&&e.isAutoWidth&&("update"===r?a.value=(()=>{var e;if(null==(e=o.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0})():"remove"===r&&(null==n||n.deregisterLabelWidth(a.value)))}))},l=()=>s("update");return Xn((()=>{l()})),Zn((()=>{s("remove")})),$n((()=>l())),Mi(a,((t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))})),Al(ia((()=>{var e,t;return null!=(t=null==(e=o.value)?void 0:e.firstElementChild)?t:null})),l),()=>{var s,l;if(!t)return null;const{isAutoWidth:u}=e;if(u){const e=null==n?void 0:n.autoLabelWidth,l={};if((null==r?void 0:r.hasLabel)&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-a.value),r="left"===n.labelPosition?"marginRight":"marginLeft";t&&(l[r]="".concat(t,"px"))}return ko("div",{ref:o,class:[i.be("item","label-wrap")],style:l},[null==(s=t.default)?void 0:s.call(t)])}return ko(lo,{ref:o},[null==(l=t.default)?void 0:l.call(t)])}}});const Oy=["role","aria-labelledby"],Dy=sr({...sr({name:"ElFormItem"}),props:Ay,setup(e,{expose:t}){const n=e,r=mr(),i=Fr(Wm,void 0),o=Fr(Gm,void 0),a=Um(void 0,{formItem:!1}),s=Og("form-item"),l=lm().value,u=Et([]),c=Et(""),d=function(e,t=200,n={}){const r=Et(e.value),i=dl((()=>{r.value=e.value}),t,n);return Mi(e,(()=>i())),r}(c,100),p=Et(""),h=Et();let f,g=!1;const y=ia((()=>{if("top"===(null==i?void 0:i.labelPosition))return{};const e=hf(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return e?{width:e}:{}})),b=ia((()=>{if("top"===(null==i?void 0:i.labelPosition)||(null==i?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&k)return{};const e=hf(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return n.label||r.label?{}:{marginLeft:e}})),x=ia((()=>[s.b(),s.m(a.value),s.is("error","error"===c.value),s.is("validating","validating"===c.value),s.is("success","success"===c.value),s.is("required",O.value||n.required),s.is("no-asterisk",null==i?void 0:i.hideRequiredAsterisk),"right"===(null==i?void 0:i.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[s.m("feedback")]:null==i?void 0:i.statusIcon}])),_=ia((()=>Kh(n.inlineMessage)?n.inlineMessage:(null==i?void 0:i.inlineMessage)||!1)),w=ia((()=>[s.e("error"),{[s.em("error","inline")]:_.value}])),S=ia((()=>n.prop?m(n.prop)?n.prop:n.prop.join("."):"")),C=ia((()=>!(!n.label&&!r.label))),T=ia((()=>n.for||(1===u.value.length?u.value[0]:void 0))),M=ia((()=>!T.value&&C.value)),k=!!o,A=ia((()=>{const e=null==i?void 0:i.model;if(e&&n.prop)return of(e,n.prop).value})),I=ia((()=>{const{required:e}=n,t=[];n.rules&&t.push(...bd(n.rules));const r=null==i?void 0:i.rules;if(r&&n.prop){const e=of(r,n.prop).value;e&&t.push(...bd(e))}if(void 0!==e){const n=t.map(((e,t)=>[e,t])).filter((([e])=>Object.keys(e).includes("required")));if(n.length>0)for(const[r,i]of n)r.required!==e&&(t[i]={...r,required:e});else t.push({required:e})}return t})),E=ia((()=>I.value.length>0)),O=ia((()=>I.value.some((e=>e.required)))),D=ia((()=>{var e;return"error"===d.value&&n.showMessage&&(null==(e=null==i?void 0:i.showMessage)||e)})),P=ia((()=>"".concat(n.label||"").concat((null==i?void 0:i.labelSuffix)||""))),L=e=>{c.value=e},R=async e=>{const t=S.value;return new ky({[t]:e}).validate({[t]:A.value},{firstFields:!0}).then((()=>(L("success"),null==i||i.emit("validate",n.prop,!0,""),!0))).catch((e=>((e=>{var t,r;const{errors:o,fields:a}=e;L("error"),p.value=o?null!=(r=null==(t=null==o?void 0:o[0])?void 0:t.message)?r:"".concat(n.prop," is required"):"",null==i||i.emit("validate",n.prop,!1,p.value)})(e),Promise.reject(e))))},B=async(e,t)=>{if(g||!n.prop)return!1;const r=v(t);if(!E.value)return null==t||t(!1),!1;const i=(e=>I.value.filter((t=>!t.trigger||!e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((({trigger:e,...t})=>t)))(e);return 0===i.length?(null==t||t(!0),!0):(L("validating"),R(i).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:n}=e;return null==t||t(!1,n),!r&&Promise.reject(n)})))},N=()=>{L(""),p.value="",g=!1},z=async()=>{const e=null==i?void 0:i.model;if(!e||!n.prop)return;const t=of(e,n.prop);g=!0,t.value=Rp(f),await rn(),N(),g=!1};Mi((()=>n.error),(e=>{p.value=e||"",L(e?"error":"")}),{immediate:!0}),Mi((()=>n.validateStatus),(e=>L(e||"")));const F=ht({...Ft(n),$el:h,size:a,validateState:c,labelId:l,inputIds:u,isGroup:M,hasLabel:C,fieldValue:A,addInputId:e=>{u.value.includes(e)||u.value.push(e)},removeInputId:e=>{u.value=u.value.filter((t=>t!==e))},resetField:z,clearValidate:N,validate:B});return zr(Gm,F),Xn((()=>{n.prop&&(null==i||i.addField(F),f=Rp(A.value))})),Zn((()=>{null==i||i.removeField(F)})),t({size:a,validateMessage:p,validateState:c,validate:B,clearValidate:N,resetField:z}),(e,t)=>{var n;return go(),xo("div",{ref_key:"formItemRef",ref:h,class:Y(Lt(x)),role:Lt(M)?"group":void 0,"aria-labelledby":Lt(M)?Lt(l):void 0},[ko(Lt(Ey),{"is-auto-width":"auto"===Lt(y).width,"update-all":"auto"===(null==(n=Lt(i))?void 0:n.labelWidth)},{default:Sn((()=>[Lt(C)?(go(),_o(Pn(Lt(T)?"label":"div"),{key:0,id:Lt(l),for:Lt(T),class:Y(Lt(s).e("label")),style:j(Lt(y))},{default:Sn((()=>[cr(e.$slots,"label",{label:Lt(P)},(()=>[Eo(Q(Lt(P)),1)]))])),_:3},8,["id","for","class","style"])):Do("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),Mo("div",{class:Y(Lt(s).e("content")),style:j(Lt(b))},[cr(e.$slots,"default"),ko(ps,{name:"".concat(Lt(s).namespace.value,"-zoom-in-top")},{default:Sn((()=>[Lt(D)?cr(e.$slots,"error",{key:0,error:p.value},(()=>[Mo("div",{class:Y(Lt(w))},Q(p.value),3)])):Do("v-if",!0)])),_:3},8,["name"])],6)],10,Oy)}}});var Py=Nm(Dy,[["__file","form-item.vue"]]);const Ly=og(ey,{FormItem:Py}),Ry=ag(Py);let By;const Ny="\n  height:0 !important;\n  visibility:hidden !important;\n  ".concat(rl&&/firefox/i.test(window.navigator.userAgent)?"":"overflow:hidden !important;","\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n"),zy=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Fy(e,t=1,n){var r;By||(By=document.createElement("textarea"),document.body.appendChild(By));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=function(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:zy.map((e=>"".concat(e,":").concat(t.getPropertyValue(e)))).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}(e);By.setAttribute("style","".concat(s,";").concat(Ny)),By.value=e.value||e.placeholder||"";let l=By.scrollHeight;const u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),By.value="";const c=By.scrollHeight-i;if($h(t)){let e=c*t;"border-box"===a&&(e=e+i+o),l=Math.max(e,l),u.minHeight="".concat(e,"px")}if($h(n)){let e=c*n;"border-box"===a&&(e=e+i+o),l=Math.min(e,l)}return u.height="".concat(l,"px"),null==(r=By.parentNode)||r.removeChild(By),By=void 0,u}const Vy=Qf({id:{type:String,default:void 0},size:wm,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:eg},prefixIcon:{type:eg},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:{type:Boolean,default:!1},...Am(["ariaLabel"])}),Hy={[lg]:e=>m(e),input:e=>m(e),change:e=>m(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},jy=["role"],Wy=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Gy=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"];const Uy=og(Nm(sr({...sr({name:"ElInput",inheritAttrs:!1}),props:Vy,emits:Hy,setup(e,{expose:t,emit:n}){const r=e,o=yr(),a=mr(),s=ia((()=>{const e={};return"combobox"===r.containerRole&&(e["aria-haspopup"]=o["aria-haspopup"],e["aria-owns"]=o["aria-owns"],e["aria-expanded"]=o["aria-expanded"]),e})),l=ia((()=>["textarea"===r.type?m.b():v.b(),v.m(f.value),v.is("disabled",g.value),v.is("exceed",W.value),{[v.b("group")]:a.prepend||a.append,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:z.value&&F.value,[v.b("hidden")]:"hidden"===r.type},o.class])),u=ia((()=>[v.e("wrapper"),v.is("focus",A.value)])),c=bg({excludeKeys:ia((()=>Object.keys(s.value)))}),{form:d,formItem:p}=Ym(),{inputId:h}=Xm(r,{formItemContext:p}),f=Um(),g=qm(),v=Og("input"),m=Og("textarea"),y=Ot(),x=Ot(),_=Et(!1),w=Et(!1),S=Et(!1),C=Et(),T=Ot(r.inputStyle),M=ia((()=>y.value||x.value)),{wrapperRef:k,isFocused:A,handleFocus:I,handleBlur:E}=Cm(M,{afterBlur(){var e;r.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"blur").catch((e=>{})))}}),O=ia((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),D=ia((()=>(null==p?void 0:p.validateState)||"")),P=ia((()=>D.value&&ig[D.value])),L=ia((()=>S.value?Yf:Lf)),R=ia((()=>[o.style])),B=ia((()=>[r.inputStyle,T.value,{resize:r.resize}])),N=ia((()=>Vh(r.modelValue)?"":String(r.modelValue))),z=ia((()=>r.clearable&&!g.value&&!r.readonly&&!!N.value&&(A.value||_.value))),F=ia((()=>r.showPassword&&!g.value&&!r.readonly&&!!N.value&&(!!N.value||A.value))),V=ia((()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!g.value&&!r.readonly&&!r.showPassword)),H=ia((()=>N.value.length)),W=ia((()=>!!V.value&&H.value>Number(r.maxlength))),G=ia((()=>!!a.suffix||!!r.suffixIcon||z.value||r.showPassword||V.value||!!D.value&&O.value)),[U,q]=function(e){const t=Et();return[function(){if(null==e.value)return;const{selectionStart:n,selectionEnd:r,value:i}=e.value;if(null==n||null==r)return;const o=i.slice(0,Math.max(0,n)),a=i.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:i,beforeTxt:o,afterTxt:a}},function(){if(null==e.value||null==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:i,selectionStart:o}=t.value;if(null==r||null==i||null==o)return;let a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else{const e=r[o-1],t=n.indexOf(e,o-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}]}(y);Al(x,(e=>{if(K(),!V.value||"both"!==r.resize)return;const t=e[0],{width:n}=t.contentRect;C.value={right:"calc(100% - ".concat(n+15+6,"px)")}}));const X=()=>{const{type:e,autosize:t}=r;if(rl&&"textarea"===e&&x.value)if(t){const e=b(t)?t.minRows:void 0,n=b(t)?t.maxRows:void 0,r=Fy(x.value,e,n);T.value={overflowY:"hidden",...r},rn((()=>{x.value.offsetHeight,T.value=r}))}else T.value={minHeight:Fy(x.value).minHeight}},K=(e=>{let t=!1;return()=>{var n;if(t||!r.autosize)return;null===(null==(n=x.value)?void 0:n.offsetParent)||(e(),t=!0)}})(X),$=()=>{const e=M.value,t=r.formatter?r.formatter(N.value):N.value;e&&e.value!==t&&(e.value=t)},Z=async e=>{U();let{value:t}=e.target;r.formatter&&(t=r.parser?r.parser(t):t),w.value||(t!==N.value?(n(lg,t),n("input",t),await rn(),$(),q()):$())},J=e=>{n("change",e.target.value)},ee=e=>{n("compositionstart",e),w.value=!0},te=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,i=r[r.length-1]||"";w.value=!vg(i)},ne=e=>{n("compositionend",e),w.value&&(w.value=!1,Z(e))},re=()=>{S.value=!S.value,ie()},ie=async()=>{var e;await rn(),null==(e=M.value)||e.focus()},oe=e=>{_.value=!1,n("mouseleave",e)},ae=e=>{_.value=!0,n("mouseenter",e)},se=e=>{n("keydown",e)},le=()=>{n(lg,""),n("change",""),n("clear"),n("input","")};return Mi((()=>r.modelValue),(()=>{var e;rn((()=>X())),r.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),Mi(N,(()=>$())),Mi((()=>r.type),(async()=>{await rn(),$(),X()})),Xn((()=>{!r.formatter&&r.parser,$(),rn(X)})),xg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},ia((()=>!!r.label))),t({input:y,textarea:x,ref:M,textareaStyle:B,autosize:jt(r,"autosize"),focus:ie,blur:()=>{var e;return null==(e=M.value)?void 0:e.blur()},select:()=>{var e;null==(e=M.value)||e.select()},clear:le,resizeTextarea:X}),(e,t)=>(go(),xo("div",Bo(Lt(s),{class:[Lt(l),{[Lt(v).bm("group","append")]:e.$slots.append,[Lt(v).bm("group","prepend")]:e.$slots.prepend}],style:Lt(R),role:e.containerRole,onMouseenter:ae,onMouseleave:oe}),[Do(" input "),"textarea"!==e.type?(go(),xo(lo,{key:0},[Do(" prepend slot "),e.$slots.prepend?(go(),xo("div",{key:0,class:Y(Lt(v).be("group","prepend"))},[cr(e.$slots,"prepend")],2)):Do("v-if",!0),Mo("div",{ref_key:"wrapperRef",ref:k,class:Y(Lt(u))},[Do(" prefix slot "),e.$slots.prefix||e.prefixIcon?(go(),xo("span",{key:0,class:Y(Lt(v).e("prefix"))},[Mo("span",{class:Y(Lt(v).e("prefix-inner"))},[cr(e.$slots,"prefix"),e.prefixIcon?(go(),_o(Lt(jm),{key:0,class:Y(Lt(v).e("icon"))},{default:Sn((()=>[(go(),_o(Pn(e.prefixIcon)))])),_:1},8,["class"])):Do("v-if",!0)],2)],2)):Do("v-if",!0),Mo("input",Bo({id:Lt(h),ref_key:"input",ref:y,class:Lt(v).e("inner")},Lt(c),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?S.value?"text":"password":e.type,disabled:Lt(g),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label||e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:ne,onInput:Z,onFocus:t[0]||(t[0]=(...e)=>Lt(I)&&Lt(I)(...e)),onBlur:t[1]||(t[1]=(...e)=>Lt(E)&&Lt(E)(...e)),onChange:J,onKeydown:se}),null,16,Wy),Do(" suffix slot "),Lt(G)?(go(),xo("span",{key:1,class:Y(Lt(v).e("suffix"))},[Mo("span",{class:Y(Lt(v).e("suffix-inner"))},[Lt(z)&&Lt(F)&&Lt(V)?Do("v-if",!0):(go(),xo(lo,{key:0},[cr(e.$slots,"suffix"),e.suffixIcon?(go(),_o(Lt(jm),{key:0,class:Y(Lt(v).e("icon"))},{default:Sn((()=>[(go(),_o(Pn(e.suffixIcon)))])),_:1},8,["class"])):Do("v-if",!0)],64)),Lt(z)?(go(),_o(Lt(jm),{key:1,class:Y([Lt(v).e("icon"),Lt(v).e("clear")]),onMousedown:Ps(Lt(i),["prevent"]),onClick:le},{default:Sn((()=>[ko(Lt(Af))])),_:1},8,["class","onMousedown"])):Do("v-if",!0),Lt(F)?(go(),_o(Lt(jm),{key:2,class:Y([Lt(v).e("icon"),Lt(v).e("password")]),onClick:re},{default:Sn((()=>[(go(),_o(Pn(Lt(L))))])),_:1},8,["class"])):Do("v-if",!0),Lt(V)?(go(),xo("span",{key:3,class:Y(Lt(v).e("count"))},[Mo("span",{class:Y(Lt(v).e("count-inner"))},Q(Lt(H))+" / "+Q(e.maxlength),3)],2)):Do("v-if",!0),Lt(D)&&Lt(P)&&Lt(O)?(go(),_o(Lt(jm),{key:4,class:Y([Lt(v).e("icon"),Lt(v).e("validateIcon"),Lt(v).is("loading","validating"===Lt(D))])},{default:Sn((()=>[(go(),_o(Pn(Lt(P))))])),_:1},8,["class"])):Do("v-if",!0)],2)],2)):Do("v-if",!0)],2),Do(" append slot "),e.$slots.append?(go(),xo("div",{key:1,class:Y(Lt(v).be("group","append"))},[cr(e.$slots,"append")],2)):Do("v-if",!0)],64)):(go(),xo(lo,{key:1},[Do(" textarea "),Mo("textarea",Bo({id:Lt(h),ref_key:"textarea",ref:x,class:[Lt(m).e("inner"),Lt(v).is("focus",Lt(A))]},Lt(c),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:Lt(g),readonly:e.readonly,autocomplete:e.autocomplete,style:Lt(B),"aria-label":e.label||e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:ne,onInput:Z,onFocus:t[2]||(t[2]=(...e)=>Lt(I)&&Lt(I)(...e)),onBlur:t[3]||(t[3]=(...e)=>Lt(E)&&Lt(E)(...e)),onChange:J,onKeydown:se}),null,16,Gy),Lt(V)?(go(),xo("span",{key:0,style:j(C.value),class:Y(Lt(v).e("count"))},Q(Lt(H))+" / "+Q(e.maxlength),7)):Do("v-if",!0)],64))],16,jy))}}),[["__file","input.vue"]])),qy={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"}},Yy=Symbol("scrollbarContextKey"),Xy=Qf({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Ky=Nm(sr({__name:"thumb",props:Xy,setup(e){const t=e,n=Fr(Yy),r=Og("scrollbar");n||sf("Thumb","can not inject scrollbar context");const i=Et(),o=Et(),a=Et({}),s=Et(!1);let l=!1,u=!1,c=rl?document.onselectstart:null;const d=ia((()=>qy[t.vertical?"vertical":"horizontal"])),p=ia((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:"translate".concat(n.axis,"(").concat(e,"%)")}))({size:t.size,move:t.move,bar:d.value}))),h=ia((()=>i.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/o.value[d.value.offset])),f=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),v(e);const n=e.currentTarget;n&&(a.value[d.value.axis]=n[d.value.offset]-(e[d.value.client]-n.getBoundingClientRect()[d.value.direction]))},g=e=>{if(!o.value||!i.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client])-o.value[d.value.offset]/2)*h.value/i.value[d.value.offset];n.wrapElement[d.value.scroll]=t*n.wrapElement[d.value.scrollSize]/100},v=e=>{e.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=e=>{if(!i.value||!o.value)return;if(!1===l)return;const t=a.value[d.value.axis];if(!t)return;const r=100*(-1*(i.value.getBoundingClientRect()[d.value.direction]-e[d.value.client])-(o.value[d.value.offset]-t))*h.value/i.value[d.value.offset];n.wrapElement[d.value.scroll]=r*n.wrapElement[d.value.scrollSize]/100},y=()=>{l=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),b(),u&&(s.value=!1)};Zn((()=>{b(),document.removeEventListener("mouseup",y)}));const b=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return yl(jt(n,"scrollbarElement"),"mousemove",(()=>{u=!1,s.value=!!t.size})),yl(jt(n,"scrollbarElement"),"mouseleave",(()=>{u=!0,s.value=l})),(e,t)=>(go(),_o(xa,{name:Lt(r).b("fade"),persisted:""},{default:Sn((()=>[rr(Mo("div",{ref_key:"instance",ref:i,class:Y([Lt(r).e("bar"),Lt(r).is(Lt(d).key)]),onMousedown:g},[Mo("div",{ref_key:"thumb",ref:o,class:Y(Lt(r).e("thumb")),style:j(Lt(p)),onMousedown:f},null,38)],34),[[za,e.always||s.value]])])),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);var $y=Nm(sr({__name:"bar",props:Qf({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),setup(e,{expose:t}){const n=e,r=Fr(Yy),i=Et(0),o=Et(0),a=Et(""),s=Et(""),l=Et(1),u=Et(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;o.value=100*e.scrollTop/t*l.value,i.value=100*e.scrollLeft/n*u.value}},update:()=>{const e=null==r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-4,i=e.offsetWidth-4,o=t**2/e.scrollHeight,c=i**2/e.scrollWidth,d=Math.max(o,n.minSize),p=Math.max(c,n.minSize);l.value=o/(t-o)/(d/(t-d)),u.value=c/(i-c)/(p/(i-p)),s.value=d+4<t?"".concat(d,"px"):"",a.value=p+4<i?"".concat(p,"px"):""}}),(e,t)=>(go(),xo(lo,null,[ko(Ky,{move:i.value,ratio:u.value,size:a.value,always:e.always},null,8,["move","ratio","size","always"]),ko(Ky,{move:o.value,ratio:l.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Zy=Qf({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},id:String,role:String,...Am(["ariaLabel","ariaOrientation"])}),Jy={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($h)};const Qy=og(Nm(sr({...sr({name:"ElScrollbar"}),props:Zy,emits:Jy,setup(e,{expose:t,emit:n}){const r=e,i=Og("scrollbar");let o,a;const s=Et(),l=Et(),u=Et(),c=Et(),d=ia((()=>{const e={};return r.height&&(e.height=hf(r.height)),r.maxHeight&&(e.maxHeight=hf(r.maxHeight)),[r.wrapStyle,e]})),p=ia((()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}])),h=ia((()=>[i.e("view"),r.viewClass])),f=()=>{var e;l.value&&(null==(e=c.value)||e.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};const g=()=>{var e;null==(e=c.value)||e.update()};return Mi((()=>r.noresize),(e=>{e?(null==o||o(),null==a||a()):(({stop:o}=Al(u,g)),a=yl("resize",g))}),{immediate:!0}),Mi((()=>[r.maxHeight,r.height]),(()=>{r.native||rn((()=>{var e;g(),l.value&&(null==(e=c.value)||e.handleScroll(l.value))}))})),zr(Yy,ht({scrollbarElement:s,wrapElement:l})),Xn((()=>{r.native||rn((()=>{g()}))})),$n((()=>g())),t({wrapRef:l,update:g,scrollTo:function(e,t){b(e)?l.value.scrollTo(e):$h(e)&&$h(t)&&l.value.scrollTo(e,t)},setScrollTop:e=>{$h(e)&&(l.value.scrollTop=e)},setScrollLeft:e=>{$h(e)&&(l.value.scrollLeft=e)},handleScroll:f}),(e,t)=>(go(),xo("div",{ref_key:"scrollbarRef",ref:s,class:Y(Lt(i).b())},[Mo("div",{ref_key:"wrapRef",ref:l,class:Y(Lt(p)),style:j(Lt(d)),onScroll:f},[(go(),_o(Pn(e.tag),{id:e.id,ref_key:"resizeRef",ref:u,class:Y(Lt(h)),style:j(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Sn((()=>[cr(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?Do("v-if",!0):(go(),_o($y,{key:0,ref_key:"barRef",ref:c,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),[["__file","scrollbar.vue"]])),eb=Symbol("popper"),tb=Symbol("popperContent"),nb=Qf({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}});var rb=Nm(sr({...sr({name:"ElPopper",inheritAttrs:!1}),props:nb,setup(e,{expose:t}){const n=e,r={triggerRef:Et(),popperInstanceRef:Et(),contentRef:Et(),referenceRef:Et(),role:ia((()=>n.role))};return t(r),zr(eb,r),(e,t)=>cr(e.$slots,"default")}}),[["__file","popper.vue"]]);const ib=Qf({arrowOffset:{type:Number,default:5}});var ob=Nm(sr({...sr({name:"ElPopperArrow",inheritAttrs:!1}),props:ib,setup(e,{expose:t}){const n=e,r=Og("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=Fr(tb,void 0);return Mi((()=>n.arrowOffset),(e=>{i.value=e})),Zn((()=>{o.value=void 0})),t({arrowRef:o}),(e,t)=>(go(),xo("span",{ref_key:"arrowRef",ref:o,class:Y(Lt(r).e("arrow")),style:j(Lt(a)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const ab=sr({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=Fr(gm),a=(s=null!=(r=null==o?void 0:o.setForwardRef)?r:i,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return null;const i=sb(r);return i?rr(Io(i,n),[[a]]):null}}});function sb(e){if(!e)return null;const t=e;for(const n of t){if(b(n))switch(n.type){case co:continue;case uo:case"svg":return lb(n);case lo:return sb(n.children);default:return n}return lb(n)}return null}function lb(e){const t=Og("only-child");return ko("span",{class:t.e("content")},[e])}const ub=Qf({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});var cb=Nm(sr({...sr({name:"ElPopperTrigger",inheritAttrs:!1}),props:ub,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Fr(eb,void 0);var o;o=i,zr(gm,{setForwardRef:e=>{o.value=e}});const a=ia((()=>l.value?n.id:void 0)),s=ia((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),l=ia((()=>{if(r&&"tooltip"!==r.value)return r.value})),u=ia((()=>l.value?"".concat(n.open):void 0));let c;return Xn((()=>{Mi((()=>n.virtualRef),(e=>{e&&(i.value=gl(e))}),{immediate:!0}),Mi(i,((e,t)=>{null==c||c(),c=void 0,Zh(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var i;const o=n[r];o&&(e.addEventListener(r.slice(2).toLowerCase(),o),null==(i=null==t?void 0:t.removeEventListener)||i.call(t,r.slice(2).toLowerCase(),o))})),c=Mi([a,s,l,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{Vh(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),Zh(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Zn((()=>{null==c||c(),c=void 0})),t({triggerRef:i}),(e,t)=>e.virtualTriggering?Do("v-if",!0):(go(),_o(Lt(ab),Bo({key:0},e.$attrs,{"aria-controls":Lt(a),"aria-describedby":Lt(s),"aria-expanded":Lt(u),"aria-haspopup":Lt(l)}),{default:Sn((()=>[cr(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),[["__file","trigger.vue"]]);const db="focus-trap.focus-after-trapped",pb="focus-trap.focus-after-released",hb={cancelable:!0,bubbles:!1},fb={cancelable:!0,bubbles:!1},gb="focusAfterTrapped",vb="focusAfterReleased",mb=Symbol("elFocusTrap"),yb=Et(),bb=Et(0),xb=Et(0);let _b=0;const wb=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Sb=(e,t)=>{for(const n of e)if(!Cb(n,t))return n},Cb=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Tb=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),xb.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Mb(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const kb=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Mb(e,t),e.unshift(t)},remove:t=>{var n,r;e=Mb(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)}}})(),Ab=()=>{yb.value="pointer",bb.value=window.performance.now()},Ib=()=>{yb.value="keyboard",bb.value=window.performance.now()},Eb=e=>new CustomEvent("focus-trap.focusout-prevented",{...fb,detail:e}),Ob=sr({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[gb,vb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Et();let r,i;const{focusReason:o}=(Xn((()=>{0===_b&&(document.addEventListener("mousedown",Ab),document.addEventListener("touchstart",Ab),document.addEventListener("keydown",Ib)),_b++})),Zn((()=>{_b--,_b<=0&&(document.removeEventListener("mousedown",Ab),document.removeEventListener("touchstart",Ab),document.removeEventListener("keydown",Ib))})),{focusReason:yb,lastUserFocusTimestamp:bb,lastAutomatedFocusTimestamp:xb});var a;a=n=>{e.trapped&&!s.paused&&t("release-requested",n)},Xn((()=>{0===um.length&&document.addEventListener("keydown",cm),rl&&um.push(a)})),Zn((()=>{um=um.filter((e=>e!==a)),0===um.length&&rl&&document.removeEventListener("keydown",cm)}));const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!e.loop&&!e.trapped)return;if(s.paused)return;const{key:r,altKey:i,ctrlKey:a,metaKey:l,currentTarget:u,shiftKey:c}=n,{loop:d}=e,p=r===sg.tab&&!i&&!a&&!l,h=document.activeElement;if(p&&h){const e=u,[r,i]=(e=>{const t=wb(e);return[Sb(t,e),Sb(t.reverse(),e)]})(e);if(r&&i)if(c||h!==i){if(c&&[r,e].includes(h)){const e=Eb({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&Tb(i,!0))}}else{const e=Eb({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&Tb(r,!0))}else if(h===e){const e=Eb({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};zr(mb,{focusTrapRef:n,onKeydown:l}),Mi((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),Mi([n],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))}));const u=e=>{t(gb,e)},c=e=>t(vb,e),d=o=>{const a=Lt(n);if(!a)return;const l=o.target,u=o.relatedTarget,c=l&&a.contains(l);if(!e.trapped){u&&a.contains(u)||(r=u)}c&&t("focusin",o),s.paused||e.trapped&&(c?i=l:Tb(i,!0))},p=r=>{const a=Lt(n);if(!s.paused&&a)if(e.trapped){const n=r.relatedTarget;Vh(n)||a.contains(n)||setTimeout((()=>{if(!s.paused&&e.trapped){const e=Eb({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||Tb(i,!0)}}),0)}else{const e=r.target;e&&a.contains(e)||t("focusout",r)}};async function h(){await rn();const t=Lt(n);if(t){kb.push(s);const n=t.contains(document.activeElement)?r:document.activeElement;r=n;if(!t.contains(n)){const r=new Event(db,hb);t.addEventListener(db,u),t.dispatchEvent(r),r.defaultPrevented||rn((()=>{let r=e.focusStartEl;m(r)||(Tb(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Tb(r,t),document.activeElement!==n)return})(wb(t),!0),document.activeElement!==n&&"container"!==r||Tb(t)}))}}}function f(){const e=Lt(n);if(e){e.removeEventListener(db,u);const t=new CustomEvent(pb,{...hb,detail:{focusReason:o.value}});e.addEventListener(pb,c),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=o.value&&bb.value>xb.value&&!e.contains(document.activeElement)||Tb(null!=r?r:document.body),e.removeEventListener(pb,c),kb.remove(s)}}return Xn((()=>{e.trapped&&h(),Mi((()=>e.trapped),(e=>{e?h():f()}))})),Zn((()=>{e.trapped&&f()})),{onKeydown:l}}});var Db=Nm(Ob,[["render",function(e,t,n,r,i,o){return cr(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const Pb=Qf({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:$g,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Lb=Qf({...Pb,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},virtualTriggering:Boolean,zIndex:Number,...Am(["ariaLabel"])}),Rb={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Bb=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,o={placement:n,strategy:r,...i,modifiers:[...Nb(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(o,null==i?void 0:i.modifiers),o};function Nb(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const zb=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=Fr(eb,void 0),o=Et(),a=Et(),s=ia((()=>({name:"eventListeners",enabled:!!e.visible}))),l=ia((()=>{var e;const t=Lt(o),n=null!=(e=Lt(a))?e:0;return{name:"arrow",enabled:!Hh(t),options:{element:t,padding:n}}})),u=ia((()=>({onFirstUpdate:()=>{f()},...Bb(e,[Lt(l),Lt(s)])}))),c=ia((()=>(e=>{if(rl)return gl(e)})(e.referenceEl)||Lt(r))),{attributes:d,state:p,styles:h,update:f,forceUpdate:g,instanceRef:v}=nm(c,n,u);return Mi(v,(e=>t.value=e)),Xn((()=>{Mi((()=>{var e;return null==(e=Lt(c))?void 0:e.getBoundingClientRect()}),(()=>{f()}))})),{attributes:d,arrowRef:o,contentRef:n,instanceRef:v,state:p,styles:h,role:i,forceUpdate:g,update:f}};var Fb=Nm(sr({...sr({name:"ElPopperContent"}),props:Lb,emits:Rb,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=((e,t)=>{const n=Et(!1),r=Et();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(r,n),{attributes:p,arrowRef:h,contentRef:f,styles:g,instanceRef:v,role:m,update:y}=zb(r),{ariaModal:b,arrowStyle:x,contentAttrs:_,contentClass:w,contentStyle:S,updateZIndex:C}=((e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=xm(),o=Og("popper"),a=ia((()=>Lt(t).popper)),s=Et($h(e.zIndex)?e.zIndex:i()),l=ia((()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass])),u=ia((()=>[{zIndex:Lt(s)},Lt(n).popper,e.popperStyle||{}]));return{ariaModal:ia((()=>"dialog"===r.value?"false":void 0)),arrowStyle:ia((()=>Lt(n).arrow||{})),contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=$h(e.zIndex)?e.zIndex:i()}}})(r,{styles:g,attributes:p,role:m}),T=Fr(Gm,void 0),M=Et();let k;zr(tb,{arrowStyle:x,arrowRef:h,arrowOffset:M}),T&&zr(Gm,{...T,addInputId:i,removeInputId:i});const A=(e=!0)=>{y(),e&&C()},I=()=>{A(!1),r.visible&&r.focusOnShow?a.value=!0:!1===r.visible&&(a.value=!1)};return Xn((()=>{Mi((()=>r.triggerTargetEl),((e,t)=>{null==k||k(),k=void 0;const n=Lt(e||f.value),i=Lt(t||f.value);Zh(n)&&(k=Mi([m,()=>r.ariaLabel,b,()=>r.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{Vh(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),i!==n&&Zh(i)&&["role","aria-label","aria-modal","id"].forEach((e=>{i.removeAttribute(e)}))}),{immediate:!0}),Mi((()=>r.visible),I,{immediate:!0})})),Zn((()=>{null==k||k(),k=void 0})),t({popperContentRef:f,popperInstanceRef:v,updatePopper:A,contentStyle:S}),(e,t)=>(go(),xo("div",Bo({ref_key:"contentRef",ref:f},Lt(_),{style:Lt(S),class:Lt(w),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[ko(Lt(Db),{trapped:Lt(a),"trap-on-focus-in":!0,"focus-trap-el":Lt(f),"focus-start-el":Lt(o),onFocusAfterTrapped:Lt(l),onFocusAfterReleased:Lt(s),onFocusin:Lt(u),onFocusoutPrevented:Lt(c),onReleaseRequested:Lt(d)},{default:Sn((()=>[cr(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),[["__file","content.vue"]]);const Vb=og(rb),Hb=Symbol("elTooltip"),jb=Qf({...fm,...Lb,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Am(["ariaLabel"])}),Wb=Qf({...ub,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[sg.enter,sg.space]}}),{useModelToggleProps:Gb,useModelToggleEmits:Ub,useModelToggle:qb}=Rg("visible"),Yb=Qf({...nb,...Gb,...jb,...Wb,...ib,showArrow:{type:Boolean,default:!0}}),Xb=[...Ub,"before-show","before-hide","show","hide","open","close"],Kb=(e,t,n)=>r=>{((e,t)=>p(e)?e.includes(t):e===t)(Lt(e),t)&&n(r)};var $b=Nm(sr({...sr({name:"ElTooltipTrigger"}),props:Wb,setup(t,{expose:n}){const r=t,i=Og("tooltip"),{controlled:o,id:a,open:s,onOpen:l,onClose:u,onToggle:c}=Fr(Hb,void 0),d=Et(null),p=()=>{if(Lt(o)||r.disabled)return!0},h=jt(r,"trigger"),f=e(p,Kb(h,"hover",l)),g=e(p,Kb(h,"hover",u)),v=e(p,Kb(h,"click",(e=>{0===e.button&&c(e)}))),m=e(p,Kb(h,"focus",l)),y=e(p,Kb(h,"focus",u)),b=e(p,Kb(h,"contextmenu",(e=>{e.preventDefault(),c(e)}))),x=e(p,(e=>{const{code:t}=e;r.triggerKeys.includes(t)&&(e.preventDefault(),c(e))}));return n({triggerRef:d}),(e,t)=>(go(),_o(Lt(cb),{id:Lt(a),"virtual-ref":e.virtualRef,open:Lt(s),"virtual-triggering":e.virtualTriggering,class:Y(Lt(i).e("trigger")),onBlur:Lt(y),onClick:Lt(v),onContextmenu:Lt(b),onFocus:Lt(m),onMouseenter:Lt(f),onMouseleave:Lt(g),onKeydown:Lt(x)},{default:Sn((()=>[cr(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),[["__file","trigger.vue"]]);const Zb=sr({...sr({name:"ElTooltipContent",inheritAttrs:!1}),props:jb,setup(t,{expose:n}){const r=t,{selector:i}=pm(),o=Og("tooltip"),a=Et(null),s=Et(!1),{controlled:l,id:u,open:c,trigger:d,onClose:p,onOpen:h,onShow:f,onHide:g,onBeforeShow:v,onBeforeHide:m}=Fr(Hb,void 0),y=ia((()=>r.transition||"".concat(o.namespace.value,"-fade-in-linear"))),b=ia((()=>r.persistent));Zn((()=>{s.value=!0}));const x=ia((()=>!!Lt(b)||Lt(c))),_=ia((()=>!r.disabled&&Lt(c))),w=ia((()=>r.appendTo||i.value)),S=ia((()=>{var e;return null!=(e=r.style)?e:{}})),C=ia((()=>!Lt(c))),T=()=>{g()},M=()=>{if(Lt(l))return!0},k=e(M,(()=>{r.enterable&&"hover"===Lt(d)&&h()})),A=e(M,(()=>{"hover"===Lt(d)&&p()})),I=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e),null==v||v()},E=()=>{null==m||m()},O=()=>{f(),P=function(e,t,n={}){const{window:r=vl,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;sl&&!bl&&(bl=!0,Array.from(r.document.body.children).forEach((e=>e.addEventListener("click",al))));let s=!0;const l=e=>i.some((t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=gl(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=[yl(r,"click",(n=>{const r=gl(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(s=!l(n)),s?t(n):s=!0)}),{passive:!0,capture:o}),yl(r,"pointerdown",(t=>{const n=gl(e);n&&(s=!t.composedPath().includes(n)&&!l(t))}),{passive:!0}),a&&yl(r,"blur",(n=>{var i;const o=gl(e);"IFRAME"!==(null==(i=r.document.activeElement)?void 0:i.tagName)||(null==o?void 0:o.contains(r.document.activeElement))||t(n)}))].filter(Boolean);return()=>u.forEach((e=>e()))}(ia((()=>{var e;return null==(e=a.value)?void 0:e.popperContentRef})),(()=>{if(Lt(l))return;"hover"!==Lt(d)&&p()}))},D=()=>{r.virtualTriggering||p()};let P;return Mi((()=>Lt(c)),(e=>{e||null==P||P()}),{flush:"post"}),Mi((()=>r.content),(()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e)})),n({contentRef:a}),(e,t)=>(go(),_o(ao,{disabled:!e.teleported,to:Lt(w)},[ko(xa,{name:Lt(y),onAfterLeave:T,onBeforeEnter:I,onAfterEnter:O,onBeforeLeave:E},{default:Sn((()=>[Lt(x)?rr((go(),_o(Lt(Fb),Bo({key:0,id:Lt(u),ref_key:"contentRef",ref:a},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":Lt(C),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,Lt(S)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:Lt(_),"z-index":e.zIndex,onMouseenter:Lt(k),onMouseleave:Lt(A),onBlur:D,onClose:Lt(p)}),{default:Sn((()=>[s.value?Do("v-if",!0):cr(e.$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"])),[[za,Lt(_)]]):Do("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var Jb=Nm(Zb,[["__file","content.vue"]]);const Qb=["innerHTML"],ex={key:1};const tx=og(Nm(sr({...sr({name:"ElTooltip"}),props:Yb,emits:Xb,setup(e,{expose:t,emit:n}){const r=e;hm();const i=lm(),o=Et(),a=Et(),s=()=>{var e;const t=Lt(o);t&&(null==(e=t.popperInstanceRef)||e.update())},l=Et(!1),u=Et(),{show:c,hide:d,hasUpdateHandler:p}=qb({indicator:l,toggleReason:u}),{onOpen:h,onClose:f}=(({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=im(),{registerTimeout:a,cancelTimeout:s}=im();return{onOpen:t=>{o((()=>{r(t);const e=Lt(n);$h(e)&&e>0&&a((()=>{i(t)}),e)}),Lt(e))},onClose:e=>{s(),o((()=>{i(e)}),Lt(t))}}})({showAfter:jt(r,"showAfter"),hideAfter:jt(r,"hideAfter"),autoClose:jt(r,"autoClose"),open:c,close:d}),g=ia((()=>Kh(r.visible)&&!p.value));zr(Hb,{controlled:g,id:i,open:gt(l),trigger:jt(r,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{Lt(l)?f(e):h(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Mi((()=>r.disabled),(e=>{e&&l.value&&(l.value=!1)}));return Bi((()=>l.value&&d())),t({popperRef:o,contentRef:a,isFocusInsideContent:e=>{var t,n;const r=null==(n=null==(t=a.value)?void 0:t.contentRef)?void 0:n.popperContentRef,i=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(i)},updatePopper:s,onOpen:h,onClose:f,hide:d}),(e,t)=>(go(),_o(Lt(Vb),{ref_key:"popperRef",ref:o,role:e.role},{default:Sn((()=>[ko($b,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Sn((()=>[e.$slots.default?cr(e.$slots,"default",{key:0}):Do("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ko(Jb,{ref_key:"contentRef",ref:a,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Sn((()=>[cr(e.$slots,"content",{},(()=>[e.rawContent?(go(),xo("span",{key:0,innerHTML:e.content},null,8,Qb)):(go(),xo("span",ex,Q(e.content),1))])),e.showArrow?(go(),_o(Lt(ob),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Do("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"]))}}),[["__file","tooltip.vue"]])),nx=Qf({size:{type:[Number,String],values:dg,default:"",validator:e=>$h(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:eg},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:String,default:"cover"}}),rx={error:e=>e instanceof Event},ix=["src","alt","srcset"];const ox=og(Nm(sr({...sr({name:"ElAvatar"}),props:nx,emits:rx,setup(e,{emit:t}){const n=e,r=Og("avatar"),i=Et(!1),o=ia((()=>{const{size:e,icon:t,shape:i}=n,o=[r.b()];return m(e)&&o.push(r.m(e)),t&&o.push(r.m("icon")),i&&o.push(r.m(i)),o})),a=ia((()=>{const{size:e}=n;return $h(e)?r.cssVarBlock({size:hf(e)||""}):void 0})),s=ia((()=>({objectFit:n.fit})));function l(e){i.value=!0,t("error",e)}return Mi((()=>n.src),(()=>i.value=!1)),(e,t)=>(go(),xo("span",{class:Y(Lt(o)),style:j(Lt(a))},[!e.src&&!e.srcSet||i.value?e.icon?(go(),_o(Lt(jm),{key:1},{default:Sn((()=>[(go(),_o(Pn(e.icon)))])),_:1})):cr(e.$slots,"default",{key:2}):(go(),xo("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:j(Lt(s)),onError:l},null,44,ix))],6))}}),[["__file","avatar.vue"]])),ax={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},sx={click:e=>e instanceof MouseEvent},lx="ElBacktop";const ux=og(Nm(sr({...sr({name:lx}),props:ax,emits:sx,setup(e,{emit:t}){const n=e,r=Og("backtop"),{handleClick:i,visible:o}=((e,t,n)=>{const r=Ot(),i=Ot(),o=Et(!1),a=()=>{r.value&&(o.value=r.value.scrollTop>=e.visibilityHeight)},s=pl(a,300,!0);return yl(i,"scroll",s),Xn((()=>{var t;i.value=document,r.value=document.documentElement,e.target&&(r.value=null!=(t=document.querySelector(e.target))?t:void 0,r.value||sf(n,"target does not exist: ".concat(e.target)),i.value=r.value),a()})),{visible:o,handleClick:e=>{var n;null==(n=r.value)||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)}}})(n,t,lx),a=ia((()=>({right:"".concat(n.right,"px"),bottom:"".concat(n.bottom,"px")})));return(e,t)=>(go(),_o(xa,{name:"".concat(Lt(r).namespace.value,"-fade-in")},{default:Sn((()=>[Lt(o)?(go(),xo("div",{key:0,style:j(Lt(a)),class:Y(Lt(r).b()),onClick:t[0]||(t[0]=Ps(((...e)=>Lt(i)&&Lt(i)(...e)),["stop"]))},[cr(e.$slots,"default",{},(()=>[ko(Lt(jm),{class:Y(Lt(r).e("icon"))},{default:Sn((()=>[ko(Lt(Tf))])),_:1},8,["class"])]))],6)):Do("v-if",!0)])),_:3},8,["name"]))}}),[["__file","backtop.vue"]])),cx=Qf({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"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:[String,Object,Array]},badgeStyle:{type:[String,Object,Array]},offset:{type:Array,default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),dx=["textContent"];const px=og(Nm(sr({...sr({name:"ElBadge"}),props:cx,setup(e,{expose:t}){const n=e,r=Og("badge"),i=ia((()=>n.isDot?"":$h(n.value)&&$h(n.max)?n.max<n.value?"".concat(n.max,"+"):0!==n.value||n.showZero?"".concat(n.value):"":"".concat(n.value))),o=ia((()=>{var e,t,r,i,o,a;return[{backgroundColor:n.color,marginRight:hf(-(null!=(t=null==(e=n.offset)?void 0:e[0])?t:0)),marginTop:hf(null!=(i=null==(r=n.offset)?void 0:r[1])?i:0)},null!=(o=n.dotStyle)?o:{},null!=(a=n.badgeStyle)?a:{}]}));return xg({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},ia((()=>!!n.dotStyle))),xg({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},ia((()=>!!n.dotClass))),t({content:i}),(e,t)=>(go(),xo("div",{class:Y(Lt(r).b())},[cr(e.$slots,"default"),ko(xa,{name:"".concat(Lt(r).namespace.value,"-zoom-in-center"),persisted:""},{default:Sn((()=>[rr(Mo("sup",{class:Y([Lt(r).e("content"),Lt(r).em("content",e.type),Lt(r).is("fixed",!!e.$slots.default),Lt(r).is("dot",e.isDot),e.dotClass,e.badgeClass]),style:j(Lt(o)),textContent:Q(Lt(i))},null,14,dx),[[za,!e.hidden&&(Lt(i)||e.isDot)]])])),_:1},8,["name"])],2))}}),[["__file","badge.vue"]])),hx=Symbol("buttonGroupContextKey"),fx=Qf({size:wm,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:eg},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:eg,default:()=>Bf},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"}}),gx={click:e=>e instanceof MouseEvent};function vx(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function mx(e){return Math.min(1,Math.max(0,e))}function yx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bx(e){return e<=1?"".concat(100*Number(e),"%"):e}function xx(e){return 1===e.length?"0"+e:String(e)}function _x(e,t,n){e=vx(e,255),t=vx(t,255),n=vx(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:a,l:s}}function Sx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cx(e,t,n){e=vx(e,255),t=vx(t,255),n=vx(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}function Tx(e,t,n,r){var i=[xx(Math.round(e).toString(16)),xx(Math.round(t).toString(16)),xx(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Mx(e){return kx(e)/255}function kx(e){return parseInt(e,16)}var Ax={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ix(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ax[e])e=Ax[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Px.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Px.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Px.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Px.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Px.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Px.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Px.hex8.exec(e),n)return{r:kx(n[1]),g:kx(n[2]),b:kx(n[3]),a:Mx(n[4]),format:t?"name":"hex8"};if(n=Px.hex6.exec(e),n)return{r:kx(n[1]),g:kx(n[2]),b:kx(n[3]),format:t?"name":"hex"};if(n=Px.hex4.exec(e),n)return{r:kx(n[1]+n[1]),g:kx(n[2]+n[2]),b:kx(n[3]+n[3]),a:Mx(n[4]+n[4]),format:t?"name":"hex8"};if(n=Px.hex3.exec(e),n)return{r:kx(n[1]+n[1]),g:kx(n[2]+n[2]),b:kx(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Lx(e.r)&&Lx(e.g)&&Lx(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*vx(t,255),g:255*vx(n,255),b:255*vx(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):Lx(e.h)&&Lx(e.s)&&Lx(e.v)?(a=bx(e.s),s=bx(e.v),i=function(e,t,n){e=6*vx(e,360),t=vx(t,100),n=vx(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):Lx(e.h)&&Lx(e.s)&&Lx(e.l)&&(a=bx(e.s),l=bx(e.l),i=function(e,t,n){var r,i,o;if(e=vx(e,360),t=vx(t,100),n=vx(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Sx(s,a,e+1/3),i=Sx(s,a,e),o=Sx(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=yx(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var Ex="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Ox="[\\s|\\(]+(".concat(Ex,")[,|\\s]+(").concat(Ex,")[,|\\s]+(").concat(Ex,")\\s*\\)?"),Dx="[\\s|\\(]+(".concat(Ex,")[,|\\s]+(").concat(Ex,")[,|\\s]+(").concat(Ex,")[,|\\s]+(").concat(Ex,")\\s*\\)?"),Px={CSS_UNIT:new RegExp(Ex),rgb:new RegExp("rgb"+Ox),rgba:new RegExp("rgba"+Dx),hsl:new RegExp("hsl"+Ox),hsla:new RegExp("hsla"+Dx),hsv:new RegExp("hsv"+Ox),hsva:new RegExp("hsva"+Dx),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Lx(e){return Boolean(Px.CSS_UNIT.exec(String(e)))}var Rx=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=Ix(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=yx(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Cx(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Cx(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=_x(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=_x(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Tx(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,i){var o,a=[xx(Math.round(e).toString(16)),xx(Math.round(t).toString(16)),xx(Math.round(n).toString(16)),xx((o=r,Math.round(255*parseFloat(o)).toString(16)))];return i&&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,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*vx(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*vx(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Tx(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ax);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=mx(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=mx(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=mx(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=mx(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Bx(e,t=20){return e.mix("#141414",t).toString()}var Nx=Nm(sr({...sr({name:"ElButton"}),props:fx,emits:gx,setup(e,{expose:t,emit:n}){const r=e,i=function(e){const t=qm(),n=Og("button");return ia((()=>{let r={};const i=e.color;if(i){const o=new Rx(i),a=e.dark?o.tint(20).toString():Bx(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Bx(o,90):o.tint(90).toString(),"text-color":i,"border-color":e.dark?Bx(o,50):o.tint(50).toString(),"hover-text-color":"var(".concat(n.cssVarName("color-white"),")"),"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":"var(".concat(n.cssVarName("color-white"),")"),"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Bx(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Bx(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Bx(o,80):o.tint(80).toString());else{const s=e.dark?Bx(o,30):o.tint(30).toString(),l=o.isDark()?"var(".concat(n.cssVarName("color-white"),")"):"var(".concat(n.cssVarName("color-black"),")");if(r=n.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Bx(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":"var(".concat(n.cssVarName("color-white"),")"),r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),o=Og("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:d,handleClick:p}=((e,t)=>{xg({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ia((()=>"text"===e.type)));const n=Fr(hx,void 0),r=Om("button"),{form:i}=Ym(),o=Um(ia((()=>null==n?void 0:n.size))),a=qm(),s=Et(),l=mr(),u=ia((()=>e.type||(null==n?void 0:n.type)||"")),c=ia((()=>{var t,n,i;return null!=(i=null!=(n=e.autoInsertSpace)?n:null==(t=r.value)?void 0:t.autoInsertSpace)&&i})),d=ia((()=>"button"===e.tag?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=ia((()=>{var e;const t=null==(e=l.default)?void 0:e.call(l);if(c.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===uo){const t=e.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(t.trim())}}return!1}));return{_disabled:a,_size:o,_type:u,_ref:s,_props:d,shouldAddSpace:p,handleClick:n=>{"reset"===e.nativeType&&(null==i||i.resetFields()),t("click",n)}}})(r,n),h=ia((()=>[o.b(),o.m(l.value),o.m(s.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]));return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:d}),(e,t)=>(go(),_o(Pn(e.tag),Bo({ref_key:"_ref",ref:a},Lt(c),{class:Lt(h),style:Lt(i),onClick:Lt(p)}),{default:Sn((()=>[e.loading?(go(),xo(lo,{key:0},[e.$slots.loading?cr(e.$slots,"loading",{key:0}):(go(),_o(Lt(jm),{key:1,class:Y(Lt(o).is("loading"))},{default:Sn((()=>[(go(),_o(Pn(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(go(),_o(Lt(jm),{key:1},{default:Sn((()=>[e.icon?(go(),_o(Pn(e.icon),{key:0})):cr(e.$slots,"icon",{key:1})])),_:3})):Do("v-if",!0),e.$slots.default?(go(),xo("span",{key:2,class:Y({[Lt(o).em("text","expand")]:Lt(d)})},[cr(e.$slots,"default")],2)):Do("v-if",!0)])),_:3},16,["class","style","onClick"]))}}),[["__file","button.vue"]]);const zx={size:fx.size,type:fx.type};var Fx=Nm(sr({...sr({name:"ElButtonGroup"}),props:zx,setup(e){const t=e;zr(hx,ht({size:jt(t,"size"),type:jt(t,"type")}));const n=Og("button");return(e,t)=>(go(),xo("div",{class:Y("".concat(Lt(n).b("group")))},[cr(e.$slots,"default")],2))}}),[["__file","button-group.vue"]]);const Vx=og(Nx,{ButtonGroup:Fx});ag(Fx);var Hx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wx(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}const Gx=new Map;let Ux;function qx(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Zh(t.arg)&&n.push(t.arg),function(r,i){const o=t.instance.popperRef,a=r.target,s=null==i?void 0:i.target,l=!t||!t.instance,u=!a||!s,c=e.contains(a)||e.contains(s),d=e===a,p=n.length&&n.some((e=>null==e?void 0:e.contains(a)))||n.length&&n.includes(s),h=o&&(o.contains(a)||o.contains(s));l||u||c||d||p||h||t.value(r,i)}}rl&&(document.addEventListener("mousedown",(e=>Ux=e)),document.addEventListener("mouseup",(e=>{for(const t of Gx.values())for(const{documentHandler:n}of t)n(e,Ux)})));const Yx={beforeMount(e,t){Gx.has(e)||Gx.set(e,[]),Gx.get(e).push({documentHandler:qx(e,t),bindingFn:t.value})},updated(e,t){Gx.has(e)||Gx.set(e,[]);const n=Gx.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),i={documentHandler:qx(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Gx.delete(e)}};var Xx,Kx,$x,Zx,Jx,Qx,e_,t_,n_,r_,i_,o_,a_,s_,l_,u_=!1;function c_(){if(!u_){u_=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(o_=/\b(iPhone|iP[ao]d)/.exec(e),a_=/\b(iP[ao]d)/.exec(e),r_=/Android/i.exec(e),s_=/FBAN\/\w+;/i.exec(e),l_=/Mobile/i.exec(e),i_=!!/Win64/.exec(e),t){(Xx=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(Xx=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Qx=r?parseFloat(r[1])+4:Xx,Kx=t[2]?parseFloat(t[2]):NaN,$x=t[3]?parseFloat(t[3]):NaN,(Zx=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Jx=t&&t[1]?parseFloat(t[1]):NaN):Jx=NaN}else Xx=Kx=$x=Jx=Zx=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);e_=!i||parseFloat(i[1].replace("_","."))}else e_=!1;t_=!!n[2],n_=!!n[3]}else e_=t_=n_=!1}}var d_,p_={ie:function(){return c_()||Xx},ieCompatibilityMode:function(){return c_()||Qx>Xx},ie64:function(){return p_.ie()&&i_},firefox:function(){return c_()||Kx},opera:function(){return c_()||$x},webkit:function(){return c_()||Zx},safari:function(){return p_.webkit()},chrome:function(){return c_()||Jx},windows:function(){return c_()||t_},osx:function(){return c_()||e_},linux:function(){return c_()||n_},iphone:function(){return c_()||o_},mobile:function(){return c_()||o_||a_||r_||l_},nativeApp:function(){return c_()||s_},android:function(){return c_()||r_},ipad:function(){return c_()||a_}},h_=p_,f_=!!(typeof window<"u"&&window.document&&window.document.createElement),g_={canUseDOM:f_,canUseWorkers:typeof Worker<"u",canUseEventListeners:f_&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:f_&&!!window.screen,isInWorker:!f_};g_.canUseDOM&&(d_=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var v_=function(e,t){if(!g_.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&d_&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function m_(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}m_.getEventType=function(){return h_.firefox()?"DOMMouseScroll":v_("wheel")?"wheel":"mousewheel"};var y_=m_;
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const b_={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=y_(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}},x_=Qf({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:[String,Object,Array],default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}});const __=og(Nm(sr({...sr({name:"ElCard"}),props:x_,setup(e){const t=Og("card");return(e,n)=>(go(),xo("div",{class:Y([Lt(t).b(),Lt(t).is("".concat(e.shadow,"-shadow"))])},[e.$slots.header||e.header?(go(),xo("div",{key:0,class:Y(Lt(t).e("header"))},[cr(e.$slots,"header",{},(()=>[Eo(Q(e.header),1)]))],2)):Do("v-if",!0),Mo("div",{class:Y([Lt(t).e("body"),e.bodyClass]),style:j(e.bodyStyle)},[cr(e.$slots,"default")],6),e.$slots.footer||e.footer?(go(),xo("div",{key:1,class:Y(Lt(t).e("footer"))},[cr(e.$slots,"footer",{},(()=>[Eo(Q(e.footer),1)]))],2)):Do("v-if",!0)],2))}}),[["__file","card.vue"]])),w_={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:wm,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Am(["ariaControls"])},S_={[lg]:e=>m(e)||$h(e)||Kh(e),change:e=>m(e)||$h(e)||Kh(e)},C_=Symbol("checkboxGroupContextKey"),T_=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=Fr(C_,void 0),{formItem:s}=Ym(),{emit:l}=jo();function u(t){var n,r,i,o;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(r=null!=(n=e.trueValue)?n:e.trueLabel)||r:null!=(o=null!=(i=e.falseValue)?i:e.falseLabel)&&o}const c=ia((()=>(null==a?void 0:a.validateEvent)||e.validateEvent));return Mi((()=>e.modelValue),(()=>{c.value&&(null==s||s.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;l("change",u(t.checked),e)},onClickRoot:async function(a){if(!n.value&&!r.value&&!i.value&&o.value){a.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await rn(),function(e,t){l("change",u(e),t)}(t.value,a))}}}},M_=(e,t)=>{const{formItem:n}=Ym(),{model:r,isGroup:i,isLimitExceeded:o}=(e=>{const t=Et(!1),{emit:n}=jo(),r=Fr(C_,void 0),i=ia((()=>!1===Xh(r))),o=Et(!1),a=ia({get(){var n,o;return i.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(o=e.modelValue)?o:t.value},set(e){var s,l;i.value&&p(e)?(o.value=void 0!==(null==(s=null==r?void 0:r.max)?void 0:s.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>a.value.length,!1===o.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(lg,e),t.value=e)}});return{model:a,isGroup:i,isLimitExceeded:o}})(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:d}=((e,t,{model:n})=>{const r=Fr(C_,void 0),i=Et(!1),o=ia((()=>Jh(e.value)?e.label:e.value)),a=ia((()=>{const t=n.value;return Kh(t)?t:p(t)?b(o.value)?t.map(wt).some((e=>Fh(e,o.value))):t.map(wt).includes(o.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t}));return{checkboxButtonSize:Um(ia((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),isChecked:a,isFocused:i,checkboxSize:Um(ia((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}))),hasOwnLabel:ia((()=>!!t.default||!Jh(o.value))),actualValue:o}})(e,t,{model:r}),{isDisabled:h}=(({model:e,isChecked:t})=>{const n=Fr(C_,void 0),r=ia((()=>{var r,i;const o=null==(r=null==n?void 0:n.max)?void 0:r.value,a=null==(i=null==n?void 0:n.min)?void 0:i.value;return!Xh(o)&&e.value.length>=o&&!t.value||!Xh(a)&&e.value.length<=a&&t.value}));return{isDisabled:qm(ia((()=>(null==n?void 0:n.disabled.value)||r.value))),isLimitDisabled:r}})({model:r,isChecked:s}),{inputId:f,isLabeledByFormItem:g}=Xm(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:m}=T_(e,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:h,isLabeledByFormItem:g});var y,x;return e.checked&&(p(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=null==(x=null!=(y=e.trueValue)?y:e.trueLabel)||x),xg({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ia((()=>!!e.controls))),xg({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ia((()=>i.value&&Jh(e.value)))),xg({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ia((()=>!!e.trueLabel))),xg({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ia((()=>!!e.falseLabel))),{inputId:f,isLabeledByFormItem:g,isChecked:s,isDisabled:h,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:d,handleChange:v,onClickRoot:m}},k_=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],A_=["id","indeterminate","disabled","value","name","tabindex"];var I_=Nm(sr({...sr({name:"ElCheckbox"}),props:w_,emits:S_,setup(e){const t=e,n=mr(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:d,handleChange:p,onClickRoot:h}=M_(t,n),f=Og("checkbox"),g=ia((()=>[f.b(),f.m(l.value),f.is("disabled",a.value),f.is("bordered",t.border),f.is("checked",o.value)])),v=ia((()=>[f.e("input"),f.is("disabled",a.value),f.is("checked",o.value),f.is("indeterminate",t.indeterminate),f.is("focus",s.value)]));return(e,t)=>(go(),_o(Pn(!Lt(u)&&Lt(i)?"span":"label"),{class:Y(Lt(g)),"aria-controls":e.indeterminate?e.controls||e.ariaControls:null,onClick:Lt(h)},{default:Sn((()=>{var n,i;return[Mo("span",{class:Y(Lt(v))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?rr((go(),xo("input",{key:0,id:Lt(r),"onUpdate:modelValue":t[0]||(t[0]=e=>It(c)?c.value=e:null),class:Y(Lt(f).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:Lt(a),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(i=e.falseValue)?i:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Lt(p)&&Lt(p)(...e)),onFocus:t[2]||(t[2]=e=>s.value=!0),onBlur:t[3]||(t[3]=e=>s.value=!1),onClick:t[4]||(t[4]=Ps((()=>{}),["stop"]))},null,42,k_)),[[_s,Lt(c)]]):rr((go(),xo("input",{key:1,id:Lt(r),"onUpdate:modelValue":t[5]||(t[5]=e=>It(c)?c.value=e:null),class:Y(Lt(f).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:Lt(a),value:Lt(d),name:e.name,tabindex:e.tabindex,onChange:t[6]||(t[6]=(...e)=>Lt(p)&&Lt(p)(...e)),onFocus:t[7]||(t[7]=e=>s.value=!0),onBlur:t[8]||(t[8]=e=>s.value=!1),onClick:t[9]||(t[9]=Ps((()=>{}),["stop"]))},null,42,A_)),[[_s,Lt(c)]]),Mo("span",{class:Y(Lt(f).e("inner"))},null,2)],2),Lt(u)?(go(),xo("span",{key:0,class:Y(Lt(f).e("label"))},[cr(e.$slots,"default"),e.$slots.default?Do("v-if",!0):(go(),xo(lo,{key:0},[Eo(Q(e.label),1)],64))],2)):Do("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const E_=["name","tabindex","disabled","true-value","false-value"],O_=["name","tabindex","disabled","value"];var D_=Nm(sr({...sr({name:"ElCheckboxButton"}),props:w_,emits:S_,setup(e){const t=e,n=mr(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=M_(t,n),c=Fr(C_,void 0),d=Og("checkbox"),p=ia((()=>{var e,t,n,r;const i=null!=(t=null==(e=null==c?void 0:c.fill)?void 0:e.value)?t:"";return{backgroundColor:i,borderColor:i,color:null!=(r=null==(n=null==c?void 0:c.textColor)?void 0:n.value)?r:"",boxShadow:i?"-1px 0 0 0 ".concat(i):void 0}})),h=ia((()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",o.value),d.is("checked",i.value),d.is("focus",r.value)]));return(e,t)=>{var n,a;return go(),xo("label",{class:Y(Lt(h))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?rr((go(),xo("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>It(s)?s.value=e:null),class:Y(Lt(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Lt(o),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(a=e.falseValue)?a:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Lt(u)&&Lt(u)(...e)),onFocus:t[2]||(t[2]=e=>r.value=!0),onBlur:t[3]||(t[3]=e=>r.value=!1),onClick:t[4]||(t[4]=Ps((()=>{}),["stop"]))},null,42,E_)),[[_s,Lt(s)]]):rr((go(),xo("input",{key:1,"onUpdate:modelValue":t[5]||(t[5]=e=>It(s)?s.value=e:null),class:Y(Lt(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Lt(o),value:Lt(l),onChange:t[6]||(t[6]=(...e)=>Lt(u)&&Lt(u)(...e)),onFocus:t[7]||(t[7]=e=>r.value=!0),onBlur:t[8]||(t[8]=e=>r.value=!1),onClick:t[9]||(t[9]=Ps((()=>{}),["stop"]))},null,42,O_)),[[_s,Lt(s)]]),e.$slots.default||e.label?(go(),xo("span",{key:2,class:Y(Lt(d).be("button","inner")),style:j(Lt(i)?Lt(p):void 0)},[cr(e.$slots,"default",{},(()=>[Eo(Q(e.label),1)]))],6)):Do("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const P_=Qf({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:wm,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Am(["ariaLabel"])}),L_={[lg]:e=>p(e),change:e=>p(e)};var R_=Nm(sr({...sr({name:"ElCheckboxGroup"}),props:P_,emits:L_,setup(e,{emit:t}){const n=e,r=Og("checkbox"),{formItem:i}=Ym(),{inputId:o,isLabeledByFormItem:a}=Xm(n,{formItemContext:i}),s=async e=>{t(lg,e),await rn(),t("change",e)},l=ia({get:()=>n.modelValue,set(e){s(e)}});return zr(C_,{...qh(Ft(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},ia((()=>!!n.label))),Mi((()=>n.modelValue),(()=>{n.validateEvent&&(null==i||i.validate("change").catch((e=>{})))})),(e,t)=>{var n;return go(),_o(Pn(e.tag),{id:Lt(o),class:Y(Lt(r).b("group")),role:"group","aria-label":Lt(a)?void 0:e.label||e.ariaLabel||"checkbox-group","aria-labelledby":Lt(a)?null==(n=Lt(i))?void 0:n.labelId:void 0},{default:Sn((()=>[cr(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const B_=og(I_,{CheckboxButton:D_,CheckboxGroup:R_});ag(D_);const N_=ag(R_),z_=Qf({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:dg},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),F_={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const V_=og(Nm(sr({...sr({name:"ElTag"}),props:z_,emits:F_,setup(e,{emit:t}){const n=e,r=Um(),i=Og("tag"),o=ia((()=>{const{type:e,hit:t,effect:o,closable:a,round:s}=n;return[i.b(),i.is("closable",a),i.m(e||"primary"),i.m(r.value),i.m(o),i.is("hit",t),i.is("round",s)]})),a=e=>{t("close",e)},s=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(go(),xo("span",{key:0,class:Y(Lt(o)),style:j({backgroundColor:e.color}),onClick:s},[Mo("span",{class:Y(Lt(i).e("content"))},[cr(e.$slots,"default")],2),e.closable?(go(),_o(Lt(jm),{key:0,class:Y(Lt(i).e("close")),onClick:Ps(a,["stop"])},{default:Sn((()=>[ko(Lt(Ef))])),_:1},8,["class","onClick"])):Do("v-if",!0)],6)):(go(),_o(xa,{key:1,name:"".concat(Lt(i).namespace.value,"-zoom-in-center"),appear:""},{default:Sn((()=>[Mo("span",{class:Y(Lt(o)),style:j({backgroundColor:e.color}),onClick:s},[Mo("span",{class:Y(Lt(i).e("content"))},[cr(e.$slots,"default")],2),e.closable?(go(),_o(Lt(jm),{key:0,class:Y(Lt(i).e("close")),onClick:Ps(a,["stop"])},{default:Sn((()=>[ko(Lt(Ef))])),_:1},8,["class","onClick"])):Do("v-if",!0)],6)])),_:3},8,["name"]))}}),[["__file","tag.vue"]])),H_=Qf({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}});const j_=sr({name:"ElOverlay",props:H_,emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:n}){const r=Og("overlay"),{onClick:i,onMousedown:o,onMouseup:a}=rm(e.customMaskEvent?void 0:e=>{n("click",e)});return()=>e.mask?ko("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:a},[cr(t,"default")],pg.STYLE|pg.CLASS|pg.PROPS,["onClick","onMouseup","onMousedown"]):aa("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[cr(t,"default")])}}),W_=Symbol("dialogInjectionKey"),G_=Qf({center:Boolean,alignCenter:Boolean,closeIcon:{type:eg},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),U_=["aria-level"],q_=["aria-label"],Y_=["id"],X_=sr({...sr({name:"ElDialogContent"}),props:G_,emits:{close:()=>!0},setup(e){const t=e,{t:n}=Mg(),{Close:r}=tg,{dialogRef:i,headerRef:o,bodyId:a,ns:s,style:l}=Fr(W_),{focusTrapRef:u}=Fr(mb),c=ia((()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center}])),d=((...e)=>t=>{e.forEach((e=>{v(e)?e(t):e.value=t}))})(u,i),p=ia((()=>t.draggable)),h=ia((()=>t.overflow));return _g(i,o,p,h),(e,t)=>(go(),xo("div",{ref:Lt(d),class:Y(Lt(c)),style:j(Lt(l)),tabindex:"-1"},[Mo("header",{ref_key:"headerRef",ref:o,class:Y([Lt(s).e("header"),{"show-close":e.showClose}])},[cr(e.$slots,"header",{},(()=>[Mo("span",{role:"heading","aria-level":e.ariaLevel,class:Y(Lt(s).e("title"))},Q(e.title),11,U_)])),e.showClose?(go(),xo("button",{key:0,"aria-label":Lt(n)("el.dialog.close"),class:Y(Lt(s).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[ko(Lt(jm),{class:Y(Lt(s).e("close"))},{default:Sn((()=>[(go(),_o(Pn(e.closeIcon||Lt(r))))])),_:1},8,["class"])],10,q_)):Do("v-if",!0)],2),Mo("div",{id:Lt(a),class:Y(Lt(s).e("body"))},[cr(e.$slots,"default")],10,Y_),e.$slots.footer?(go(),xo("footer",{key:0,class:Y(Lt(s).e("footer"))},[cr(e.$slots,"footer")],2)):Do("v-if",!0)],6))}});var K_=Nm(X_,[["__file","dialog-content.vue"]]);const $_=Qf({...G_,appendToBody:Boolean,appendTo:{type:String,default:"body"},beforeClose:{type:Function},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),Z_={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[lg]:e=>Kh(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},J_=["aria-label","aria-labelledby","aria-describedby"];const Q_=og(Nm(sr({...sr({name:"ElDialog",inheritAttrs:!1}),props:$_,emits:Z_,setup(e,{expose:t}){const n=e,r=mr();xg({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},ia((()=>!!r.title)));const i=Og("dialog"),o=Et(),a=Et(),s=Et(),{visible:l,titleId:u,bodyId:c,style:d,overlayDialogStyle:p,rendered:h,zIndex:f,afterEnter:g,afterLeave:v,beforeLeave:m,handleClose:y,onModalClick:b,onOpenAutoFocus:x,onCloseAutoFocus:_,onCloseRequested:w,onFocusoutPrevented:S}=((e,t)=>{var n;const r=jo().emit,{nextZIndex:i}=xm();let o="";const a=lm(),s=lm(),l=Et(!1),u=Et(!1),c=Et(!1),d=Et(null!=(n=e.zIndex)?n:i());let p,h;const f=Om("namespace",kg),g=ia((()=>{const t={},n="--".concat(f.value,"-dialog");return e.fullscreen||(e.top&&(t["".concat(n,"-margin-top")]=e.top),e.width&&(t["".concat(n,"-width")]=hf(e.width))),t})),v=ia((()=>e.alignCenter?{display:"flex"}:{}));function m(){null==h||h(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=fl((()=>x()),e.openDelay)):x()}function y(){null==p||p(),null==h||h(),e.closeDelay&&e.closeDelay>0?({stop:h}=fl((()=>_()),e.closeDelay)):_()}function b(){e.beforeClose?e.beforeClose((function(e){e||(u.value=!0,l.value=!1)})):y()}function x(){rl&&(l.value=!0)}function _(){l.value=!1}return e.lockScroll&&Dg(l),Mi((()=>e.modelValue),(n=>{n?(u.value=!1,m(),c.value=!0,d.value=Hh(e.zIndex)?i():d.value++,rn((()=>{r("open"),t.value&&(t.value.scrollTop=0)}))):l.value&&y()})),Mi((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),Xn((()=>{e.modelValue&&(l.value=!0,c.value=!0,m())})),{afterEnter:function(){r("opened")},afterLeave:function(){r("closed"),r(lg,!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){r("close")},handleClose:b,onModalClick:function(){e.closeOnClickModal&&b()},close:y,doClose:_,onOpenAutoFocus:function(){r("openAutoFocus")},onCloseAutoFocus:function(){r("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&b()},onFocusoutPrevented:function(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()},titleId:a,bodyId:s,closed:u,style:g,overlayDialogStyle:v,rendered:c,visible:l,zIndex:d}})(n,o);zr(W_,{dialogRef:o,headerRef:a,bodyId:c,ns:i,rendered:h,style:d});const C=rm(b),T=ia((()=>n.draggable&&!n.fullscreen));return t({visible:l,dialogContentRef:s}),(e,t)=>(go(),_o(ao,{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},[ko(xa,{name:"dialog-fade",onAfterEnter:Lt(g),onAfterLeave:Lt(v),onBeforeLeave:Lt(m),persisted:""},{default:Sn((()=>[rr(ko(Lt(j_),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Lt(f)},{default:Sn((()=>[Mo("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Lt(u),"aria-describedby":Lt(c),class:Y("".concat(Lt(i).namespace.value,"-overlay-dialog")),style:j(Lt(p)),onClick:t[0]||(t[0]=(...e)=>Lt(C).onClick&&Lt(C).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Lt(C).onMousedown&&Lt(C).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Lt(C).onMouseup&&Lt(C).onMouseup(...e))},[ko(Lt(Db),{loop:"",trapped:Lt(l),"focus-start-el":"container",onFocusAfterTrapped:Lt(x),onFocusAfterReleased:Lt(_),onFocusoutPrevented:Lt(S),onReleaseRequested:Lt(w)},{default:Sn((()=>[Lt(h)?(go(),_o(K_,Bo({key:0,ref_key:"dialogContentRef",ref:s},e.$attrs,{center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:Lt(T),overflow:e.overflow,fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:Lt(y)}),ar({header:Sn((()=>[e.$slots.title?cr(e.$slots,"title",{key:1}):cr(e.$slots,"header",{key:0,close:Lt(y),titleId:Lt(u),titleClass:Lt(i).e("title")})])),default:Sn((()=>[cr(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Sn((()=>[cr(e.$slots,"footer")]))}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):Do("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,J_)])),_:3},8,["mask","overlay-class","z-index"]),[[za,Lt(l)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}}),[["__file","dialog.vue"]])),ew=Qf({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:String,default:"solid"}});const tw=og(Nm(sr({...sr({name:"ElDivider"}),props:ew,setup(e){const t=e,n=Og("divider"),r=ia((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>(go(),xo("div",{class:Y([Lt(n).b(),Lt(n).m(e.direction)]),style:j(Lt(r)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?(go(),xo("div",{key:0,class:Y([Lt(n).e("text"),Lt(n).is(e.contentPosition)])},[cr(e.$slots,"default")],2)):Do("v-if",!0)],6))}}),[["__file","divider.vue"]])),nw={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},rw=["id"],iw=["stop-color"],ow=["stop-color"],aw=["id"],sw=["stop-color"],lw=["stop-color"],uw=["id"],cw={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},dw={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},pw={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},hw=["fill"],fw=["fill"],gw={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},vw=["fill"],mw=["fill"],yw=["fill"],bw=["fill"],xw=["fill"],_w={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},ww=["fill","xlink:href"],Sw=["fill","mask"],Cw=["fill"];var Tw=Nm(sr({...sr({name:"ImgEmpty"}),setup(e){const t=Og("empty"),n=lm();return(e,r)=>(go(),xo("svg",nw,[Mo("defs",null,[Mo("linearGradient",{id:"linearGradient-1-".concat(Lt(n)),x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Mo("stop",{"stop-color":"var(".concat(Lt(t).cssVarBlockName("fill-color-1"),")"),offset:"0%"},null,8,iw),Mo("stop",{"stop-color":"var(".concat(Lt(t).cssVarBlockName("fill-color-4"),")"),offset:"100%"},null,8,ow)],8,rw),Mo("linearGradient",{id:"linearGradient-2-".concat(Lt(n)),x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Mo("stop",{"stop-color":"var(".concat(Lt(t).cssVarBlockName("fill-color-1"),")"),offset:"0%"},null,8,sw),Mo("stop",{"stop-color":"var(".concat(Lt(t).cssVarBlockName("fill-color-6"),")"),offset:"100%"},null,8,lw)],8,aw),Mo("rect",{id:"path-3-".concat(Lt(n)),x:"0",y:"0",width:"17",height:"36"},null,8,uw)]),Mo("g",cw,[Mo("g",dw,[Mo("g",pw,[Mo("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-3"),")")},null,8,hw),Mo("polygon",{id:"Rectangle-Copy-14",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-7"),")"),transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,fw),Mo("g",gw,[Mo("polygon",{id:"Rectangle-Copy-10",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-7"),")"),transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,vw),Mo("polygon",{id:"Rectangle-Copy-11",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-5"),")"),points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,mw),Mo("rect",{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-".concat(Lt(n),")"),transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,yw),Mo("polygon",{id:"Rectangle-Copy-13",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-2"),")"),transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,bw)]),Mo("rect",{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-".concat(Lt(n),")"),x:"13",y:"45",width:"40",height:"36"},null,8,xw),Mo("g",_w,[Mo("use",{id:"Mask",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-8"),")"),transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-".concat(Lt(n))},null,8,ww),Mo("polygon",{id:"Rectangle-Copy",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-9"),")"),mask:"url(#mask-4-".concat(Lt(n),")"),transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,Sw)]),Mo("polygon",{id:"Rectangle-Copy-18",fill:"var(".concat(Lt(t).cssVarBlockName("fill-color-2"),")"),transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,Cw)])])])]))}}),[["__file","img-empty.vue"]]);const Mw=Qf({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),kw=["src"],Aw={key:1},Iw=sr({...sr({name:"ElEmpty"}),props:Mw,setup(e){const t=e,{t:n}=Mg(),r=Og("empty"),i=ia((()=>t.description||n("el.table.emptyText"))),o=ia((()=>({width:hf(t.imageSize)})));return(e,t)=>(go(),xo("div",{class:Y(Lt(r).b())},[Mo("div",{class:Y(Lt(r).e("image")),style:j(Lt(o))},[e.image?(go(),xo("img",{key:0,src:e.image,ondragstart:"return false"},null,8,kw)):cr(e.$slots,"image",{key:1},(()=>[ko(Tw)]))],6),Mo("div",{class:Y(Lt(r).e("description"))},[e.$slots.description?cr(e.$slots,"description",{key:0}):(go(),xo("p",Aw,Q(Lt(i)),1))],2),e.$slots.default?(go(),xo("div",{key:0,class:Y(Lt(r).e("bottom"))},[cr(e.$slots,"default")],2)):Do("v-if",!0)],2))}});const Ew=og(Nm(Iw,[["__file","empty.vue"]])),Ow=Qf({urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),Dw={close:()=>!0,switch:e=>$h(e),rotate:e=>$h(e)},Pw=["src","crossorigin"],Lw=sr({...sr({name:"ElImageViewer"}),props:Ow,emits:Dw,setup(e,{expose:t,emit:n}){var r;const i=e,o={CONTAIN:{name:"contain",icon:St(Pf)},ORIGINAL:{name:"original",icon:St(jf)}},{t:a}=Mg(),s=Og("image-viewer"),{nextZIndex:l}=xm(),u=Et(),c=Et([]),d=oe(),p=Et(!0),h=Et(i.initialIndex),f=Ot(o.CONTAIN),g=Et({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=Et(null!=(r=i.zIndex)?r:l()),m=ia((()=>{const{urlList:e}=i;return e.length<=1})),y=ia((()=>0===h.value)),b=ia((()=>h.value===i.urlList.length-1)),x=ia((()=>i.urlList[h.value])),_=ia((()=>[s.e("btn"),s.e("prev"),s.is("disabled",!i.infinite&&y.value)])),w=ia((()=>[s.e("btn"),s.e("next"),s.is("disabled",!i.infinite&&b.value)])),S=ia((()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:i}=g.value;let a=n/e,s=r/e;switch(t%360){case 90:case-270:[a,s]=[s,-a];break;case 180:case-180:[a,s]=[-a,-s];break;case 270:case-90:[a,s]=[-s,a]}const l={transform:"scale(".concat(e,") rotate(").concat(t,"deg) translate(").concat(a,"px, ").concat(s,"px)"),transition:i?"transform .3s":""};return f.value.name===o.CONTAIN.name&&(l.maxWidth=l.maxHeight="100%"),l}));function C(){d.stop(),n("close")}function T(){p.value=!1}function M(e){p.value=!1,e.target.alt=a("el.image.error")}function k(e){if(p.value||0!==e.button||!u.value)return;g.value.enableTransition=!1;const{offsetX:t,offsetY:n}=g.value,r=e.pageX,i=e.pageY,o=Yh((e=>{g.value={...g.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-i}})),a=yl(document,"mousemove",o);yl(document,"mouseup",(()=>{a()})),e.preventDefault()}function A(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(p.value)return;const e=rf(o),t=Object.values(o),n=f.value.name,r=t.findIndex((e=>e.name===n)),i=(r+1)%e.length;f.value=o[e[i]],A()}function E(e){const t=i.urlList.length;h.value=(e+t)%t}function O(){y.value&&!i.infinite||E(h.value-1)}function D(){b.value&&!i.infinite||E(h.value+1)}function P(e,t={}){if(p.value)return;const{minScale:r,maxScale:o}=i,{zoomRate:a,rotateDeg:s,enableTransition:l}={zoomRate:i.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":g.value.scale>r&&(g.value.scale=Number.parseFloat((g.value.scale/a).toFixed(3)));break;case"zoomIn":g.value.scale<o&&(g.value.scale=Number.parseFloat((g.value.scale*a).toFixed(3)));break;case"clockwise":g.value.deg+=s,n("rotate",g.value.deg);break;case"anticlockwise":g.value.deg-=s,n("rotate",g.value.deg)}g.value.enableTransition=l}return Mi(x,(()=>{rn((()=>{const e=c.value[0];(null==e?void 0:e.complete)||(p.value=!0)}))})),Mi(h,(e=>{A(),n("switch",e)})),Xn((()=>{var e,t;!function(){const e=Yh((e=>{switch(e.code){case sg.esc:i.closeOnPressEscape&&C();break;case sg.space:I();break;case sg.left:O();break;case sg.up:P("zoomIn");break;case sg.right:D();break;case sg.down:P("zoomOut")}})),t=Yh((e=>{P((e.deltaY||e.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:i.zoomRate,enableTransition:!1})}));d.run((()=>{yl(document,"keydown",e),yl(document,"wheel",t)}))}(),null==(t=null==(e=u.value)?void 0:e.focus)||t.call(e)})),t({setActiveItem:E}),(e,t)=>(go(),_o(ao,{to:"body",disabled:!e.teleported},[ko(xa,{name:"viewer-fade",appear:""},{default:Sn((()=>[Mo("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:Y(Lt(s).e("wrapper")),style:j({zIndex:v.value})},[Mo("div",{class:Y(Lt(s).e("mask")),onClick:t[0]||(t[0]=Ps((t=>e.hideOnClickModal&&C()),["self"]))},null,2),Do(" CLOSE "),Mo("span",{class:Y([Lt(s).e("btn"),Lt(s).e("close")]),onClick:C},[ko(Lt(jm),null,{default:Sn((()=>[ko(Lt(Ef))])),_:1})],2),Do(" ARROW "),Lt(m)?Do("v-if",!0):(go(),xo(lo,{key:0},[Mo("span",{class:Y(Lt(_)),onClick:O},[ko(Lt(jm),null,{default:Sn((()=>[ko(Lt(_f))])),_:1})],2),Mo("span",{class:Y(Lt(w)),onClick:D},[ko(Lt(jm),null,{default:Sn((()=>[ko(Lt(wf))])),_:1})],2)],64)),Do(" ACTIONS "),Mo("div",{class:Y([Lt(s).e("btn"),Lt(s).e("actions")])},[Mo("div",{class:Y(Lt(s).e("actions__inner"))},[ko(Lt(jm),{onClick:t[1]||(t[1]=e=>P("zoomOut"))},{default:Sn((()=>[ko(Lt($f))])),_:1}),ko(Lt(jm),{onClick:t[2]||(t[2]=e=>P("zoomIn"))},{default:Sn((()=>[ko(Lt(Kf))])),_:1}),Mo("i",{class:Y(Lt(s).e("actions__divider"))},null,2),ko(Lt(jm),{onClick:I},{default:Sn((()=>[(go(),_o(Pn(Lt(f).icon)))])),_:1}),Mo("i",{class:Y(Lt(s).e("actions__divider"))},null,2),ko(Lt(jm),{onClick:t[3]||(t[3]=e=>P("anticlockwise"))},{default:Sn((()=>[ko(Lt(Vf))])),_:1}),ko(Lt(jm),{onClick:t[4]||(t[4]=e=>P("clockwise"))},{default:Sn((()=>[ko(Lt(Hf))])),_:1})],2)],2),Do(" CANVAS "),Mo("div",{class:Y(Lt(s).e("canvas"))},[(go(!0),xo(lo,null,or(e.urlList,((t,n)=>rr((go(),xo("img",{ref_for:!0,ref:e=>c.value[n]=e,key:t,src:t,style:j(Lt(S)),class:Y(Lt(s).e("img")),crossorigin:e.crossorigin,onLoad:T,onError:M,onMousedown:k},null,46,Pw)),[[za,n===h.value]]))),128))],2),cr(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}});const Rw=og(Nm(Lw,[["__file","image-viewer.vue"]])),Bw=Qf({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:[String,Object]},previewSrcList:{type:Array,default:()=>[]},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),Nw={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>$h(e),close:()=>!0,show:()=>!0},zw=["src","loading","crossorigin"],Fw={key:0},Vw=sr({...sr({name:"ElImage",inheritAttrs:!1}),props:Bw,emits:Nw,setup(e,{emit:t}){const n=e;let r="";const{t:i}=Mg(),o=Og("image"),a=yr(),s=bg(),l=Et(),u=Et(!1),c=Et(!0),d=Et(!1),p=Et(),h=Et(),f=rl&&"loading"in HTMLImageElement.prototype;let g,v;const y=ia((()=>[o.e("inner"),_.value&&o.e("preview"),c.value&&o.is("loading")])),b=ia((()=>a.style)),x=ia((()=>{const{fit:e}=n;return rl&&e?{objectFit:e}:{}})),_=ia((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),w=ia((()=>{const{previewSrcList:e,initialIndex:t}=n;let r=t;return t>e.length-1&&(r=0),r})),S=ia((()=>"eager"!==n.loading&&(!f&&"lazy"===n.loading||n.lazy))),C=()=>{rl&&(c.value=!0,u.value=!1,l.value=n.src)};function T(e){c.value=!1,u.value=!1,t("load",e)}function M(e){c.value=!1,u.value=!0,t("error",e)}function k(){((e,t)=>{if(!rl||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right})(p.value,h.value)&&(C(),E())}const A=pl(k,200,!0);async function I(){var e;if(!rl)return;await rn();const{scrollContainer:t}=n;Zh(t)?h.value=t:m(t)&&""!==t?h.value=null!=(e=document.querySelector(t))?e:void 0:p.value&&(h.value=gf(p.value)),h.value&&(g=yl(h,"scroll",A),setTimeout((()=>k()),100))}function E(){rl&&h.value&&A&&(null==g||g(),h.value=void 0)}function O(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function D(){_.value&&(v=yl("wheel",O,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function P(){null==v||v(),document.body.style.overflow=r,d.value=!1,t("close")}function L(e){t("switch",e)}return Mi((()=>n.src),(()=>{S.value?(c.value=!0,u.value=!1,E(),I()):C()})),Xn((()=>{S.value?I():C()})),(e,t)=>(go(),xo("div",{ref_key:"container",ref:p,class:Y([Lt(o).b(),e.$attrs.class]),style:j(Lt(b))},[u.value?cr(e.$slots,"error",{key:0},(()=>[Mo("div",{class:Y(Lt(o).e("error"))},Q(Lt(i)("el.image.error")),3)])):(go(),xo(lo,{key:1},[void 0!==l.value?(go(),xo("img",Bo({key:0},Lt(s),{src:l.value,loading:e.loading,style:Lt(x),class:Lt(y),crossorigin:e.crossorigin,onClick:D,onLoad:T,onError:M}),null,16,zw)):Do("v-if",!0),c.value?(go(),xo("div",{key:1,class:Y(Lt(o).e("wrapper"))},[cr(e.$slots,"placeholder",{},(()=>[Mo("div",{class:Y(Lt(o).e("placeholder"))},null,2)]))],2)):Do("v-if",!0)],64)),Lt(_)?(go(),xo(lo,{key:2},[d.value?(go(),_o(Lt(Rw),{key:0,"z-index":e.zIndex,"initial-index":Lt(w),infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:P,onSwitch:L},{default:Sn((()=>[e.$slots.viewer?(go(),xo("div",Fw,[cr(e.$slots,"viewer")])):Do("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Do("v-if",!0)],64)):Do("v-if",!0)],6))}});const Hw=og(Nm(Vw,[["__file","image.vue"]])),jw=Qf({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:eg}}),Ww={click:e=>e instanceof MouseEvent},Gw=["href","target"];const Uw=og(Nm(sr({...sr({name:"ElLink"}),props:jw,emits:Ww,setup(e,{emit:t}){const n=e,r=Og("link"),i=ia((()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]));function o(e){n.disabled||t("click",e)}return(e,t)=>(go(),xo("a",{class:Y(Lt(i)),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:o},[e.icon?(go(),_o(Lt(jm),{key:0},{default:Sn((()=>[(go(),_o(Pn(e.icon)))])),_:1})):Do("v-if",!0),e.$slots.default?(go(),xo("span",{key:1,class:Y(Lt(r).e("inner"))},[cr(e.$slots,"default")],2)):Do("v-if",!0),e.$slots.icon?cr(e.$slots,"icon",{key:2}):Do("v-if",!0)],10,Gw))}}),[["__file","link.vue"]])),qw=Symbol("elPaginationKey"),Yw=Qf({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:eg}}),Xw={click:e=>e instanceof MouseEvent},Kw=["disabled","aria-label","aria-disabled"],$w={key:0},Zw=sr({...sr({name:"ElPaginationPrev"}),props:Yw,emits:Xw,setup(e){const t=e,{t:n}=Mg(),r=ia((()=>t.disabled||t.currentPage<=1));return(e,t)=>(go(),xo("button",{type:"button",class:"btn-prev",disabled:Lt(r),"aria-label":e.prevText||Lt(n)("el.pagination.prev"),"aria-disabled":Lt(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?(go(),xo("span",$w,Q(e.prevText),1)):(go(),_o(Lt(jm),{key:1},{default:Sn((()=>[(go(),_o(Pn(e.prevIcon)))])),_:1}))],8,Kw))}});var Jw=Nm(Zw,[["__file","prev.vue"]]);const Qw=Qf({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:eg}}),eS=["disabled","aria-label","aria-disabled"],tS={key:0},nS=sr({...sr({name:"ElPaginationNext"}),props:Qw,emits:["click"],setup(e){const t=e,{t:n}=Mg(),r=ia((()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount));return(e,t)=>(go(),xo("button",{type:"button",class:"btn-next",disabled:Lt(r),"aria-label":e.nextText||Lt(n)("el.pagination.next"),"aria-disabled":Lt(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?(go(),xo("span",tS,Q(e.nextText),1)):(go(),_o(Lt(jm),{key:1},{default:Sn((()=>[(go(),_o(Pn(e.nextIcon)))])),_:1}))],8,eS))}});var rS=Nm(nS,[["__file","next.vue"]]);const iS=Symbol("ElSelectGroup"),oS=Symbol("ElSelect");const aS=sr({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Og("select"),n=lm(),r=ia((()=>[t.be("dropdown","item"),t.is("disabled",Lt(s)),t.is("selected",Lt(a)),t.is("hovering",Lt(p))])),i=ht({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:c}=function(e,t){const n=Fr(oS),r=Fr(iS,{disabled:!1}),i=ia((()=>n.props.multiple?c(n.props.modelValue,e.value):c([n.props.modelValue],e.value))),o=ia((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!i.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),a=ia((()=>e.label||(b(e.value)?"":e.value))),s=ia((()=>e.value||e.label||"")),l=ia((()=>e.disabled||t.groupDisabled||o.value)),u=jo(),c=(t=[],r)=>{if(b(e.value)){const e=n.props.valueKey;return t&&t.some((t=>wt(ad(t,e))===ad(r,e)))}return t&&t.includes(r)};return Mi((()=>a.value),(()=>{e.created||n.props.remote||n.setSelected()})),Mi((()=>e.value),((t,r)=>{const{remote:i,valueKey:o}=n.props;if(Fh(t,r)||(n.onOptionDestroy(r,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!i){if(o&&b(t)&&b(r)&&t[o]===r[o])return;n.setSelected()}})),Mi((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:i,isDisabled:l,hoverItem:()=>{e.disabled||r.disabled||(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},updateOption:n=>{const r=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(n),"i");t.visible=r.test(a.value)||e.created}}}(e,i),{visible:d,hover:p}=Ft(i),h=jo().proxy;return l.onOptionCreate(h),Zn((()=>{const e=h.value,{selected:t}=l.states,n=(l.props.multiple?t:[t]).some((e=>e.value===h.value));rn((()=>{l.states.cachedOptions.get(e)!==h||n||l.states.cachedOptions.delete(e)})),l.onOptionDestroy(e,h)})),{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:c,visible:d,hover:p,selectOptionClick:function(){!0!==e.disabled&&!0!==i.groupDisabled&&l.handleOptionSelect(h)},states:i}}}),sS=["id","aria-disabled","aria-selected"];var lS=Nm(aS,[["render",function(e,t,n,r,i,o){return rr((go(),xo("li",{id:e.id,class:Y(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=Ps(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[cr(e.$slots,"default",{},(()=>[Mo("span",null,Q(e.currentLabel),1)]))],42,sS)),[[za,e.visible]])}],["__file","option.vue"]]);var uS=Nm(sr({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Fr(oS),t=Og("select"),n=ia((()=>e.props.popperClass)),r=ia((()=>e.props.multiple)),i=ia((()=>e.props.fitInputWidth)),o=Et("");function a(){var t;o.value="".concat(null==(t=e.selectRef)?void 0:t.offsetWidth,"px")}return Xn((()=>{a(),Al(e.selectRef,a)})),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:i}}}),[["render",function(e,t,n,r,i,o){return go(),xo("div",{class:Y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:j({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(go(),xo("div",{key:0,class:Y(e.ns.be("dropdown","header"))},[cr(e.$slots,"header")],2)):Do("v-if",!0),cr(e.$slots,"default"),e.$slots.footer?(go(),xo("div",{key:1,class:Y(e.ns.be("dropdown","footer"))},[cr(e.$slots,"footer")],2)):Do("v-if",!0)],6)}],["__file","select-dropdown.vue"]]);const cS=(e,t)=>{const{t:n}=Mg(),r=lm(),i=Og("select"),o=Og("input"),a=ht({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Et(null),l=Et(null),u=Et(null),c=Et(null),d=Et(null),h=Et(null),f=Et(null),g=Et(null),m=Et(null),y=Et(null),x=Et(null),_=Et(null),{wrapperRef:w,isFocused:C,handleFocus:T,handleBlur:M}=Cm(d,{afterFocus(){e.automaticDropdown&&!k.value&&(k.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=u.value)?void 0:t.isFocusInsideContent(e))||(null==(n=c.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){k.value=!1,a.menuVisibleOnFocus=!1}}),k=Et(!1),A=Et(),{form:I,formItem:E}=Ym(),{inputId:O}=Xm(e,{formItemContext:E}),{valueOnClear:D,isEmptyValue:P}=((e,t)=>{let n=Om();n.value||(n=Et({}));const r=ia((()=>e.emptyValues||n.value.emptyValues||Tm)),i=ia((()=>v(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:v(n.value.valueOnClear)?n.value.valueOnClear():void 0!==n.value.valueOnClear?n.value.valueOnClear:void 0));return r.value.includes(i.value),{emptyValues:r,valueOnClear:i,isEmptyValue:e=>r.value.includes(e)}})(e),L=ia((()=>e.disabled||(null==I?void 0:I.disabled))),R=ia((()=>e.multiple?p(e.modelValue)&&e.modelValue.length>0:!P(e.modelValue))),B=ia((()=>e.clearable&&!L.value&&a.inputHovering&&R.value)),N=ia((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),z=ia((()=>i.is("reverse",N.value&&k.value))),F=ia((()=>(null==E?void 0:E.validateState)||"")),V=ia((()=>ig[F.value])),H=ia((()=>e.remote?300:0)),j=ia((()=>e.loading?e.loadingText||n("el.select.loading"):!(e.remote&&!a.inputValue&&0===a.options.size)&&(e.filterable&&a.inputValue&&a.options.size>0&&0===W.value?e.noMatchText||n("el.select.noMatch"):0===a.options.size?e.noDataText||n("el.select.noData"):null))),W=ia((()=>G.value.filter((e=>e.visible)).length)),G=ia((()=>{const e=Array.from(a.options.values()),t=[];return a.optionValues.forEach((n=>{const r=e.findIndex((e=>e.value===n));r>-1&&t.push(e[r])})),t.length>=e.length?t:e})),U=ia((()=>Array.from(a.cachedOptions.values()))),q=ia((()=>{const t=G.value.filter((e=>!e.created)).some((e=>e.currentLabel===a.inputValue));return e.filterable&&e.allowCreate&&""!==a.inputValue&&!t})),Y=()=>{e.filterable&&v(e.filterMethod)||e.filterable&&e.remote&&v(e.remoteMethod)||G.value.forEach((e=>{var t;null==(t=e.updateOption)||t.call(e,a.inputValue)}))},X=Um(),K=ia((()=>["small"].includes(X.value)?"small":"default")),$=ia({get:()=>k.value&&!1!==j.value,set(e){k.value=e}}),Z=ia((()=>p(e.modelValue)?0===e.modelValue.length&&!a.inputValue:!e.filterable||!a.inputValue)),J=ia((()=>{var t;const r=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!R.value?r:a.selectedLabel})),Q=ia((()=>sl?null:"mouseenter"));Mi((()=>e.modelValue),((t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",ee("")),ne(),!Fh(t,n)&&e.validateEvent&&(null==E||E.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),Mi((()=>k.value),(e=>{e?ee(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",e)})),Mi((()=>a.options.entries()),(()=>{var t;if(!rl)return;const n=(null==(t=s.value)?void 0:t.querySelectorAll("input"))||[];(e.filterable||e.defaultFirstOption||Xh(e.modelValue))&&Array.from(n).includes(document.activeElement)||ne(),e.defaultFirstOption&&(e.filterable||e.remote)&&W.value&&te()}),{flush:"post"}),Mi((()=>a.hoveringIndex),(e=>{$h(e)&&e>-1?A.value=G.value[e]||{}:A.value={},G.value.forEach((e=>{e.hover=A.value===e}))})),wi((()=>{a.isBeforeHide||Y()}));const ee=t=>{a.previousQuery!==t&&(a.previousQuery=t,e.filterable&&v(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&v(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&W.value?rn(te):rn(ie))},te=()=>{const e=G.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),t=e.find((e=>e.created)),n=e[0];a.hoveringIndex=ge(G.value,t||n)},ne=()=>{if(!e.multiple){const t=re(e.modelValue);return a.selectedLabel=t.currentLabel,void(a.selected=t)}a.selectedLabel="";const t=[];p(e.modelValue)&&e.modelValue.forEach((e=>{t.push(re(e))})),a.selected=t},re=t=>{let n;const r="object"===S(t).toLowerCase(),i="null"===S(t).toLowerCase(),o="undefined"===S(t).toLowerCase();for(let s=a.cachedOptions.size-1;s>=0;s--){const i=U.value[s];if(r?ad(i.value,e.valueKey)===ad(t,e.valueKey):i.value===t){n={value:t,currentLabel:i.currentLabel,get isDisabled(){return i.isDisabled}};break}}if(n)return n;return{value:t,currentLabel:r?t.label:i||o?"":t}},ie=()=>{e.multiple?a.hoveringIndex=G.value.findIndex((e=>a.selected.some((t=>Ce(t)===Ce(e))))):a.hoveringIndex=G.value.findIndex((e=>Ce(e)===Ce(a.selected)))},oe=()=>{a.calculatorWidth=h.value.getBoundingClientRect().width},ae=()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.updatePopper)||t.call(e)},se=()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.updatePopper)||t.call(e)},le=()=>{a.inputValue.length>0&&!k.value&&(k.value=!0),ee(a.inputValue)},ue=t=>{if(a.inputValue=t.target.value,!e.remote)return le();ce()},ce=Oh((()=>{le()}),H.value),de=n=>{Fh(e.modelValue,n)||t(ug,n)},pe=e=>function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return function(e,t,n,r){e.length;for(var i=n+1;i--;)if(t(e[i],i,e))return i;return-1}(e,Sh(t),i)}(e,(e=>!a.disabledOptions.has(e))),he=n=>{n.stopPropagation();const r=e.multiple?[]:D.value;if(e.multiple)for(const e of a.selected)e.isDisabled&&r.push(e.value);t(lg,r),de(r),a.hoveringIndex=-1,k.value=!1,t("clear"),_e()},fe=n=>{if(e.multiple){const r=(e.modelValue||[]).slice(),i=ge(r,n.value);i>-1?r.splice(i,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(n.value),t(lg,r),de(r),n.created&&ee(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(lg,n.value),de(n.value),k.value=!1;_e(),k.value||rn((()=>{ve(n)}))},ge=(t=[],n)=>{if(!b(n))return t.indexOf(n);const r=e.valueKey;let i=-1;return t.some(((e,t)=>wt(ad(e,r))===ad(n,r)&&(i=t,!0))),i},ve=e=>{var t,n,r,o,a;const s=p(e)?e[0]:e;let l=null;if(null==s?void 0:s.value){const e=G.value.filter((e=>e.value===s.value));e.length>0&&(l=e[0].$el)}if(u.value&&l){const e=null==(o=null==(r=null==(n=null==(t=u.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:o.call(r,".".concat(i.be("dropdown","wrap")));e&&function(e,t){if(!rl)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;for(;null!==r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),o=i+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}(e,l)}null==(a=_.value)||a.handleScroll()},{handleCompositionStart:me,handleCompositionUpdate:ye,handleCompositionEnd:be}=function(e){const t=Et(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!vg(r)},handleCompositionEnd:n=>{t.value&&(t.value=!1,v(e)&&e(n))}}}((e=>ue(e))),xe=ia((()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.popperRef)?void 0:t.contentRef})),_e=()=>{var e;null==(e=d.value)||e.focus()},we=e=>{if(k.value=!1,C.value){const t=new FocusEvent("focus",e);rn((()=>M(t)))}},Se=()=>{L.value||(sl&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:k.value=!k.value)},Ce=t=>b(t.value)?ad(t.value,e.valueKey):t.value,Te=ia((()=>G.value.filter((e=>e.visible)).every((e=>e.disabled)))),Me=ia((()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[])),ke=ia((()=>e.multiple&&e.collapseTags?a.selected.slice(e.maxCollapseTags):[])),Ae=e=>{if(k.value){if(0!==a.options.size&&0!==W.value&&!Te.value){"next"===e?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):"prev"===e&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const t=G.value[a.hoveringIndex];!0!==t.disabled&&!0!==t.states.groupDisabled&&t.visible||Ae(e),rn((()=>ve(A.value)))}}else k.value=!0},Ie=ia((()=>{const t=(()=>{if(!l.value)return 0;const e=window.getComputedStyle(l.value);return Number.parseFloat(e.gap||"6px")})(),n=x.value&&1===e.maxCollapseTags?a.selectionWidth-a.collapseItemWidth-t:a.selectionWidth;return{maxWidth:"".concat(n,"px")}})),Ee=ia((()=>({maxWidth:"".concat(a.selectionWidth,"px")}))),Oe=ia((()=>({width:"".concat(Math.max(a.calculatorWidth,11),"px")})));return e.multiple&&!p(e.modelValue)&&t(lg,[]),!e.multiple&&p(e.modelValue)&&t(lg,""),Al(l,(()=>{a.selectionWidth=l.value.getBoundingClientRect().width})),Al(h,oe),Al(m,ae),Al(w,ae),Al(y,se),Al(x,(()=>{a.collapseItemWidth=x.value.getBoundingClientRect().width})),Xn((()=>{ne()})),{inputId:O,contentId:r,nsSelect:i,nsInput:o,states:a,isFocused:C,expanded:k,optionsArray:G,hoverOption:A,selectSize:X,filteredOptionsCount:W,resetCalculatorWidth:oe,updateTooltip:ae,updateTagTooltip:se,debouncedOnInputChange:ce,onInput:ue,deletePrevTag:n=>{if(e.multiple&&n.code!==sg.delete&&n.target.value.length<=0){const n=e.modelValue.slice(),r=pe(n);if(r<0)return;const i=n[r];n.splice(r,1),t(lg,n),de(n),t("remove-tag",i)}},deleteTag:(n,r)=>{const i=a.selected.indexOf(r);if(i>-1&&!L.value){const n=e.modelValue.slice();n.splice(i,1),t(lg,n),de(n),t("remove-tag",r.value)}n.stopPropagation(),_e()},deleteSelected:he,handleOptionSelect:fe,scrollToOption:ve,hasModelValue:R,shouldShowPlaceholder:Z,currentPlaceholder:J,mouseEnterEventName:Q,showClose:B,iconComponent:N,iconReverse:z,validateState:F,validateIcon:V,showNewOption:q,updateOptions:Y,collapseTagSize:K,setSelected:ne,selectDisabled:L,emptyText:j,handleCompositionStart:me,handleCompositionUpdate:ye,handleCompositionEnd:be,onOptionCreate:e=>{a.options.set(e.value,e),a.cachedOptions.set(e.value,e),e.disabled&&a.disabledOptions.set(e.value,e)},onOptionDestroy:(e,t)=>{a.options.get(e)===t&&a.options.delete(e)},handleMenuEnter:()=>{a.isBeforeHide=!1,rn((()=>ve(a.selected)))},handleFocus:T,focus:_e,blur:()=>{we()},handleBlur:M,handleClearClick:e=>{he(e)},handleClickOutside:we,handleEsc:()=>{a.inputValue.length>0?a.inputValue="":k.value=!1},toggleMenu:Se,selectOption:()=>{k.value?G.value[a.hoveringIndex]&&fe(G.value[a.hoveringIndex]):Se()},getValueKey:Ce,navigateOptions:Ae,dropdownMenuVisible:$,showTagList:Me,collapseTagList:ke,tagStyle:Ie,collapseTagStyle:Ee,inputStyle:Oe,popperRef:xe,inputRef:d,tooltipRef:u,tagTooltipRef:c,calculatorRef:h,prefixRef:f,suffixRef:g,selectRef:s,wrapperRef:w,selectionRef:l,scrollbarRef:_,menuRef:m,tagMenuRef:y,collapseItemRef:x}};var dS=sr({name:"ElOptions",setup(e,{slots:t}){const n=Fr(oS);let r=[];return()=>{var e,i;const o=null==(e=t.default)?void 0:e.call(t),a=[];return o.length&&function e(t){p(t)&&t.forEach((t=>{var n,r,i,o;const s=null==(n=(null==t?void 0:t.type)||{})?void 0:n.name;"ElOptionGroup"===s?e(m(t.children)||p(t.children)||!v(null==(r=t.children)?void 0:r.default)?t.children:null==(i=t.children)?void 0:i.default()):"ElOption"===s?a.push(null==(o=t.props)?void 0:o.value):p(t.children)&&e(t.children)}))}(null==(i=o[0])?void 0:i.children),Fh(a,r)||(r=a,n&&(n.states.optionValues=a)),o}}});const pS=Qf({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:wm,effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:jb.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:eg,default:Af},fitInputWidth:Boolean,suffixIcon:{type:eg,default:xf},tagType:{...z_.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:String,values:$g,default:"bottom-start"},fallbackPlacements:{type:Array,default:["bottom-start","top-start","right","left"]},...Mm,...Am(["ariaLabel"])}),hS="ElSelect",fS=["id","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],gS=["textContent"],vS={key:1};var mS=Nm(sr({name:hS,componentName:hS,components:{ElInput:Uy,ElSelectMenu:uS,ElOption:lS,ElOptions:dS,ElTag:V_,ElScrollbar:Qy,ElTooltip:tx,ElIcon:jm},directives:{ClickOutside:Yx},props:pS,emits:[lg,ug,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=cS(e,t);return zr(oS,ht({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),[["render",function(e,t,n,r,i,o){const a=On("el-tag"),s=On("el-tooltip"),l=On("el-icon"),u=On("el-option"),c=On("el-options"),d=On("el-scrollbar"),p=On("el-select-menu"),h=Ln("click-outside");return rr((go(),xo("div",{ref:"selectRef",class:Y([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[P(e.mouseEnterEventName)]:t[16]||(t[16]=t=>e.states.inputHovering=!0),onMouseleave:t[17]||(t[17]=t=>e.states.inputHovering=!1),onClick:t[18]||(t[18]=Ps(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["prevent","stop"]))},[ko(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:"".concat(e.nsSelect.namespace.value,"-zoom-in-top"),"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[15]||(t[15]=t=>e.states.isBeforeHide=!1)},{default:Sn((()=>{var n;return[Mo("div",{ref:"wrapperRef",class:Y([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(go(),xo("div",{key:0,ref:"prefixRef",class:Y(e.nsSelect.e("prefix"))},[cr(e.$slots,"prefix")],2)):Do("v-if",!0),Mo("div",{ref:"selectionRef",class:Y([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?cr(e.$slots,"tag",{key:0},(()=>[(go(!0),xo(lo,null,or(e.showTagList,(t=>(go(),xo("div",{key:e.getValueKey(t),class:Y(e.nsSelect.e("selected-item"))},[ko(a,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:j(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:Sn((()=>[Mo("span",{class:Y(e.nsSelect.e("tags-text"))},[cr(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[Eo(Q(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","style","onClose"])],2)))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(go(),_o(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Sn((()=>[Mo("div",{ref:"collapseItemRef",class:Y(e.nsSelect.e("selected-item"))},[ko(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:j(e.collapseTagStyle)},{default:Sn((()=>[Mo("span",{class:Y(e.nsSelect.e("tags-text"))}," + "+Q(e.states.selected.length-e.maxCollapseTags),3)])),_:1},8,["size","type","style"])],2)])),content:Sn((()=>[Mo("div",{ref:"tagMenuRef",class:Y(e.nsSelect.e("selection"))},[(go(!0),xo(lo,null,or(e.collapseTagList,(t=>(go(),xo("div",{key:e.getValueKey(t),class:Y(e.nsSelect.e("selected-item"))},[ko(a,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Sn((()=>[Mo("span",{class:Y(e.nsSelect.e("tags-text"))},[cr(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[Eo(Q(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","onClose"])],2)))),128))],2)])),_:3},8,["disabled","effect","teleported"])):Do("v-if",!0)])):Do("v-if",!0),e.selectDisabled?Do("v-if",!0):(go(),xo("div",{key:1,class:Y([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[rr(Mo("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=t=>e.states.inputValue=t),type:"text",name:e.name,class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:j(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(n=e.hoverOption)?void 0:n.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeydown:[t[3]||(t[3]=Rs(Ps((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[4]||(t[4]=Rs(Ps((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),t[5]||(t[5]=Rs(Ps(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[6]||(t[6]=Rs(Ps(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[7]||(t[7]=Rs(Ps(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[9]||(t[9]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[10]||(t[10]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onInput:t[11]||(t[11]=(...t)=>e.onInput&&e.onInput(...t)),onClick:t[12]||(t[12]=Ps(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},null,46,fS),[[xs,e.states.inputValue]]),e.filterable?(go(),xo("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(e.nsSelect.e("input-calculator")),textContent:Q(e.states.inputValue)},null,10,gS)):Do("v-if",!0)],2)),e.shouldShowPlaceholder?(go(),xo("div",{key:2,class:Y([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?cr(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},(()=>[Mo("span",null,Q(e.currentPlaceholder),1)])):(go(),xo("span",vS,Q(e.currentPlaceholder),1))],2)):Do("v-if",!0)],2),Mo("div",{ref:"suffixRef",class:Y(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(go(),_o(l,{key:0,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Sn((()=>[(go(),_o(Pn(e.iconComponent)))])),_:1},8,["class"])):Do("v-if",!0),e.showClose&&e.clearIcon?(go(),_o(l,{key:1,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Sn((()=>[(go(),_o(Pn(e.clearIcon)))])),_:1},8,["class","onClick"])):Do("v-if",!0),e.validateState&&e.validateIcon?(go(),_o(l,{key:2,class:Y([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Sn((()=>[(go(),_o(Pn(e.validateIcon)))])),_:1},8,["class"])):Do("v-if",!0)],2)],2)]})),content:Sn((()=>[ko(p,{ref:"menuRef"},{default:Sn((()=>[e.$slots.header?(go(),xo("div",{key:0,class:Y(e.nsSelect.be("dropdown","header")),onClick:t[13]||(t[13]=Ps((()=>{}),["stop"]))},[cr(e.$slots,"header")],2)):Do("v-if",!0),rr(ko(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Y([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Sn((()=>[e.showNewOption?(go(),_o(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Do("v-if",!0),ko(c,null,{default:Sn((()=>[cr(e.$slots,"default")])),_:3})])),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[za,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(go(),xo("div",{key:1,class:Y(e.nsSelect.be("dropdown","loading"))},[cr(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(go(),xo("div",{key:2,class:Y(e.nsSelect.be("dropdown","empty"))},[cr(e.$slots,"empty",{},(()=>[Mo("span",null,Q(e.emptyText),1)]))],2)):Do("v-if",!0),e.$slots.footer?(go(),xo("div",{key:3,class:Y(e.nsSelect.be("dropdown","footer")),onClick:t[14]||(t[14]=Ps((()=>{}),["stop"]))},[cr(e.$slots,"footer")],2)):Do("v-if",!0)])),_:3},512)])),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],16)),[[h,e.handleClickOutside,e.popperRef]])}],["__file","select.vue"]]);var yS=Nm(sr({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Og("select"),n=Et(null),r=jo(),i=Et([]);zr(iS,ht({...Ft(e)}));const o=ia((()=>i.value.some((e=>!0===e.visible)))),a=e=>{const t=bd(e),n=[];return t.forEach((e=>{var t,r;(e=>{var t,n;return"ElOption"===(null==(t=e.type)?void 0:t.name)&&!!(null==(n=e.component)?void 0:n.proxy)})(e)?n.push(e.component.proxy):(null==(t=e.children)?void 0:t.length)?n.push(...a(e.children)):(null==(r=e.component)?void 0:r.subTree)&&n.push(...a(e.component.subTree))})),n},s=()=>{i.value=a(r.subTree)};return Xn((()=>{s()})),Rl(n,s,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}}),[["render",function(e,t,n,r,i,o){return rr((go(),xo("ul",{ref:"groupRef",class:Y(e.ns.be("group","wrap"))},[Mo("li",{class:Y(e.ns.be("group","title"))},Q(e.label),3),Mo("li",null,[Mo("ul",{class:Y(e.ns.b("group"))},[cr(e.$slots,"default")],2)])],2)),[[za,e.visible]])}],["__file","option-group.vue"]]);const bS=og(mS,{Option:lS,OptionGroup:yS}),xS=ag(lS);ag(yS);const _S=()=>Fr(qw,{}),wS=Qf({pageSize:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:dg}}),SS=sr({...sr({name:"ElPaginationSizes"}),props:wS,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Mg(),i=Og("pagination"),o=_S(),a=Et(n.pageSize);Mi((()=>n.pageSizes),((e,r)=>{if(!Fh(e,r)&&Array.isArray(e)){const r=e.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",r)}})),Mi((()=>n.pageSize),(e=>{a.value=e}));const s=ia((()=>n.pageSizes));function l(e){var t;e!==a.value&&(a.value=e,null==(t=o.handleSizeChange)||t.call(o,Number(e)))}return(e,t)=>(go(),xo("span",{class:Y(Lt(i).e("sizes"))},[ko(Lt(bS),{"model-value":a.value,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,teleported:e.teleported,"validate-event":!1,onChange:l},{default:Sn((()=>[(go(!0),xo(lo,null,or(Lt(s),(e=>(go(),_o(Lt(xS),{key:e,value:e,label:e+Lt(r)("el.pagination.pagesize")},null,8,["value","label"])))),128))])),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var CS=Nm(SS,[["__file","sizes.vue"]]);const TS=Qf({size:{type:String,values:dg}}),MS=["disabled"],kS=sr({...sr({name:"ElPaginationJumper"}),props:TS,setup(e){const{t:t}=Mg(),n=Og("pagination"),{pageCount:r,disabled:i,currentPage:o,changeEvent:a}=_S(),s=Et(),l=ia((()=>{var e;return null!=(e=s.value)?e:null==o?void 0:o.value}));function u(e){s.value=e?+e:""}function c(e){e=Math.trunc(+e),null==a||a(e),s.value=void 0}return(e,o)=>(go(),xo("span",{class:Y(Lt(n).e("jump")),disabled:Lt(i)},[Mo("span",{class:Y([Lt(n).e("goto")])},Q(Lt(t)("el.pagination.goto")),3),ko(Lt(Uy),{size:e.size,class:Y([Lt(n).e("editor"),Lt(n).is("in-pagination")]),min:1,max:Lt(r),disabled:Lt(i),"model-value":Lt(l),"validate-event":!1,"aria-label":Lt(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),Mo("span",{class:Y([Lt(n).e("classifier")])},Q(Lt(t)("el.pagination.pageClassifier")),3)],10,MS))}});var AS=Nm(kS,[["__file","jumper.vue"]]);const IS=Qf({total:{type:Number,default:1e3}}),ES=["disabled"],OS=sr({...sr({name:"ElPaginationTotal"}),props:IS,setup(e){const{t:t}=Mg(),n=Og("pagination"),{disabled:r}=_S();return(e,i)=>(go(),xo("span",{class:Y(Lt(n).e("total")),disabled:Lt(r)},Q(Lt(t)("el.pagination.total",{total:e.total})),11,ES))}});var DS=Nm(OS,[["__file","total.vue"]]);const PS=Qf({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),LS=["onKeyup"],RS=["aria-current","aria-label","tabindex"],BS=["tabindex","aria-label"],NS=["aria-current","aria-label","tabindex"],zS=["tabindex","aria-label"],FS=["aria-current","aria-label","tabindex"],VS=sr({...sr({name:"ElPaginationPager"}),props:PS,emits:["change"],setup(e,{emit:t}){const n=e,r=Og("pager"),i=Og("icon"),{t:o}=Mg(),a=Et(!1),s=Et(!1),l=Et(!1),u=Et(!1),c=Et(!1),d=Et(!1),p=ia((()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),i=Number(n.pageCount);let o=!1,a=!1;i>e&&(r>e-t&&(o=!0),r<i-t&&(a=!0));const s=[];if(o&&!a){for(let t=i-(e-2);t<i;t++)s.push(t)}else if(!o&&a)for(let n=2;n<e;n++)s.push(n);else if(o&&a){const t=Math.floor(e/2)-1;for(let e=r-t;e<=r+t;e++)s.push(e)}else for(let n=2;n<i;n++)s.push(n);return s})),h=ia((()=>["more","btn-quickprev",i.b(),r.is("disabled",n.disabled)])),f=ia((()=>["more","btn-quicknext",i.b(),r.is("disabled",n.disabled)])),g=ia((()=>n.disabled?-1:0));function v(e=!1){n.disabled||(e?l.value=!0:u.value=!0)}function m(e=!1){e?c.value=!0:d.value=!0}function y(e){const r=e.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const e=Number(r.textContent);e!==n.currentPage&&t("change",e)}else"li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("more")&&b(e)}function b(e){const r=e.target;if("ul"===r.tagName.toLowerCase()||n.disabled)return;let i=Number(r.textContent);const o=n.pageCount,a=n.currentPage,s=n.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?i=a-s:r.className.includes("quicknext")&&(i=a+s)),Number.isNaN(+i)||(i<1&&(i=1),i>o&&(i=o)),i!==a&&t("change",i)}return wi((()=>{const e=(n.pagerCount-1)/2;a.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-e&&(a.value=!0),n.currentPage<n.pageCount-e&&(s.value=!0))})),(e,t)=>(go(),xo("ul",{class:Y(Lt(r).b()),onClick:b,onKeyup:Rs(y,["enter"])},[e.pageCount>0?(go(),xo("li",{key:0,class:Y([[Lt(r).is("active",1===e.currentPage),Lt(r).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":Lt(o)("el.pagination.currentPage",{pager:1}),tabindex:Lt(g)}," 1 ",10,RS)):Do("v-if",!0),a.value?(go(),xo("li",{key:1,class:Y(Lt(h)),tabindex:Lt(g),"aria-label":Lt(o)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>v(!0)),onMouseleave:t[1]||(t[1]=e=>l.value=!1),onFocus:t[2]||(t[2]=e=>m(!0)),onBlur:t[3]||(t[3]=e=>c.value=!1)},[!l.value&&!c.value||e.disabled?(go(),_o(Lt(zf),{key:1})):(go(),_o(Lt(Of),{key:0}))],42,BS)):Do("v-if",!0),(go(!0),xo(lo,null,or(Lt(p),(t=>(go(),xo("li",{key:t,class:Y([[Lt(r).is("active",e.currentPage===t),Lt(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":Lt(o)("el.pagination.currentPage",{pager:t}),tabindex:Lt(g)},Q(t),11,NS)))),128)),s.value?(go(),xo("li",{key:2,class:Y(Lt(f)),tabindex:Lt(g),"aria-label":Lt(o)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>v()),onMouseleave:t[5]||(t[5]=e=>u.value=!1),onFocus:t[6]||(t[6]=e=>m()),onBlur:t[7]||(t[7]=e=>d.value=!1)},[!u.value&&!d.value||e.disabled?(go(),_o(Lt(zf),{key:1})):(go(),_o(Lt(Df),{key:0}))],42,zS)):Do("v-if",!0),e.pageCount>1?(go(),xo("li",{key:3,class:Y([[Lt(r).is("active",e.currentPage===e.pageCount),Lt(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":Lt(o)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:Lt(g)},Q(e.pageCount),11,FS)):Do("v-if",!0)],42,LS))}});var HS=Nm(VS,[["__file","pager.vue"]]);const jS=e=>"number"!=typeof e,WS=Qf({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>$h(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2==1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:eg,default:()=>_f},nextText:{type:String,default:""},nextIcon:{type:eg,default:()=>wf},teleported:{type:Boolean,default:!0},small:Boolean,size:wm,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),GS="ElPagination";var US=sr({name:GS,props:WS,emits:{"update:current-page":e=>$h(e),"update:page-size":e=>$h(e),"size-change":e=>$h(e),change:(e,t)=>$h(e)&&$h(t),"current-change":e=>$h(e),"prev-click":e=>$h(e),"next-click":e=>$h(e)},setup(e,{emit:t,slots:n}){const{t:r}=Mg(),i=Og("pagination"),o=jo().vnode.props||{},a=ia((()=>e.small?"small":null==e?void 0:e.size));xg({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},ia((()=>!!e.small)));const s="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,l="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,u=ia((()=>{if(jS(e.total)&&jS(e.pageCount))return!1;if(!jS(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes"))if(jS(e.pageCount)){if(!jS(e.total)&&!jS(e.pageSize)&&!l)return!1}else if(!l)return!1;return!0})),c=Et(jS(e.defaultPageSize)?10:e.defaultPageSize),d=Et(jS(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=ia({get:()=>jS(e.pageSize)?c.value:e.pageSize,set(n){jS(e.pageSize)&&(c.value=n),l&&(t("update:page-size",n),t("size-change",n))}}),h=ia((()=>{let t=0;return jS(e.pageCount)?jS(e.total)||(t=Math.max(1,Math.ceil(e.total/p.value))):t=e.pageCount,t})),f=ia({get:()=>jS(e.currentPage)?d.value:e.currentPage,set(n){let r=n;n<1?r=1:n>h.value&&(r=h.value),jS(e.currentPage)&&(d.value=r),s&&(t("update:current-page",r),t("current-change",r))}});function g(e){f.value=e}function v(){e.disabled||(f.value-=1,t("prev-click",f.value))}function m(){e.disabled||(f.value+=1,t("next-click",f.value))}function y(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return Mi(h,(e=>{f.value>e&&(f.value=e)})),Mi([f,p],(e=>{t("change",...e)}),{flush:"post"}),zr(qw,{pageCount:h,disabled:ia((()=>e.disabled)),currentPage:f,changeEvent:g,handleSizeChange:function(e){p.value=e;const t=h.value;f.value>t&&(f.value=t)}}),()=>{var t,o;if(!u.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout)return null;if(e.hideOnSinglePage&&h.value<=1)return null;const s=[],l=[],c=aa("div",{class:i.e("rightwrapper")},l),d={prev:aa(Jw,{disabled:e.disabled,currentPage:f.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:v}),jumper:aa(AS,{size:a.value}),pager:aa(HS,{currentPage:f.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:aa(rS,{disabled:e.disabled,currentPage:f.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:aa(CS,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value}),slot:null!=(o=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?o:null,total:aa(DS,{total:jS(e.total)?0:e.total})},b=e.layout.split(",").map((e=>e.trim()));let x=!1;return b.forEach((e=>{"->"!==e?x?l.push(d[e]):s.push(d[e]):x=!0})),y(s[0],i.is("first")),y(s[s.length-1],i.is("last")),x&&l.length>0&&(y(l[0],i.is("first")),y(l[l.length-1],i.is("last")),s.push(c)),aa("div",{class:[i.b(),i.is("background",e.background),i.m(a.value)]},s)}}});const qS=og(US),YS=Qf({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:()=>["","",""]},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:[Array,Object],default:()=>[Gf,Gf,Gf]},voidIcon:{type:eg,default:()=>Uf},disabledVoidIcon:{type:eg,default:()=>Gf},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Array,default:()=>["Extremely bad","Disappointed","Fair","Satisfied","Surprise"]},scoreTemplate:{type:String,default:"{value}"},size:wm,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1},...Am(["ariaLabel"])}),XS={[ug]:e=>$h(e),[lg]:e=>$h(e)},KS=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],$S=["onMousemove","onClick"],ZS=sr({...sr({name:"ElRate"}),props:YS,emits:XS,setup(e,{expose:t,emit:n}){const r=e;function i(e,t){const n=e=>b(e),r=Object.keys(t).map((e=>+e)).filter((r=>{const i=t[r];return!!n(i)&&i.excluded?e<r:e<=r})).sort(((e,t)=>e-t)),i=t[r[0]];return n(i)&&i.value||i}const o=Fr(Wm,void 0),a=Fr(Gm,void 0),s=Um(),l=Og("rate"),{inputId:u,isLabeledByFormItem:c}=Xm(r,{formItemContext:a}),d=Et(r.modelValue),h=Et(-1),f=Et(!0),g=ia((()=>[l.b(),l.m(s.value)])),v=ia((()=>r.disabled||(null==o?void 0:o.disabled))),y=ia((()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":S.value}))),x=ia((()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?"".concat(r.modelValue):"".concat(d.value)):r.showText&&(e=r.texts[Math.ceil(d.value)-1]),e})),_=ia((()=>100*r.modelValue-100*Math.floor(r.modelValue))),w=ia((()=>p(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors)),S=ia((()=>{const e=i(d.value,w.value);return b(e)?"":e})),C=ia((()=>{let e="";return v.value?e="".concat(_.value,"%"):r.allowHalf&&(e="50%"),{color:S.value,width:e}})),T=ia((()=>{let e=p(r.icons)?[...r.icons]:{...r.icons};return e=St(e),p(e)?{[r.lowThreshold]:e[0],[r.highThreshold]:{value:e[1],excluded:!0},[r.max]:e[2]}:e})),M=ia((()=>i(r.modelValue,T.value))),k=ia((()=>v.value?m(r.disabledVoidIcon)?r.disabledVoidIcon:St(r.disabledVoidIcon):m(r.voidIcon)?r.voidIcon:St(r.voidIcon))),A=ia((()=>i(d.value,T.value)));function I(e){const t=v.value&&_.value>0&&e-1<r.modelValue&&e>r.modelValue,n=r.allowHalf&&f.value&&e-.5<=d.value&&e>d.value;return t||n}function E(e){r.clearable&&e===r.modelValue&&(e=0),n(lg,e),r.modelValue!==e&&n("change",e)}function O(e){if(v.value)return;let t=d.value;const i=e.code;return i===sg.up||i===sg.right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):i!==sg.left&&i!==sg.down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(lg,t),n("change",t),t}function D(e,t){if(!v.value){if(r.allowHalf&&t){let n=t.target;uf(n,l.e("item"))&&(n=n.querySelector(".".concat(l.e("icon")))),(0===n.clientWidth||uf(n,l.e("decimal")))&&(n=n.parentNode),f.value=2*t.offsetX<=n.clientWidth,d.value=f.value?e-.5:e}else d.value=e;h.value=e}}function P(){v.value||(r.allowHalf&&(f.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,h.value=-1)}return Mi((()=>r.modelValue),(e=>{d.value=e,f.value=r.modelValue!==Math.floor(r.modelValue)})),r.modelValue||n(lg,0),xg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-rate",ref:"https://element-plus.org/en-US/component/rate.html"},ia((()=>!!r.label))),t({setCurrentValue:D,resetCurrentValue:P}),(e,t)=>{var n;return go(),xo("div",{id:Lt(u),class:Y([Lt(g),Lt(l).is("disabled",Lt(v))]),role:"slider","aria-label":Lt(c)?void 0:e.label||e.ariaLabel||"rating","aria-labelledby":Lt(c)?null==(n=Lt(a))?void 0:n.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":Lt(x)||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:j(Lt(y)),onKeydown:O},[(go(!0),xo(lo,null,or(e.max,((e,t)=>(go(),xo("span",{key:t,class:Y(Lt(l).e("item")),onMousemove:t=>D(e,t),onMouseleave:P,onClick:t=>{return n=e,void(v.value||(r.allowHalf&&f.value?E(d.value):E(n)));var n}},[ko(Lt(jm),{class:Y([Lt(l).e("icon"),{hover:h.value===e},Lt(l).is("active",e<=d.value)])},{default:Sn((()=>[I(e)?Do("v-if",!0):(go(),xo(lo,{key:0},[rr((go(),_o(Pn(Lt(A)),null,null,512)),[[za,e<=d.value]]),rr((go(),_o(Pn(Lt(k)),null,null,512)),[[za,!(e<=d.value)]])],64)),I(e)?(go(),xo(lo,{key:1},[(go(),_o(Pn(Lt(k)),{class:Y([Lt(l).em("decimal","box")])},null,8,["class"])),ko(Lt(jm),{style:j(Lt(C)),class:Y([Lt(l).e("icon"),Lt(l).e("decimal")])},{default:Sn((()=>[(go(),_o(Pn(Lt(M))))])),_:1},8,["style","class"])],64)):Do("v-if",!0)])),_:2},1032,["class"])],42,$S)))),128)),e.showText||e.showScore?(go(),xo("span",{key:0,class:Y(Lt(l).e("text")),style:j({color:e.textColor})},Q(Lt(x)),7)):Do("v-if",!0)],46,KS)}}});const JS=og(Nm(ZS,[["__file","rate.vue"]])),QS=sr({name:"ElSpaceItem",props:Qf({prefixCls:{type:String}}),setup(e,{slots:t}){const n=Og("space"),r=ia((()=>"".concat(e.prefixCls||n.b(),"__item")));return()=>aa("div",{class:r.value},cr(t,"default"))}}),eC={small:8,default:12,large:16};const tC=og(sr({name:"ElSpace",props:Qf({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:[String,Object,Array],default:""},style:{type:[String,Array,Object],default:""},alignment:{type:String,default:"center"},prefixCls:{type:String},spacer:{type:[Object,String,Number,Array],default:null,validator:e=>wo(e)||$h(e)||m(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:dg,validator:e=>$h(e)||p(e)&&2===e.length&&e.every($h)}}),setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:i}=function(e){const t=Og("space"),n=ia((()=>[t.b(),t.m(e.direction),e.class])),r=Et(0),i=Et(0),o=ia((()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:"".concat(i.value,"px"),columnGap:"".concat(r.value,"px")},e.style])),a=ia((()=>e.fill?{flexGrow:1,minWidth:"".concat(e.fillRatio,"%")}:{}));return wi((()=>{const{size:t="small",wrap:n,direction:o,fill:a}=e;if(p(t)){const[e=0,n=0]=t;r.value=e,i.value=n}else{let e;e=$h(t)?t:eC[t||"small"]||eC.small,(n||a)&&"horizontal"===o?r.value=i.value=e:"horizontal"===o?(r.value=e,i.value=0):(i.value=e,r.value=0)}})),{classes:n,containerStyle:o,itemStyle:a}}(e);function o(t,n="",r=[]){const{prefixCls:a}=e;return t.forEach(((e,t)=>{hg(e)?p(e.children)&&e.children.forEach(((e,t)=>{hg(e)&&p(e.children)?o(e.children,"".concat(n+t,"-"),r):r.push(ko(QS,{style:i.value,prefixCls:a,key:"nested-".concat(n+t)},{default:()=>[e]},pg.PROPS|pg.STYLE,["style","prefixCls"]))})):fg(e)&&r.push(ko(QS,{style:i.value,prefixCls:a,key:"LoopKey".concat(n+t)},{default:()=>[e]},pg.PROPS|pg.STYLE,["style","prefixCls"]))})),r}return()=>{var a;const{spacer:s,direction:l}=e,u=cr(t,"default",{key:0},(()=>[]));if(0===(null!=(a=u.children)?a:[]).length)return null;if(p(u.children)){let e=o(u.children);if(s){const t=e.length-1;e=e.reduce(((e,n,r)=>{const o=[...e,n];return r!==t&&o.push(ko("span",{style:[i.value,"vertical"===l?"width: 100%":null],key:r},[wo(s)?s:Eo(s,pg.TEXT)],pg.STYLE)),o}),[])}return ko("div",{class:n.value,style:r.value},e,pg.STYLE|pg.CLASS)}return u.children}}})),nC=Qf({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:e=>["",...dg].includes(e)},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:eg},activeActionIcon:{type:eg},activeIcon:{type:eg},inactiveIcon:{type:eg},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Function},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0},...Am(["ariaLabel"])}),rC={[lg]:e=>Kh(e)||m(e)||$h(e),[ug]:e=>Kh(e)||m(e)||$h(e),[cg]:e=>Kh(e)||m(e)||$h(e)},iC=["onClick"],oC=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],aC=["aria-hidden"],sC=["aria-hidden"],lC=["aria-hidden"],uC="ElSwitch";const cC=og(Nm(sr({...sr({name:uC}),props:nC,emits:rC,setup(e,{expose:t,emit:n}){const r=e,{formItem:i}=Ym(),o=Um(),a=Og("switch"),{inputId:s}=Xm(r,{formItemContext:i}),l=qm(ia((()=>r.loading))),u=Et(!1!==r.modelValue),c=Et(),d=Et(),p=ia((()=>[a.b(),a.m(o.value),a.is("disabled",l.value),a.is("checked",m.value)])),h=ia((()=>[a.e("label"),a.em("label","left"),a.is("active",!m.value)])),f=ia((()=>[a.e("label"),a.em("label","right"),a.is("active",m.value)])),g=ia((()=>({width:hf(r.width)})));Mi((()=>r.modelValue),(()=>{u.value=!0}));const v=ia((()=>!!u.value&&r.modelValue)),m=ia((()=>v.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(v.value)||(n(lg,r.inactiveValue),n(ug,r.inactiveValue),n(cg,r.inactiveValue)),Mi(m,(e=>{var t;c.value.checked=e,r.validateEvent&&(null==(t=null==i?void 0:i.validate)||t.call(i,"change").catch((e=>{})))}));const y=()=>{const e=m.value?r.inactiveValue:r.activeValue;n(lg,e),n(ug,e),n(cg,e),rn((()=>{c.value.checked=m.value}))},b=()=>{if(l.value)return;const{beforeChange:e}=r;if(!e)return void y();const t=e();[x(t),Kh(t)].includes(!0)||sf(uC,"beforeChange must return type `Promise<boolean>` or `boolean`"),x(t)?t.then((e=>{e&&y()})).catch((e=>{})):t&&y()};return Xn((()=>{c.value.checked=m.value})),xg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-switch",ref:"https://element-plus.org/en-US/component/switch.html"},ia((()=>!!r.label))),t({focus:()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.focus)||t.call(e)},checked:m}),(e,t)=>(go(),xo("div",{class:Y(Lt(p)),onClick:Ps(b,["prevent"])},[Mo("input",{id:Lt(s),ref_key:"input",ref:c,class:Y(Lt(a).e("input")),type:"checkbox",role:"switch","aria-checked":Lt(m),"aria-disabled":Lt(l),"aria-label":e.label||e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Lt(l),tabindex:e.tabindex,onChange:y,onKeydown:Rs(b,["enter"])},null,42,oC),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Do("v-if",!0):(go(),xo("span",{key:0,class:Y(Lt(h))},[e.inactiveIcon?(go(),_o(Lt(jm),{key:0},{default:Sn((()=>[(go(),_o(Pn(e.inactiveIcon)))])),_:1})):Do("v-if",!0),!e.inactiveIcon&&e.inactiveText?(go(),xo("span",{key:1,"aria-hidden":Lt(m)},Q(e.inactiveText),9,aC)):Do("v-if",!0)],2)),Mo("span",{ref_key:"core",ref:d,class:Y(Lt(a).e("core")),style:j(Lt(g))},[e.inlinePrompt?(go(),xo("div",{key:0,class:Y(Lt(a).e("inner"))},[e.activeIcon||e.inactiveIcon?(go(),_o(Lt(jm),{key:0,class:Y(Lt(a).is("icon"))},{default:Sn((()=>[(go(),_o(Pn(Lt(m)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?(go(),xo("span",{key:1,class:Y(Lt(a).is("text")),"aria-hidden":!Lt(m)},Q(Lt(m)?e.activeText:e.inactiveText),11,sC)):Do("v-if",!0)],2)):Do("v-if",!0),Mo("div",{class:Y(Lt(a).e("action"))},[e.loading?(go(),_o(Lt(jm),{key:0,class:Y(Lt(a).is("loading"))},{default:Sn((()=>[ko(Lt(Bf))])),_:1},8,["class"])):Lt(m)?cr(e.$slots,"active-action",{key:1},(()=>[e.activeActionIcon?(go(),_o(Lt(jm),{key:0},{default:Sn((()=>[(go(),_o(Pn(e.activeActionIcon)))])),_:1})):Do("v-if",!0)])):Lt(m)?Do("v-if",!0):cr(e.$slots,"inactive-action",{key:2},(()=>[e.inactiveActionIcon?(go(),_o(Lt(jm),{key:0},{default:Sn((()=>[(go(),_o(Pn(e.inactiveActionIcon)))])),_:1})):Do("v-if",!0)]))],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Do("v-if",!0):(go(),xo("span",{key:1,class:Y(Lt(f))},[e.activeIcon?(go(),_o(Lt(jm),{key:0},{default:Sn((()=>[(go(),_o(Pn(e.activeIcon)))])),_:1})):Do("v-if",!0),!e.activeIcon&&e.activeText?(go(),xo("span",{key:1,"aria-hidden":!Lt(m)},Q(e.activeText),9,lC)):Do("v-if",!0)],2))],10,iC))}}),[["__file","switch.vue"]])),dC=function(e){var t;return null==(t=e.target)?void 0:t.closest("td")},pC=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;const o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((t=>"string"==typeof t?ad(n,t):t(n,r,e)))):("$key"!==t&&b(n)&&"$value"in n&&(n=n.$value),[b(n)?ad(n,t):n])};return e.map(((e,t)=>({value:e,index:t,key:o?o(e,t):null}))).sort(((e,t)=>{let i=function(e,t){if(r)return r(e.value,t.value);for(let n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return i||(i=e.index-t.index),i*+n})).map((e=>e.value))},hC=function(e,t){let n=null;return e.columns.forEach((e=>{e.id===t&&(n=e)})),n},fC=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const i=e.columns[r];if(i.columnKey===t){n=i;break}}return n||sf("ElTable","No column matching with column-key: ".concat(t)),n},gC=function(e,t,n){const r=(t.className||"").match(new RegExp("".concat(n,"-table_[^\\s]+"),"gm"));return r?hC(e,r[0]):null},vC=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!t.includes("."))return"".concat(e[t]);const n=t.split(".");let r=e;for(const e of n)r=r[e];return"".concat(r)}if("function"==typeof t)return t.call(null,e)},mC=function(e,t){const n={};return(e||[]).forEach(((e,r)=>{n[vC(e,t)]={row:e,index:r}})),n};function yC(e){return""===e||void 0!==e&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function bC(e){return""===e||void 0!==e&&(e=yC(e),Number.isNaN(e)&&(e=80)),e}function xC(e,t,n){let r=!1;const i=e.indexOf(t),o=-1!==i,a=a=>{"add"===a?e.push(t):e.splice(i,1),r=!0,p(t.children)&&t.children.forEach((t=>{xC(e,t,null!=n?n:!o)}))};return Kh(n)?n&&!o?a("add"):!n&&o&&a("remove"):a(o?"remove":"add"),r}function _C(e,t,n="children",r="hasChildren"){const i=e=>!(Array.isArray(e)&&e.length);function o(e,a,s){t(e,a,s),a.forEach((e=>{if(e[r])return void t(e,null,s+1);const a=e[n];i(a)||o(e,a,s+1)}))}e.forEach((e=>{if(e[r])return void t(e,null,0);const a=e[n];i(a)||o(e,a,0)}))}let wC=null;function SC(e){return e.children?Nh(e.children,SC):[e]}function CC(e,t){return e+t.colSpan}const TC=(e,t,n,r)=>{let i=0,o=e;const a=n.states.columns.value;if(r){const t=SC(r[e]);i=a.slice(0,a.indexOf(t[0])).reduce(CC,0),o=i+t.reduce(CC,0)-1}else i=e;let s;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:o<n.states.fixedLeafColumnsLength.value?s="left":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:o}:{}},MC=(e,t,n,r,i,o=0)=>{const a=[],{direction:s,start:l,after:u}=TC(t,n,r,i);if(s){const t="left"===s;a.push("".concat(e,"-fixed-column--").concat(s)),t&&u+o===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):t||l-o!=r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||a.push("is-first-column")}return a};function kC(e,t){return e+(null===t.realWidth||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const AC=(e,t,n,r)=>{const{direction:i,start:o=0,after:a=0}=TC(e,t,n,r);if(!i)return;const s={},l="left"===i,u=n.states.columns.value;return l?s.left=u.slice(0,o).reduce(kC,0):s.right=u.slice(a+1).reverse().reduce(kC,0),s},IC=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]="".concat(e[t],"px")))};const EC=(e,t)=>{const n=t.sortingColumn;return n&&"string"!=typeof n.sortable?pC(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},OC=e=>{const t=[];return e.forEach((e=>{e.children&&e.children.length>0?t.push.apply(t,OC(e.children)):t.push(e)})),t};function DC(){var e;const t=jo(),{size:n}=Ft(null==(e=t.proxy)?void 0:e.$props),r=Et(null),i=Et([]),o=Et([]),a=Et(!1),s=Et([]),l=Et([]),u=Et([]),c=Et([]),p=Et([]),h=Et([]),f=Et([]),g=Et([]),v=Et(0),m=Et(0),y=Et(0),b=Et(!1),x=Et([]),_=Et(!1),w=Et(!1),S=Et(null),C=Et({}),T=Et(null),M=Et(null),k=Et(null),A=Et(null),I=Et(null);Mi(i,(()=>t.state&&D(!1)),{deep:!0});const E=e=>{var t;null==(t=e.children)||t.forEach((t=>{t.fixed=e.fixed,E(t)}))},O=()=>{s.value.forEach((e=>{E(e)})),c.value=s.value.filter((e=>!0===e.fixed||"left"===e.fixed)),p.value=s.value.filter((e=>"right"===e.fixed)),c.value.length>0&&s.value[0]&&"selection"===s.value[0].type&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const e=s.value.filter((e=>!e.fixed));l.value=[].concat(c.value).concat(e).concat(p.value);const t=OC(e),n=OC(c.value),r=OC(p.value);v.value=t.length,m.value=n.length,y.value=r.length,u.value=[].concat(n).concat(t).concat(r),a.value=c.value.length>0||p.value.length>0},D=(e,n=!1)=>{e&&O(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},P=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let i=0;const o=null==(n=r.value[e])?void 0:n.children;return o&&(i+=o.length,o.forEach((e=>{i+=P(e)}))),i},L=(e,t,n)=>{M.value&&M.value!==e&&(M.value.order=null),M.value=e,k.value=t,A.value=n},R=()=>{let e=Lt(o);Object.keys(C.value).forEach((t=>{const n=C.value[t];if(!n||0===n.length)return;const r=hC({columns:u.value},t);r&&r.filterMethod&&(e=e.filter((e=>n.some((t=>r.filterMethod.call(null,t,e,r))))))})),T.value=e},B=()=>{i.value=EC(T.value,{sortingColumn:M.value,sortProp:k.value,sortOrder:A.value})},{setExpandRowKeys:N,toggleRowExpansion:z,updateExpandRows:F,states:V,isRowExpanded:H}=function(e){const t=jo(),n=Et(!1),r=Et([]);return{updateExpandRows:()=>{const t=e.data.value||[],i=e.rowKey.value;if(n.value)r.value=t.slice();else if(i){const e=mC(r.value,i);r.value=t.reduce(((t,n)=>{const r=vC(n,i);return e[r]&&t.push(n),t}),[])}else r.value=[]},toggleRowExpansion:(e,n)=>{xC(r.value,e,n)&&t.emit("expand-change",e,r.value.slice())},setExpandRowKeys:n=>{t.store.assertRowKey();const i=e.data.value||[],o=e.rowKey.value,a=mC(i,o);r.value=n.reduce(((e,t)=>{const n=a[t];return n&&e.push(n.row),e}),[])},isRowExpanded:t=>{const n=e.rowKey.value;return n?!!mC(r.value,n)[vC(t,n)]:r.value.includes(t)},states:{expandRows:r,defaultExpandAll:n}}}({data:i,rowKey:r}),{updateTreeExpandKeys:j,toggleTreeExpansion:W,updateTreeData:G,loadOrToggle:U,states:q}=function(e){const t=Et([]),n=Et({}),r=Et(16),i=Et(!1),o=Et({}),a=Et("hasChildren"),s=Et("children"),l=jo(),u=ia((()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return d(t)})),c=ia((()=>{const t=e.rowKey.value,n=Object.keys(o.value),r={};return n.length?(n.forEach((e=>{if(o.value[e].length){const n={children:[]};o.value[e].forEach((e=>{const i=vC(e,t);n.children.push(i),e[a.value]&&!r[i]&&(r[i]={children:[]})})),r[e]=n}})),r):r})),d=t=>{const n=e.rowKey.value,r={};return _C(t,((e,t,o)=>{const a=vC(e,n);Array.isArray(t)?r[a]={children:t.map((e=>vC(e,n))),level:o}:i.value&&(r[a]={children:[],lazy:!0,level:o})}),s.value,a.value),r},p=(e=!1,r=(e=>null==(e=l.store)?void 0:e.states.defaultExpandAll.value)())=>{var o;const a=u.value,s=c.value,d=Object.keys(a),p={};if(d.length){const o=Lt(n),l=[],u=(n,i)=>{if(e)return t.value?r||t.value.includes(i):!(!r&&!(null==n?void 0:n.expanded));{const e=r||t.value&&t.value.includes(i);return!(!(null==n?void 0:n.expanded)&&!e)}};d.forEach((e=>{const t=o[e],n={...a[e]};if(n.expanded=u(t,e),n.lazy){const{loaded:r=!1,loading:i=!1}=t||{};n.loaded=!!r,n.loading=!!i,l.push(e)}p[e]=n}));const c=Object.keys(s);i.value&&c.length&&l.length&&c.forEach((e=>{const t=o[e],n=s[e].children;if(l.includes(e)){if(0!==p[e].children.length)throw new Error("[ElTable]children must be an empty array.");p[e].children=n}else{const{loaded:r=!1,loading:i=!1}=t||{};p[e]={lazy:!0,loaded:!!r,loading:!!i,expanded:u(t,e),children:n,level:""}}}))}n.value=p,null==(o=l.store)||o.updateTableScrollY()};Mi((()=>t.value),(()=>{p(!0)})),Mi((()=>u.value),(()=>{p()})),Mi((()=>c.value),(()=>{p()}));const h=(t,r)=>{l.store.assertRowKey();const i=e.rowKey.value,o=vC(t,i),a=o&&n.value[o];if(o&&a&&"expanded"in a){const e=a.expanded;r=void 0===r?!a.expanded:r,n.value[o].expanded=r,e!==r&&l.emit("expand-change",t,r),l.store.updateTableScrollY()}},f=(e,t,r)=>{const{load:i}=l.props;i&&!n.value[t].loaded&&(n.value[t].loading=!0,i(e,r,(r=>{if(!Array.isArray(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(o.value[t]=r),l.emit("expand-change",e,!0)})))};return{loadData:f,loadOrToggle:t=>{l.store.assertRowKey();const r=e.rowKey.value,o=vC(t,r),a=n.value[o];i.value&&a&&"loaded"in a&&!a.loaded?f(t,o,a):h(t,void 0)},toggleTreeExpansion:h,updateTreeExpandKeys:e=>{t.value=e,p()},updateTreeData:p,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:s}}}({data:i,rowKey:r}),{updateCurrentRowData:Y,updateCurrentRow:X,setCurrentRowKey:K,states:$}=function(e){const t=jo(),n=Et(null),r=Et(null),i=()=>{n.value=null},o=n=>{const{data:i,rowKey:o}=e;let a=null;o.value&&(a=(Lt(i)||[]).find((e=>vC(e,o.value)===n))),r.value=a,t.emit("current-change",r.value,null)};return{setCurrentRowKey:e=>{t.store.assertRowKey(),n.value=e,o(e)},restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},updateCurrentRowData:()=>{const a=e.rowKey.value,s=e.data.value||[],l=r.value;if(!s.includes(l)&&l){if(a){const e=vC(l,a);o(e)}else r.value=null;null===r.value&&t.emit("current-change",null,l)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}({data:i,rowKey:r});return{assertRowKey:()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:O,scheduleLayout:D,isSelected:e=>x.value.includes(e),clearSelection:()=>{b.value=!1;const e=x.value;x.value=[],e.length&&t.emit("selection-change",[])},cleanSelection:()=>{let e;if(r.value){e=[];const t=mC(x.value,r.value),n=mC(i.value,r.value);for(const r in t)d(t,r)&&!n[r]&&e.push(t[r].row)}else e=x.value.filter((e=>!i.value.includes(e)));if(e.length){const n=x.value.filter((t=>!e.includes(t)));x.value=n,t.emit("selection-change",n.slice())}},getSelectionRows:()=>(x.value||[]).slice(),toggleRowSelection:(e,n=void 0,r=!0)=>{if(xC(x.value,e,n)){const n=(x.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},_toggleAllSelection:()=>{var e,n;const r=w.value?!b.value:!(b.value||x.value.length);b.value=r;let o=!1,a=0;const s=null==(n=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:n.rowKey.value;i.value.forEach(((e,t)=>{const n=t+a;S.value?S.value.call(null,e,n)&&xC(x.value,e,r)&&(o=!0):xC(x.value,e,r)&&(o=!0),a+=P(vC(e,s))})),o&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",(x.value||[]).slice())},toggleAllSelection:null,updateSelectionByRowKey:()=>{const e=mC(x.value,r.value);i.value.forEach((t=>{const n=vC(t,r.value),i=e[n];i&&(x.value[i.index]=t)}))},updateAllSelected:()=>{var e,n,o;if(0===(null==(e=i.value)?void 0:e.length))return void(b.value=!1);let a;r.value&&(a=mC(x.value,r.value));let s=!0,l=0,u=0;for(let d=0,p=(i.value||[]).length;d<p;d++){const e=null==(o=null==(n=null==t?void 0:t.store)?void 0:n.states)?void 0:o.rowKey.value,p=d+u,h=i.value[d],f=S.value&&S.value.call(null,h,p);if(c=h,a?a[vC(c,r.value)]:x.value.includes(c))l++;else if(!S.value||f){s=!1;break}u+=P(vC(h,e))}var c;0===l&&(s=!1),b.value=s},updateFilters:(e,t)=>{Array.isArray(e)||(e=[e]);const n={};return e.forEach((e=>{C.value[e.id]=t,n[e.columnKey||e.id]=t})),n},updateCurrentRow:X,updateSort:L,execFilter:R,execSort:B,execQuery:(e=void 0)=>{e&&e.filter||R(),B()},clearFilter:e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=Object.assign({},n.filterPanels),i=Object.keys(r);if(i.length)if("string"==typeof e&&(e=[e]),Array.isArray(e)){const n=e.map((e=>fC({columns:u.value},e)));i.forEach((e=>{const t=n.find((t=>t.id===e));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else i.forEach((e=>{const t=u.value.find((t=>t.id===e));t&&(t.filteredValue=[])})),C.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:()=>{M.value&&(L(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:z,setExpandRowKeysAdapter:e=>{N(e),j(e)},setCurrentRowKey:K,toggleRowExpansionAdapter:(e,t)=>{u.value.some((({type:e})=>"expand"===e))?z(e,t):W(e,t)},isRowExpanded:H,updateExpandRows:F,updateCurrentRowData:Y,loadOrToggle:U,updateTreeData:G,states:{tableSize:n,rowKey:r,data:i,_data:o,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:p,leafColumns:h,fixedLeafColumns:f,rightFixedLeafColumns:g,updateOrderFns:[],leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:x,reserveSelection:_,selectOnIndeterminate:w,selectable:S,filters:C,filteredData:T,sortingColumn:M,sortProp:k,sortOrder:A,hoverRow:I,...V,...q,...$}}}function PC(e,t){return e.map((e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=PC(e.children,t)),e)}))}function LC(e){e.forEach((e=>{var t,n;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(n=e.children)?void 0:n.length)&&LC(e.children)})),e.sort(((e,t)=>e.no-t.no))}const RC={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function BC(e,t){if(!e)throw new Error("Table is required.");const n=function(){const e=jo(),t=DC();return{ns:Og("table"),...t,mutations:{setData(t,n){const r=Lt(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),Lt(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r,i){const o=Lt(t._columns);let a=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),a=PC(o,r)):(o.push(n),a=o),LC(a),t._columns.value=a,t.updateOrderFns.push(i),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;(null==(r=n.getColumnIndex)?void 0:r.call(n))!==n.no&&(LC(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,i){const o=Lt(t._columns)||[];if(r)r.children.splice(r.children.findIndex((e=>e.id===n.id)),1),rn((()=>{var e;0===(null==(e=r.children)?void 0:e.length)&&delete r.children})),t._columns.value=PC(o,r);else{const e=o.indexOf(n);e>-1&&(o.splice(e,1),t._columns.value=o)}const a=t.updateOrderFns.indexOf(i);a>-1&&t.updateOrderFns.splice(a,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:i,init:o}=n;if(r){const n=Lt(t.columns).find((e=>e.property===r));n&&(n.order=i,e.store.updateSort(n,r,i),e.store.commit("changeSortCondition",{init:o}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:i,sortOrder:o}=t,a=Lt(r),s=Lt(i),l=Lt(o);null===l&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),n&&(n.silent||n.init)||e.emit("sort-change",{column:a,prop:s,order:l}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:i,silent:o}=n,a=e.store.updateFilters(r,i);e.store.execQuery(),o||e.emit("filter-change",a),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}},commit:function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error("Action not found: ".concat(t));r[t].apply(e,[e.store.states].concat(n))},updateTableScrollY:function(){rn((()=>e.layout.updateScrollY.apply(e.layout)))}}}();return n.toggleAllSelection=Oh(n._toggleAllSelection,10),Object.keys(RC).forEach((e=>{NC(zC(t,e),e,n)})),function(e,t){Object.keys(RC).forEach((n=>{Mi((()=>zC(t,n)),(t=>{NC(t,n,e)}))}))}(n,t),n}function NC(e,t,n){let r=e,i=RC[t];"object"==typeof RC[t]&&(i=i.key,r=r||RC[t].default),n.states[i].value=r}function zC(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach((e=>{r=r[e]})),r}return e[t]}class FC{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Et(null),this.scrollX=Et(!1),this.scrollY=Et(!1),this.bodyWidth=Et(null),this.fixedWidth=Et(null),this.rightFixedWidth=Et(null),this.gutterWidth=0;for(const t in e)d(e,t)&&(It(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(null===this.height.value)return!1;const e=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==e?void 0:e.wrapRef)){let t=!0;const n=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,n!==t}return!1}setHeight(e,t="height"){if(!rl)return;const n=this.table.vnode.el;var r;if(e="number"==typeof(r=e)?r:"string"==typeof r?/^\d+(?:px)?$/.test(r)?Number.parseInt(r,10):r:null,this.height.value=Number(e),!n&&(e||0===e))return rn((()=>this.setHeight(e,t)));"number"==typeof e?(n.style[t]="".concat(e,"px"),this.updateElsHeight()):"string"==typeof e&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach((t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!rl)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),i=r.filter((e=>"number"!=typeof e.width));if(r.forEach((e=>{"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){if(r.forEach((e=>{n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;const e=t-n;if(1===i.length)i[0].realWidth=Number(i[0].minWidth||80)+e;else{const t=e/i.reduce(((e,t)=>e+Number(t.minWidth||80)),0);let n=0;i.forEach(((e,r)=>{if(0===r)return;const i=Math.floor(Number(e.minWidth||80)*t);n+=i,e.realWidth=Number(e.minWidth||80)+i})),i[0].realWidth=Number(i[0].minWidth||80)+e-n}}else this.scrollX.value=!0,i.forEach((e=>{e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach((e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let e=0;o.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.fixedWidth.value=e}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let e=0;a.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach((t=>{var n,r;switch(e){case"columns":null==(n=t.state)||n.onColumnsChange(this);break;case"scrollable":null==(r=t.state)||r.onScrollableChange(this);break;default:throw new Error("Table Layout don't have event ".concat(e,"."))}}))}}const{CheckboxGroup:VC}=B_,HC=sr({name:"ElTableFilterPanel",components:{ElCheckbox:B_,ElCheckboxGroup:VC,ElScrollbar:Qy,ElTooltip:tx,ElIcon:jm,ArrowDown:xf,ArrowUp:Sf},directives:{ClickOutside:Yx},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=jo(),{t:n}=Mg(),r=Og("table-filter"),i=null==t?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const o=Et(!1),a=Et(null),s=ia((()=>e.column&&e.column.filters)),l=ia((()=>e.column.filterClassName?"".concat(r.b()," ").concat(e.column.filterClassName):r.b())),u=ia({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{c.value&&(null!=e?c.value.splice(0,1,e):c.value.splice(0,1))}}),c=ia({get:()=>e.column&&e.column.filteredValue||[],set(t){e.column&&e.upDataColumn("filteredValue",t)}}),d=ia((()=>!e.column||e.column.filterMultiple)),p=()=>{o.value=!1},h=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};Mi(o,(t=>{e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});const f=ia((()=>{var e,t;return null==(t=null==(e=a.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tooltipVisible:o,multiple:d,filterClassName:l,filteredValue:c,filterValue:u,filters:s,handleConfirm:()=>{h(c.value),p()},handleReset:()=>{c.value=[],h(c.value),p()},handleSelect:e=>{u.value=e,h(null!=e?c.value:[]),p()},isActive:e=>e.value===u.value,t:n,ns:r,showFilterPanel:e=>{e.stopPropagation(),o.value=!o.value},hideFilterPanel:()=>{o.value=!1},popperPaneRef:f,tooltip:a}}}),jC={key:0},WC=["disabled"],GC=["label","onClick"];var UC=Nm(HC,[["render",function(e,t,n,r,i,o){const a=On("el-checkbox"),s=On("el-checkbox-group"),l=On("el-scrollbar"),u=On("arrow-up"),c=On("arrow-down"),d=On("el-icon"),p=On("el-tooltip"),h=Ln("click-outside");return go(),_o(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:Sn((()=>[e.multiple?(go(),xo("div",jC,[Mo("div",{class:Y(e.ns.e("content"))},[ko(l,{"wrap-class":e.ns.e("wrap")},{default:Sn((()=>[ko(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:Y(e.ns.e("checkbox-group"))},{default:Sn((()=>[(go(!0),xo(lo,null,or(e.filters,(e=>(go(),_o(a,{key:e.value,value:e.value},{default:Sn((()=>[Eo(Q(e.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["modelValue","class"])])),_:1},8,["wrap-class"])],2),Mo("div",{class:Y(e.ns.e("bottom"))},[Mo("button",{class:Y({[e.ns.is("disabled")]:0===e.filteredValue.length}),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},Q(e.t("el.table.confirmFilter")),11,WC),Mo("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},Q(e.t("el.table.resetFilter")),1)],2)])):(go(),xo("ul",{key:1,class:Y(e.ns.e("list"))},[Mo("li",{class:Y([e.ns.e("list-item"),{[e.ns.is("active")]:void 0===e.filterValue||null===e.filterValue}]),onClick:t[3]||(t[3]=t=>e.handleSelect(null))},Q(e.t("el.table.clearFilter")),3),(go(!0),xo(lo,null,or(e.filters,(t=>(go(),xo("li",{key:t.value,class:Y([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},Q(t.text),11,GC)))),128))],2))])),default:Sn((()=>[rr((go(),xo("span",{class:Y(["".concat(e.ns.namespace.value,"-table__column-filter-trigger"),"".concat(e.ns.namespace.value,"-none-outline")]),onClick:t[4]||(t[4]=(...t)=>e.showFilterPanel&&e.showFilterPanel(...t))},[ko(d,null,{default:Sn((()=>[e.column.filterOpened?(go(),_o(u,{key:0})):(go(),_o(c,{key:1}))])),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])])),_:1},8,["visible","placement","popper-class"])}],["__file","filter-panel.vue"]]);function qC(e){const t=jo();Yn((()=>{n.value.addObserver(t)})),Xn((()=>{r(n.value),i(n.value)})),$n((()=>{r(n.value),i(n.value)})),Jn((()=>{n.value.removeObserver(t)}));const n=ia((()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=t=>{var n;const r=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const i=t.getFlattenColumns(),o={};i.forEach((e=>{o[e.id]=e}));for(let e=0,a=r.length;e<a;e++){const t=r[e],n=t.getAttribute("name"),i=o[n];i&&t.setAttribute("width",i.realWidth||i.width)}},i=t=>{var n,r;const i=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,a=i.length;e<a;e++){i[e].setAttribute("width",t.scrollY.value?t.gutterWidth:"0")}const o=(null==(r=e.vnode.el)?void 0:r.querySelectorAll("th.gutter"))||[];for(let e=0,a=o.length;e<a;e++){const n=o[e];n.style.width=t.scrollY.value?"".concat(t.gutterWidth,"px"):"0",n.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:i}}const YC=Symbol("ElTable");const XC=e=>{const t=[];return e.forEach((e=>{e.children?(t.push(e),t.push.apply(t,XC(e.children))):t.push(e)})),t},KC=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children){let t=0;e.children.forEach((r=>{n(r,e),t+=r.colSpan})),e.colSpan=t}else e.colSpan=1};e.forEach((e=>{e.level=1,n(e,void 0)}));const r=[];for(let i=0;i<t;i++)r.push([]);return XC(e).forEach((e=>{e.children?(e.rowSpan=1,e.children.forEach((e=>e.isSubColumn=!0))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};var $C=sr({name:"ElTableHeader",components:{ElCheckbox:B_},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=jo(),r=Fr(YC),i=Og("table"),o=Et({}),{onColumnsChange:a,onScrollableChange:s}=qC(r);Xn((async()=>{await rn(),await rn();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0})}));const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:p,handleSortClick:h,handleFilterClick:f}=function(e,t){const n=jo(),r=Fr(YC),i=e=>{e.stopPropagation()},o=Et(null),a=Et(!1),s=Et({}),l=(t,n,i)=>{var o;t.stopPropagation();const a=n.order===i?null:i||(({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]})(n),s=null==(o=t.target)?void 0:o.closest("th");if(s&&uf(s,"noclick"))return void df(s,"noclick");if(!n.sortable)return;const l=e.store.states;let u,c=l.sortProp.value;const d=l.sortingColumn.value;(d!==n||d===n&&null===d.order)&&(d&&(d.order=null),l.sortingColumn.value=n,c=n.property),u=n.order=a||null,l.sortProp.value=c,l.sortOrder.value=u,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:(e,t)=>{!t.filters&&t.sortable?l(e,t,!1):t.filterable&&!t.sortable&&i(e),null==r||r.emit("header-click",t,e)},handleHeaderContextMenu:(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},handleMouseDown:(i,l)=>{if(rl&&!(l.children&&l.children.length>0)&&o.value&&e.border){a.value=!0;const u=r;t("set-drag-visible",!0);const c=(null==u?void 0:u.vnode.el).getBoundingClientRect().left,d=n.vnode.el.querySelector("th.".concat(l.id)),p=d.getBoundingClientRect(),h=p.left-c+30;cf(d,"noclick"),s.value={startMouseLeft:i.clientX,startLeft:p.right-c,startColumnLeft:p.left-c,tableLeft:c};const f=null==u?void 0:u.refs.resizeProxy;f.style.left="".concat(s.value.startLeft,"px"),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const g=e=>{const t=e.clientX-s.value.startMouseLeft,n=s.value.startLeft+t;f.style.left="".concat(Math.max(h,n),"px")},v=()=>{if(a.value){const{startColumnLeft:n,startLeft:r}=s.value,c=Number.parseInt(f.style.left,10)-n;l.width=l.realWidth=c,null==u||u.emit("header-dragend",l.width,r-n,l,i),requestAnimationFrame((()=>{e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",a.value=!1,o.value=null,s.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",v),document.onselectstart=null,document.ondragstart=null,setTimeout((()=>{df(d,"noclick")}),0)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",v)}},handleMouseMove:(t,n)=>{if(n.children&&n.children.length>0)return;const r=t.target;if(!Zh(r))return;const i=null==r?void 0:r.closest("th");if(n&&n.resizable&&!a.value&&e.border){const e=i.getBoundingClientRect(),r=document.body.style;e.width>12&&e.right-t.pageX<8?(r.cursor="col-resize",uf(i,"is-sortable")&&(i.style.cursor="col-resize"),o.value=n):a.value||(r.cursor="",uf(i,"is-sortable")&&(i.style.cursor="pointer"),o.value=null)}},handleMouseOut:()=>{rl&&(document.body.style.cursor="")},handleSortClick:l,handleFilterClick:i}}(e,t),{getHeaderRowStyle:g,getHeaderRowClass:v,getHeaderCellStyle:m,getHeaderCellClass:y}=function(e){const t=Fr(YC),n=Og("table");return{getHeaderRowStyle:e=>{const n=null==t?void 0:t.props.headerRowStyle;return"function"==typeof n?n.call(null,{rowIndex:e}):n},getHeaderRowClass:e=>{const n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},getHeaderCellStyle:(n,r,i,o)=>{var a;let s=null!=(a=null==t?void 0:t.props.headerCellStyle)?a:{};"function"==typeof s&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:i,column:o}));const l=AC(r,o.fixed,e.store,i);return IC(l,"left"),IC(l,"right"),Object.assign({},s,l)},getHeaderCellClass:(r,i,o,a)=>{const s=MC(n.b(),i,a.fixed,e.store,o),l=[a.id,a.order,a.headerAlign,a.className,a.labelClassName,...s];a.children||l.push("is-leaf"),a.sortable&&l.push("is-sortable");const u=null==t?void 0:t.props.headerCellClassName;return"string"==typeof u?l.push(u):"function"==typeof u&&l.push(u.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),l.push(n.e("cell")),l.filter((e=>Boolean(e))).join(" ")}}}(e),{isGroup:b,toggleAllSelection:x,columnRows:_}=function(e){const t=Fr(YC),n=ia((()=>KC(e.store.states.originColumns.value)));return{isGroup:ia((()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:n}}(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=o,{ns:i,filterPanels:o,onColumnsChange:a,onScrollableChange:s,columnRows:_,getHeaderRowClass:v,getHeaderRowStyle:g,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:p,handleSortClick:h,handleFilterClick:f,isGroup:b,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:o,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:p,store:h,$parent:f}=this;let g=1;return aa("thead",{class:{[e.is("group")]:t}},n.map(((e,t)=>aa("tr",{class:o(t),key:t,style:a(t)},e.map(((n,o)=>(n.rowSpan>g&&(g=n.rowSpan),aa("th",{class:i(t,o,e,n),colspan:n.colSpan,key:"".concat(n.id,"-thead"),rowspan:n.rowSpan,style:r(t,o,e,n),onClick:e=>{e.currentTarget.classList.contains("noclick")||s(e,n)},onContextmenu:e=>l(e,n),onMousedown:e=>u(e,n),onMousemove:e=>c(e,n),onMouseout:p},[aa("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:o,store:h,_self:f}):n.label,n.sortable&&aa("span",{onClick:e=>d(e,n),class:"caret-wrapper"},[aa("i",{onClick:e=>d(e,n,"ascending"),class:"sort-caret ascending"}),aa("i",{onClick:e=>d(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&aa(UC,{store:h,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:(e,t)=>{n[e]=t}})])]))))))))}});function ZC(e,t,n=.01){return e-t>n}function JC(e){const t=Fr(YC),n=Et(""),r=Et(aa("div")),i=(n,r,i)=>{var o;const a=t,s=dC(n);let l;const u=null==(o=null==a?void 0:a.vnode.el)?void 0:o.dataset.prefix;s&&(l=gC({columns:e.store.states.columns.value},s,u),l&&(null==a||a.emit("cell-".concat(i),r,l,s,n))),null==a||a.emit("row-".concat(i),r,l,n)},o=Oh((t=>{e.store.commit("setHoverRow",t)}),30),a=Oh((()=>{e.store.commit("setHoverRow",null)}),30),s=(e,t,n)=>{let r=t.target.parentNode;for(;e>1&&(r=null==r?void 0:r.nextSibling,r&&"TR"===r.nodeName);)n(r,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:(e,t)=>{i(e,t,"dblclick")},handleClick:(t,n)=>{e.store.commit("setCurrentRow",n),i(t,n,"click")},handleContextMenu:(e,t)=>{i(e,t,"contextmenu")},handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:(n,r,i)=>{var o;const a=t,l=dC(n),u=null==(o=null==a?void 0:a.vnode.el)?void 0:o.dataset.prefix;if(l){const t=gC({columns:e.store.states.columns.value},l,u);l.rowSpan>1&&s(l.rowSpan,n,cf);const i=a.hoverState={cell:l,column:t,row:r};null==a||a.emit("cell-mouse-enter",i.row,i.column,i.cell,n)}if(!i)return;const c=n.target.querySelector(".cell");if(!uf(c,"".concat(u,"-tooltip"))||!c.childNodes.length)return;const d=document.createRange();d.setStart(c,0),d.setEnd(c,c.childNodes.length);let{width:p,height:h}=d.getBoundingClientRect();const f=p-Math.floor(p),{width:g,height:v}=c.getBoundingClientRect();f<.001&&(p=Math.floor(p));h-Math.floor(h)<.001&&(h=Math.floor(h));const{top:m,left:y,right:b,bottom:x}=(e=>{const t=window.getComputedStyle(e,null);return{left:Number.parseInt(t.paddingLeft,10)||0,right:Number.parseInt(t.paddingRight,10)||0,top:Number.parseInt(t.paddingTop,10)||0,bottom:Number.parseInt(t.paddingBottom,10)||0}})(c),_=m+x;(ZC(p+(y+b),g)||ZC(h+_,v)||ZC(c.scrollWidth,g))&&function(e,t,n,r){if((null==wC?void 0:wC.trigger)===n)return;null==wC||wC();const i=null==r?void 0:r.refs.tableWrapper,o=null==i?void 0:i.dataset.prefix,a={strategy:"fixed",...e.popperOptions},s=ko(tx,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:i,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{null==wC||wC()}});s.appContext={...r.appContext,...r};const l=document.createElement("div");Hs(s,l),s.component.exposed.onOpen();const u=null==i?void 0:i.querySelector(".".concat(o,"-scrollbar__wrap"));wC=()=>{Hs(null,l),null==u||u.removeEventListener("scroll",wC),wC=null},wC.trigger=n,null==u||u.addEventListener("scroll",wC)}(i,l.innerText||l.textContent,l,a)},handleCellMouseLeave:e=>{const n=dC(e);if(!n)return;n.rowSpan>1&&s(n.rowSpan,e,df);const r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)},tooltipContent:n,tooltipTrigger:r}}function QC(e){const t=Fr(YC),n=Og("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=JC(e),{getRowStyle:p,getRowClass:h,getCellStyle:f,getCellClass:g,getSpan:v,getColspanRealWidth:m}=function(e){const t=Fr(YC),n=Og("table");return{getRowStyle:(e,n)=>{const r=null==t?void 0:t.props.rowStyle;return"function"==typeof r?r.call(null,{row:e,rowIndex:n}):r||null},getRowClass:(r,i)=>{const o=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&o.push("current-row"),e.stripe&&i%2==1&&o.push(n.em("row","striped"));const a=null==t?void 0:t.props.rowClassName;return"string"==typeof a?o.push(a):"function"==typeof a&&o.push(a.call(null,{row:r,rowIndex:i})),o},getCellStyle:(n,r,i,o)=>{const a=null==t?void 0:t.props.cellStyle;let s=null!=a?a:{};"function"==typeof a&&(s=a.call(null,{rowIndex:n,columnIndex:r,row:i,column:o}));const l=AC(r,null==e?void 0:e.fixed,e.store);return IC(l,"left"),IC(l,"right"),Object.assign({},s,l)},getCellClass:(r,i,o,a,s)=>{const l=MC(n.b(),i,null==e?void 0:e.fixed,e.store,void 0,s),u=[a.id,a.align,a.className,...l],c=null==t?void 0:t.props.cellClassName;return"string"==typeof c?u.push(c):"function"==typeof c&&u.push(c.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),u.push(n.e("cell")),u.filter((e=>Boolean(e))).join(" ")},getSpan:(e,n,r,i)=>{let o=1,a=1;const s=null==t?void 0:t.props.spanMethod;if("function"==typeof s){const t=s({row:e,column:n,rowIndex:r,columnIndex:i});Array.isArray(t)?(o=t[0],a=t[1]):"object"==typeof t&&(o=t.rowspan,a=t.colspan)}return{rowspan:o,colspan:a}},getColspanRealWidth:(e,t,n)=>{if(t<1)return e[n].realWidth;const r=e.map((({realWidth:e,width:t})=>e||t)).slice(n,n+t);return Number(r.reduce(((e,t)=>Number(e)+Number(t)),-1))}}}(e),y=ia((()=>e.store.states.columns.value.findIndex((({type:e})=>"default"===e)))),b=(e,n)=>{const r=t.props.rowKey;return r?vC(e,r):n},x=(c,d,x,w=!1)=>{const{tooltipEffect:S,tooltipOptions:C,store:T}=e,{indent:M,columns:k}=T.states,A=h(c,d);let I=!0;x&&(A.push(n.em("row","level-".concat(x.level))),I=x.display);return aa("tr",{style:[I?null:{display:"none"},p(c,d)],class:A,key:b(c,d),onDblclick:e=>r(e,c),onClick:e=>i(e,c),onContextmenu:e=>o(e,c),onMouseenter:()=>a(d),onMouseleave:s},k.value.map(((n,r)=>{const{rowspan:i,colspan:o}=v(c,n,d,r);if(!i||!o)return null;const a=Object.assign({},n);a.realWidth=m(k.value,o,r);const s={store:e.store,_self:e.context||t,column:a,row:c,$index:d,cellIndex:r,expanded:w};r===y.value&&x&&(s.treeNode={indent:x.level*M.value,level:x.level},"boolean"==typeof x.expanded&&(s.treeNode.expanded=x.expanded,"loading"in x&&(s.treeNode.loading=x.loading),"noLazyChildren"in x&&(s.treeNode.noLazyChildren=x.noLazyChildren)));const p="".concat(b(c,d),",").concat(r),h=a.columnKey||a.rawColumnKey||"",T=_(r,n,s),A=n.showOverflowTooltip&&Wh({effect:S},C,n.showOverflowTooltip);return aa("td",{style:f(d,r,c,n),class:g(d,r,c,n,o-1),key:"".concat(h).concat(p),rowspan:i,colspan:o,onMouseenter:e=>l(e,c,A),onMouseleave:u},[T])})))},_=(e,t,n)=>t.renderCell(n);return{wrappedRowRender:(r,i)=>{const o=e.store,{isRowExpanded:a,assertRowKey:s}=o,{treeData:l,lazyTreeNodeMap:u,childrenColumnName:c,rowKey:d}=o.states,p=o.states.columns.value;if(p.some((({type:e})=>"expand"===e))){const e=a(r),s=x(r,i,void 0,e),l=t.renderExpanded;return e?l?[[s,aa("tr",{key:"expanded-row__".concat(s.key)},[aa("td",{colspan:p.length,class:"".concat(n.e("cell")," ").concat(n.e("expanded-cell"))},[l({row:r,$index:i,store:o,expanded:e})])])]]:s:[[s]]}if(Object.keys(l.value).length){s();const e=vC(r,d.value);let t=l.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0},"boolean"==typeof t.lazy&&("boolean"==typeof t.loaded&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const o=[x(r,i,n)];if(t){let n=0;const a=(e,r)=>{e&&e.length&&r&&e.forEach((e=>{const s={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},p=vC(e,d.value);if(null==p)throw new Error("For nested data item, row-key is required.");if(t={...l.value[p]},t&&(s.expanded=t.expanded,t.level=t.level||s.level,t.display=!(!t.expanded||!s.display),"boolean"==typeof t.lazy&&("boolean"==typeof t.loaded&&t.loaded&&(s.noLazyChildren=!(t.children&&t.children.length)),s.loading=t.loading)),n++,o.push(x(e,i+n,s)),t){const n=u.value[p]||e[c.value];a(n,t)}}))};t.display=!0;const s=u.value[e]||r[c.value];a(s,t)}return o}return x(r,i,void 0)},tooltipContent:c,tooltipTrigger:d}}var eT=sr({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=jo(),n=Fr(YC),r=Og("table"),{wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}=QC(e),{onColumnsChange:s,onScrollableChange:l}=qC(n),u=[];return Mi(e.store.states.hoverRow,((n,i)=>{var o;const a=null==t?void 0:t.vnode.el,s=Array.from((null==a?void 0:a.children)||[]).filter((e=>null==e?void 0:e.classList.contains("".concat(r.e("row")))));let l=n;const c=null==(o=s[l])?void 0:o.childNodes;if(null==c?void 0:c.length){let e=0;Array.from(c).reduce(((t,n,r)=>{var i,o;return(null==(i=c[r])?void 0:i.colSpan)>1&&(e=null==(o=c[r])?void 0:o.colSpan),"TD"!==n.nodeName&&0===e&&t.push(r),e>0&&e--,t}),[]).forEach((e=>{var t;for(l=n;l>0;){const n=null==(t=s[l-1])?void 0:t.childNodes;if(n[e]&&"TD"===n[e].nodeName&&n[e].rowSpan>1){cf(n[e],"hover-cell"),u.push(n[e]);break}l--}}))}else u.forEach((e=>df(e,"hover-cell"))),u.length=0;e.store.states.isComplex.value&&rl&&ef((()=>{const e=s[i],t=s[n];e&&!e.classList.contains("hover-fixed-row")&&df(e,"hover-row"),t&&cf(t,"hover-row")}))})),Jn((()=>{var e;null==(e=wC)||e()})),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this;return aa("tbody",{tabIndex:-1},[(t.states.data.value||[]).reduce(((t,n)=>t.concat(e(n,t.length))),[])])}});function tT(e){const{columns:t}=function(){const e=Fr(YC),t=null==e?void 0:e.store;return{leftFixedLeafCount:ia((()=>t.states.fixedLeafColumnsLength.value)),rightFixedLeafCount:ia((()=>t.states.rightFixedColumns.value.length)),columnsCount:ia((()=>t.states.columns.value.length)),leftFixedCount:ia((()=>t.states.fixedColumns.value.length)),rightFixedCount:ia((()=>t.states.rightFixedColumns.value.length)),columns:t.states.columns}}(),n=Og("table");return{getCellClasses:(t,r)=>{const i=t[r],o=[n.e("cell"),i.id,i.align,i.labelClassName,...MC(n.b(),r,i.fixed,e.store)];return i.className&&o.push(i.className),i.children||o.push(n.is("leaf")),o},getCellStyles:(t,n)=>{const r=AC(n,t.fixed,e.store);return IC(r,"left"),IC(r,"right"),r},columns:t}}var nT=sr({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=tT(e);return{ns:Og("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach(((e,t)=>{if(0===t)return void(a[t]=i);const n=o.map((t=>Number(t[e.property]))),r=[];let s=!0;n.forEach((e=>{if(!Number.isNaN(+e)){s=!1;const t="".concat(e).split(".")[1];r.push(t?t.length:0)}}));const l=Math.max.apply(null,r);a[t]=s?"":n.reduce(((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(l,20)))}),0)})),aa(aa("tfoot",[aa("tr",{},[...e.map(((r,i)=>aa("td",{key:i,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,i),style:t(r,i)},[aa("div",{class:["cell",r.labelClassName]},[a[i]])])))])]))}});function rT(e,t,n,r){const i=Et(!1),o=Et(null),a=Et(!1),s=Et({width:null,height:null,headerHeight:null}),l=Et(!1),u=Et(),c=Et(0),d=Et(0),p=Et(0),h=Et(0),f=Et(0);wi((()=>{t.setHeight(e.height)})),wi((()=>{t.setMaxHeight(e.maxHeight)})),Mi((()=>[e.currentRowKey,n.states.rowKey]),(([e,t])=>{Lt(t)&&Lt(e)&&n.setCurrentRowKey("".concat(e))}),{immediate:!0}),Mi((()=>e.data),(e=>{r.store.commit("setData",e)}),{immediate:!0,deep:!0}),wi((()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));const g=ia((()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0)),v=ia((()=>({width:t.bodyWidth.value?"".concat(t.bodyWidth.value,"px"):""}))),m=()=>{g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(b)};Xn((async()=>{await rn(),n.updateColumns(),x(),requestAnimationFrame(m);const t=r.vnode.el,i=r.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),s.value={width:u.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&i?i.offsetHeight:null},n.states.columns.value.forEach((e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0}));const y=e=>{const{tableWrapper:n}=r.refs;((e,n)=>{if(!e)return;const r=Array.from(e.classList).filter((e=>!e.startsWith("is-scrolling-")));r.push(t.scrollX.value?n:"is-scrolling-none"),e.className=r.join(" ")})(n,e)},b=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void((e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))})(e)||y(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:i,scrollWidth:o}=e,{headerWrapper:a,footerWrapper:s}=r.refs;a&&(a.scrollLeft=n),s&&(s.scrollLeft=n);y(n>=o-i-1?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},x=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&yl(r.refs.scrollBarRef.wrapRef,"scroll",b,{passive:!0}),e.fit?Al(r.vnode.el,_):yl(window,"resize",_),Al(r.refs.bodyWrapper,(()=>{var e,t;_(),null==(t=null==(e=r.refs)?void 0:e.scrollBarRef)||t.update()})))},_=()=>{var t,n,i,o;const a=r.vnode.el;if(!r.$ready||!a)return;let l=!1;const{width:v,height:y,headerHeight:b}=s.value,x=u.value=a.offsetWidth;v!==x&&(l=!0);const _=a.offsetHeight;(e.height||g.value)&&y!==_&&(l=!0);const w="fixed"===e.tableLayout?r.refs.headerWrapper:null==(t=r.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==w?void 0:w.offsetHeight)!==b&&(l=!0),c.value=(null==(n=r.refs.tableWrapper)?void 0:n.scrollHeight)||0,p.value=(null==w?void 0:w.scrollHeight)||0,h.value=(null==(i=r.refs.footerWrapper)?void 0:i.offsetHeight)||0,f.value=(null==(o=r.refs.appendWrapper)?void 0:o.offsetHeight)||0,d.value=c.value-p.value-h.value-f.value,l&&(s.value={width:x,height:_,headerHeight:e.showHeader&&(null==w?void 0:w.offsetHeight)||0},m())},w=Um(),S=ia((()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?"".concat(e.value-(n.value?r:0),"px"):""})),C=ia((()=>e.maxHeight?"fixed":e.tableLayout)),T=ia((()=>{if(e.data&&e.data.length)return null;let t="100%";e.height&&d.value&&(t="".concat(d.value,"px"));const n=u.value;return{width:n?"".concat(n,"px"):"",height:t}})),M=ia((()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:"".concat(e.height,"px")}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:"".concat(e.maxHeight,"px")}:{})),k=ia((()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:"calc(".concat(e.maxHeight," - ").concat(p.value+h.value,"px)")}:{maxHeight:"".concat(e.maxHeight-p.value-h.value,"px")}:{}));return{isHidden:i,renderExpanded:o,setDragVisible:e=>{a.value=e},isGroup:l,handleMouseLeave:()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},handleHeaderFooterMousewheel:(e,t)=>{const{pixelX:n,pixelY:i}=t;Math.abs(n)>=Math.abs(i)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:w,emptyBlockStyle:T,handleFixedMousewheel:(e,t)=>{const n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){const r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:S,resizeState:s,doLayout:m,tableBodyStyles:v,tableLayout:C,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:M,scrollbarStyle:k}}function iT(e){const t=Et();Xn((()=>{(()=>{const n=e.vnode.el.querySelector(".hidden-columns"),r=e.store.states.updateOrderFns;t.value=new MutationObserver((()=>{r.forEach((e=>e()))})),t.value.observe(n,{childList:!0,subtree:!0})})()})),Jn((()=>{var e;null==(e=t.value)||e.disconnect()}))}var oT={data:{type:Array,default:()=>[]},size:wm,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function aT(e){const t="auto"===e.tableLayout;let n=e.columns||[];t&&n.every((e=>void 0===e.width))&&(n=[]);return aa("colgroup",{},n.map((n=>aa("col",(n=>{const r={key:"".concat(e.tableLayout,"_").concat(n.id),style:{},name:void 0};return t?r.style={width:"".concat(n.width,"px")}:r.name=n.id,r})(n)))))}aT.props=["columns","tableLayout"];let sT=1;const lT=sr({name:"ElTable",directives:{Mousewheel:b_},components:{TableHeader:$C,TableBody:eT,TableFooter:nT,ElScrollbar:Qy,hColgroup:aT},props:oT,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t:t}=Mg(),n=Og("table"),r=jo();zr(YC,r);const i=BC(r,e);r.store=i;const o=new FC({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const a=ia((()=>0===(i.states.data.value||[]).length)),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:f,sort:g}=function(e){return{setCurrentRow:t=>{e.commit("setCurrentRow",t)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(t,n)=>{e.toggleRowSelection(t,n,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:t=>{e.clearFilter(t)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(t,n)=>{e.toggleRowExpansionAdapter(t,n)},clearSort:()=>{e.clearSort()},sort:(t,n)=>{e.commit("sort",{prop:t,order:n})}}}(i),{isHidden:v,renderExpanded:m,setDragVisible:y,isGroup:b,handleMouseLeave:x,handleHeaderFooterMousewheel:_,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:M,resizeState:k,doLayout:A,tableBodyStyles:I,tableLayout:E,scrollbarViewStyle:O,tableInnerStyle:D,scrollbarStyle:P}=rT(e,o,i,r),{scrollBarRef:L,scrollTo:R,setScrollLeft:B,setScrollTop:N}=(()=>{const e=Et(),t=(t,n)=>{const r=e.value;r&&$h(n)&&["Top","Left"].includes(t)&&r["setScroll".concat(t)](n)};return{scrollBarRef:e,scrollTo:(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},setScrollTop:e=>t("Top",e),setScrollLeft:e=>t("Left",e)}})(),z=Oh(A,50),F="".concat(n.namespace.value,"-table_").concat(sT++);r.tableId=F,r.state={isGroup:b,resizeState:k,doLayout:A,debouncedUpdateLayout:z};const V=ia((()=>e.sumText||t("el.table.sumText"))),H=ia((()=>e.emptyText||t("el.table.emptyText"))),j=ia((()=>KC(i.states.originColumns.value)[0]));return iT(r),{ns:n,layout:o,store:i,columns:j,handleHeaderFooterMousewheel:_,handleMouseLeave:x,tableId:F,tableSize:w,isHidden:v,isEmpty:a,renderExpanded:m,resizeProxyVisible:T,resizeState:k,isGroup:b,bodyWidth:M,tableBodyStyles:I,emptyBlockStyle:S,debouncedUpdateLayout:z,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:f,doLayout:A,sort:g,t:t,setDragVisible:y,context:r,computedSumText:V,computedEmptyText:H,tableLayout:E,scrollbarViewStyle:O,tableInnerStyle:D,scrollbarStyle:P,scrollBarRef:L,scrollTo:R,setScrollLeft:B,setScrollTop:N}}}),uT=["data-prefix"],cT={ref:"hiddenColumns",class:"hidden-columns"};var dT=Nm(lT,[["render",function(e,t,n,r,i,o){const a=On("hColgroup"),s=On("table-header"),l=On("table-body"),u=On("table-footer"),c=On("el-scrollbar"),d=Ln("mousewheel");return go(),xo("div",{ref:"tableWrapper",class:Y([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m("layout-".concat(e.tableLayout))]),style:j(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t))},[Mo("div",{class:Y(e.ns.e("inner-wrapper")),style:j(e.tableInnerStyle)},[Mo("div",cT,[cr(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?rr((go(),xo("div",{key:0,ref:"headerWrapper",class:Y(e.ns.e("header-wrapper"))},[Mo("table",{ref:"tableHeader",class:Y(e.ns.e("header")),style:j(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ko(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ko(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):Do("v-if",!0),Mo("div",{ref:"bodyWrapper",class:Y(e.ns.e("body-wrapper"))},[ko(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Sn((()=>[Mo("table",{ref:"tableBody",class:Y(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:j({width:e.bodyWidth,tableLayout:e.tableLayout})},[ko(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(go(),_o(s,{key:0,ref:"tableHeaderRef",class:Y(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):Do("v-if",!0),ko(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?(go(),_o(u,{key:1,class:Y(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Do("v-if",!0)],6),e.isEmpty?(go(),xo("div",{key:0,ref:"emptyBlock",style:j(e.emptyBlockStyle),class:Y(e.ns.e("empty-block"))},[Mo("span",{class:Y(e.ns.e("empty-text"))},[cr(e.$slots,"empty",{},(()=>[Eo(Q(e.computedEmptyText),1)]))],2)],6)):Do("v-if",!0),e.$slots.append?(go(),xo("div",{key:1,ref:"appendWrapper",class:Y(e.ns.e("append-wrapper"))},[cr(e.$slots,"append")],2)):Do("v-if",!0)])),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&"fixed"===e.tableLayout?rr((go(),xo("div",{key:1,ref:"footerWrapper",class:Y(e.ns.e("footer-wrapper"))},[Mo("table",{class:Y(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:j(e.tableBodyStyles)},[ko(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ko(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[za,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):Do("v-if",!0),e.border||e.isGroup?(go(),xo("div",{key:2,class:Y(e.ns.e("border-left-patch"))},null,2)):Do("v-if",!0)],6),rr(Mo("div",{ref:"resizeProxy",class:Y(e.ns.e("column-resize-proxy"))},null,2),[[za,e.resizeProxyVisible]])],46,uT)}],["__file","table.vue"]]);const pT={selection:"table-column--selection",expand:"table__expand-column"},hT={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},fT={selection:{renderHeader:({store:e,column:t})=>aa(B_,{disabled:e.states.data.value&&0===e.states.data.value.length,size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label}),renderCell:({row:e,column:t,store:n,$index:r})=>aa(B_,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label}),sortable:!1,resizable:!1},index:{renderHeader:({column:e})=>e.label||"#",renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return"number"==typeof r?n=t+r:"function"==typeof r&&(n=r(t)),aa("div",{},[n])},sortable:!1},expand:{renderHeader:({column:e})=>e.label||"",renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];n&&i.push(r.em("expand-icon","expanded"));return aa("div",{class:i,onClick:function(n){n.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[aa(jm,null,{default:()=>[aa(wf)]})]})},sortable:!1,resizable:!1}};function gT({row:e,column:t,$index:n}){var r;const i=t.property,o=i&&of(e,i).value;return t&&t.formatter?t.formatter(e,t,o,n):(null==(r=null==o?void 0:o.toString)?void 0:r.call(o))||""}function vT(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function mT(e,t,n){const r=jo(),i=Et(""),o=Et(!1),a=Et(),s=Et(),l=Og("table");wi((()=>{a.value=e.align?"is-".concat(e.align):null,a.value})),wi((()=>{s.value=e.headerAlign?"is-".concat(e.headerAlign):a.value,s.value}));const u=ia((()=>{let e=r.vnode.vParent||r.parent;for(;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),c=ia((()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),d=Et(yC(e.width)),p=Et(bC(e.minWidth));return{columnId:i,realAlign:a,isSubColumn:o,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:e=>(d.value&&(e.width=d.value),p.value&&(e.minWidth=p.value),!d.value&&p.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e),setColumnForcedProps:e=>{const t=e.type,n=fT[t]||{};Object.keys(n).forEach((t=>{const r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));const r=(e=>pT[e]||"")(t);if(r){const t="".concat(Lt(l.namespace),"-").concat(r);e.className=e.className?"".concat(e.className," ").concat(t):t}return e},setColumnRenders:i=>{e.renderHeader||"selection"!==i.type&&(i.renderHeader=e=>(r.columnConfig.value.label,cr(t,"header",e,(()=>[i.label]))));let o=i.renderCell;return"expand"===i.type?(i.renderCell=e=>aa("div",{class:"cell"},[o(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(o=o||gT,i.renderCell=e=>{let a=null;if(t.default){const n=t.default(e);a=n.some((e=>e.type!==co))?n:o(e)}else a=o(e);const{columns:s}=n.value.store.states,u=s.value.findIndex((e=>"default"===e.type)),d=function({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[aa("span",{class:i.e("placeholder")})]:null;const o=[],a=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&o.push(aa("span",{class:i.e("indent"),style:{"padding-left":"".concat(t.indent,"px")}})),"boolean"!=typeof t.expanded||t.noLazyChildren)o.push(aa("span",{class:i.e("placeholder")}));else{const e=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let n=wf;t.loading&&(n=Bf),o.push(aa("div",{class:e,onClick:a},{default:()=>[aa(jm,{class:{[i.is("loading")]:t.loading}},{default:()=>[aa(n)]})]}))}return o}(e,c.value&&e.cellIndex===u),p={class:"cell",style:{}};return i.showOverflowTooltip&&(p.class="".concat(p.class," ").concat(Lt(l.namespace),"-tooltip"),p.style={width:"".concat((e.column.realWidth||Number(e.column.width))-1,"px")}),(e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=r)}Array.isArray(e)?e.forEach((e=>t(e))):t(e)})(a),aa("div",p,[d,a])}),i},getPropsData:(...t)=>t.reduce(((t,n)=>(Array.isArray(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),getColumnElIndex:(e,t)=>Array.prototype.indexOf.call(e,t),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var yT={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let bT=1;var xT=sr({name:"ElTableColumn",components:{ElCheckbox:B_},props:yT,setup(e,{slots:t}){const n=jo(),r=Et({}),i=ia((()=>{let e=n.parent;for(;e&&!e.tableId;)e=e.parent;return e})),{registerNormalWatchers:o,registerComplexWatchers:a}=function(e,t){const n=jo();return{registerComplexWatchers:()=>{const r={realWidth:"width",realMinWidth:"minWidth"},i=vT(["fixed"],r);Object.keys(i).forEach((i=>{const o=r[i];d(t,o)&&Mi((()=>t[o]),(t=>{let r=t;"width"===o&&"realWidth"===i&&(r=yC(t)),"minWidth"===o&&"realMinWidth"===i&&(r=bC(t)),n.columnConfig.value[o]=r,n.columnConfig.value[i]=r;const a="fixed"===o;e.value.store.scheduleLayout(a)}))}))},registerNormalWatchers:()=>{const e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},r=vT(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],e);Object.keys(r).forEach((r=>{const i=e[r];d(t,i)&&Mi((()=>t[i]),(e=>{n.columnConfig.value[r]=e}))}))}}}(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:h,setColumnRenders:f,getPropsData:g,getColumnElIndex:v,realAlign:m,updateColumnOrder:y}=mT(e,t,i),b=c.value;s.value="".concat(b.tableId||b.columnId,"_column_").concat(bT++),Yn((()=>{l.value=i.value!==b;const t=e.type||"default",c=""===e.sortable||e.sortable,v=Xh(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,y={...hT[t],id:s.value,type:t,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:v,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:c,index:e.index,rawColumnKey:n.vnode.key};let x=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);x=function(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(d(t,r)){const e=t[r];void 0!==e&&(n[r]=e)}return n}(y,x);x=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(f,p,h)(x),r.value=x,o(),a()})),Xn((()=>{var e;const t=c.value,o=l.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,a=()=>v(o||[],n.vnode.el);r.value.getColumnIndex=a;a()>-1&&i.value.store.commit("insertColumn",r.value,l.value?t.columnConfig.value:null,y)})),Zn((()=>{r.value.getColumnIndex()>-1&&i.value.store.commit("removeColumn",r.value,l.value?b.columnConfig.value:null,y)})),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const e of r)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?i.push(e):e.type===lo&&Array.isArray(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||m(null==e?void 0:e.children)||i.push(e)}));return aa("div",i)}catch(r){return aa("div",[])}}});const _T=og(dT,{TableColumn:xT}),wT=ag(xT),ST=Symbol("tabsRootContextKey"),CT=Qf({tabs:{type:Array,default:()=>[]}}),TT="ElTabBar";var MT=Nm(sr({...sr({name:TT}),props:CT,setup(e,{expose:t}){const n=e,r=jo(),i=Fr(ST);i||sf(TT,"<el-tabs><el-tab-bar /></el-tabs>");const o=Og("tabs"),a=Et(),s=Et(),l=()=>s.value=(()=>{let e=0,t=0;const o=["top","bottom"].includes(i.props.tabPosition)?"width":"height",a="width"===o?"x":"y",s="x"===a?"left":"top";return n.tabs.every((i=>{var a,l;const u=null==(l=null==(a=r.parent)?void 0:a.refs)?void 0:l["tab-".concat(i.uid)];if(!u)return!1;if(!i.active)return!0;e=u["offset".concat(nf(s))],t=u["client".concat(nf(o))];const c=window.getComputedStyle(u);return"width"===o&&(n.tabs.length>1&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),e+=Number.parseFloat(c.paddingLeft)),!1})),{[o]:"".concat(t,"px"),transform:"translate".concat(nf(a),"(").concat(e,"px)")}})();return Mi((()=>n.tabs),(async()=>{await rn(),l()}),{immediate:!0}),Al(a,(()=>l())),t({ref:a,update:l}),(e,t)=>(go(),xo("div",{ref_key:"barRef",ref:a,class:Y([Lt(o).e("active-bar"),Lt(o).is(Lt(i).props.tabPosition)]),style:j(s.value)},null,6))}}),[["__file","tab-bar.vue"]]);const kT=Qf({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),AT="ElTabNav",IT=sr({name:AT,props:kT,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const r=jo(),i=Fr(ST);i||sf(AT,"<el-tabs><tab-nav /></el-tabs>");const o=Og("tabs"),a=function({document:e=ml}={}){if(!e)return Et("visible");const t=Et(e.visibilityState);return yl(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),s=function({window:e=vl}={}){if(!e)return Et(!1);const t=Et(e.document.hasFocus());return yl(e,"blur",(()=>{t.value=!1})),yl(e,"focus",(()=>{t.value=!0})),t}(),l=Et(),u=Et(),c=Et(),d=Et(),p=Et(!1),h=Et(0),f=Et(!1),g=Et(!0),v=ia((()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height")),m=ia((()=>{const e="width"===v.value?"X":"Y";return{transform:"translate".concat(e,"(-").concat(h.value,"px)")}})),y=()=>{if(!l.value)return;const e=l.value["offset".concat(nf(v.value))],t=h.value;if(!t)return;const n=t>e?t-e:0;h.value=n},b=()=>{if(!l.value||!u.value)return;const e=u.value["offset".concat(nf(v.value))],t=l.value["offset".concat(nf(v.value))],n=h.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;h.value=r},x=async()=>{const e=u.value;if(!(p.value&&c.value&&l.value&&e))return;await rn();const t=c.value.querySelector(".is-active");if(!t)return;const n=l.value,r=["top","bottom"].includes(i.props.tabPosition),o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s=r?e.offsetWidth-a.width:e.offsetHeight-a.height,d=h.value;let f=d;r?(o.left<a.left&&(f=d-(a.left-o.left)),o.right>a.right&&(f=d+o.right-a.right)):(o.top<a.top&&(f=d-(a.top-o.top)),o.bottom>a.bottom&&(f=d+(o.bottom-a.bottom))),f=Math.max(f,0),h.value=Math.min(f,s)},_=()=>{var t;if(!u.value||!l.value)return;e.stretch&&(null==(t=d.value)||t.update());const n=u.value["offset".concat(nf(v.value))],r=l.value["offset".concat(nf(v.value))],i=h.value;r<n?(p.value=p.value||{},p.value.prev=i,p.value.next=i+r<n,n-i<r&&(h.value=n-r)):(p.value=!1,i>0&&(h.value=0))},w=e=>{const t=e.code,{up:n,down:r,left:i,right:o}=sg;if(![n,r,i,o].includes(t))return;const a=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),s=a.indexOf(e.target);let l;l=t===i||t===n?0===s?a.length-1:s-1:s<a.length-1?s+1:0,a[l].focus({preventScroll:!0}),a[l].click(),S()},S=()=>{g.value&&(f.value=!0)},C=()=>f.value=!1;return Mi(a,(e=>{"hidden"===e?g.value=!1:"visible"===e&&setTimeout((()=>g.value=!0),50)})),Mi(s,(e=>{e?setTimeout((()=>g.value=!0),50):g.value=!1})),Al(c,_),Xn((()=>setTimeout((()=>x()),0))),$n((()=>_())),t({scrollToActiveTab:x,removeFocus:C}),Mi((()=>e.panes),(()=>r.update()),{flush:"post",deep:!0}),()=>{const t=p.value?[ko("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:y},[ko(jm,null,{default:()=>[ko(_f,null,null)]})]),ko("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:b},[ko(jm,null,{default:()=>[ko(wf,null,null)]})])]:null,r=e.panes.map(((t,r)=>{var a,s,l,u;const c=t.uid,d=t.props.disabled,p=null!=(s=null!=(a=t.props.name)?a:t.index)?s:"".concat(r),h=!d&&(t.isClosable||e.editable);t.index="".concat(r);const g=h?ko(jm,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[ko(Ef,null,null)]}):null,v=(null==(u=(l=t.slots).label)?void 0:u.call(l))||t.props.label,m=!d&&t.active?0:-1;return ko("div",{ref:"tab-".concat(c),class:[o.e("item"),o.is(i.props.tabPosition),o.is("active",t.active),o.is("disabled",d),o.is("closable",h),o.is("focus",f.value)],id:"tab-".concat(p),key:"tab-".concat(c),"aria-controls":"pane-".concat(p),role:"tab","aria-selected":t.active,tabindex:m,onFocus:()=>S(),onBlur:()=>C(),onClick:e=>{C(),n("tabClick",t,p,e)},onKeydown:e=>{!h||e.code!==sg.delete&&e.code!==sg.backspace||n("tabRemove",t,e)}},[v,g])}));return ko("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(i.props.tabPosition)]},[t,ko("div",{class:o.e("nav-scroll"),ref:l},[ko("div",{class:[o.e("nav"),o.is(i.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:w},[e.type?null:ko(MT,{ref:d,tabs:[...e.panes]},null),r])])])}}}),ET=Qf({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),OT=e=>m(e)||$h(e),DT={[lg]:e=>OT(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>OT(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>OT(e),tabAdd:()=>!0},PT=sr({name:"ElTabs",props:ET,emits:DT,setup(e,{emit:t,slots:n,expose:r}){var i;const o=Og("tabs"),{children:a,addChild:s,removeChild:l}=_m(jo(),"ElTabPane"),u=Et(),c=Et(null!=(i=e.modelValue)?i:"0"),d=async(n,r=!1)=>{var i,o,a;if(c.value!==n&&!Xh(n))try{!1!==await(null==(i=e.beforeLeave)?void 0:i.call(e,n,c.value))&&(c.value=n,r&&(t(lg,n),t("tabChange",n)),null==(a=null==(o=u.value)?void 0:o.removeFocus)||a.call(o))}catch(s){}},p=(e,n,r)=>{e.props.disabled||(d(n,!0),t("tabClick",e,r))},h=(e,n)=>{e.props.disabled||Xh(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},f=()=>{t("edit",void 0,"add"),t("tabAdd")};return Mi((()=>e.modelValue),(e=>d(e))),Mi(c,(async()=>{var e;await rn(),null==(e=u.value)||e.scrollToActiveTab()})),zr(ST,{props:e,currentName:c,registerPane:s,unregisterPane:l}),r({currentName:c}),()=>{const t=n["add-icon"],r=e.editable||e.addable?ko("span",{class:o.e("new-tab"),tabindex:"0",onClick:f,onKeydown:e=>{e.code===sg.enter&&f()}},[t?cr(n,"add-icon"):ko(jm,{class:o.is("icon-plus")},{default:()=>[ko(Ff,null,null)]})]):null,i=ko("div",{class:[o.e("header"),o.is(e.tabPosition)]},[r,ko(IT,{ref:u,currentName:c.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:p,onTabRemove:h},null)]),s=ko("div",{class:o.e("content")},[cr(n,"default")]);return ko("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:"card"===e.type,[o.m("border-card")]:"border-card"===e.type}]},[..."bottom"!==e.tabPosition?[i,s]:[s,i]])}}}),LT=Qf({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),RT=["id","aria-hidden","aria-labelledby"],BT="ElTabPane";var NT=Nm(sr({...sr({name:BT}),props:LT,setup(e){const t=e,n=jo(),r=mr(),i=Fr(ST);i||sf(BT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=Og("tab-pane"),a=Et(),s=ia((()=>t.closable||i.props.closable)),l=nl((()=>{var e;return i.currentName.value===(null!=(e=t.name)?e:a.value)})),u=Et(l.value),c=ia((()=>{var e;return null!=(e=t.name)?e:a.value})),d=nl((()=>!t.lazy||u.value||l.value));Mi(l,(e=>{e&&(u.value=!0)}));const p=ht({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:a,isClosable:s});return Xn((()=>{i.registerPane(p)})),Jn((()=>{i.unregisterPane(p.uid)})),(e,t)=>Lt(d)?rr((go(),xo("div",{key:0,id:"pane-".concat(Lt(c)),class:Y(Lt(o).b()),role:"tabpanel","aria-hidden":!Lt(l),"aria-labelledby":"tab-".concat(Lt(c))},[cr(e.$slots,"default")],10,RT)),[[za,Lt(l)]]):Do("v-if",!0)}}),[["__file","tab-pane.vue"]]);const zT=og(PT,{TabPane:NT}),FT=ag(NT),VT=Qf({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:dg,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});const HT=og(Nm(sr({...sr({name:"ElText"}),props:VT,setup(e){const t=e,n=Um(),r=Og("text"),i=ia((()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!Xh(t.lineClamp))]));return(e,t)=>(go(),_o(Pn(e.tag),{class:Y(Lt(i)),style:j({"-webkit-line-clamp":e.lineClamp})},{default:Sn((()=>[cr(e.$slots,"default")])),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),jT=sr({name:"ElTimeline",setup(e,{slots:t}){const n=Og("timeline");return zr("timeline",t),()=>aa("ul",{class:[n.b()]},[cr(t,"default")])}}),WT=Qf({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:eg},hollow:{type:Boolean,default:!1}});var GT=Nm(sr({...sr({name:"ElTimelineItem"}),props:WT,setup(e){const t=e,n=Og("timeline-item"),r=ia((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>(go(),xo("li",{class:Y([Lt(n).b(),{[Lt(n).e("center")]:e.center}])},[Mo("div",{class:Y(Lt(n).e("tail"))},null,2),e.$slots.dot?Do("v-if",!0):(go(),xo("div",{key:0,class:Y(Lt(r)),style:j({backgroundColor:e.color})},[e.icon?(go(),_o(Lt(jm),{key:0,class:Y(Lt(n).e("icon"))},{default:Sn((()=>[(go(),_o(Pn(e.icon)))])),_:1},8,["class"])):Do("v-if",!0)],6)),e.$slots.dot?(go(),xo("div",{key:1,class:Y(Lt(n).e("dot"))},[cr(e.$slots,"dot")],2)):Do("v-if",!0),Mo("div",{class:Y(Lt(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Do("v-if",!0):(go(),xo("div",{key:0,class:Y([Lt(n).e("timestamp"),Lt(n).is("top")])},Q(e.timestamp),3)),Mo("div",{class:Y(Lt(n).e("content"))},[cr(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Do("v-if",!0):(go(),xo("div",{key:1,class:Y([Lt(n).e("timestamp"),Lt(n).is("bottom")])},Q(e.timestamp),3))],2)],2))}}),[["__file","timeline-item.vue"]]);const UT=og(jT,{TimelineItem:GT}),qT=ag(GT),YT=Qf({container:{type:[String,Object]},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:String,default:"default"},direction:{type:String,default:"vertical"}}),XT={change:e=>m(e),click:(e,t)=>e instanceof MouseEvent&&(m(t)||Xh(t))},KT=Symbol("anchor"),$T=sr({...sr({name:"ElAnchor"}),props:YT,emits:XT,setup(e,{expose:t,emit:n}){const r=e,i=Et(""),o=Et(null),a=Et(null),s=Et(),l={};let u=!1,c=0;const d=Og("anchor"),p=ia((()=>[d.b(),"underline"===r.type?d.m("underline"):"",d.m(r.direction)])),h=e=>{i.value!==e&&(i.value=e,n("change",e))};let f=null;const g=e=>{if(!s.value)return;const t=bf(e);if(!t)return;f&&f(),u=!0;const n=mf(t,s.value),i=jl(t,n),o=n.scrollHeight-n.clientHeight,a=Math.min(i-r.offset,o);f=function(e,t,n,r,i){const o=Date.now();let a;const s=()=>{const l=Date.now()-o,u=function(e,t,n,r){const i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}(l>r?r:l,t,n,r);Qh(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,l<r?a=ef(s):"function"==typeof i&&i()};return s(),()=>{a&&tf(a)}}(s.value,c,a,r.duration,(()=>{setTimeout((()=>{u=!1}),20)}))},v=e=>{e&&(h(e),g(e))},m=function(e){let t=0;const n=(...n)=>{t&&tf(t),t=ef((()=>{e(...n),t=0}))};return n.cancel=()=>{tf(t),t=0},n}((()=>{s.value&&(c=yf(s.value));const e=y();u||Xh(e)||h(e)})),y=()=>{if(!s.value)return;const e=yf(s.value),t=[];for(const n of Object.keys(l)){const e=bf(n);if(!e)continue;const i=mf(e,s.value),o=jl(e,i);t.push({top:o-r.offset-r.bound,href:n})}t.sort(((e,t)=>e.top-t.top));for(let n=0;n<t.length;n++){const r=t[n],i=t[n+1];if(0===n&&0===e)return"";if(r.top<=e&&(!i||i.top>e))return r.href}},b=()=>{const e=bf(r.container);!e||Qh(e)?s.value=window:s.value=e};yl(s,"scroll",m);const x=ia((()=>{if(!o.value||!a.value||!i.value)return{};const e=l[i.value];if(!e)return{};const t=o.value.getBoundingClientRect(),n=a.value.getBoundingClientRect(),s=e.getBoundingClientRect();if("horizontal"===r.direction){const e=s.left-t.left;return{left:"".concat(e,"px"),width:"".concat(s.width,"px"),opacity:1}}{const e=s.top-t.top+(s.height-n.height)/2;return{top:"".concat(e,"px"),opacity:1}}}));return Xn((()=>{b();const e=decodeURIComponent(window.location.hash);bf(e)?v(e):m()})),Mi((()=>r.container),(()=>{b()})),zr(KT,{ns:d,direction:r.direction,currentAnchor:i,addLink:e=>{l[e.href]=e.el},removeLink:e=>{delete l[e]},handleClick:(e,t)=>{n("click",e,t),v(t)}}),t({scrollTo:v}),(e,t)=>(go(),xo("div",{ref_key:"anchorRef",ref:o,class:Y(Lt(p))},[e.marker?(go(),xo("div",{key:0,ref_key:"markerRef",ref:a,class:Y(Lt(d).e("marker")),style:j(Lt(x))},null,6)):Do("v-if",!0),Mo("div",{class:Y(Lt(d).e("list"))},[cr(e.$slots,"default")],2)],2))}});var ZT=Nm($T,[["__file","anchor.vue"]]);const JT=Qf({title:String,href:String}),QT=["href"];var eM=Nm(sr({...sr({name:"ElAnchorLink"}),props:JT,setup(e){const t=e,n=Et(null),{ns:r,direction:i,currentAnchor:o,addLink:a,removeLink:s,handleClick:l}=Fr(KT),u=ia((()=>[r.e("link"),r.is("active",o.value===t.href)])),c=e=>{l(e,t.href)};return Mi((()=>t.href),((e,t)=>{rn((()=>{t&&s(t),e&&a({href:e,el:n.value})}))})),Xn((()=>{const{href:e}=t;e&&a({href:e,el:n.value})})),Zn((()=>{const{href:e}=t;e&&s(e)})),(e,t)=>(go(),xo("div",{class:Y(Lt(r).e("item"))},[Mo("a",{ref_key:"linkRef",ref:n,class:Y(Lt(u)),href:e.href,onClick:c},[cr(e.$slots,"default",{},(()=>[Eo(Q(e.title),1)]))],10,QT),e.$slots["sub-link"]&&"vertical"===Lt(i)?(go(),xo("div",{key:0,class:Y(Lt(r).e("list"))},[cr(e.$slots,"sub-link")],2)):Do("v-if",!0)],2))}}),[["__file","anchor-link.vue"]]);const tM=og(ZT,{AnchorLink:eM}),nM=ag(eM),rM=Qf({options:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:wm,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Am(["ariaLabel"])}),iM={[lg]:e=>m(e)||$h(e),[ug]:e=>m(e)||$h(e)},oM=["id","aria-label","aria-labelledby"],aM=["name","disabled","checked","onChange"],sM=sr({...sr({name:"ElSegmented"}),props:rM,emits:iM,setup(e,{emit:t}){const n=e,r=Og("segmented"),i=lm(),o=Um(),a=qm(),{formItem:s}=Ym(),{inputId:l,isLabeledByFormItem:u}=Xm(n,{formItemContext:s}),c=Et(null),d=xl(),p=ht({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),h=e=>b(e)?e.value:e,f=e=>b(e)?e.label:e,g=e=>!!(a.value||b(e)&&e.disabled),v=e=>n.modelValue===h(e),m=e=>[r.e("item"),r.is("selected",v(e)),r.is("disabled",g(e))],y=()=>{if(!c.value)return;const e=c.value.querySelector(".is-selected"),t=c.value.querySelector(".is-selected input");if(!e||!t)return p.width=0,p.translateX=0,p.disabled=!1,void(p.focusVisible=!1);const r=e.getBoundingClientRect();var i;p.isInit=!0,p.width=r.width,p.translateX=e.offsetLeft,p.disabled=g((i=n.modelValue,n.options.find((e=>h(e)===i))));try{p.focusVisible=t.matches(":focus-visible")}catch(o){}},x=ia((()=>[r.b(),r.m(o.value),r.is("block",n.block)])),_=ia((()=>({width:"".concat(p.width,"px"),transform:"translateX(".concat(p.translateX,"px)"),display:p.isInit?"block":"none"}))),w=ia((()=>[r.e("item-selected"),r.is("disabled",p.disabled),r.is("focus-visible",p.focusVisible)])),S=ia((()=>n.name||i.value));return Al(c,y),Mi(d,y),Mi((()=>n.modelValue),(()=>{var e;y(),n.validateEvent&&(null==(e=null==s?void 0:s.validate)||e.call(s,"change").catch((e=>{})))}),{flush:"post"}),(e,n)=>(go(),xo("div",{id:Lt(l),ref_key:"segmentedRef",ref:c,class:Y(Lt(x)),role:"radiogroup","aria-label":Lt(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":Lt(u)?Lt(s).labelId:void 0},[Mo("div",{class:Y(Lt(r).e("group"))},[Mo("div",{style:j(Lt(_)),class:Y(Lt(w))},null,6),(go(!0),xo(lo,null,or(e.options,((n,i)=>(go(),xo("label",{key:i,class:Y(m(n))},[Mo("input",{class:Y(Lt(r).e("item-input")),type:"radio",name:Lt(S),disabled:g(n),checked:v(n),onChange:e=>(e=>{const n=h(e);t(lg,n),t(ug,n)})(n)},null,42,aM),Mo("div",{class:Y(Lt(r).e("item-label"))},[cr(e.$slots,"default",{item:n},(()=>[Eo(Q(f(n)),1)]))],2)],2)))),128))],2)],10,oM))}});const lM=og(Nm(sM,[["__file","segmented.vue"]])),uM=["success","info","warning","error"],cM={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:rl?document.body:void 0},dM=Qf({customClass:{type:String,default:cM.customClass},center:{type:Boolean,default:cM.center},dangerouslyUseHTMLString:{type:Boolean,default:cM.dangerouslyUseHTMLString},duration:{type:Number,default:cM.duration},icon:{type:eg,default:cM.icon},id:{type:String,default:cM.id},message:{type:[String,Object,Function],default:cM.message},onClose:{type:Function,default:cM.onClose},showClose:{type:Boolean,default:cM.showClose},type:{type:String,values:uM,default:cM.type},plain:{type:Boolean,default:cM.plain},offset:{type:Number,default:cM.offset},zIndex:{type:Number,default:cM.zIndex},grouping:{type:Boolean,default:cM.grouping},repeatNum:{type:Number,default:cM.repeatNum}}),pM=ft([]),hM=e=>{const{prev:t}=(e=>{const t=pM.findIndex((t=>t.id===e)),n=pM[t];let r;return t>0&&(r=pM[t-1]),{current:n,prev:r}})(e);return t?t.vm.exposed.bottom.value:0},fM=["id"],gM=["innerHTML"];var vM=Nm(sr({...sr({name:"ElMessage"}),props:dM,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:r}=ng,{ns:i,zIndex:o}=function(e,t){const n=Om(),r=Og(e,ia((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||kg}))),i=Mg(ia((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),o=xm(ia((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||2e3}))),a=ia((()=>{var e;return Lt(t)||(null==(e=n.value)?void 0:e.size)||""}));return Dm(ia((()=>Lt(n)||{}))),{ns:r,locale:i,zIndex:o,size:a}}("message"),{currentZIndex:a,nextZIndex:s}=o,l=Et(),u=Et(!1),c=Et(0);let d;const p=ia((()=>n.type?"error"===n.type?"danger":n.type:"info")),h=ia((()=>{const e=n.type;return{[i.bm("icon",e)]:e&&rg[e]}})),f=ia((()=>n.icon||rg[n.type]||"")),g=ia((()=>hM(n.id))),v=ia((()=>((e,t)=>pM.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+g.value)),m=ia((()=>c.value+v.value)),y=ia((()=>({top:"".concat(v.value,"px"),zIndex:a.value})));function b(){0!==n.duration&&({stop:d}=fl((()=>{_()}),n.duration))}function x(){null==d||d()}function _(){u.value=!1}return Xn((()=>{b(),s(),u.value=!0})),Mi((()=>n.repeatNum),(()=>{x(),b()})),yl(document,"keydown",(function({code:e}){e===sg.esc&&_()})),Al(l,(()=>{c.value=l.value.getBoundingClientRect().height})),t({visible:u,bottom:m,close:_}),(e,t)=>(go(),_o(xa,{name:Lt(i).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:Sn((()=>[rr(Mo("div",{id:e.id,ref_key:"messageRef",ref:l,class:Y([Lt(i).b(),{[Lt(i).m(e.type)]:e.type},Lt(i).is("center",e.center),Lt(i).is("closable",e.showClose),Lt(i).is("plain",e.plain),e.customClass]),style:j(Lt(y)),role:"alert",onMouseenter:x,onMouseleave:b},[e.repeatNum>1?(go(),_o(Lt(px),{key:0,value:e.repeatNum,type:Lt(p),class:Y(Lt(i).e("badge"))},null,8,["value","type","class"])):Do("v-if",!0),Lt(f)?(go(),_o(Lt(jm),{key:1,class:Y([Lt(i).e("icon"),Lt(h)])},{default:Sn((()=>[(go(),_o(Pn(Lt(f))))])),_:1},8,["class"])):Do("v-if",!0),cr(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(go(),xo(lo,{key:1},[Do(" Caution here, message could've been compromised, never use user's input as message "),Mo("p",{class:Y(Lt(i).e("content")),innerHTML:e.message},null,10,gM)],2112)):(go(),xo("p",{key:0,class:Y(Lt(i).e("content"))},Q(e.message),3))])),e.showClose?(go(),_o(Lt(jm),{key:2,class:Y(Lt(i).e("closeBtn")),onClick:Ps(_,["stop"])},{default:Sn((()=>[ko(Lt(r))])),_:1},8,["class","onClick"])):Do("v-if",!0)],46,fM),[[za,u.value]])])),_:3},8,["name","onBeforeLeave"]))}}),[["__file","message.vue"]]);let mM=1;const yM=e=>{const t=!e||m(e)||wo(e)||v(e)?{message:e}:e,n={...cM,...t};if(n.appendTo){if(m(n.appendTo)){let e=document.querySelector(n.appendTo);Zh(e)||(e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},bM=({appendTo:e,...t},n)=>{const r="message_".concat(mM++),i=t.onClose,o=document.createElement("div"),a={...t,id:r,onClose:()=>{null==i||i(),(e=>{const t=pM.indexOf(e);if(-1===t)return;pM.splice(t,1);const{handler:n}=e;n.close()})(c)},onDestroy:()=>{Hs(null,o)}},s=ko(vM,a,v(a.message)||wo(a.message)?{default:v(a.message)?a.message:()=>a.message}:null);s.appContext=n||xM._context,Hs(s,o),e.appendChild(o.firstElementChild);const l=s.component,u={close:()=>{l.exposed.visible.value=!1}},c={id:r,vnode:s,vm:l,handler:u,props:s.component.props};return c},xM=(e={},t)=>{if(!rl)return{close:()=>{}};if($h(Lm.max)&&pM.length>=Lm.max)return{close:()=>{}};const n=yM(e);if(n.grouping&&pM.length){const e=pM.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=bM(n,t);return pM.push(r),r.handler};uM.forEach((e=>{xM[e]=(t={},n)=>{const r=yM(t);return xM({...r,type:e},n)}})),xM.closeAll=function(e){for(const t of pM)e&&e!==t.props.type||t.handler.close()},xM._context=null;const _M=(SM="$message",(wM=xM).install=e=>{wM._context=e._context,e.config.globalProperties[SM]=wM},wM);
/*! js-cookie v3.0.5 | MIT */var wM,SM;function CM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var TM=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=CM({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}},remove:function(e,t){r(e,"",CM({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,CM({},this.attributes,t))},withConverter:function(t){return e(CM({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),MM={exports:{}};var kM={exports:{}};const AM=Wx(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var IM;function EM(){return IM||(IM=1,kM.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Hx&&Hx.crypto&&(n=Hx.crypto),!n)try{n=AM}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},s=a.Base=function(){return{extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),u=o.enc={},c=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,o);if(u){for(var d=0;d<u;d+=a)this._doProcessBlock(i,d);n=i.splice(0,u),r.sigBytes-=c}return new l.init(n,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=o.algo={};return o}(Math),e)),kM.exports;var e}var OM,DM={exports:{}};function PM(){return OM||(OM=1,DM.exports=(a=EM(),n=(t=a).lib,r=n.Base,i=n.WordArray,(o=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),a)),DM.exports;var e,t,n,r,i,o,a}var LM,RM={exports:{}};function BM(){return LM||(LM=1,RM.exports=(e=EM(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),RM.exports;var e}var NM,zM={exports:{}};function FM(){return NM||(NM=1,zM.exports=(e=EM(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16)),zM.exports;var e}var VM,HM={exports:{}};function jM(){return VM||(VM=1,HM.exports=(e=EM(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),HM.exports;var e}var WM,GM={exports:{}};function UM(){return WM||(WM=1,GM.exports=(e=EM(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url)),GM.exports;var e}var qM,YM={exports:{}};function XM(){return qM||(qM=1,YM.exports=(e=EM(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],g=e[t+4],v=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],_=e[t+10],w=e[t+11],S=e[t+12],C=e[t+13],T=e[t+14],M=e[t+15],k=o[0],A=o[1],I=o[2],E=o[3];k=u(k,A,I,E,a,7,s[0]),E=u(E,k,A,I,l,12,s[1]),I=u(I,E,k,A,h,17,s[2]),A=u(A,I,E,k,f,22,s[3]),k=u(k,A,I,E,g,7,s[4]),E=u(E,k,A,I,v,12,s[5]),I=u(I,E,k,A,m,17,s[6]),A=u(A,I,E,k,y,22,s[7]),k=u(k,A,I,E,b,7,s[8]),E=u(E,k,A,I,x,12,s[9]),I=u(I,E,k,A,_,17,s[10]),A=u(A,I,E,k,w,22,s[11]),k=u(k,A,I,E,S,7,s[12]),E=u(E,k,A,I,C,12,s[13]),I=u(I,E,k,A,T,17,s[14]),k=c(k,A=u(A,I,E,k,M,22,s[15]),I,E,l,5,s[16]),E=c(E,k,A,I,m,9,s[17]),I=c(I,E,k,A,w,14,s[18]),A=c(A,I,E,k,a,20,s[19]),k=c(k,A,I,E,v,5,s[20]),E=c(E,k,A,I,_,9,s[21]),I=c(I,E,k,A,M,14,s[22]),A=c(A,I,E,k,g,20,s[23]),k=c(k,A,I,E,x,5,s[24]),E=c(E,k,A,I,T,9,s[25]),I=c(I,E,k,A,f,14,s[26]),A=c(A,I,E,k,b,20,s[27]),k=c(k,A,I,E,C,5,s[28]),E=c(E,k,A,I,h,9,s[29]),I=c(I,E,k,A,y,14,s[30]),k=d(k,A=c(A,I,E,k,S,20,s[31]),I,E,v,4,s[32]),E=d(E,k,A,I,b,11,s[33]),I=d(I,E,k,A,w,16,s[34]),A=d(A,I,E,k,T,23,s[35]),k=d(k,A,I,E,l,4,s[36]),E=d(E,k,A,I,g,11,s[37]),I=d(I,E,k,A,y,16,s[38]),A=d(A,I,E,k,_,23,s[39]),k=d(k,A,I,E,C,4,s[40]),E=d(E,k,A,I,a,11,s[41]),I=d(I,E,k,A,f,16,s[42]),A=d(A,I,E,k,m,23,s[43]),k=d(k,A,I,E,x,4,s[44]),E=d(E,k,A,I,S,11,s[45]),I=d(I,E,k,A,M,16,s[46]),k=p(k,A=d(A,I,E,k,h,23,s[47]),I,E,a,6,s[48]),E=p(E,k,A,I,y,10,s[49]),I=p(I,E,k,A,T,15,s[50]),A=p(A,I,E,k,v,21,s[51]),k=p(k,A,I,E,S,6,s[52]),E=p(E,k,A,I,f,10,s[53]),I=p(I,E,k,A,_,15,s[54]),A=p(A,I,E,k,l,21,s[55]),k=p(k,A,I,E,b,6,s[56]),E=p(E,k,A,I,M,10,s[57]),I=p(I,E,k,A,m,15,s[58]),A=p(A,I,E,k,C,21,s[59]),k=p(k,A,I,E,g,6,s[60]),E=p(E,k,A,I,w,10,s[61]),I=p(I,E,k,A,h,15,s[62]),A=p(A,I,E,k,x,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+A|0,o[2]=o[2]+I|0,o[3]=o[3]+E|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function p(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5)),YM.exports;var e}var KM,$M={exports:{}};function ZM(){return KM||(KM=1,$M.exports=(s=EM(),t=(e=s).lib,n=t.WordArray,r=t.Hasher,i=e.algo,o=[],a=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|e[t+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var d=(r<<5|r>>>27)+l+o[u];d+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a),s.SHA1)),$M.exports;var e,t,n,r,i,o,a,s}var JM,QM={exports:{}};function ek(){return JM||(JM=1,QM.exports=(e=EM(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var f=u[h-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[h-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[h]=g+u[h-7]+m+u[h-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&d)+l[h]+u[h];p=d,d=c,c=s,s=a+x|0,a=o,o=i,i=r,r=x+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(c),n.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256)),QM.exports;var e}var tk,nk={exports:{}};var rk,ik={exports:{}};function ok(){return rk||(rk=1,ik.exports=(e=EM(),PM(),function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var c=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5],d=n[6],p=n[7],h=r.high,f=r.low,g=i.high,v=i.low,m=o.high,y=o.low,b=a.high,x=a.low,_=s.high,w=s.low,S=c.high,C=c.low,T=d.high,M=d.low,k=p.high,A=p.low,I=h,E=f,O=g,D=v,P=m,L=y,R=b,B=x,N=_,z=w,F=S,V=C,H=T,j=M,W=k,G=A,U=0;U<80;U++){var q,Y,X=u[U];if(U<16)Y=X.high=0|e[t+2*U],q=X.low=0|e[t+2*U+1];else{var K=u[U-15],$=K.high,Z=K.low,J=($>>>1|Z<<31)^($>>>8|Z<<24)^$>>>7,Q=(Z>>>1|$<<31)^(Z>>>8|$<<24)^(Z>>>7|$<<25),ee=u[U-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=u[U-7],ae=oe.high,se=oe.low,le=u[U-16],ue=le.high,ce=le.low;Y=(Y=(Y=J+ae+((q=Q+se)>>>0<Q>>>0?1:0))+re+((q+=ie)>>>0<ie>>>0?1:0))+ue+((q+=ce)>>>0<ce>>>0?1:0),X.high=Y,X.low=q}var de,pe=N&F^~N&H,he=z&V^~z&j,fe=I&O^I&P^O&P,ge=E&D^E&L^D&L,ve=(I>>>28|E<<4)^(I<<30|E>>>2)^(I<<25|E>>>7),me=(E>>>28|I<<4)^(E<<30|I>>>2)^(E<<25|I>>>7),ye=(N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9),be=(z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9),xe=l[U],_e=xe.high,we=xe.low,Se=W+ye+((de=G+be)>>>0<G>>>0?1:0),Ce=me+ge;W=H,G=j,H=F,j=V,F=N,V=z,N=R+(Se=(Se=(Se=Se+pe+((de+=he)>>>0<he>>>0?1:0))+_e+((de+=we)>>>0<we>>>0?1:0))+Y+((de+=q)>>>0<q>>>0?1:0))+((z=B+de|0)>>>0<B>>>0?1:0)|0,R=P,B=L,P=O,L=D,O=I,D=E,I=Se+(ve+fe+(Ce>>>0<me>>>0?1:0))+((E=de+Ce|0)>>>0<de>>>0?1:0)|0}f=r.low=f+E,r.high=h+I+(f>>>0<E>>>0?1:0),v=i.low=v+D,i.high=g+O+(v>>>0<D>>>0?1:0),y=o.low=y+L,o.high=m+P+(y>>>0<L>>>0?1:0),x=a.low=x+B,a.high=b+R+(x>>>0<B>>>0?1:0),w=s.low=w+z,s.high=_+N+(w>>>0<z>>>0?1:0),C=c.low=C+V,c.high=S+F+(C>>>0<V>>>0?1:0),M=d.low=M+j,d.high=T+H+(M>>>0<j>>>0?1:0),A=p.low=A+G,p.high=k+W+(A>>>0<G>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(c),t.HmacSHA512=n._createHmacHelper(c)}(),e.SHA512)),ik.exports;var e}var ak,sk={exports:{}};var lk,uk={exports:{}};function ck(){return lk||(lk=1,uk.exports=(e=EM(),PM(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64.Word,s=n.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,p=0;p<7;p++){if(1&i){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&i?i=i<<1^113:i<<=1}c[o]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(A=n[i]).high^=a,A.low^=o}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,g=0;g<5;g++)h^=(A=n[p+5*g]).high,f^=A.low;var v=d[p];v.high=h,v.low=f}for(p=0;p<5;p++){var m=d[(p+4)%5],y=d[(p+1)%5],b=y.high,x=y.low;for(h=m.high^(b<<1|x>>>31),f=m.low^(x<<1|b>>>31),g=0;g<5;g++)(A=n[p+5*g]).high^=h,A.low^=f}for(var _=1;_<25;_++){var w=(A=n[_]).high,S=A.low,C=l[_];C<32?(h=w<<C|S>>>32-C,f=S<<C|w>>>32-C):(h=S<<C-32|w>>>64-C,f=w<<C-32|S>>>64-C);var T=d[u[_]];T.high=h,T.low=f}var M=d[0],k=n[0];for(M.high=k.high,M.low=k.low,p=0;p<5;p++)for(g=0;g<5;g++){var A=n[_=p+5*g],I=d[_],E=d[(p+1)%5+5*g],O=d[(p+2)%5+5*g];A.high=I.high^~E.high&O.high,A.low=I.low^~E.low&O.low}A=n[0];var D=c[s];A.high^=D.high,A.low^=D.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var d=a[c],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(p)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),e.SHA3)),uk.exports;var e}var dk,pk={exports:{}};var hk,fk={exports:{}};function gk(){return hk||(hk=1,fk.exports=(e=EM(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),fk.exports;var e,t,n,r}var vk,mk={exports:{}};var yk,bk={exports:{}};function xk(){return yk||(yk=1,bk.exports=(s=EM(),ZM(),gk(),t=(e=s).lib,n=t.Base,r=t.WordArray,i=e.algo,o=i.MD5,a=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,u=i.iterations;s.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var c=1;c<u;c++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}}),e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)},s.EvpKDF)),bk.exports;var e,t,n,r,i,o,a,s}var _k,wk={exports:{}};function Sk(){return _k||(_k=1,wk.exports=(e=EM(),xk(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,u=n.algo.EvpKDF,c=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:m}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},p=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var e=p.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:h,padding:f}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=u.create({keySize:t+n,hasher:i}).compute(e,r);else var a=u.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,m.decrypt.call(this,e,t,i.key,r)}})}()))),wk.exports;var e}var Ck,Tk={exports:{}};var Mk,kk={exports:{}};var Ak,Ik={exports:{}};function Ek(){return Ak||(Ak=1,Ik.exports=(e=EM(),Sk(),
/** @preserve
       * Counter block mode compatible with  Dr Brian Gladman fileenc.c
       * derived from CryptoJS.mode.CTR
       * Jan Hruby jhruby.web@gmail.com
       */
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman)),Ik.exports;var e}var Ok,Dk={exports:{}};var Pk,Lk={exports:{}};var Rk,Bk={exports:{}};var Nk,zk={exports:{}};var Fk,Vk={exports:{}};var Hk,jk={exports:{}};var Wk,Gk={exports:{}};var Uk,qk={exports:{}};var Yk,Xk={exports:{}};var Kk,$k={exports:{}};function Zk(){return Kk||(Kk=1,$k.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],c=l[o];for(n=0;n<24;n++)u[n/6|0]|=t[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((a^i[l])&c[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(d);var f=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES)),$k.exports;var e}var Jk,Qk={exports:{}};var eA,tA={exports:{}};var nA,rA={exports:{}};var iA,oA,aA,sA,lA,uA,cA,dA={exports:{}};function pA(){return iA||(iA=1,dA.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function u(e,t,n){let r,o=t,a=n;for(let s=0;s<i;++s)o^=e.pbox[s],a=l(e,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=e.pbox[i],o^=e.pbox[i+1],{left:o,right:a}}function c(e,t,n){let r,o=t,a=n;for(let s=i+1;s>1;--s)o^=e.pbox[s],a=l(e,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}function d(e,t,n){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=a[i][t]}let r=0;for(let a=0;a<i+2;a++)e.pbox[a]=o[a]^t[r],r++,r>=n&&(r=0);let s=0,l=0,c=0;for(let o=0;o<i+2;o+=2)c=u(e,s,l),s=c.left,l=c.right,e.pbox[o]=s,e.pbox[o+1]=l;for(let i=0;i<4;i++)for(let t=0;t<256;t+=2)c=u(e,s,l),s=c.left,l=c.right,e.sbox[i][t]=s,e.sbox[i][t+1]=l;return!0}var p=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(p)}(),e.Blowfish)),dA.exports;var e}MM.exports=function(e){return e}(EM(),PM(),BM(),FM(),jM(),UM(),XM(),ZM(),ek(),tk||(tk=1,nk.exports=(cA=EM(),ek(),aA=(oA=cA).lib.WordArray,sA=oA.algo,lA=sA.SHA256,uA=sA.SHA224=lA.extend({_doReset:function(){this._hash=new aA.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=lA._doFinalize.call(this);return e.sigBytes-=4,e}}),oA.SHA224=lA._createHelper(uA),oA.HmacSHA224=lA._createHmacHelper(uA),cA.SHA224)),ok(),function(){return ak?sk.exports:(ak=1,sk.exports=(s=EM(),PM(),ok(),t=(e=s).x64,n=t.Word,r=t.WordArray,i=e.algo,o=i.SHA512,a=i.SHA384=o.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=o._createHelper(a),e.HmacSHA384=o._createHmacHelper(a),s.SHA384));var e,t,n,r,i,o,a,s}(),ck(),function(){return dk||(dk=1,pk.exports=(e=EM(),
/** @preserve
      			(c) 2012 by Cédric Mesnil. All rights reserved.
      
      			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
      
      			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
      			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
      
      			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      			*/
function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),p=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,x,_,w,S,C,T,M,k,A=this._hash.words,I=d.words,E=p.words,O=s.words,D=l.words,P=u.words,L=c.words;for(w=o=A[0],S=a=A[1],C=h=A[2],T=x=A[3],M=_=A[4],n=0;n<80;n+=1)k=o+e[t+O[n]]|0,k+=n<16?f(a,h,x)+I[0]:n<32?g(a,h,x)+I[1]:n<48?v(a,h,x)+I[2]:n<64?m(a,h,x)+I[3]:y(a,h,x)+I[4],k=(k=b(k|=0,P[n]))+_|0,o=_,_=x,x=b(h,10),h=a,a=k,k=w+e[t+D[n]]|0,k+=n<16?y(S,C,T)+E[0]:n<32?m(S,C,T)+E[1]:n<48?v(S,C,T)+E[2]:n<64?g(S,C,T)+E[3]:f(S,C,T)+E[4],k=(k=b(k|=0,L[n]))+M|0,w=M,M=T,T=b(C,10),C=S,S=k;k=A[1]+h+T|0,A[1]=A[2]+x+M|0,A[2]=A[3]+_+w|0,A[3]=A[4]+o+S|0,A[4]=A[0]+a+C|0,A[0]=k},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}n.RIPEMD160=o._createHelper(h),n.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160)),pk.exports;var e}(),gk(),function(){return vk||(vk=1,mk.exports=(l=EM(),ek(),gk(),t=(e=l).lib,n=t.Base,r=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=a.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,u=s.words,c=n.keySize,d=n.iterations;l.length<c;){var p=i.update(t).finalize(s);i.reset();for(var h=p.words,f=h.length,g=p,v=1;v<d;v++){g=i.finalize(g),i.reset();for(var m=g.words,y=0;y<f;y++)h[y]^=m[y]}o.concat(p),u[0]++}return o.sigBytes=4*c,o}}),e.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)},l.PBKDF2)),mk.exports;var e,t,n,r,i,o,a,s,l}(),xk(),Sk(),function(){return Ck||(Ck=1,Tk.exports=(e=EM(),Sk(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=o}}),t}(),e.mode.CFB)),Tk.exports;var e}(),function(){return Mk||(Mk=1,kk.exports=(n=EM(),Sk(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),e.Decryptor=t,e),n.mode.CTR)),kk.exports;var e,t,n}(),Ek(),function(){return Ok||(Ok=1,Dk.exports=(n=EM(),Sk(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}}),e.Decryptor=t,e),n.mode.OFB)),Dk.exports;var e,t,n}(),function(){return Pk?Lk.exports:(Pk=1,Lk.exports=(t=EM(),Sk(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Rk?Bk.exports:(Rk=1,Bk.exports=(e=EM(),Sk(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Nk?zk.exports:(Nk=1,zk.exports=(e=EM(),Sk(),e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Fk?Vk.exports:(Fk=1,Vk.exports=(e=EM(),Sk(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Hk||(Hk=1,jk.exports=(e=EM(),Sk(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),jk.exports;var e}(),function(){return Wk?Gk.exports:(Wk=1,Gk.exports=(e=EM(),Sk(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Uk?qk.exports:(Uk=1,qk.exports=(r=EM(),Sk(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return Yk||(Yk=1,Xk.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],l=[],u=[],c=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,i[n]=f,o[f]=n;var g=e[n],v=e[g],m=e[v],y=257*e[f]^16843008*f;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,u[n]=y,y=16843009*m^65537*v^257*g^16843008*n,c[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,p[f]=y<<8|y>>>24,h[f]=y,n?(n=g^e[e[e[m^g]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(u=o[a-1],a%n?n>6&&a%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=f[a/n|0]<<24),o[a]=o[a-n]^u);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var u=o[a];else u=o[a-4];s[l]=l<4||a<=4?u:c[i[u>>>24]]^d[i[u>>>16&255]]^p[i[u>>>8&255]]^h[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,d,p,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<l;f++){var g=r[u>>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&p]^n[h++],v=r[c>>>24]^i[d>>>16&255]^o[p>>>8&255]^a[255&u]^n[h++],m=r[d>>>24]^i[p>>>16&255]^o[u>>>8&255]^a[255&c]^n[h++],y=r[p>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&d]^n[h++];u=g,c=v,d=m,p=y}g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[h++],v=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[h++],m=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[h++],y=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[h++],e[t]=g,e[t+1]=v,e[t+2]=m,e[t+3]=y},keySize:8});t.AES=n._createHelper(g)}(),e.AES)),Xk.exports;var e}(),Zk(),function(){return Jk||(Jk=1,Qk.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4)),Qk.exports;var e}(),function(){return eA||(eA=1,tA.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,p=c<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=c,i[3]^=p,i[4]^=u,i[5]^=d,i[6]^=c,i[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit)),tA.exports;var e}(),function(){return nA||(nA=1,rA.exports=(e=EM(),jM(),XM(),xk(),Sk(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,p=c<<16|65535&u;for(r[0]^=u,r[1]^=d,r[2]^=c,r[3]^=p,r[4]^=u,r[5]^=d,r[6]^=c,r[7]^=p,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy)),rA.exports;var e}(),pA());const hA=jx(MM.exports);var fA="0123456789abcdefghijklmnopqrstuvwxyz";function gA(e){return fA.charAt(e)}function vA(e,t){return e&t}function mA(e,t){return e|t}function yA(e,t){return e^t}function bA(e,t){return e&~t}function xA(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function _A(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var wA,SA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function CA(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=SA.charAt(n>>6)+SA.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=SA.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=SA.charAt(n>>2)+SA.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function TA(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o=SA.indexOf(e.charAt(t));o<0||(0==r?(n+=gA(o>>2),i=3&o,r=1):1==r?(n+=gA(i<<2|o>>4),i=15&o,r=2):2==r?(n+=gA(i),n+=gA(o>>2),i=3&o,r=3):(n+=gA(i<<2|o>>4),n+=gA(15&o),r=0))}return 1==r&&(n+=gA(i<<2)),n}var MA,kA=function(e){var t;if(void 0===wA){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(wA={},t=0;t<16;++t)wA[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)wA[n.charAt(t)]=t;for(t=0;t<8;++t)wA[r.charAt(t)]=-1}var i=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(-1!=(s=wA[s])){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i},AA={decode:function(e){var t;if(void 0===MA){var n="= \f\n\r\t \u2028\u2029";for(MA=Object.create(null),t=0;t<64;++t)MA["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(MA["-"]=62,MA._=63,t=0;t<9;++t)MA[n.charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=MA[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=AA.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return AA.decode(e)}},IA=1e13,EA=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<IA?t=0:r-=(t=0|r/IA)*IA,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=IA,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(IA+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*IA+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),OA=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,DA=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function PA(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var LA,RA=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+="  ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?OA:DA).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0===(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new EA(r),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),l=a==t-1?r:0,u=7;u>=l;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+PA(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return PA(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new EA,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof EA)i.sub(80),r="2."+i.toString();else{var l=i<80?i<40?0:1:2;r=l+"."+(i-40*l)}else r+="."+i.toString();if(r.length>n)return PA(r,n);i=new EA,o=0}}return o>0&&(r+=".incomplete"),r},e}(),BA=function(){function e(e,t,n,r,i){if(!(r instanceof NA))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return PA(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return PA(this.stream.parseStringISO(t,t+n),e);case 30:return PA(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+="  ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof RA?t:new RA(t,0);var r=new RA(n),i=new NA(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,l=null,u=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(s){throw new Error("Exception while decoding undefined length content: "+s)}return t};if(i.tagConstructed)l=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(d){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,l)},e}(),NA=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new EA;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),zA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],FA=(1<<26)/zA[zA.length-1],VA=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=gA(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=gA(n));return i?o:"0"},e.prototype.negate=function(){var t=UA();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+QA(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=UA();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new jA(t):new WA(t),this.exp(e,n)},e.prototype.clone=function(){var e=UA();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=UA();return this.bitwiseTo(e,vA,t),t},e.prototype.or=function(e){var t=UA();return this.bitwiseTo(e,mA,t),t},e.prototype.xor=function(e){var t=UA();return this.bitwiseTo(e,yA,t),t},e.prototype.andNot=function(e){var t=UA();return this.bitwiseTo(e,bA,t),t},e.prototype.not=function(){for(var e=UA(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=UA();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=UA();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+xA(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=_A(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,mA)},e.prototype.clearBit=function(e){return this.changeBit(e,bA)},e.prototype.flipBit=function(e){return this.changeBit(e,yA)},e.prototype.add=function(e){var t=UA();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=UA();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=UA();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=UA();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=UA();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=UA(),n=UA();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=JA(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new jA(t):t.isEven()?new GA(t):new WA(t);var a=[],s=3,l=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var c=UA();for(r.sqrTo(a[1],c);s<=u;)a[s]=UA(),r.mulTo(c,a[s-2],a[s]),s+=2}var d,p,h=e.t-1,f=!0,g=UA();for(i=QA(e[h])-1;h>=0;){for(i>=l?d=e[h]>>i-l&u:(d=(e[h]&(1<<i+1)-1)<<l-i,h>0&&(d|=e[h-1]>>this.DB+i-l)),s=n;!(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--h),f)a[d].copyTo(o),f=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[d],o)}for(;h>=0&&!(e[h]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--h)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=JA(1),a=JA(0),s=JA(0),l=JA(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new HA)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=zA[zA.length-1]){for(t=0;t<zA.length;++t)if(n[0]==zA[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<zA.length;){for(var r=zA[t],i=t+1;i<zA.length&&r<FA;)r*=zA[i++];for(r=n.modInt(r);t<i;)if(r%zA[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:ZA(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&+t[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=UA());var a=UA(),s=this.s,l=t.s,u=this.DB-QA(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,d=a[c-1];if(0!=d){var p=d*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/p,f=(1<<this.F1)/p,g=1<<this.F2,v=r.t,m=v-c,y=null==n?UA():n;for(a.dlShiftTo(m,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),e.ONE.dlShiftTo(c,y),y.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--m>=0;){var b=r[--v]==d?this.DM:Math.floor(r[v]*h+(r[v-1]+g)*f);if((r[v]+=a.am(0,b,r,m,0,c))<b)for(a.dlShiftTo(m,y),r.subTo(y,r);r[v]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=l&&e.ZERO.subTo(n,n)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=UA(),i=UA(),o=n.convert(this),a=QA(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=JA(n),i=UA(),o=UA(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<t.length;++l){var u=ZA(t,l);u<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),mA,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>zA.length&&(t=zA.length);for(var o=UA(),a=0;a<t;++a){o.fromInt(zA[Math.floor(Math.random()*zA.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=UA();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),mA,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),HA=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),jA=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),WA=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=UA();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(VA.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=UA();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),GA=function(){function e(e){this.m=e,this.r2=UA(),this.q3=UA(),VA.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=UA();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function UA(){return new VA(null)}function qA(e,t){return new VA(e,t)}var YA="undefined"!=typeof navigator;YA&&"Microsoft Internet Explorer"==navigator.appName?(VA.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],u=this[e++]>>15,c=s*l+u*a;i=((l=a*l+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=1073741823&l}return i},LA=30):YA&&"Netscape"!=navigator.appName?(VA.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},LA=26):(VA.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],u=this[e++]>>14,c=s*l+u*a;i=((l=a*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=268435455&l}return i},LA=28),VA.prototype.DB=LA,VA.prototype.DM=(1<<LA)-1,VA.prototype.DV=1<<LA;VA.prototype.FV=Math.pow(2,52),VA.prototype.F1=52-LA,VA.prototype.F2=2*LA-52;var XA,KA,$A=[];for(XA="0".charCodeAt(0),KA=0;KA<=9;++KA)$A[XA++]=KA;for(XA="a".charCodeAt(0),KA=10;KA<36;++KA)$A[XA++]=KA;for(XA="A".charCodeAt(0),KA=10;KA<36;++KA)$A[XA++]=KA;function ZA(e,t){var n=$A[e.charCodeAt(t)];return null==n?-1:n}function JA(e){var t=UA();return t.fromInt(e),t}function QA(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}VA.ZERO=JA(0),VA.ONE=JA(1);var eI=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();var tI,nI,rI=null;if(null==rI){rI=[],nI=0;var iI=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var oI=new Uint32Array(256);for(window.crypto.getRandomValues(oI),iI=0;iI<oI.length;++iI)rI[nI++]=255&oI[iI]}var aI=0,sI=function(e){if((aI=aI||0)>=256||nI>=256)window.removeEventListener?window.removeEventListener("mousemove",sI,!1):window.detachEvent&&window.detachEvent("onmousemove",sI);else try{var t=e.x+e.y;rI[nI++]=255&t,aI+=1}catch(n){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",sI,!1):window.attachEvent&&window.attachEvent("onmousemove",sI))}function lI(){if(null==tI){for(tI=new eI;nI<256;){var e=Math.floor(65536*Math.random());rI[nI++]=255&e}for(tI.init(rI),nI=0;nI<rI.length;++nI)rI[nI]=0;nI=0}return tI.next()}var uI=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=lI()},e}();var cI=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=qA(e,16),this.e=parseInt(t,16))},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t<e.length+11)return null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new uI,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new VA(n)}(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*t-o;a++)i="0"+i;return i},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=qA(e,16),this.e=parseInt(t,16),this.d=qA(n,16))},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=qA(e,16),this.e=parseInt(t,16),this.d=qA(n,16),this.p=qA(r,16),this.q=qA(i,16),this.dmp1=qA(o,16),this.dmq1=qA(a,16),this.coeff=qA(s,16))},e.prototype.generate=function(e,t){var n=new uI,r=e>>1;this.e=parseInt(t,16);for(var i=new VA(t,16);;){for(;this.p=new VA(e-r,1,n),0!=this.p.subtract(VA.ONE).gcd(i).compareTo(VA.ONE)||!this.p.isProbablePrime(10););for(;this.q=new VA(r,1,n),0!=this.q.subtract(VA.ONE).gcd(i).compareTo(VA.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(VA.ONE),s=this.q.subtract(VA.ONE),l=a.multiply(s);if(0==l.gcd(i).compareTo(VA.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=qA(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){var n=e.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new uI,i=e>>1;this.e=parseInt(t,16);var o=new VA(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(VA.ONE),r=a.q.subtract(VA.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(VA.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=UA(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(VA.ONE).gcda(o,(function(e){0==e.compareTo(VA.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},u=function(){a.p=UA(),a.p.fromNumberAsync(e-i,1,r,(function(){a.p.subtract(VA.ONE).gcda(o,(function(e){0==e.compareTo(VA.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=function(e){return dI[e]||""}(n),i=function(e,t){if(t<e.length+22)return null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return qA("0001"+r+"00"+e,16)}(r+t(e).toString(),this.n.bitLength()/4);if(null==i)return null;var o=this.doPrivate(i);if(null==o)return null;var a=o.toString(16);return 1&a.length?"0"+a:a},e.prototype.verify=function(e,t,n){var r=qA(t,16),i=this.doPublic(r);return null==i?null:function(e){for(var t in dI)if(dI.hasOwnProperty(t)){var n=dI[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}
/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/(i.toString(16).replace(/^1f+00/,""))==n(e).toString()},e}();var dI={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var pI={};pI.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(s){}o(e.prototype,n)}}};
/**
 * @fileOverview
 * @name asn1-1.0.js
 * @author Kenji Urushima kenji.urushima@gmail.com
 * @version asn1 1.0.13 (2017-Jun-02)
 * @since jsrsasign 2.1
 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
 */
var hI={};void 0!==hI.asn1&&hI.asn1||(hI.asn1={}),hI.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new VA(r,16).xor(e).add(VA.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=hI.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,l=t.DEREnumerated,u=t.DERUTF8String,c=t.DERNumericString,d=t.DERPrintableString,p=t.DERTeletexString,h=t.DERIA5String,f=t.DERUTCTime,g=t.DERGeneralizedTime,v=t.DERSequence,m=t.DERSet,y=t.DERTaggedObject,b=t.ASN1Util.newObject,x=Object.keys(e);if(1!=x.length)throw"key of param shall be only one.";var _=x[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(e[_]);if("int"==_)return new r(e[_]);if("bitstr"==_)return new i(e[_]);if("octstr"==_)return new o(e[_]);if("null"==_)return new a(e[_]);if("oid"==_)return new s(e[_]);if("enum"==_)return new l(e[_]);if("utf8str"==_)return new u(e[_]);if("numstr"==_)return new c(e[_]);if("prnstr"==_)return new d(e[_]);if("telstr"==_)return new p(e[_]);if("ia5str"==_)return new h(e[_]);if("utctime"==_)return new f(e[_]);if("gentime"==_)return new g(e[_]);if("seq"==_){for(var w=e[_],S=[],C=0;C<w.length;C++){var T=b(w[C]);S.push(T)}return new v({array:S})}if("set"==_){for(w=e[_],S=[],C=0;C<w.length;C++){T=b(w[C]);S.push(T)}return new m({array:S})}if("tag"==_){var M=e[_];if("[object Array]"===Object.prototype.toString.call(M)&&3==M.length){var k=b(M[2]);return new y({tag:M[0],explicit:M[1],obj:k})}var A={};if(void 0!==M.explicit&&(A.explicit=M.explicit),void 0!==M.tag&&(A.tag=M.tag),void 0===M.obj)throw"obj shall be specified for 'tag'.";return A.obj=b(M.obj),new y(A)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},hI.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))t=t+"."+new VA(r,2).toString(10),r=""}return t},hI.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new VA(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},hI.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},hI.asn1.DERAbstractString=function(e){hI.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},pI.lang.extend(hI.asn1.DERAbstractString,hI.asn1.ASN1Object),hI.asn1.DERAbstractTime=function(e){hI.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var l=r(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},pI.lang.extend(hI.asn1.DERAbstractTime,hI.asn1.ASN1Object),hI.asn1.DERAbstractStructured=function(e){hI.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},pI.lang.extend(hI.asn1.DERAbstractStructured,hI.asn1.ASN1Object),hI.asn1.DERBoolean=function(){hI.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},pI.lang.extend(hI.asn1.DERBoolean,hI.asn1.ASN1Object),hI.asn1.DERInteger=function(e){hI.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=hI.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new VA(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},pI.lang.extend(hI.asn1.DERInteger,hI.asn1.ASN1Object),hI.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=hI.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}hI.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},pI.lang.extend(hI.asn1.DERBitString,hI.asn1.ASN1Object),hI.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=hI.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}hI.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},pI.lang.extend(hI.asn1.DEROctetString,hI.asn1.DERAbstractString),hI.asn1.DERNull=function(){hI.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},pI.lang.extend(hI.asn1.DERNull,hI.asn1.ASN1Object),hI.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new VA(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};hI.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=hI.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},pI.lang.extend(hI.asn1.DERObjectIdentifier,hI.asn1.ASN1Object),hI.asn1.DEREnumerated=function(e){hI.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=hI.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new VA(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},pI.lang.extend(hI.asn1.DEREnumerated,hI.asn1.ASN1Object),hI.asn1.DERUTF8String=function(e){hI.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},pI.lang.extend(hI.asn1.DERUTF8String,hI.asn1.DERAbstractString),hI.asn1.DERNumericString=function(e){hI.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},pI.lang.extend(hI.asn1.DERNumericString,hI.asn1.DERAbstractString),hI.asn1.DERPrintableString=function(e){hI.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},pI.lang.extend(hI.asn1.DERPrintableString,hI.asn1.DERAbstractString),hI.asn1.DERTeletexString=function(e){hI.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},pI.lang.extend(hI.asn1.DERTeletexString,hI.asn1.DERAbstractString),hI.asn1.DERIA5String=function(e){hI.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},pI.lang.extend(hI.asn1.DERIA5String,hI.asn1.DERAbstractString),hI.asn1.DERUTCTime=function(e){hI.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},pI.lang.extend(hI.asn1.DERUTCTime,hI.asn1.DERAbstractTime),hI.asn1.DERGeneralizedTime=function(e){hI.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},pI.lang.extend(hI.asn1.DERGeneralizedTime,hI.asn1.DERAbstractTime),hI.asn1.DERSequence=function(e){hI.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){e+=this.asn1Array[t].getEncodedHex()}return this.hV=e,this.hV}},pI.lang.extend(hI.asn1.DERSequence,hI.asn1.DERAbstractStructured),hI.asn1.DERSet=function(e){hI.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},pI.lang.extend(hI.asn1.DERSet,hI.asn1.DERAbstractStructured),hI.asn1.DERTaggedObject=function(e){hI.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},pI.lang.extend(hI.asn1.DERTaggedObject,hI.asn1.ASN1Object);var fI,gI=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vI=function(e){function t(n){var r=e.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return gI(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?kA(e):AA.unarmor(e),i=BA.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=qA(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=qA(o,16);var a=i.sub[4].getHexStringValue();this.p=qA(a,16);var s=i.sub[5].getHexStringValue();this.q=qA(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=qA(l,16);var u=i.sub[7].getHexStringValue();this.dmq1=qA(u,16);var c=i.sub[8].getHexStringValue();this.coeff=qA(c,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var d=i.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=qA(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else t=i.sub[0].getHexStringValue(),this.n=qA(t,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(p){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new hI.asn1.DERInteger({int:0}),new hI.asn1.DERInteger({bigint:this.n}),new hI.asn1.DERInteger({int:this.e}),new hI.asn1.DERInteger({bigint:this.d}),new hI.asn1.DERInteger({bigint:this.p}),new hI.asn1.DERInteger({bigint:this.q}),new hI.asn1.DERInteger({bigint:this.dmp1}),new hI.asn1.DERInteger({bigint:this.dmq1}),new hI.asn1.DERInteger({bigint:this.coeff})]};return new hI.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return CA(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new hI.asn1.DERSequence({array:[new hI.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new hI.asn1.DERNull]}),t=new hI.asn1.DERSequence({array:[new hI.asn1.DERInteger({bigint:this.n}),new hI.asn1.DERInteger({int:this.e})]}),n=new hI.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new hI.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return CA(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(cI),mI="undefined"!=typeof process?null===(fI={})||void 0===fI?void 0:fI.npm_package_version:void 0,yI=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key,this.key=new vI(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(TA(e))}catch(t){return!1}},e.prototype.encrypt=function(e){try{return CA(this.getKey().encrypt(e))}catch(t){return!1}},e.prototype.sign=function(e,t,n){try{return CA(this.getKey().sign(e,t,n))}catch(r){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,TA(t),n)}catch(r){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new vI,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=mI,e}();function bI(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}var xI={exports:{}};
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
 * @license MIT */xI.exports=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function a(e,t,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,i}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=i(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),u=o.querySelector(r.barSelector),c=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(u,a(e,c,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var i,a=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),u=document.querySelector(r.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(i=t.querySelector(r.spinnerSelector))&&h(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function u(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=p(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n}();const _I=jx(xI.exports);var wI=Object.defineProperty,SI=Object.getOwnPropertyDescriptor,CI=Object.getOwnPropertyNames,TI=Object.prototype.hasOwnProperty,MI=Object.prototype.toString;function kI(e,t){return MI.call(e)==="[object ".concat(t,"]")}function AI(e){return EI(e)||function(e){return kI(e,"String")}(e)?0===e.length:e instanceof Map||e instanceof Set?0===e.size:!!function(e){return null!==e&&kI(e,"Object")}(e)&&0===Object.keys(e).length}function II(e){return"function"==typeof e}function EI(e){return e&&Array.isArray(e)}var OI=typeof document<"u",DI=(e,t)=>{var n,r;if(function(e){return!(!AI(e)&&!function(e){return function(e){return null===e}(e)||function(e){return!function(e){return typeof e<"u"}(e)}(e)}(e))}(e))return"";let i=null!=(n=null==t?void 0:t.digit)?n:0;if(null!=(r=null==t?void 0:t.round)&&r)return new Intl.NumberFormat("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}).format(e);{let t=e.toString(),[n,r]=t.split("."),o="";return r?o=r.slice(0,i).padEnd(i,"0"):i>0&&(o="0".repeat(i)),n.replace(/\B(?=(\d{3})+(?!\d))/g,",")+(o?"."+o:"")}},PI=(e=20)=>new Promise((t=>setTimeout(t,e))),LI=(e,t)=>(e.install=t=>{for(let n of[e,...Object.values({})])t.component(n.name,n)},e),RI={};function BI(e){(0,RI.getCurrentInstance)()&&(0,RI.onUnmounted)(e)}function NI(e){var t;let n=(0,RI.toValue)(e);return null!=(t=null==n?void 0:n.$el)?t:n}((e,t)=>{for(var n in t)wI(e,n,{get:t[n],enumerable:!0})})(RI,{Vue:()=>Ys}),((e,t,n)=>{((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of CI(t))!TI.call(e,i)&&i!==n&&wI(e,i,{get:()=>t[i],enumerable:!(r=SI(t,i))||r.enumerable})})(e,t,"default")})(RI,Ys);var zI=e=>{let t,n="dark",r=(0,RI.shallowRef)(!1),i=()=>{let e=document.documentElement;r.value=e.classList.contains(n)};return BI((()=>{t&&(t.takeRecords(),t.disconnect())})),(0,RI.onBeforeMount)((()=>{let e=document.documentElement;i(),t=new MutationObserver(i),t.observe(e,{attributes:!0,attributeFilter:["class"]})})),{isDark:r,toggleDark:()=>{document.documentElement.classList.toggle(n)}}};function FI(e,t,n={}){let r,i,{time:o=40,box:a="content-box",immediate:s=!0}=n,l=!s,u=((e,t=200,n=!1)=>{let r,i,o=t;return function(){r&&clearTimeout(r),n?(r||e.call(i,...arguments),r=setTimeout((()=>r=null),o)):r=setTimeout((()=>e.call(i,...arguments)),o)}})(((e,n)=>{l?t(e,n):l=!0}),o),c=()=>{r&&(r.disconnect(),r=null)},d=e=>"string"==typeof e,p=e=>OI?Array.from(document.querySelectorAll(e)):[],h=(0,RI.computed)((()=>d(e)?p(e):Array.isArray(e)?e.map((e=>d(e)?p(e):NI(e))).flat():[NI(e)])),f=()=>{OI&&(c(),null==i||i(),i=(0,RI.watch)(h,((e,n,i)=>{window&&e.length&&(r=new ResizeObserver(u),e.forEach((e=>{if(e&&(r.observe(e,{box:a}),!l)){let n=e.getBoundingClientRect(),i={target:e,contentRect:n,borderBoxSize:[{inlineSize:n.width,blockSize:n.height}],contentBoxSize:[{inlineSize:n.width,blockSize:n.height}],devicePixelContentBoxSize:[{inlineSize:n.width,blockSize:n.height}]};t([i],r)}}))),i(c)}),{immediate:!0,flush:"post",deep:!0}))};(0,RI.nextTick)((()=>{f()}));let g=()=>{c(),i&&i()};return function(e){!!(0,RI.getCurrentScope)()&&(0,RI.onScopeDispose)(e)}(g),{stop:g,restart:f}}function VI(){let{appContext:{config:{globalProperties:e}}}=(0,RI.getCurrentInstance)();return e}var HI=(e,t)=>{var n;let r="$echarts",i=(null==t?void 0:t.theme)?(0,RI.isProxy)(t.theme)||(0,RI.isRef)(t.theme)?t.theme:(0,RI.ref)(t.theme):(0,RI.ref)("default"),o=null!=(n=null==t?void 0:t.tooltipId)?n:"tooltipElement",a=VI().$echarts;a||Object.keys(VI()).forEach((e=>{var t,n,i,o,s;(null==(n=null==(t=VI())?void 0:t[e])?void 0:n.Axis)&&(null==(o=null==(i=VI())?void 0:i[e])?void 0:o.ChartView)&&(a=null==(s=VI())?void 0:s[e],r=e)}));let s=!0,l=!1,u=null,c=(0,RI.ref)({}),d=(0,RI.ref)(),p=(0,RI.computed)((()=>"dark"!==i.value?c.value:{backgroundColor:"transparent",...c.value}));function h(n){let r=(0,RI.unref)(e);if(r&&(0,RI.unref)(r)){if(!a)throw new Error("useECharts:  echarts未绑定到globalProperties");u=a.init(r,n,t)}}function f(t,...n){var r;c.value=t,d.value=n,0!==(null==(r=(0,RI.unref)(e))?void 0:r.offsetHeight)?(0,RI.nextTick)((()=>{PI().then((()=>{var e;!u&&h(i.value),(null==(e=t.clear)||e)&&g(),null==u||u.setOption((0,RI.unref)(p)),n&&n.map((e=>{"zrender"!==(null==e?void 0:e.type)&&"function"==typeof(null==e?void 0:e.callback)&&(null==u||u.on(null==e?void 0:e.name,(null==e?void 0:e.query)?null==e?void 0:e.query:"",(t=>{null==e||e.callback(t)}))),"zrender"===(null==e?void 0:e.type)&&"function"==typeof(null==e?void 0:e.callback)&&(null==u||u.getZr().on(null==e?void 0:e.name,(t=>{t.target||null==e||e.callback(t)})))})),(null==t?void 0:t.addTooltip)&&m(t.addTooltip)}))})):PI().then((()=>f((0,RI.unref)(p),...n)))}function g(){u&&u.clear()}function v(){u&&u.resize()}function m(e){if(!e||!OI)return;let t=document.querySelector("html");if(!document.getElementById(o)){let e=document.createElement("div");e.setAttribute("id",o),e.style.display="block",t.appendChild(e)}let n=document.querySelector("#".concat(o));null==u||u.on("mouseover",(r=>{("x"===e&&"xAxis"==r.componentType||"y"===e&&"yAxis"==r.componentType||"true"===e.toString()&&r.componentType.includes("Axis"))&&(e=>{if("axisLabel"!==(null==e?void 0:e.targetType))return;n.style.cssText="\n        padding: 5px;\n        font-size: 12px;\n        display: inline;\n        border-radius: 4px;\n        position: absolute;\n        background-color: #303133;\n        z-index: 99999;color: #fff;\n        box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px;\n      ",n.innerHTML=null==e?void 0:e.value,t.onmousemove=e=>{let t=e.pageX-10,r=e.pageY+15;n.style.top=r+"px",n.style.left=t+"px"}})(r)})),null==u||u.on("mouseout",(()=>{t.onmousemove=null,n.style.cssText="display:none"}))}function y(){var e,t;u&&PI(null!=(t=null==(e=c.value)?void 0:e.delay)?t:300).then((()=>{v()}))}return(0,RI.watch)((()=>i.value),(e=>{u&&(u.dispose(),h(e),f(c.value,...d.value))})),(0,RI.onMounted)((()=>{(0,RI.nextTick)((()=>{var e,t,n,r,i;if(null==(e=c.value)?void 0:e.container){let e=null!=(n=null==(t=c.value)?void 0:t.delay)?n:40;FI(c.value.container,v,{time:e}),l=((e,t)=>{if(!EI(e)||!EI(t))return!1;let n=new Set(e);return t.some((e=>n.has(e)))})(["body","html","document"],Array.of(c.value.container).flat()),l&&window.addEventListener("resize",y)}else s=null==(i=null==(r=c.value)?void 0:r.resize)||i,s&&window.addEventListener("resize",y)}))})),BI((()=>{var e,t,n;!(null==(e=c.value)?void 0:e.container)&&s&&window.removeEventListener("resize",y),(null==(t=c.value)?void 0:t.container)&&l&&window.removeEventListener("resize",y),u&&(u.dispose(),u=null,null==(n=document.querySelector("#".concat(o)))||n.remove())})),{echarts:a,setOptions:f,getInstance:function(){return u||h(i.value),u},showLoading:function(e){var t,n;let r=null!=(t=null==e?void 0:e.type)?t:"default",i=null!=(n=null==e?void 0:e.opts)?n:{};u.showLoading(r,i)},hideLoading:function(){u.hideLoading()},clear:g,resize:v,getGlobalProperties:function(){return{name:r,value:a}},getDom:function(){return u.getDom()},getWidth:function(){return u.getWidth()},getHeight:function(){return u.getHeight()},getOption:function(){return u.getOption()},appendData:function(e){u.appendData(e)},getDataURL:function(e){return u.getDataURL(e)},getConnectedDataURL:function(e){return u.getConnectedDataURL(e)},addTooltip:m}};
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */let jI;const WI=e=>jI=e,GI=Symbol();function UI(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var qI,YI;function XI(){const e=oe(!0),t=e.run((()=>Et({})));let n=[],r=[];const i=St({install(e){WI(i),i._a=e,e.provide(GI,i),e.config.globalProperties.$pinia=i,r.forEach((e=>n.push(e))),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}(YI=qI||(qI={})).direct="direct",YI.patchObject="patch object",YI.patchFunction="patch function";const KI=()=>{};function $I(e,t,n,r=KI){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&se()&&le(i),i}function ZI(e,...t){e.slice().forEach((e=>{e(...t)}))}const JI=e=>e();function QI(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];UI(i)&&UI(r)&&e.hasOwnProperty(n)&&!It(r)&&!yt(r)?e[n]=QI(i,r):e[n]=r}return e}const{assign:eE}=Object;function tE(e){return!(!It(e)||!e.effect)}function nE(e,t,n,r){const{state:i,actions:o,getters:a}=t,s=n.state.value[e];let l;return l=function(e,t,n={},r,i,o){let a;const s=eE({actions:{}},n),l={deep:!0};let u,c,d,p=[],h=[];const f=r.state.value[e];let g;function v(t){let n;u=c=!1,"function"==typeof t?(t(r.state.value[e]),n={type:qI.patchFunction,storeId:e,events:d}):(QI(r.state.value[e],t),n={type:qI.patchObject,payload:t,storeId:e,events:d});const i=g=Symbol();rn().then((()=>{g===i&&(u=!0)})),c=!0,ZI(p,n,r.state.value[e])}Et({});const m=function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{eE(e,t)}))};function y(){a.stop(),p=[],h=[],r._s.delete(e)}function b(t,n){return function(){WI(r);const i=Array.from(arguments),o=[],a=[];function s(e){o.push(e)}function l(e){a.push(e)}let u;ZI(h,{args:i,name:t,store:_,after:s,onError:l});try{u=n.apply(this&&this.$id===e?this:_,i)}catch(c){throw ZI(a,c),c}return u instanceof Promise?u.then((e=>(ZI(o,e),e))).catch((e=>(ZI(a,e),Promise.reject(e)))):(ZI(o,u),u)}}const x={_p:r,$id:e,$onAction:$I.bind(null,h),$patch:v,$reset:m,$subscribe(t,n={}){const i=$I(p,t,n.detached,(()=>o())),o=a.run((()=>Mi((()=>r.state.value[e]),(r=>{("sync"===n.flush?c:u)&&t({storeId:e,type:qI.direct,events:d},r)}),eE({},l,n))));return i},$dispose:y},_=ht(x);r._s.set(e,_);const w=r._a&&r._a.runWithContext||JI,S=w((()=>r._e.run((()=>(a=oe()).run(t)))));for(const C in S){const e=S[C];if(It(e)&&!tE(e)||yt(e));else if("function"==typeof e){const t=b(C,e);S[C]=t,s.actions[C]=e}}eE(_,S),eE(wt(_),S),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:e=>{v((t=>{eE(t,e)}))}}),r._p.forEach((e=>{eE(_,a.run((()=>e({store:_,app:r._a,pinia:r,options:s}))))})),f&&o&&n.hydrate&&n.hydrate(_.$state,f);return u=!0,c=!0,_}(e,(function(){s||(n.state.value[e]=i?i():{});const t=Ft(n.state.value[e]);return eE(t,o,Object.keys(a||{}).reduce(((t,r)=>(t[r]=St(ia((()=>{WI(n);const t=n._s.get(e);return a[r].call(t,t)}))),t)),{}))}),t,n,0,!0),l}function rE(e,t,n){let r,i;function o(e,t){const n=Vr();(e=e||(n?Fr(GI,null):null))&&WI(e),(e=jI)._s.has(r)||nE(r,i,e);return e._s.get(r)}return"string"==typeof e?(r=e,i=t):(i=e,r=e.id),o.$id=r,o}function iE(e,t){var n;return e="object"==typeof(n=e)&&null!==n?e:Object.create(null),new Proxy(e,{get:(e,n,r)=>"key"===n?Reflect.get(e,n,r):Reflect.get(e,n,r)||Reflect.get(t,n,r)})}function oE(e,{storage:t,serializer:n,key:r,debug:i}){try{const i=null==t?void 0:t.getItem(r);i&&e.$patch(null==n?void 0:n.deserialize(i))}catch(o){}}function aE(e,{storage:t,serializer:n,key:r,paths:i,debug:o}){try{const o=Array.isArray(i)?function(e,t){return t.reduce(((t,n)=>{const r=n.split(".");return function(e,t,n){return t.slice(0,-1).reduce(((e,t)=>/^(__proto__)$/.test(t)?{}:e[t]=e[t]||{}),e)[t[t.length-1]]=n,e}(t,r,function(e,t){return t.reduce(((e,t)=>null==e?void 0:e[t]),e)}(e,r))}),{})}(e,i):e;t.setItem(r,n.serialize(o))}catch(a){}}var sE=function(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:i,pinia:o}=t;if(!r)return;if(!(i.$id in o.state.value)){const e=o._s.get(i.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const a=(Array.isArray(r)?r.map((t=>iE(t,e))):[iE(r,e)]).map(function(e,t){return n=>{var r;try{const{storage:i=localStorage,beforeRestore:o,afterRestore:a,serializer:s={serialize:JSON.stringify,deserialize:JSON.parse},key:l=t.$id,paths:u=null,debug:c=!1}=n;return{storage:i,beforeRestore:o,afterRestore:a,serializer:s,key:(null!=(r=e.key)?r:e=>e)("string"==typeof l?l:l(t.$id)),paths:u,debug:c}}catch(i){return n.debug,null}}}(e,i)).filter(Boolean);i.$persist=()=>{a.forEach((e=>{aE(i.$state,e)}))},i.$hydrate=({runHooks:e=!0}={})=>{a.forEach((n=>{const{beforeRestore:r,afterRestore:o}=n;e&&(null==r||r(t)),oE(i,n),e&&(null==o||o(t))}))},a.forEach((e=>{const{beforeRestore:n,afterRestore:r}=e;null==n||n(t),oE(i,e),null==r||r(t),i.$subscribe(((t,n)=>{aE(n,e)}),{detached:!0})}))}}();function lE(e,t){return function(){return e.apply(t,arguments)}}const{toString:uE}=Object.prototype,{getPrototypeOf:cE}=Object,dE=(e=>t=>{const n=uE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pE=e=>(e=e.toLowerCase(),t=>dE(t)===e),hE=e=>t=>typeof t===e,{isArray:fE}=Array,gE=hE("undefined");const vE=pE("ArrayBuffer");const mE=hE("string"),yE=hE("function"),bE=hE("number"),xE=e=>null!==e&&"object"==typeof e,_E=e=>{if("object"!==dE(e))return!1;const t=cE(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},wE=pE("Date"),SE=pE("File"),CE=pE("Blob"),TE=pE("FileList"),ME=pE("URLSearchParams"),[kE,AE,IE,EE]=["ReadableStream","Request","Response","Headers"].map(pE);function OE(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),fE(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function DE(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const PE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,LE=e=>!gE(e)&&e!==PE;const RE=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&cE(Uint8Array)),BE=pE("HTMLFormElement"),NE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zE=pE("RegExp"),FE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};OE(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},VE="abcdefghijklmnopqrstuvwxyz",HE="0123456789",jE={DIGIT:HE,ALPHA:VE,ALPHA_DIGIT:VE+VE.toUpperCase()+HE};const WE=pE("AsyncFunction"),GE={isArray:fE,isArrayBuffer:vE,isBuffer:function(e){return null!==e&&!gE(e)&&null!==e.constructor&&!gE(e.constructor)&&yE(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||yE(e.append)&&("formdata"===(t=dE(e))||"object"===t&&yE(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&vE(e.buffer),t},isString:mE,isNumber:bE,isBoolean:e=>!0===e||!1===e,isObject:xE,isPlainObject:_E,isReadableStream:kE,isRequest:AE,isResponse:IE,isHeaders:EE,isUndefined:gE,isDate:wE,isFile:SE,isBlob:CE,isRegExp:zE,isFunction:yE,isStream:e=>xE(e)&&yE(e.pipe),isURLSearchParams:ME,isTypedArray:RE,isFileList:TE,forEach:OE,merge:function e(){const{caseless:t}=LE(this)&&this||{},n={},r=(r,i)=>{const o=t&&DE(n,i)||i;_E(n[o])&&_E(r)?n[o]=e(n[o],r):_E(r)?n[o]=e({},r):fE(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&OE(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(OE(t,((t,r)=>{n&&yE(t)?e[r]=lE(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&cE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:dE,kindOfTest:pE,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(fE(e))return e;let t=e.length;if(!bE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:BE,hasOwnProperty:NE,hasOwnProp:NE,reduceDescriptors:FE,freezeMethods:e=>{FE(e,((t,n)=>{if(yE(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];yE(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return fE(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:DE,global:PE,isContextDefined:LE,ALPHABET:jE,generateString:(e=16,t=jE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&yE(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(xE(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=fE(e)?[]:{};return OE(e,((e,t)=>{const o=n(e,r+1);!gE(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:WE,isThenable:e=>e&&(xE(e)||yE(e))&&yE(e.then)&&yE(e.catch)};function UE(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}GE.inherits(UE,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:GE.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qE=UE.prototype,YE={};["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((e=>{YE[e]={value:e}})),Object.defineProperties(UE,YE),Object.defineProperty(qE,"isAxiosError",{value:!0}),UE.from=(e,t,n,r,i,o)=>{const a=Object.create(qE);return GE.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),UE.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function XE(e){return GE.isPlainObject(e)||GE.isArray(e)}function KE(e){return GE.endsWith(e,"[]")?e.slice(0,-2):e}function $E(e,t,n){return e?e.concat(t).map((function(e,t){return e=KE(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ZE=GE.toFlatObject(GE,{},null,(function(e){return/^is[A-Z]/.test(e)}));function JE(e,t,n){if(!GE.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=GE.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!GE.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&GE.isSpecCompliantForm(t);if(!GE.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(GE.isDate(e))return e.toISOString();if(!s&&GE.isBlob(e))throw new UE("Blob is not supported. Use a Buffer instead.");return GE.isArrayBuffer(e)||GE.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(GE.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(GE.isArray(e)&&function(e){return GE.isArray(e)&&!e.some(XE)}(e)||(GE.isFileList(e)||GE.endsWith(n,"[]"))&&(s=GE.toArray(e)))return n=KE(n),s.forEach((function(e,r){!GE.isUndefined(e)&&null!==e&&t.append(!0===a?$E([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!XE(e)||(t.append($E(i,n,o),l(e)),!1)}const c=[],d=Object.assign(ZE,{defaultVisitor:u,convertValue:l,isVisitable:XE});if(!GE.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!GE.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),GE.forEach(n,(function(n,o){!0===(!(GE.isUndefined(n)||null===n)&&i.call(t,n,GE.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t}function QE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function eO(e,t){this._pairs=[],e&&JE(e,this,t)}const tO=eO.prototype;function nO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rO(e,t,n){if(!t)return e;const r=n&&n.encode||nO,i=n&&n.serialize;let o;if(o=i?i(t,n):GE.isURLSearchParams(t)?t.toString():new eO(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}tO.append=function(e,t){this._pairs.push([e,t])},tO.toString=function(e){const t=e?function(t){return e.call(this,t,QE)}:QE;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class iO{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){GE.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const oO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aO={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eO,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},sO="undefined"!=typeof window&&"undefined"!=typeof document,lO=(uO="undefined"!=typeof navigator&&navigator.product,sO&&["ReactNative","NativeScript","NS"].indexOf(uO)<0);var uO;const cO="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dO=sO&&window.location.href||"http://localhost",pO={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sO,hasStandardBrowserEnv:lO,hasStandardBrowserWebWorkerEnv:cO,origin:dO},Symbol.toStringTag,{value:"Module"})),...aO};function hO(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&GE.isArray(r)?r.length:o,s)return GE.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&GE.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&GE.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(GE.isFormData(e)&&GE.isFunction(e.entries)){const n={};return GE.forEachEntry(e,((e,r)=>{t(function(e){return GE.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const fO={transitional:oO,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=GE.isObject(e);i&&GE.isHTMLForm(e)&&(e=new FormData(e));if(GE.isFormData(e))return r?JSON.stringify(hO(e)):e;if(GE.isArrayBuffer(e)||GE.isBuffer(e)||GE.isStream(e)||GE.isFile(e)||GE.isBlob(e)||GE.isReadableStream(e))return e;if(GE.isArrayBufferView(e))return e.buffer;if(GE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return JE(e,new pO.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pO.isNode&&GE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=GE.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return JE(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(GE.isString(e))try{return(t||JSON.parse)(e),GE.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fO.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(GE.isResponse(e)||GE.isReadableStream(e))return e;if(e&&GE.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw UE.from(i,UE.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pO.classes.FormData,Blob:pO.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};GE.forEach(["delete","get","head","post","put","patch"],(e=>{fO.headers[e]={}}));const gO=GE.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"]),vO=Symbol("internals");function mO(e){return e&&String(e).trim().toLowerCase()}function yO(e){return!1===e||null==e?e:GE.isArray(e)?e.map(yO):String(e)}function bO(e,t,n,r,i){return GE.isFunction(r)?r.call(this,t,n):(i&&(t=n),GE.isString(t)?GE.isString(r)?-1!==t.indexOf(r):GE.isRegExp(r)?r.test(t):void 0:void 0)}class xO{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=mO(t);if(!i)throw new Error("header name must be a non-empty string");const o=GE.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=yO(e))}const o=(e,t)=>GE.forEach(e,((e,n)=>i(e,n,t)));if(GE.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(GE.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&gO[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(GE.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=mO(e)){const n=GE.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(GE.isFunction(t))return t.call(this,e,n);if(GE.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=mO(e)){const n=GE.findKey(this,e);return!(!n||void 0===this[n]||t&&!bO(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=mO(e)){const i=GE.findKey(n,e);!i||t&&!bO(0,n[i],i,t)||(delete n[i],r=!0)}}return GE.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!bO(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return GE.forEach(this,((r,i)=>{const o=GE.findKey(n,i);if(o)return t[o]=yO(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=yO(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return GE.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&GE.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[vO]=this[vO]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=mO(e);t[r]||(!function(e,t){const n=GE.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return GE.isArray(e)?e.forEach(r):r(e),this}}function _O(e,t){const n=this||fO,r=t||n,i=xO.from(r.headers);let o=r.data;return GE.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function wO(e){return!(!e||!e.__CANCEL__)}function SO(e,t,n){UE.call(this,null==e?"canceled":e,UE.ERR_CANCELED,t,n),this.name="CanceledError"}function CO(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new UE("Request failed with status code "+n.status,[UE.ERR_BAD_REQUEST,UE.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}xO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),GE.reduceDescriptors(xO.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),GE.freezeMethods(xO),GE.inherits(SO,UE,{__CANCEL__:!0});const TO=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];i||(i=l),n[o]=s,r[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n=0;const r=1e3/t;let i=null;return function(){const t=!0===this,o=Date.now();if(t||o-n>r)return i&&(clearTimeout(i),i=null),n=o,e.apply(null,arguments);i||(i=setTimeout((()=>(i=null,n=Date.now(),e.apply(null,arguments))),r-(o-n)))}}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=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:n,lengthComputable:null!=a};u[t?"download":"upload"]=!0,e(u)}),n)},MO=pO.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=GE.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),kO=pO.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];GE.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),GE.isString(r)&&a.push("path="+r),GE.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function AO(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const IO=e=>e instanceof xO?{...e}:e;function EO(e,t){t=t||{};const n={};function r(e,t,n){return GE.isPlainObject(e)&&GE.isPlainObject(t)?GE.merge.call({caseless:n},e,t):GE.isPlainObject(t)?GE.merge({},t):GE.isArray(t)?t.slice():t}function i(e,t,n){return GE.isUndefined(t)?GE.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!GE.isUndefined(t))return r(void 0,t)}function a(e,t){return GE.isUndefined(t)?GE.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(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,withXSRFToken: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:(e,t)=>i(IO(e),IO(t),!0)};return GE.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);GE.isUndefined(a)&&o!==s||(n[r]=a)})),n}const OO=e=>{const t=EO({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=xO.from(s),t.url=rO(AO(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),GE.isFormData(r))if(pO.hasStandardBrowserEnv||pO.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pO.hasStandardBrowserEnv&&(i&&GE.isFunction(i)&&(i=i(t)),i||!1!==i&&MO(t.url))){const e=o&&a&&kO.read(a);e&&s.set(o,e)}return t},DO="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=OO(e);let i=r.data;const o=xO.from(r.headers).normalize();let a,{responseType:s}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let u=new XMLHttpRequest;function c(){if(!u)return;const r=xO.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());CO((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(n(new UE("Request aborted",UE.ECONNABORTED,r,u)),u=null)},u.onerror=function(){n(new UE("Network Error",UE.ERR_NETWORK,r,u)),u=null},u.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||oO;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new UE(e,t.clarifyTimeoutError?UE.ETIMEDOUT:UE.ECONNABORTED,r,u)),u=null},void 0===i&&o.setContentType(null),"setRequestHeader"in u&&GE.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),GE.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),s&&"json"!==s&&(u.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&u.addEventListener("progress",TO(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",TO(r.onUploadProgress)),(r.cancelToken||r.signal)&&(a=t=>{u&&(n(!t||t.type?new SO(null,e,u):t),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);d&&-1===pO.protocols.indexOf(d)?n(new UE("Unsupported protocol "+d+":",UE.ERR_BAD_REQUEST,e)):u.send(i||null)}))},PO=(e,t)=>{let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof UE?t:new SO(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{i(new UE("timeout ".concat(t," of ms exceeded"),UE.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},LO=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},RO=(e,t,n,r,i)=>{const o=async function*(e,t,n){for await(const r of e)yield*LO(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,i);let a=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:i}=await o.next();if(t)return e.close(),void r();let s=i.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(i))},cancel:e=>(r(e),o.return())},{highWaterMark:2})},BO=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},NO="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,zO=NO&&"function"==typeof ReadableStream,FO=NO&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),VO=zO&&(()=>{let e=!1;const t=new Request(pO.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),HO=zO&&!!(()=>{try{return GE.isReadableStream(new Response("").body)}catch(e){}})(),jO={stream:HO&&(e=>e.body)};var WO;NO&&(WO=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!jO[e]&&(jO[e]=GE.isFunction(WO[e])?t=>t[e]():(t,n)=>{throw new UE("Response type '".concat(e,"' is not supported"),UE.ERR_NOT_SUPPORT,n)})})));const GO=async(e,t)=>{const n=GE.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:GE.isBlob(e)?e.size:GE.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:GE.isArrayBufferView(e)?e.byteLength:(GE.isURLSearchParams(e)&&(e+=""),GE.isString(e)?(await FO(e)).byteLength:void 0))(t):n},UO={http:null,xhr:DO,fetch:NO&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=OO(e);u=u?(u+"").toLowerCase():"text";let h,f,[g,v]=i||o||a?PO([i,o],a):[];const m=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let y;try{if(l&&VO&&"get"!==n&&"head"!==n&&0!==(y=await GO(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});GE.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body&&(r=RO(n.body,65536,BO(y,TO(l)),null,FO))}GE.isString(d)||(d=d?"cors":"omit"),f=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let i=await fetch(f);const o=HO&&("stream"===u||"response"===u);if(HO&&(s||o)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=GE.toFiniteNumber(i.headers.get("content-length"));i=new Response(RO(i.body,65536,s&&BO(t,TO(s,!0)),o&&m,FO),e)}u=u||"text";let a=await jO[GE.findKey(jO,u)||"text"](i,e);return!o&&m(),v&&v(),await new Promise(((t,n)=>{CO(t,n,{data:a,headers:xO.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(b){if(m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new UE("Network Error",UE.ERR_NETWORK,e,f),{cause:b.cause||b});throw UE.from(b,b&&b.code,e,f)}})};GE.forEach(UO,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const qO=e=>"- ".concat(e),YO=e=>GE.isFunction(e)||null===e||!1===e,XO=e=>{e=GE.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!YO(n)&&(r=UO[(t=String(n)).toLowerCase()],void 0===r))throw new UE("Unknown adapter '".concat(t,"'"));if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>"adapter ".concat(e," ")+(!1===t?"is not supported by the environment":"is not available in the build")));throw new UE("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(qO).join("\n"):" "+qO(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function KO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new SO(null,e)}function $O(e){KO(e),e.headers=xO.from(e.headers),e.data=_O.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return XO(e.adapter||fO.adapter)(e).then((function(t){return KO(e),t.data=_O.call(e,e.transformResponse,t),t.headers=xO.from(t.headers),t}),(function(t){return wO(t)||(KO(e),t&&t.response&&(t.response.data=_O.call(e,e.transformResponse,t.response),t.response.headers=xO.from(t.response.headers))),Promise.reject(t)}))}const ZO="1.7.2",JO={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{JO[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const QO={};JO.transitional=function(e,t,n){return(r,i,o)=>{if(!1===e)throw new UE(function(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),UE.ERR_DEPRECATED);return t&&!QO[i]&&(QO[i]=!0),!e||e(r,i,o)}};const eD={assertOptions:function(e,t,n){if("object"!=typeof e)throw new UE("options must be an object",UE.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new UE("option "+o+" must be "+n,UE.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new UE("Unknown option "+o,UE.ERR_BAD_OPTION)}},validators:JO},tD=eD.validators;class nD{constructor(e){this.defaults=e,this.interceptors={request:new iO,response:new iO}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=EO(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&eD.assertOptions(n,{silentJSONParsing:tD.transitional(tD.boolean),forcedJSONParsing:tD.transitional(tD.boolean),clarifyTimeoutError:tD.transitional(tD.boolean)},!1),null!=r&&(GE.isFunction(r)?t.paramsSerializer={serialize:r}:eD.assertOptions(r,{encode:tD.function,serialize:tD.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&GE.merge(i.common,i[t.method]);i&&GE.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=xO.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,d=0;if(!s){const e=[$O.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let p=t;for(d=0;d<c;){const e=a[d++],t=a[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{u=$O.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return rO(AO((e=EO(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}GE.forEach(["delete","get","head","options"],(function(e){nD.prototype[e]=function(t,n){return this.request(EO(n||{},{method:e,url:t,data:(n||{}).data}))}})),GE.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(EO(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}nD.prototype[e]=t(),nD.prototype[e+"Form"]=t(!0)}));class rD{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new SO(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new rD((function(t){e=t})),cancel:e}}}const iD={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(iD).forEach((([e,t])=>{iD[t]=e}));const oD=function e(t){const n=new nD(t),r=lE(nD.prototype.request,n);return GE.extend(r,nD.prototype,n,{allOwnKeys:!0}),GE.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(EO(t,n))},r}(fO);oD.Axios=nD,oD.CanceledError=SO,oD.CancelToken=rD,oD.isCancel=wO,oD.VERSION=ZO,oD.toFormData=JE,oD.AxiosError=UE,oD.Cancel=oD.CanceledError,oD.all=function(e){return Promise.all(e)},oD.spread=function(e){return function(t){return e.apply(null,t)}},oD.isAxiosError=function(e){return GE.isObject(e)&&!0===e.isAxiosError},oD.mergeConfig=EO,oD.AxiosHeaders=xO,oD.formToJSON=e=>hO(GE.isHTMLForm(e)?new FormData(e):e),oD.getAdapter=XO,oD.HttpStatusCode=iD,oD.default=oD;
/*!
  * vue-router v4.4.0
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */
const aD="undefined"!=typeof document;const sD=Object.assign;function lD(e,t){const n={};for(const r in t){const i=t[r];n[r]=cD(i)?i.map(e):e(i)}return n}const uD=()=>{},cD=Array.isArray,dD=/#/g,pD=/&/g,hD=/\//g,fD=/=/g,gD=/\?/g,vD=/\+/g,mD=/%5B/g,yD=/%5D/g,bD=/%5E/g,xD=/%60/g,_D=/%7B/g,wD=/%7C/g,SD=/%7D/g,CD=/%20/g;function TD(e){return encodeURI(""+e).replace(wD,"|").replace(mD,"[").replace(yD,"]")}function MD(e){return TD(e).replace(vD,"%2B").replace(CD,"+").replace(dD,"%23").replace(pD,"%26").replace(xD,"`").replace(_D,"{").replace(SD,"}").replace(bD,"^")}function kD(e){return null==e?"":function(e){return TD(e).replace(dD,"%23").replace(gD,"%3F")}(e).replace(hD,"%2F")}function AD(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const ID=/\/$/,ED=e=>e.replace(ID,"");function OD(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let o,a,s=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}(null!=r?r:t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:AD(a)}}function DD(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function PD(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function LD(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!RD(e[n],t[n]))return!1;return!0}function RD(e,t){return cD(e)?BD(e,t):cD(t)?BD(t,e):e===t}function BD(e,t){return cD(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const ND={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var zD,FD,VD,HD;(FD=zD||(zD={})).pop="pop",FD.push="push",(HD=VD||(VD={})).back="back",HD.forward="forward",HD.unknown="";const jD=/^[^#]+#/;function WD(e,t){return e.replace(jD,"#")+t}const GD=()=>({left:window.scrollX,top:window.scrollY});function UD(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function qD(e,t){return(history.state?history.state.position-t:-1)+e}const YD=new Map;let XD=()=>location.protocol+"//"+location.host;function KD(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let t=i.includes(e.slice(o))?e.slice(o).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),DD(n,"")}return DD(n,e)+r+i}function $D(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?GD():null}}function ZD(e){const t=function(e){const{history:t,location:n}=window,r={value:KD(e,n)},i={value:t.state};function o(r,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:XD()+e+r;try{t[a?"replaceState":"pushState"](o,"",l),i.value=o}catch(u){n[a?"replace":"assign"](l)}}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){const a=sD({},i.value,t.state,{forward:e,scroll:GD()});o(a.current,a,!0),o(e,sD({},$D(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){o(e,sD({},t.state,$D(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}}}(e=function(e){if(!e)if(aD){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),ED(e)}(e)),n=function(e,t,n,r){let i=[],o=[],a=null;const s=({state:o})=>{const s=KD(e,location),l=n.value,u=t.value;let c=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else r(s);i.forEach((e=>{e(n.value,l,{delta:c,type:zD.pop,direction:c?c>0?VD.forward:VD.back:VD.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(sD({},e.state,{scroll:GD()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const r=sD({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:WD.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function JD(e){return"string"==typeof e||"symbol"==typeof e}const QD=Symbol("");var eP,tP;function nP(e,t){return sD(new Error,{type:e,[QD]:!0},t)}function rP(e,t){return e instanceof Error&&QD in e&&(null==t||!!(e.type&t))}(tP=eP||(eP={}))[tP.aborted=4]="aborted",tP[tP.cancelled=8]="cancelled",tP[tP.duplicated=16]="duplicated";const iP="[^/]+?",oP={sensitive:!1,strict:!1,start:!0,end:!0},aP=/[.+*?^${}()[\]/\\]/g;function sP(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function lP(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const e=sP(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(uP(r))return 1;if(uP(i))return-1}return i.length-r.length}function uP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cP={type:0,value:""},dP=/[a-zA-Z0-9_]/;function pP(e,t,n){const r=function(e,t){const n=sD({},oP,t),r=[];let i=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const r=l[t];let a=40+(n.sensitive?.25:0);if(0===r.type)t||(i+="/"),i+=r.value.replace(aP,"\\$&"),a+=40;else if(1===r.type){const{value:e,repeatable:n,optional:u,regexp:c}=r;o.push({name:e,repeatable:n,optional:u});const d=c||iP;if(d!==iP){a+=10;try{new RegExp("(".concat(d,")"))}catch(s){throw new Error('Invalid custom RegExp for param "'.concat(e,'" (').concat(d,"): ")+s.message)}}let p=n?"((?:".concat(d,")(?:/(?:").concat(d,"))*)"):"(".concat(d,")");t||(p=u&&l.length<2?"(?:/".concat(p,")"):"/"+p),u&&(p+="?"),i+=p,a+=20,u&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");return{re:a,score:r,keys:o,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",i=o[r-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const i of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:a,optional:s}=e,l=o in t?t[o]:"";if(cD(l)&&!a)throw new Error('Provided param "'.concat(o,'" is an array but it is not repeatable (* or + modifiers)'));const u=cD(l)?l.join("/"):l;if(!u){if(!s)throw new Error('Missing required param "'.concat(o,'"'));i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=u}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[cP]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(e){throw new Error("ERR (".concat(n,')/"').concat(u,'": ').concat(e))}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,l=0,u="",c="";function d(){u&&(0===n?o.push({type:0,value:u}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t("A repeatable param (".concat(u,") must be alone in its segment. eg: '/:ids+.")),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function p(){u+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&d(),a()):":"===s?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===s?n=2:dP.test(s)?p():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t('Unfinished custom RegExp for param "'.concat(u,'"')),d(),a(),i}(e.path),n),i=sD(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function hP(e,t){const n=[],r=new Map;function i(e,n,r){const s=!r,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=r&&r.record;const u=yP(t,e),c=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)c.push(sD({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l}))}let d,p;for(const t of c){const{path:c}=t;if(n&&"/"!==c[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(c&&r+c)}if(d=pP(t,n,u),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),s&&e.name&&!vP(d)&&o(e.name)),bP(d)&&a(d),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],d,r&&r.children[t])}r=r||d}return p?()=>{o(p)}:uD}function o(e){if(JD(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function a(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;lP(e,t[i])<0?r=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(bP(t)&&0===lP(e,t))return t;return}(e);i&&(r=t.lastIndexOf(i,r-1));return r}(e,n);n.splice(t,0,e),e.record.name&&!vP(e)&&r.set(e.record.name,e)}return t=yP({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,o,a,s={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw nP(1,{location:e});a=i.record.name,s=sD(fP(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&fP(e.params,i.keys.map((e=>e.name)))),o=i.stringify(s)}else if(null!=e.path)o=e.path,i=n.find((e=>e.re.test(o))),i&&(s=i.parse(o),a=i.record.name);else{if(i=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw nP(1,{location:e,currentLocation:t});a=i.record.name,s=sD({},t.params,e.params),o=i.stringify(s)}const l=[];let u=i;for(;u;)l.unshift(u.record),u=u.parent;return{name:a,path:o,params:s,matched:l,meta:mP(l)}},removeRoute:o,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function fP(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function gP(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function vP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mP(e){return e.reduce(((e,t)=>sD(e,t.meta)),{})}function yP(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function bP({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xP(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(vD," "),i=e.indexOf("="),o=AD(i<0?e:e.slice(0,i)),a=i<0?null:AD(e.slice(i+1));if(o in t){let e=t[o];cD(e)||(e=t[o]=[e]),e.push(a)}else t[o]=a}return t}function _P(e){let t="";for(let n in e){const r=e[n];if(n=MD(n).replace(fD,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(cD(r)?r.map((e=>e&&MD(e))):[r&&MD(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function wP(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=cD(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const SP=Symbol(""),CP=Symbol(""),TP=Symbol(""),MP=Symbol(""),kP=Symbol("");function AP(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function IP(e,t,n,r,i,o=e=>e()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((s,l)=>{const u=e=>{var o;!1===e?l(nP(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(o=e)||o&&"object"==typeof o?l(nP(2,{from:t,to:e})):(a&&r.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),s())},c=o((()=>e.call(r&&r.instances[i],t,n,u)));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch((e=>l(e)))}))}function EP(e,t,n,r,i=e=>e()){const o=[];for(const s of e)for(const e in s.components){let l=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=l)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(l.__vccOpts||l)[t];a&&o.push(IP(a,n,r,s,e,i))}else{let a=l();o.push((()=>a.then((o=>{if(!o)return Promise.reject(new Error("Couldn't resolve component \"".concat(e,'" at "').concat(s.path,'"')));const a=(l=o).__esModule||"Module"===l[Symbol.toStringTag]?o.default:o;var l;s.components[e]=a;const u=(a.__vccOpts||a)[t];return u&&IP(u,n,r,s,e,i)()}))))}}var a;return o}function OP(e){const t=Fr(TP),n=Fr(MP),r=ia((()=>{const n=Lt(e.to);return t.resolve(n)})),i=ia((()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const a=o.findIndex(PD.bind(null,i));if(a>-1)return a;const s=PP(e[t-2]);return t>1&&PP(i)===s&&o[o.length-1].path!==s?o.findIndex(PD.bind(null,e[t-2])):a})),o=ia((()=>i.value>-1&&function(e,t){for(const n in t){const r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!cD(i)||i.length!==r.length||r.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,r.value.params))),a=ia((()=>i.value>-1&&i.value===n.matched.length-1&&LD(n.params,r.value.params)));return{route:r,href:ia((()=>r.value.href)),isActive:o,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Lt(e.replace)?"replace":"push"](Lt(e.to)).catch(uD):Promise.resolve()}}}const DP=sr({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:OP,setup(e,{slots:t}){const n=ht(OP(e)),{options:r}=Fr(TP),i=ia((()=>({[LP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[LP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:aa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function PP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const LP=(e,t,n)=>null!=e?e:null!=t?t:n,RP=sr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fr(kP),i=ia((()=>e.route||r.value)),o=Fr(CP,0),a=ia((()=>{let e=Lt(o);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=ia((()=>i.value.matched[a.value]));zr(CP,ia((()=>a.value+1))),zr(SP,s),zr(kP,i);const l=Et();return Mi((()=>[l.value,s.value,e.name]),(([e,t,n],[r,i,o])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&PD(t,i)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,o=e.name,a=s.value,u=a&&a.components[o];if(!u)return BP(n.default,{Component:u,route:r});const c=a.props[o],d=c?!0===c?r.params:"function"==typeof c?c(r):c:null,p=aa(u,sD({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[o]=null)},ref:l}));return BP(n.default,{Component:p,route:r})||p}}});function BP(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const NP=RP;function zP(e){const t=hP(e.routes,e),n=e.parseQuery||xP,r=e.stringifyQuery||_P,i=e.history,o=AP(),a=AP(),s=AP(),l=Ot(ND);let u=ND;aD&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=lD.bind(null,(e=>""+e)),d=lD.bind(null,kD),p=lD.bind(null,AD);function h(e,o){if(o=sD({},o||l.value),"string"==typeof e){const r=OD(n,e,o.path),a=t.resolve({path:r.path},o),s=i.createHref(r.fullPath);return sD(r,a,{params:p(a.params),hash:AD(r.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=sD({},e,{path:OD(n,e.path,o.path).path});else{const t=sD({},e.params);for(const e in t)null==t[e]&&delete t[e];a=sD({},e,{params:d(t)}),o.params=d(o.params)}const s=t.resolve(a,o),u=e.hash||"";s.params=c(p(s.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,sD({},e,{hash:(f=u,TD(f).replace(_D,"{").replace(SD,"}").replace(bD,"^")),path:s.path}));var f;const g=i.createHref(h);return sD({fullPath:h,hash:u,query:r===_P?wP(e.query):e.query||{}},s,{redirectedFrom:void 0,href:g})}function f(e){return"string"==typeof e?OD(n,e,l.value.path):sD({},e)}function g(e,t){if(u!==e)return nP(8,{from:t,to:e})}function v(e){return y(e)}function m(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=f(r):{path:r},r.params={}),sD({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function y(e,t){const n=u=h(e),i=l.value,o=e.state,a=e.force,s=!0===e.replace,c=m(n);if(c)return y(sD(f(c),{state:"object"==typeof c?sD({},o,c.state):o,force:a,replace:s}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&PD(t.matched[r],n.matched[i])&&LD(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,i,n)&&(p=nP(16,{to:d,from:i}),O(i,i,!0,!1)),(p?Promise.resolve(p):_(d,i)).catch((e=>rP(e)?rP(e,2)?e:E(e):I(e,d,i))).then((e=>{if(e){if(rP(e,2))return y(sD({replace:s},f(e.to),{state:"object"==typeof e.to?sD({},o,e.to.state):o,force:a}),t||d)}else e=S(d,i,!0,s,o);return w(d,i,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function x(e){const t=L.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[r,i,s]=function(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const o=t.matched[a];o&&(e.matched.find((e=>PD(e,o)))?r.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>PD(e,s)))||i.push(s))}return[n,r,i]}(e,t);n=EP(r.reverse(),"beforeRouteLeave",e,t);for(const o of r)o.leaveGuards.forEach((r=>{n.push(IP(r,e,t))}));const l=b.bind(null,e,t);return n.push(l),B(n).then((()=>{n=[];for(const r of o.list())n.push(IP(r,e,t));return n.push(l),B(n)})).then((()=>{n=EP(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach((r=>{n.push(IP(r,e,t))}));return n.push(l),B(n)})).then((()=>{n=[];for(const r of s)if(r.beforeEnter)if(cD(r.beforeEnter))for(const i of r.beforeEnter)n.push(IP(i,e,t));else n.push(IP(r.beforeEnter,e,t));return n.push(l),B(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=EP(s,"beforeRouteEnter",e,t,x),n.push(l),B(n)))).then((()=>{n=[];for(const r of a.list())n.push(IP(r,e,t));return n.push(l),B(n)})).catch((e=>rP(e,8)?e:Promise.reject(e)))}function w(e,t,n){s.list().forEach((r=>x((()=>r(e,t,n)))))}function S(e,t,n,r,o){const a=g(e,t);if(a)return a;const s=t===ND,u=aD?history.state:{};n&&(r||s?i.replace(e.fullPath,sD({scroll:s&&u&&u.scroll},o)):i.push(e.fullPath,o)),l.value=e,O(e,t,n,s),E()}let C;function T(){C||(C=i.listen(((e,t,n)=>{if(!R.listening)return;const r=h(e),o=m(r);if(o)return void y(sD(o,{replace:!0}),r).catch(uD);u=r;const a=l.value;var s,c;aD&&(s=qD(a.fullPath,n.delta),c=GD(),YD.set(s,c)),_(r,a).catch((e=>rP(e,12)?e:rP(e,2)?(y(e.to,r).then((e=>{rP(e,20)&&!n.delta&&n.type===zD.pop&&i.go(-1,!1)})).catch(uD),Promise.reject()):(n.delta&&i.go(-n.delta,!1),I(e,r,a)))).then((e=>{(e=e||S(r,a,!1))&&(n.delta&&!rP(e,8)?i.go(-n.delta,!1):n.type===zD.pop&&rP(e,20)&&i.go(-1,!1)),w(r,a,e)})).catch(uD)})))}let M,k=AP(),A=AP();function I(e,t,n){E(e);const r=A.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function E(e){return M||(M=!e,T(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function O(t,n,r,i){const{scrollBehavior:o}=e;if(!aD||!o)return Promise.resolve();const a=!r&&function(e){const t=YD.get(e);return YD.delete(e),t}(qD(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return rn().then((()=>o(t,n,a))).then((e=>e&&UD(e))).catch((e=>I(e,t,n)))}const D=e=>i.go(e);let P;const L=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let r,i;return JD(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:v,replace:function(e){return v(sD(f(e),{replace:!0}))},go:D,back:()=>D(-1),forward:()=>D(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:A.add,isReady:function(){return M&&l.value!==ND?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",DP),e.component("RouterView",NP),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Lt(l)}),aD&&!P&&l.value===ND&&(P=!0,v(i.location).catch((e=>{})));const t={};for(const r in ND)Object.defineProperty(t,r,{get:()=>l.value[r],enumerable:!0});e.provide(TP,this),e.provide(MP,ft(t)),e.provide(kP,l);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(u=ND,C&&C(),C=null,l.value=ND,P=!1,M=!1),n()}}};function B(e){return e.reduce(((e,t)=>e.then((()=>x(t)))),Promise.resolve())}return R}function FP(){return Fr(TP)}function VP(e){return Fr(MP)}
/*! *****************************************************************************
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 HP=function(e,t){return(HP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function jP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var WP=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),GP=new(function(){return function(){this.browser=new WP,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?(GP.wxa=!0,GP.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?GP.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(GP.node=!0,GP.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,GP);const UP=GP;var qP=12,YP="sans-serif",XP=qP+"px "+YP;var KP=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),$P={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=$P.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||XP),e.measureText(n);n=n||"";var o=/((?:\d+)?\.?\d*)px/.exec(r=r||XP),a=o&&+o[1]||qP,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=KP[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function ZP(e){for(var t in $P)e[t]&&($P[t]=e[t])}var JP=CL(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),QP=CL(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),eL=Object.prototype.toString,tL=Array.prototype,nL=tL.forEach,rL=tL.filter,iL=tL.slice,oL=tL.map,aL=function(){}.constructor,sL=aL?aL.prototype:null,lL="__proto__",uL=2311;function cL(){return uL++}function dL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function pL(e){if(null==e||"object"!=typeof e)return e;var t=e,n=eL.call(e);if("[object Array]"===n){if(!$L(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=pL(e[r])}}else if(QP[n]){if(!$L(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!JP[n]&&!$L(e)&&!NL(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==lL&&(t[a]=pL(e[a]));return t}function hL(e,t,n){if(!LL(t)||!LL(e))return n?pL(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==lL){var i=e[r],o=t[r];!LL(o)||!LL(i)||IL(o)||IL(i)||NL(o)||NL(i)||RL(o)||RL(i)||$L(o)||$L(i)?!n&&r in e||(e[r]=pL(t[r])):hL(i,o,n)}return e}function fL(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=hL(n,e[r],t);return n}function gL(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==lL&&(e[n]=t[n]);return e}function vL(e,t,n){for(var r=ML(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var mL=$P.createCanvas;function yL(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function bL(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function xL(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else vL(e,t,n)}function _L(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function wL(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nL)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function SL(e,t,n){if(!e)return[];if(!t)return GL(e);if(e.map&&e.map===oL)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function CL(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function TL(e,t,n){if(!e)return[];if(!t)return GL(e);if(e.filter&&e.filter===rL)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ML(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var kL=sL&&EL(sL.bind)?sL.call.bind(sL.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(iL.call(arguments)))}};function AL(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(iL.call(arguments)))}}function IL(e){return Array.isArray?Array.isArray(e):"[object Array]"===eL.call(e)}function EL(e){return"function"==typeof e}function OL(e){return"string"==typeof e}function DL(e){return"[object String]"===eL.call(e)}function PL(e){return"number"==typeof e}function LL(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function RL(e){return!!JP[eL.call(e)]}function BL(e){return!!QP[eL.call(e)]}function NL(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function zL(e){return null!=e.colorStops}function FL(e){return null!=e.image}function VL(e){return e!=e}function HL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function jL(e,t){return null!=e?e:t}function WL(e,t,n){return null!=e?e:null!=t?t:n}function GL(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return iL.apply(e,t)}function UL(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function qL(e,t){if(!e)throw new Error(t)}function YL(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var XL="__ec_primitive__";function KL(e){e[XL]=!0}function $L(e){return e[XL]}var ZL=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return ML(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),JL="function"==typeof Map;var QL=function(){function e(t){var n=IL(t);this.data=JL?new Map:new ZL;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&wL(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,r){e.call(t,n,r)}))},e.prototype.keys=function(){var e=this.data.keys();return JL?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function eR(e){return new QL(e)}function tR(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function nR(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&gL(n,t),n}function rR(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function iR(e,t){return e.hasOwnProperty(t)}function oR(){}var aR=180/Math.PI;const sR=Object.freeze(Object.defineProperty({__proto__:null,HashMap:QL,RADIAN_TO_DEGREE:aR,assert:qL,bind:kL,clone:pL,concatArray:tR,createCanvas:mL,createHashMap:eR,createObject:nR,curry:AL,defaults:vL,disableUserSelect:rR,each:wL,eqNaN:VL,extend:gL,filter:TL,find:function(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]},guid:cL,hasOwn:iR,indexOf:yL,inherits:bL,isArray:IL,isArrayLike:_L,isBuiltInObject:RL,isDom:NL,isFunction:EL,isGradientObject:zL,isImagePatternObject:FL,isNumber:PL,isObject:LL,isPrimitive:$L,isRegExp:function(e){return"[object RegExp]"===eL.call(e)},isString:OL,isStringSafe:DL,isTypedArray:BL,keys:ML,logError:dL,map:SL,merge:hL,mergeAll:fL,mixin:xL,noop:oR,normalizeCssArray:UL,reduce:CL,retrieve:HL,retrieve2:jL,retrieve3:WL,setAsPrimitive:KL,slice:GL,trim:YL},Symbol.toStringTag,{value:"Module"}));function lR(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function uR(e,t){return e[0]=t[0],e[1]=t[1],e}function cR(e){return[e[0],e[1]]}function dR(e,t,n){return e[0]=t,e[1]=n,e}function pR(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function hR(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function fR(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function gR(e){return Math.sqrt(mR(e))}var vR=gR;function mR(e){return e[0]*e[0]+e[1]*e[1]}var yR=mR;function bR(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function xR(e,t){var n=gR(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function _R(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var wR=_R;function SR(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var CR=SR;function TR(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function MR(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function kR(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function AR(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const IR=Object.freeze(Object.defineProperty({__proto__:null,add:pR,applyTransform:MR,clone:cR,copy:uR,create:lR,dist:wR,distSquare:CR,distance:_R,distanceSquare:SR,div:function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},len:gR,lenSquare:mR,length:vR,lengthSquare:yR,lerp:TR,max:AR,min:kR,mul:function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},normalize:xR,scale:bR,scaleAndAdd:hR,set:dR,sub:fR},Symbol.toStringTag,{value:"Module"}));var ER=function(){return function(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),OR=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ER(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new ER(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new ER(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new ER(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ER(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ER(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),DR=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),PR=Math.log(2);function LR(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/PR);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,p=0,h=0;p<s;p++){var f=1<<p;f&i||(d+=(h%2?-1:1)*e[n][p]*LR(e,t-1,c,u,i|f,o),h++)}return o[a]=d,d}function RR(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=LR(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*LR(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var BR="___zrEVENTSAVED",NR=[];function zR(e,t,n,r,i){if(t.getBoundingClientRect&&UP.domSupported&&!FR(t)){var o=t[BR]||(t[BR]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,p=c.left,h=c.top;a.push(p,h),l=l&&o&&p===o[d]&&h===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?RR(s,a):RR(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function FR(e){return"CANVAS"===e.nodeName.toUpperCase()}var VR=/([&<>"'])/g,HR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function jR(e){return null==e?"":(e+"").replace(VR,(function(e,t){return HR[t]}))}var WR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,GR=[],UR=UP.browser.firefox&&+UP.browser.version.split(".")[0]<39;function qR(e,t,n,r){return n=n||{},r?YR(e,t,n):UR&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):YR(e,t,n),n}function YR(e,t,n){if(UP.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(FR(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(zR(GR,e,r,i))return n.zrX=GR[0],void(n.zrY=GR[1])}n.zrX=n.zrY=0}function XR(e){return e||window.event}function KR(e,t,n){if(null!=(t=XR(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&qR(e,i,t,n)}else{qR(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&WR.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function $R(e,t,n,r){e.addEventListener(t,n,r)}function ZR(e,t,n,r){e.removeEventListener(t,n,r)}var JR=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function QR(e){return 2===e.which||3===e.which}var eB=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=qR(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in nB)if(nB.hasOwnProperty(t)){var n=nB[t](this._track,e);if(n)return n}},e}();function tB(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var nB={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=tB(i)/tB(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function rB(){return[1,0,0,1,0,0]}function iB(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function oB(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function aB(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function sB(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function lB(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function uB(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function cB(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}const dB=Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){var t=[1,0,0,1,0,0];return oB(t,e),t},copy:oB,create:rB,identity:iB,invert:cB,mul:aB,rotate:lB,scale:uB,translate:sB},Symbol.toStringTag,{value:"Module"}));var pB=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),hB=Math.min,fB=Math.max,gB=new pB,vB=new pB,mB=new pB,yB=new pB,bB=new pB,xB=new pB,_B=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=hB(e.x,this.x),n=hB(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fB(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fB(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return sB(i,i,[-t.x,-t.y]),uB(i,i,[n,r]),sB(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,p=!(o<l||u<i||s<c||d<a);if(n){var h=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(d-a),b=Math.min(g,v),x=Math.min(m,y);o<l||u<i?b>f&&(f=b,g<v?pB.set(xB,-g,0):pB.set(xB,v,0)):b<h&&(h=b,g<v?pB.set(bB,g,0):pB.set(bB,-v,0)),s<c||d<a?x>f&&(f=x,m<y?pB.set(xB,0,-m):pB.set(xB,0,y)):b<h&&(h=b,m<y?pB.set(bB,0,m):pB.set(bB,0,-y))}return n&&pB.copy(n,p?bB:xB),p},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}gB.x=mB.x=n.x,gB.y=yB.y=n.y,vB.x=yB.x=n.x+n.width,vB.y=mB.y=n.y+n.height,gB.transform(r),yB.transform(r),vB.transform(r),mB.transform(r),t.x=hB(gB.x,vB.x,mB.x,yB.x),t.y=hB(gB.y,vB.y,mB.y,yB.y);var l=fB(gB.x,vB.x,mB.x,yB.x),u=fB(gB.y,vB.y,mB.y,yB.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const wB=_B;var SB="silent";function CB(){JR(this.event)}var TB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return jP(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(DR),MB=function(){return function(e,t){this.x=e,this.y=t}}(),kB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],AB=new wB(0,0,0,0),IB=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new MB(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new TB,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new OR(a),a}return jP(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(wL(kB,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=DB(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new MB(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new MB(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:CB}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new MB(e,t);if(OB(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new wB(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(AB.copy(c.getBoundingRect()),c.transform&&AB.applyTransform(c.transform),AB.intersect(l)&&o.push(c))}if(o.length)for(var d=Math.PI/12,p=2*Math.PI,h=0;h<s;h+=4)for(var f=0;f<p;f+=d){if(OB(o,i,e+h*Math.cos(f),t+h*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new eB);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new MB;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(DR);function EB(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||SB}return!1}function OB(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=EB(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==SB)){t.target=a;break}}}function DB(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}wL(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){IB.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=DB(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||wR(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var PB=32,LB=7;function RB(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function BB(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function NB(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function zB(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function FB(e,t){var n,r,i=LB,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var p=zB(e[c],e,l,u,0,t);l+=p,0!==(u-=p)&&0!==(d=NB(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0==--s){for(l=0;l<r;l++)e[d+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];return void(e[d+s]=a[u])}var p,h,f,g=i;for(;;){p=0,h=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],h++,p=0,0==--s){f=!0;break}}else if(e[d++]=a[u++],p++,h=0,1==--r){f=!0;break}}while((p|h)<g);if(f)break;do{if(0!==(p=zB(e[c],a,u,r,0,t))){for(l=0;l<p;l++)e[d+l]=a[u+l];if(d+=p,u+=p,(r-=p)<=1){f=!0;break}}if(e[d++]=e[c++],0==--s){f=!0;break}if(0!==(h=NB(a[u],e,c,s,0,t))){for(l=0;l<h;l++)e[d+l]=e[c+l];if(d+=h,c+=h,0===(s-=h)){f=!0;break}}if(e[d++]=a[u++],1==--r){f=!0;break}g--}while(p>=LB||h>=LB);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=a[u+l]}}(l,u,c,d):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,d=o+s-1,p=0,h=0;if(e[d--]=e[u--],0==--r){for(p=d-(s-1),l=0;l<s;l++)e[p+l]=a[l];return}if(1===s){for(h=(d-=r)+1,p=(u-=r)+1,l=r-1;l>=0;l--)e[h+l]=e[p+l];return void(e[d]=a[c])}var f=i;for(;;){var g=0,v=0,m=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,v=0,0==--r){m=!0;break}}else if(e[d--]=a[c--],v++,g=0,1==--s){m=!0;break}}while((g|v)<f);if(m)break;do{if(0!==(g=r-zB(a[c],e,n,r,r-1,t))){for(r-=g,h=(d-=g)+1,p=(u-=g)+1,l=g-1;l>=0;l--)e[h+l]=e[p+l];if(0===r){m=!0;break}}if(e[d--]=a[c--],1==--s){m=!0;break}if(0!==(v=s-NB(e[u],a,0,s,s-1,t))){for(s-=v,h=(d-=v)+1,p=(c-=v)+1,l=0;l<v;l++)e[h+l]=a[p+l];if(s<=1){m=!0;break}}if(e[d--]=e[u--],0==--r){m=!0;break}f--}while(g>=LB||v>=LB);if(m)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(h=(d-=r)+1,p=(u-=r)+1,l=r-1;l>=0;l--)e[h+l]=e[p+l];e[d]=a[c]}else{if(0===s)throw new Error;for(p=d-(s-1),l=0;l<s;l++)e[p+l]=a[l]}}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function VB(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<PB)BB(e,n,r,n+(o=RB(e,n,r,t)),t);else{var a=FB(e,t),s=function(e){for(var t=0;e>=PB;)t|=1&e,e>>=1;return e+t}(i);do{if((o=RB(e,n,r,t))<s){var l=i;l>s&&(l=s),BB(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var HB=1,jB=4,WB=!1;function GB(){WB||(WB=!0)}function UB(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qB,YB=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=UB}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,VB(n,UB)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=HB),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(GB(),u.z=0),isNaN(u.z2)&&(GB(),u.z2=0),isNaN(u.zlevel)&&(GB(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=yL(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();qB=UP.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var XB={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-XB.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*XB.bounceIn(2*e):.5*XB.bounceOut(2*e-1)+.5}},KB=Math.pow,$B=Math.sqrt,ZB=1e-8,JB=1e-4,QB=$B(3),eN=1/3,tN=lR(),nN=lR(),rN=lR();function iN(e){return e>-ZB&&e<ZB}function oN(e){return e>ZB||e<-ZB}function aN(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function sN(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function lN(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,p=l*l-3*s*u,h=0;if(iN(c)&&iN(d)){if(iN(s))o[0]=0;else(C=-l/s)>=0&&C<=1&&(o[h++]=C)}else{var f=d*d-4*c*p;if(iN(f)){var g=d/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[h++]=C),v>=0&&v<=1&&(o[h++]=v)}else if(f>0){var m=$B(f),y=c*s+1.5*a*(-d+m),b=c*s+1.5*a*(-d-m);(C=(-s-((y=y<0?-KB(-y,eN):KB(y,eN))+(b=b<0?-KB(-b,eN):KB(b,eN))))/(3*a))>=0&&C<=1&&(o[h++]=C)}else{var x=(2*c*s-3*a*d)/(2*$B(c*c*c)),_=Math.acos(x)/3,w=$B(c),S=Math.cos(_),C=(-s-2*w*S)/(3*a),T=(v=(-s+w*(S+QB*Math.sin(_)))/(3*a),(-s+w*(S-QB*Math.sin(_)))/(3*a));C>=0&&C<=1&&(o[h++]=C),v>=0&&v<=1&&(o[h++]=v),T>=0&&T<=1&&(o[h++]=T)}}return h}function uN(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(iN(a)){if(oN(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(iN(u))i[0]=-o/(2*a);else if(u>0){var c,d=$B(u),p=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function cN(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function dN(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,d=0,p=1/l,h=1;h<=l;h++){var f=h*p,g=aN(e,n,i,a,f),v=aN(t,r,o,s,f),m=g-u,y=v-c;d+=Math.sqrt(m*m+y*y),u=g,c=v}return d}function pN(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function hN(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function fN(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function gN(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function vN(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var p=d*c,h=pN(e,n,i,p),f=pN(t,r,o,p),g=h-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=h,l=f}return u}var mN=/cubic-bezier\(([0-9,\.e ]+)\)/;function yN(e){var t=e&&mN.exec(e);if(t){var n=t[1].split(","),r=+YL(n[0]),i=+YL(n[1]),o=+YL(n[2]),a=+YL(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:lN(0,r,o,1,e,s)&&aN(0,i,a,1,s[0])}}}var bN=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||oR,this.ondestroy=e.ondestroy||oR,this.onrestart=e.onrestart||oR,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=EL(e)?e:XB[e]||yN(e)},e}(),xN=function(){return function(e){this.value=e}}(),_N=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new xN(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),wN=function(){function e(e){this._list=new _N,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new xN(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),SN={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 CN(e){return(e=Math.round(e))<0?0:e>255?255:e}function TN(e){return e<0?0:e>1?1:e}function MN(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?CN(parseFloat(t)/100*255):CN(parseInt(t,10))}function kN(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?TN(parseFloat(t)/100):TN(parseFloat(t))}function AN(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function IN(e,t,n){return e+(t-e)*n}function EN(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ON(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var DN=new wN(20),PN=null;function LN(e,t){PN&&ON(PN,t),PN=DN.put(e,PN||t.slice())}function RN(e,t){if(e){t=t||[];var n=DN.get(e);if(n)return ON(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in SN)return ON(t,SN[r]),LN(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(EN(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),LN(e,t),t):void EN(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(EN(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),LN(e,t),t):void EN(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?EN(t,+u[0],+u[1],+u[2],1):EN(t,0,0,0,1);c=kN(u.pop());case"rgb":return u.length>=3?(EN(t,MN(u[0]),MN(u[1]),MN(u[2]),3===u.length?c:kN(u[3])),LN(e,t),t):void EN(t,0,0,0,1);case"hsla":return 4!==u.length?void EN(t,0,0,0,1):(u[3]=kN(u[3]),BN(u,t),LN(e,t),t);case"hsl":return 3!==u.length?void EN(t,0,0,0,1):(BN(u,t),LN(e,t),t);default:return}}EN(t,0,0,0,1)}}function BN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=kN(e[1]),i=kN(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return EN(t=t||[],CN(255*AN(a,o,n+1/3)),CN(255*AN(a,o,n)),CN(255*AN(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function NN(e,t){var n=RN(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return GN(n,4===n.length?"rgba":"rgb")}}function zN(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],l=r-i;return n[0]=CN(IN(a[0],s[0],l)),n[1]=CN(IN(a[1],s[1],l)),n[2]=CN(IN(a[2],s[2],l)),n[3]=TN(IN(a[3],s[3],l)),n}}var FN=zN;function VN(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=RN(t[i]),s=RN(t[o]),l=r-i,u=GN([CN(IN(a[0],s[0],l)),CN(IN(a[1],s[1],l)),CN(IN(a[2],s[2],l)),TN(IN(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var HN=VN;function jN(e,t,n,r){var i=RN(e);if(e)return i=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?t=p-d:i===s?t=1/3+c-p:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}(i),null!=t&&(i[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(i[1]=kN(n)),null!=r&&(i[2]=kN(r)),GN(BN(i),"rgba")}function WN(e,t){var n=RN(e);if(n&&null!=t)return n[3]=TN(t),GN(n,"rgba")}function GN(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function UN(e,t){var n=RN(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var qN=new wN(100);function YN(e){if(OL(e)){var t=qN.get(e);return t||(t=NN(e,-.1),qN.put(e,t)),t}if(zL(e)){var n=gL({},e);return n.colorStops=SL(e.colorStops,(function(e){return{offset:e.offset,color:NN(e.color,-.1)}})),n}return e}const XN=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:zN,fastMapToColor:FN,lerp:VN,lift:NN,liftColor:YN,lum:UN,mapToColor:HN,modifyAlpha:WN,modifyHSL:jN,parse:RN,random:function(){return GN([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:GN,toHex:function(e){var t=RN(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));var KN=Math.round;function $N(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=RN(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var ZN=1e-4;function JN(e){return e<ZN&&e>-ZN}function QN(e){return KN(1e3*e)/1e3}function ez(e){return KN(1e4*e)/1e4}var tz={left:"start",right:"end",center:"middle",middle:"middle"};function nz(e){return e&&!!e.image}function rz(e){return nz(e)||function(e){return e&&!!e.svgElement}(e)}function iz(e){return"linear"===e.type}function oz(e){return"radial"===e.type}function az(e){return e&&("linear"===e.type||"radial"===e.type)}function sz(e){return"url(#"+e+")"}function lz(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function uz(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*aR,i=jL(e.scaleX,1),o=jL(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+KN(a*aR)+"deg, "+KN(s*aR)+"deg)"),l.join(" ")}var cz=UP.hasGlobalWindow&&EL(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null},dz=Array.prototype.slice;function pz(e,t,n){return(t-e)*n+e}function hz(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=pz(t[o],n[o],r);return e}function fz(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function gz(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function vz(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function mz(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:dz.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function yz(e){if(_L(e)){var t=e.length;if(_L(e[0])){for(var n=[],r=0;r<t;r++)n.push(dz.call(e[r]));return n}return dz.call(e)}return e}function bz(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function xz(e){return 4===e||5===e}function _z(e){return 1===e||2===e}var wz=[0,0,0,0],Sz=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(_L(t)){var l=function(e){return _L(e&&e[0])?2:1}(t);a=l,(1===l&&!PL(t[0])||2===l&&!PL(t[0][0]))&&(o=!0)}else if(PL(t)&&!VL(t))a=0;else if(OL(t))if(isNaN(+t)){var u=RN(t);u&&(s=u,a=3)}else a=0;else if(zL(t)){var c=gL({},s);c.colorStops=SL(t.colorStops,(function(e){return{offset:e.offset,color:RN(e.color)}})),iz(t)?a=4:oz(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=EL(n)?n:XB[n]||yN(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_z(r),l=xz(r),u=0;u<i;u++){var c=n[u],d=c.value,p=o.value;c.percent=c.time/e,a||(s&&u!==i-1?mz(d,p,r):l&&vz(d.colorStops,p.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-h:3===r?n[u].additiveValue=fz([],n[u].value,h,-1):_z(r)&&(n[u].additiveValue=1===r?fz([],n[u].value,h,-1):gz([],n[u].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,p=this._lastFr,h=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(p+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>t);n++);n=h(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,g=0===f?1:h((t-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var v=o?this._additiveValue:d?wz:e[c];if(!_z(s)&&!d||v||(v=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(_z(s))1===s?hz(v,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=pz(t[a][s],n[a][s],r)}}(v,r[a],i[a],g);else if(xz(s)){var m=r[a],y=i[a],b=4===s;e[c]={type:b?"linear":"radial",x:pz(m.x,y.x,g),y:pz(m.y,y.y,g),colorStops:SL(m.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:pz(e.offset,n.offset,g),color:bz(hz([],e.color,n.color,g))}})),global:y.global},b?(e[c].x2=pz(m.x2,y.x2,g),e[c].y2=pz(m.y2,y.y2,g)):e[c].r=pz(m.r,y.r,g)}else if(d)hz(v,r[a],i[a],g),o||(e[c]=bz(v));else{var x=pz(r[a],i[a],g);o?this._additiveValue=x:e[c]=x}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(RN(e[n],wz),fz(wz,wz,r,1),e[n]=bz(wz)):1===t?fz(e[n],e[n],r,1):2===t&&gz(e[n],e[n],r,1)},e}(),Cz=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?dL("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ML(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Sz(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=bz(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,yz(l),r),this._trackKeys.push(a)}s.addKeyframe(e,yz(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new bN({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return SL(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=yz(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||ML(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Tz(){return(new Date).getTime()}var Mz,kz,Az,Iz=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return jP(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Tz()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,qB((function t(){e._running&&(qB(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=Tz(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Tz(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Tz()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Cz(e,t.loop);return this.addAnimator(n),n},t}(DR),Ez=UP.domSupported,Oz=(kz={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Az=SL(Mz=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],(function(e){var t=e.replace("mouse","pointer");return kz.hasOwnProperty(t)?t:e})),{mouse:Mz,touch:["touchstart","touchend","touchmove"],pointer:Az}),Dz=["mousemove","mouseup"],Pz=["pointermove","pointerup"],Lz=!1;function Rz(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Bz(e){e&&(e.zrByTouch=!0)}function Nz(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var zz=function(){return function(e,t){this.stopPropagation=oR,this.stopImmediatePropagation=oR,this.preventDefault=oR,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Fz={mousedown:function(e){e=KR(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=KR(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=KR(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Nz(this,(e=KR(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Lz=!0,e=KR(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Lz||(e=KR(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Bz(e=KR(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Fz.mousemove.call(this,e),Fz.mousedown.call(this,e)},touchmove:function(e){Bz(e=KR(this.dom,e)),this.handler.processGesture(e,"change"),Fz.mousemove.call(this,e)},touchend:function(e){Bz(e=KR(this.dom,e)),this.handler.processGesture(e,"end"),Fz.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Fz.click.call(this,e)},pointerdown:function(e){Fz.mousedown.call(this,e)},pointermove:function(e){Rz(e)||Fz.mousemove.call(this,e)},pointerup:function(e){Fz.mouseup.call(this,e)},pointerout:function(e){Rz(e)||Fz.mouseout.call(this,e)}};wL(["click","dblclick","contextmenu"],(function(e){Fz[e]=function(t){t=KR(this.dom,t),this.trigger(e,t)}}));var Vz={pointermove:function(e){Rz(e)||Vz.mousemove.call(this,e)},pointerup:function(e){Vz.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Hz(e,t){var n=t.domHandlers;UP.pointerEventsSupported?wL(Oz.pointer,(function(r){Wz(t,r,(function(t){n[r].call(e,t)}))})):(UP.touchEventsSupported&&wL(Oz.touch,(function(r){Wz(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),wL(Oz.mouse,(function(r){Wz(t,r,(function(i){i=XR(i),t.touching||n[r].call(e,i)}))})))}function jz(e,t){function n(n){Wz(t,n,(function(r){r=XR(r),Nz(e,r.target)||(r=function(e,t){return KR(e.dom,new zz(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}UP.pointerEventsSupported?wL(Pz,n):UP.touchEventsSupported||wL(Dz,n)}function Wz(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,$R(e.domTarget,t,n,r)}function Gz(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&ZR(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Uz=function(){return function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),qz=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Uz(t,Fz),Ez&&(r._globalHandlerScope=new Uz(document,Vz)),Hz(r,r._localHandlerScope),r}return jP(t,e),t.prototype.dispose=function(){Gz(this._localHandlerScope),Ez&&Gz(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Ez&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?jz(this,t):Gz(t)}},t}(DR),Yz=1;UP.hasGlobalWindow&&(Yz=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xz=Yz,Kz="#333",$z="#ccc",Zz=iB,Jz=5e-5;function Qz(e){return e>Jz||e<-5e-5}var eF=[],tF=[],nF=[1,0,0,1,0,0],rF=Math.abs,iF=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Qz(this.rotation)||Qz(this.x)||Qz(this.y)||Qz(this.scaleX-1)||Qz(this.scaleY-1)||Qz(this.skewX)||Qz(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):Zz(n),e&&(t?aB(n,e,n):oB(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Zz(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(eF);var n=eF[0]<0?-1:1,r=eF[1]<0?-1:1,i=((eF[0]-n)*t+n)/eF[0]||0,o=((eF[1]-r)*t+r)/eF[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],cB(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],aB(tF,e.invTransform,t),t=tF);var n=this.originX,r=this.originY;(n||r)&&(nF[4]=n,nF[5]=r,aB(tF,t,nF),tF[4]-=n,tF[5]-=r,t=tF),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&MR(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&MR(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&rF(e[0]-1)>1e-10&&rF(e[3]-1)>1e-10?Math.sqrt(rF(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){aF(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var h=n+a,f=r+s;t[4]=-h*i-d*f*o,t[5]=-f*o-p*h*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=p*i,t[2]=d*o,l&&lB(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),oF=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function aF(e,t){for(var n=0;n<oF.length;n++){var r=oF[n];e[r]=t[r]}}var sF={};function lF(e,t){var n=sF[t=t||XP];n||(n=sF[t]=new wN(500));var r=n.get(e);return null==r&&(r=$P.measureText(e,t).width,n.put(e,r)),r}function uF(e,t,n,r){var i=lF(e,t),o=hF(t),a=dF(0,i,n),s=pF(0,o,r);return new wB(a,s,i,o)}function cF(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return uF(i[0],t,n,r);for(var o=new wB(0,0,0,0),a=0;a<i.length;a++){var s=uF(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function dF(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function pF(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function hF(e){return lF("国",e)}function fF(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function gF(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=fF(r[0],n.width),u+=fF(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var vF="__zr_normal__",mF=oF.concat(["ignore"]),yF=CL(oF,(function(e,t){return e[t]=!0,e}),{ignore:!1}),bF={},xF=new wB(0,0,0,0),_F=function(){function e(e){this.id=cL(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=xF;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(bF,n,u):gF(bF,n,u),i.x=bF.x,i.y=bF.y,o=bF.align,a=bF.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,p=void 0;"center"===c?(d=.5*u.width,p=.5*u.height):(d=fF(c[0],u.width),p=fF(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[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,t.setDefaultTextStyle(g)),t.__dirty|=HB,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$z:Kz},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&RN(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,GN(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},gL(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(LL(e))for(var n=ML(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==vF)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,mF)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vF,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===vF;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(yL(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~HB),s}dL("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),h=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~HB)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=yL(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=yL(r,e),o=yL(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];gL(n,i),i.textConfig&&gL(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=gL({},r?this.textConfig:n.textConfig),gL(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<mF.length;u++){var c=mF[u],d=i&&yF[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var p=this.animators[u],h=p.targetName;p.getLoop()||p.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new iF,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),gL(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=HB;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this,i=new Cz(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=yL(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){wF(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){wF(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=wF(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=HB,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function wF(e,t,n,r,i){var o=[];TF(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},d=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var p=0;p<o.length;p++){var h=o[p];c&&h.done(c),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function SF(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function CF(e,t,n){if(_L(t[n]))if(_L(e[n])||(e[n]=[]),BL(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),SF(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(_L(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?SF(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else SF(o,i,a);o.length=i.length}else e[n]=t[n]}function TF(e,t,n,r,i,o,a,s){for(var l=ML(r),u=i.duration,c=i.delay,d=i.additive,p=i.setToFinal,h=!LL(o),f=e.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=r[m];if(null!=y&&null!=n[m]&&(h||o[m]))if(!LL(y)||_L(y)||zL(y))g.push(m);else{if(t){s||(n[m]=y,e.updateDuringAnimation(t));continue}TF(e,m,n[m],y,i,o&&o[m],a,s)}else s||(n[m]=y,e.updateDuringAnimation(t),g.push(m))}var b=g.length;if(!d&&b)for(var x=0;x<f.length;x++){if((w=f[x]).targetName===t)if(w.stopTracks(g)){var _=yL(f,w);f.splice(_,1)}}if(i.force||(g=TL(g,(function(e){return t=r[e],i=n[e],!(t===i||_L(t)&&_L(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i})),b=g.length),b>0||i.force&&!a.length){var w,S=void 0,C=void 0,T=void 0;if(s){C={},p&&(S={});for(x=0;x<b;x++){C[m=g[x]]=n[m],p?S[m]=r[m]:n[m]=r[m]}}else if(p){T={};for(x=0;x<b;x++){T[m=g[x]]=yz(n[m]),CF(n,r,m)}}(w=new Cz(n,!1,!1,d?TL(f,(function(e){return e.targetName===t})):null)).targetName=t,i.scope&&(w.scope=i.scope),p&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==u?500:u,s?C:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}xL(_F,DR),xL(_F,iF);var MF=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return jP(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=yL(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=yL(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new wB(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(wB.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(_F);MF.prototype.type="group";const kF=MF;
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var AF={},IF={};var EF,OF=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new YB,o=n.renderer||"canvas";AF[o]||(o=ML(AF)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new AF[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=UP.node||UP.worker||s?null:new qz(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?UP.touchEventsSupported:!!c)&&(l=jL(n.pointerSize,44)),this.handler=new IB(i,a,u,a.root,l),this.animation=new Iz({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return UN(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=UN(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Tz();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Tz();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof kF&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete IF[e])},e}();function DF(e,t){var n=new OF(cL(),e,t);return IF[n.id]=n,n}function PF(e,t){AF[e]=t}function LF(e){if("function"==typeof EF)return EF(e)}function RF(e){EF=e}const BF=Object.freeze(Object.defineProperty({__proto__:null,dispose:function(e){e.dispose()},disposeAll:function(){for(var e in IF)IF.hasOwnProperty(e)&&IF[e].dispose();IF={}},getElementSSRData:LF,getInstance:function(e){return IF[e]},init:DF,registerPainter:PF,registerSSRDataGetter:RF,version:"5.6.0"},Symbol.toStringTag,{value:"Module"}));var NF=1e-4,zF=20;function FF(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function VF(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return OL(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function HF(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),zF),e=(+e).toFixed(t),n?e:+e}function jF(e){return e.sort((function(e,t){return e-t})),e}function WF(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return GF(e)}function GF(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function UF(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function qF(e,t){var n=CL(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var r=Math.pow(10,t),i=SL(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),o=100*r,a=SL(i,(function(e){return Math.floor(e)})),s=CL(a,(function(e,t){return e+t}),0),l=SL(i,(function(e,t){return e-a[t]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,p=l.length;d<p;++d)l[d]>u&&(u=l[d],c=d);++a[c],l[c]=0,++s}return SL(a,(function(e){return e/r}))}function YF(e,t){var n=Math.max(WF(e),WF(t)),r=e+t;return n>zF?r:HF(r,n)}function XF(e){var t=2*Math.PI;return(e%t+t)%t}function KF(e){return e>-NF&&e<NF}var $F=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ZF(e){if(e instanceof Date)return e;if(OL(e)){var t=$F.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function JF(e){return Math.pow(10,QF(e))}function QF(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function eV(e,t){var n=QF(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function tV(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function nV(e){var t=parseFloat(e);return t==e&&(0!==t||!OL(e)||e.indexOf("x")<=0)?t:NaN}function rV(e){return!isNaN(nV(e))}function iV(){return Math.round(9*Math.random())}function oV(e,t){return 0===t?e:oV(t,e%t)}function aV(e,t){return null==e?t:null==t?e:e*t/oV(e,t)}"undefined"!=typeof console&&console.warn&&console.log;function sV(e){throw new Error(e)}function lV(e,t,n){return(t-e)*n+e}var uV="series\0",cV="\0_ec_\0";function dV(e){return e instanceof Array?e:null==e?[]:[e]}function pV(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var hV=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function fV(e){return!LL(e)||IL(e)||e instanceof Date?e:e.value}function gV(e){return LL(e)&&!(e instanceof Array)}function vV(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=eR();wL(t,(function(e,n){LL(e)||(t[n]=null)}));var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||_V(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){wL(r,(function(i,o){if(i&&null!=i.id){var a=yV(i.id),s=n.get(a);if(null!=s){var l=e[s];qL(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}}))}(u,e,a,t),r&&function(e,t){wL(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!_V(n)&&!_V(o)&&mV("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(u,t),r||i?function(e,t,n){wL(t,(function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||_V(r.existing)||r.existing&&null!=t.id&&!mV("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,t,i):o&&function(e,t){wL(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(u,t),s=u,l=eR(),wL(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),wL(s,(function(e){var t=e.newOption;qL(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),wL(s,(function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(LL(r)){if(i.name=null!=r.name?yV(r.name):n?n.name:uV+t,n)i.id=yV(n.id);else if(null!=r.id)i.id=yV(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}})),u}function mV(e,t,n){var r=bV(t[e],null),i=bV(n[e],null);return null!=r&&null!=i&&r===i}function yV(e){return bV(e,"")}function bV(e,t){return null==e?t:OL(e)?e:PL(e)||DL(e)?e+"":t}function xV(e){var t=e.name;return!(!t||!t.indexOf(uV))}function _V(e){return e&&null!=e.id&&0===yV(e.id).indexOf(cV)}function wV(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?IL(t.dataIndex)?SL(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?IL(t.name)?SL(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function SV(){var e="__ec_inner_"+CV++;return function(t){return t[e]||(t[e]={})}}var CV=iV();function TV(e,t,n){var r=MV(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(t,r){var i=IV(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function MV(e,t){var n;if(OL(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=eR(),o={},a=!1;return wL(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&yL(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var kV={useDefault:!0,enableAll:!1,enableNone:!1},AV={useDefault:!1,enableAll:!0,enableNone:!0};function IV(e,t,n,r){r=r||kV;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(qL(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(qL(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function EV(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}var OV=".",DV="___EC__COMPONENT__CONTAINER___",PV="___EC__EXTENDED_CLASS___";function LV(e){var t={main:"",sub:""};if(e){var n=e.split(OV);t.main=n[0]||"",t.sub=n[1]||""}return t}function RV(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return!function(e){return EL(e)&&/^class\s/.test(Function.prototype.toString.call(e))}(n)?(t=function(){(e.$constructor||n).apply(this,arguments)},bL(t,this)):t=function(e){function t(){return e.apply(this,arguments)||this}return jP(t,e),t}(n),gL(t.prototype,e),t[PV]=!0,t.extend=this.extend,t.superCall=zV,t.superApply=FV,t.superClass=n,t}}function BV(e,t){e.extend=t.extend}var NV=Math.round(10*Math.random());function zV(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function FV(e,t,n){return this.superClass.prototype[t].apply(e,n)}function VV(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){qL(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=LV(r);if(i.sub){if(i.sub!==DV){var o=function(e){var n=t[e.main];n&&n[DV]||((n=t[e.main]={})[DV]=!0);return n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[DV]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=LV(e),r=[],i=t[n.main];return i&&i[DV]?wL(i,(function(e,t){t!==DV&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=LV(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return wL(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=LV(e),r=t[n.main];return r&&r[DV]}}function HV(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&yL(r,s)>=0||i&&yL(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var jV=HV([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),WV=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return jV(this,e,t)},e}(),GV=new wN(50);function UV(e){if("string"==typeof e){var t=GV.get(e);return t&&t.image}return e}function qV(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=GV.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!XV(t=o.image)&&o.pending.push(a):((t=$P.loadImage(e,YV,YV)).__zrImageSrc=e,GV.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function YV(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function XV(e){return e&&e.width&&e.height}var KV=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $V(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=ZV(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=JV(o[a],i);return o.join("\n")}function ZV(e,t,n,r){var i=gL({},r=r||{});i.font=t,n=jL(n,"..."),i.maxIterations=jL(r.maxIterations,2);var o=i.minChar=jL(r.minChar,0);i.cnCharWidth=lF("国",t);var a=i.ascCharWidth=lF("a",t);i.placeholder=jL(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=lF(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function JV(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=lF(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?QV(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=lF(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function QV(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var eH=function(){return function(){}}(),tH=function(){return function(e){this.tokens=[],e&&(this.tokens=e)}}(),nH=function(){return function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}}();function rH(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var p=l.padding,h=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=fF(l.width,r.width)+h;u.length>0&&f+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=f}else{var g=aH(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new eH;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:lF(m,c),v||d)u.push(new tH([y]));else{var b=(u[u.length-1]||(u[0]=new tH)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(m||!x||s)&&b.push(y)}}}var iH=CL(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function oH(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!iH[e]}function aH(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var p=e.charAt(d);if("\n"!==p){var h=lF(p,t),f=!r&&!oH(p);(o.length?c+h>n:i+c+h>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=h):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=h)):f?(o.push(l),a.push(u),l=p,u=h):(o.push(p),a.push(h)):(c+=h,f?(l+=p,u+=h):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var sH="__zr_style_"+Math.round(10*Math.random()),lH={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uH={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};lH[sH]=!0;var cH=["z","z2","invisible"],dH=["invisible"],pH=function(e){function t(t){return e.call(this,t)||this}var n;return jP(t,e),t.prototype._init=function(t){for(var n=ML(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){hH.copy(e.getBoundingRect()),e.transform&&hH.applyTransform(e.transform);return fH.width=t,fH.height=n,!hH.intersect(fH)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new wB(0,0,0,0)),t?wB.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wB(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:gL(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return nR(lH,e)},t.prototype.useStyle=function(e){e[sH]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[sH]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,cH)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=ML(u),d=0;d<c.length;d++){(h=c[d])in s&&(s[h]=s[h],this.style[h]=u[h])}var p=ML(s);for(d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?dH:cH;for(d=0;d<f.length;d++){h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return gL(e,t),e},t.prototype.getAnimationStyleProps=function(){return uH},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|HB)),t}(_F),hH=new wB(0,0,0,0),fH=new wB(0,0,0,0);const gH=pH;var vH=Math.min,mH=Math.max,yH=Math.sin,bH=Math.cos,xH=2*Math.PI,_H=lR(),wH=lR(),SH=lR();function CH(e,t,n,r,i,o){i[0]=vH(e,n),i[1]=vH(t,r),o[0]=mH(e,n),o[1]=mH(t,r)}var TH=[],MH=[];function kH(e,t,n,r,i,o,a,s,l,u){var c=uN,d=aN,p=c(e,n,i,a,TH);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var f=d(e,n,i,a,TH[h]);l[0]=vH(f,l[0]),u[0]=mH(f,u[0])}p=c(t,r,o,s,MH);for(h=0;h<p;h++){var g=d(t,r,o,s,MH[h]);l[1]=vH(g,l[1]),u[1]=mH(g,u[1])}l[0]=vH(e,l[0]),u[0]=mH(e,u[0]),l[0]=vH(a,l[0]),u[0]=mH(a,u[0]),l[1]=vH(t,l[1]),u[1]=mH(t,u[1]),l[1]=vH(s,l[1]),u[1]=mH(s,u[1])}function AH(e,t,n,r,i,o,a,s){var l=fN,u=pN,c=mH(vH(l(e,n,i),1),0),d=mH(vH(l(t,r,o),1),0),p=u(e,n,i,c),h=u(t,r,o,d);a[0]=vH(e,i,p),a[1]=vH(t,o,h),s[0]=mH(e,i,p),s[1]=mH(t,o,h)}function IH(e,t,n,r,i,o,a,s,l){var u=kR,c=AR,d=Math.abs(i-o);if(d%xH<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(_H[0]=bH(i)*n+e,_H[1]=yH(i)*r+t,wH[0]=bH(o)*n+e,wH[1]=yH(o)*r+t,u(s,_H,wH),c(l,_H,wH),(i%=xH)<0&&(i+=xH),(o%=xH)<0&&(o+=xH),i>o&&!a?o+=xH:i<o&&a&&(i+=xH),a){var p=o;o=i,i=p}for(var h=0;h<o;h+=Math.PI/2)h>i&&(SH[0]=bH(h)*n+e,SH[1]=yH(h)*r+t,u(s,SH,s),c(l,SH,l))}var EH={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},OH=[],DH=[],PH=[],LH=[],RH=[],BH=[],NH=Math.min,zH=Math.max,FH=Math.cos,VH=Math.sin,HH=Math.abs,jH=Math.PI,WH=2*jH,GH="undefined"!=typeof Float32Array,UH=[];function qH(e){return Math.round(e/jH*1e8)/1e8%2*jH}function YH(e,t){var n=qH(e[0]);n<0&&(n+=WH);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=WH?i=n+WH:t&&n-i>=WH?i=n-WH:!t&&n>i?i=n+(WH-qH(n-i)):t&&n<i&&(i=n-(WH-qH(i-n))),e[0]=n,e[1]=i}var XH=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=HH(n/Xz/e)||0,this._uy=HH(n/Xz/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(EH.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=HH(e-this._xi),r=HH(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(EH.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(EH.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(EH.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),UH[0]=r,UH[1]=i,YH(UH,o),r=UH[0];var a=(i=UH[1])-r;return this.addData(EH.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=FH(i)*n+e,this._yi=VH(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(EH.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(EH.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!GH||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();GH&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,GH&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){PH[0]=PH[1]=RH[0]=RH[1]=Number.MAX_VALUE,LH[0]=LH[1]=BH[0]=BH[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case EH.M:n=i=t[e++],r=o=t[e++],RH[0]=i,RH[1]=o,BH[0]=i,BH[1]=o;break;case EH.L:CH(n,r,t[e],t[e+1],RH,BH),n=t[e++],r=t[e++];break;case EH.C:kH(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],RH,BH),n=t[e++],r=t[e++];break;case EH.Q:AH(n,r,t[e++],t[e++],t[e],t[e+1],RH,BH),n=t[e++],r=t[e++];break;case EH.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],p=t[e++],h=t[e++]+p;e+=1;var f=!t[e++];s&&(i=FH(p)*c+l,o=VH(p)*d+u),IH(l,u,c,d,p,h,f,RH,BH),n=FH(h)*c+l,r=VH(h)*d+u;break;case EH.R:CH(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],RH,BH);break;case EH.Z:n=i,r=o}kR(PH,PH,RH),AR(LH,LH,BH)}return 0===e&&(PH[0]=PH[1]=LH[0]=LH[1]=0),new wB(PH[0],PH[1],LH[0]-PH[0],LH[1]-PH[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var p=e[d++],h=1===d;h&&(a=i=e[d],s=o=e[d+1]);var f=-1;switch(p){case EH.M:i=a=e[d++],o=s=e[d++];break;case EH.L:var g=e[d++],v=(b=e[d++])-o;(HH(I=g-i)>n||HH(v)>r||d===t-1)&&(f=Math.sqrt(I*I+v*v),i=g,o=b);break;case EH.C:var m=e[d++],y=e[d++],b=(g=e[d++],e[d++]),x=e[d++],_=e[d++];f=dN(i,o,m,y,g,b,x,_,10),i=x,o=_;break;case EH.Q:f=vN(i,o,m=e[d++],y=e[d++],g=e[d++],b=e[d++],10),i=g,o=b;break;case EH.A:var w=e[d++],S=e[d++],C=e[d++],T=e[d++],M=e[d++],k=e[d++],A=k+M;d+=1,h&&(a=FH(M)*C+w,s=VH(M)*T+S),f=zH(C,T)*NH(WH,Math.abs(k)),i=FH(A)*C+w,o=VH(A)*T+S;break;case EH.R:a=i=e[d++],s=o=e[d++],f=2*e[d++]+2*e[d++];break;case EH.Z:var I=a-i;v=s-o;f=Math.sqrt(I*I+v*v),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,p=this.data,h=this._ux,f=this._uy,g=this._len,v=t<1,m=0,y=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var x=0;x<g;){var _=p[x++],w=1===x;switch(w&&(n=i=p[x],r=o=p[x+1]),_!==EH.L&&b>0&&(e.lineTo(c,d),b=0),_){case EH.M:n=i=p[x++],r=o=p[x++],e.moveTo(i,o);break;case EH.L:a=p[x++],s=p[x++];var S=HH(a-i),C=HH(s-o);if(S>h||C>f){if(v){if(m+(X=l[y++])>u){var T=(u-m)/X;e.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break e}m+=X}e.lineTo(a,s),i=a,o=s,b=0}else{var M=S*S+C*C;M>b&&(c=a,d=s,b=M)}break;case EH.C:var k=p[x++],A=p[x++],I=p[x++],E=p[x++],O=p[x++],D=p[x++];if(v){if(m+(X=l[y++])>u){cN(i,k,I,O,T=(u-m)/X,OH),cN(o,A,E,D,T,DH),e.bezierCurveTo(OH[1],DH[1],OH[2],DH[2],OH[3],DH[3]);break e}m+=X}e.bezierCurveTo(k,A,I,E,O,D),i=O,o=D;break;case EH.Q:k=p[x++],A=p[x++],I=p[x++],E=p[x++];if(v){if(m+(X=l[y++])>u){gN(i,k,I,T=(u-m)/X,OH),gN(o,A,E,T,DH),e.quadraticCurveTo(OH[1],DH[1],OH[2],DH[2]);break e}m+=X}e.quadraticCurveTo(k,A,I,E),i=I,o=E;break;case EH.A:var P=p[x++],L=p[x++],R=p[x++],B=p[x++],N=p[x++],z=p[x++],F=p[x++],V=!p[x++],H=R>B?R:B,j=HH(R-B)>.001,W=N+z,G=!1;if(v)m+(X=l[y++])>u&&(W=N+z*(u-m)/X,G=!0),m+=X;if(j&&e.ellipse?e.ellipse(P,L,R,B,F,N,W,V):e.arc(P,L,H,N,W,V),G)break e;w&&(n=FH(N)*R+P,r=VH(N)*B+L),i=FH(W)*R+P,o=VH(W)*B+L;break;case EH.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var U=p[x++],q=p[x++];if(v){if(m+(X=l[y++])>u){var Y=u-m;e.moveTo(a,s),e.lineTo(a+NH(Y,U),s),(Y-=U)>0&&e.lineTo(a+U,s+NH(Y,q)),(Y-=q)>0&&e.lineTo(a+zH(U-Y,0),s+q),(Y-=U)>0&&e.lineTo(a,s+zH(q-Y,0));break e}m+=X}e.rect(a,s,U,q);break;case EH.Z:if(v){var X;if(m+(X=l[y++])>u){T=(u-m)/X;e.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break e}m+=X}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=EH,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function KH(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function $H(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>r+d&&c>o+d&&c>s+d||c<t-d&&c<r-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>a+d||u<e-d&&u<n-d&&u<i-d&&u<a-d)return!1;var p=function(e,t,n,r,i,o,a,s,l,u,c){var d,p,h,f,g,v=.005,m=1/0;tN[0]=l,tN[1]=u;for(var y=0;y<1;y+=.05)nN[0]=aN(e,n,i,a,y),nN[1]=aN(t,r,o,s,y),(f=CR(tN,nN))<m&&(d=y,m=f);m=1/0;for(var b=0;b<32&&!(v<JB);b++)p=d-v,h=d+v,nN[0]=aN(e,n,i,a,p),nN[1]=aN(t,r,o,s,p),f=CR(nN,tN),p>=0&&f<m?(d=p,m=f):(rN[0]=aN(e,n,i,a,h),rN[1]=aN(t,r,o,s,h),g=CR(rN,tN),h<=1&&g<m?(d=h,m=g):v*=.5);return $B(m)}(e,t,n,r,i,o,a,s,u,c);return p<=d/2}function ZH(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=function(e,t,n,r,i,o,a,s,l){var u,c=.005,d=1/0;tN[0]=a,tN[1]=s;for(var p=0;p<1;p+=.05)nN[0]=pN(e,n,i,p),nN[1]=pN(t,r,o,p),(v=CR(tN,nN))<d&&(u=p,d=v);d=1/0;for(var h=0;h<32&&!(c<JB);h++){var f=u-c,g=u+c;nN[0]=pN(e,n,i,f),nN[1]=pN(t,r,o,f);var v=CR(nN,tN);if(f>=0&&v<d)u=f,d=v;else{rN[0]=pN(e,n,i,g),rN[1]=pN(t,r,o,g);var m=CR(rN,tN);g<=1&&m<d?(u=g,d=m):c*=.5}}return $B(d)}(e,t,n,r,i,o,s,l);return c<=u/2}var JH=2*Math.PI;function QH(e){return(e%=JH)<0&&(e+=JH),e}var ej=2*Math.PI;function tj(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%ej<1e-4)return!0;if(o){var d=r;r=QH(i),i=QH(d)}else r=QH(r),i=QH(i);r>i&&(i+=ej);var p=Math.atan2(l,s);return p<0&&(p+=ej),p>=r&&p<=i||p+ej>=r&&p+ej<=i}function nj(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var rj=XH.CMD,ij=2*Math.PI,oj=1e-4;var aj=[-1,-1,-1],sj=[-1,-1];function lj(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c,d=lN(t,r,o,s,u,aj);if(0===d)return 0;for(var p=0,h=-1,f=void 0,g=void 0,v=0;v<d;v++){var m=aj[v],y=0===m||1===m?.5:1;aN(e,n,i,a,m)<l||(h<0&&(h=uN(t,r,o,s,sj),sj[1]<sj[0]&&h>1&&(c=void 0,c=sj[0],sj[0]=sj[1],sj[1]=c),f=aN(t,r,o,s,sj[0]),h>1&&(g=aN(t,r,o,s,sj[1]))),2===h?m<sj[0]?p+=f<t?y:-y:m<sj[1]?p+=g<f?y:-y:p+=s<g?y:-y:m<sj[0]?p+=f<t?y:-y:p+=s<f?y:-y)}return p}function uj(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(iN(o))oN(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(iN(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=$B(u),p=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}(t,r,o,s,aj);if(0===l)return 0;var u=fN(t,r,o);if(u>=0&&u<=1){for(var c=0,d=pN(t,r,o,u),p=0;p<l;p++){var h=0===aj[p]||1===aj[p]?.5:1;pN(e,n,i,aj[p])<a||(aj[p]<u?c+=d<t?h:-h:c+=o<d?h:-h)}return c}h=0===aj[0]||1===aj[0]?.5:1;return pN(e,n,i,aj[0])<a?0:o<t?h:-h}function cj(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);aj[0]=-l,aj[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=ij-1e-4){r=0,i=ij;var c=o?1:-1;return a>=aj[0]+e&&a<=aj[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=ij,i+=ij);for(var p=0,h=0;h<2;h++){var f=aj[h];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=ij+g),(g>=r&&g<=i||g+ij>=r&&g+ij<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function dj(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),d=0,p=0,h=0,f=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===rj.M&&v>1&&(n||(d+=nj(p,h,f,g,r,i))),y&&(f=p=u[v],g=h=u[v+1]),m){case rj.M:p=f=u[v++],h=g=u[v++];break;case rj.L:if(n){if(KH(p,h,u[v],u[v+1],t,r,i))return!0}else d+=nj(p,h,u[v],u[v+1],r,i)||0;p=u[v++],h=u[v++];break;case rj.C:if(n){if($H(p,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else d+=lj(p,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;p=u[v++],h=u[v++];break;case rj.Q:if(n){if(ZH(p,h,u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else d+=uj(p,h,u[v++],u[v++],u[v],u[v+1],r,i)||0;p=u[v++],h=u[v++];break;case rj.A:var b=u[v++],x=u[v++],_=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var T=!!(1-u[v++]);o=Math.cos(S)*_+b,a=Math.sin(S)*w+x,y?(f=o,g=a):d+=nj(p,h,o,a,r,i);var M=(r-b)*w/_+b;if(n){if(tj(b,x,w,S,S+C,T,t,M,i))return!0}else d+=cj(b,x,w,S,S+C,T,M,i);p=Math.cos(S+C)*_+b,h=Math.sin(S+C)*w+x;break;case rj.R:if(f=p=u[v++],g=h=u[v++],o=f+u[v++],a=g+u[v++],n){if(KH(f,g,o,g,t,r,i)||KH(o,g,o,a,t,r,i)||KH(o,a,f,a,t,r,i)||KH(f,a,f,g,t,r,i))return!0}else d+=nj(o,g,o,a,r,i),d+=nj(f,a,f,g,r,i);break;case rj.Z:if(n){if(KH(p,h,f,g,t,r,i))return!0}else d+=nj(p,h,f,g,r,i);p=f,h=g}}return n||(s=h,l=g,Math.abs(s-l)<oj)||(d+=nj(p,h,f,g,r,i)||0),0!==d}var pj=vL({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},lH),hj={style:vL({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uH.style)},fj=oF.concat(["invisible","culling","z","z2","zlevel","parent"]),gj=function(e){function t(t){return e.call(this,t)||this}var n;return jP(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<fj.length;++s)i[fj[s]]=this[fj[s]];i.__dirty|=HB}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=ML(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?gL(this.style,a):this.useStyle(a):"shape"===o?gL(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(OL(e)){var t=UN(e,0);return t>.5?Kz:t>.2?"#eee":$z}if(e)return $z}return Kz},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(OL(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===UN(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~jB},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new XH(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&jB)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.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 e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return dj(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return dj(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=jB,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:gL(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&jB)},t.prototype.createStyle=function(e){return nR(pj,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=gL({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=gL({},r.shape),gL(s,n.shape)):(s=gL({},i?this.shape:r.shape),gL(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=gL({},this.shape);for(var u={},c=ML(s),d=0;d<c.length;d++){var p=c[d];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return hj},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return jP(n,t),n.prototype.getDefaultStyle=function(){return pL(e.style)},n.prototype.getDefaultShape=function(){return pL(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|HB|jB)),t}(gH),vj=vL({strokeFirst:!0,font:XP,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},pj),mj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return nR(vj,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=cF(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(gH);mj.prototype.type="tspan";var yj=vL({x:0,y:0},lH),bj={style:vL({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uH.style)};var xj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.createStyle=function(e){return nR(yj,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return bj},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new wB(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gH);xj.prototype.type="image";const _j=xj;var wj=Math.round;function Sj(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(wj(2*r)===wj(2*i)&&(e.x1=e.x2=Tj(r,s,!0)),wj(2*o)===wj(2*a)&&(e.y1=e.y2=Tj(o,s,!0)),e):e}}function Cj(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Tj(r,s,!0),e.y=Tj(i,s,!0),e.width=Math.max(Tj(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Tj(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Tj(e,t,n){if(!t)return e;var r=wj(2*e);return(r+wj(t))%2==0?r/2:(r+(n?1:-1))/2}var Mj=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),kj={},Aj=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new Mj},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Cj(kj,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(gj);Aj.prototype.type="rect";const Ij=Aj;var Ej={fill:"#000"},Oj={style:vL({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},uH.style)},Dj=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ej,n.attr(t),n}return jP(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Fj(e=this.style),wL(e.rich,Fj),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new wB(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ej},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return gL(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=ML(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},gL(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Oj},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||XP,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=hF(o),l=jL(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width,p=(n=null==d||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?aH(e,t.font,d,"breakAll"===r,0).lines:[]).length*l,h=jL(t.height,p);if(p>h&&c){var f=Math.floor(h/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=ZV(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=JV(n[v],g);var m=h,y=0;for(v=0;v<n.length;v++)y=Math.max(lF(n[v],o),y);null==d&&(d=y);var b=y;return i&&(m+=i[0]+i[2],b+=i[1]+i[3],d+=i[1]+i[3]),u&&(b=d),{lines:n,height:h,outerWidth:b,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:p,width:d}}(Wj(e),e),i=Gj(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle,p=e.x||0,h=e.y||0,f=e.align||d.align||"left",g=e.verticalAlign||d.verticalAlign||"top",v=p,m=pF(h,r.contentHeight,g);if(i||n){var y=dF(p,s,f),b=pF(h,a,g);i&&this._renderBackground(e,e,y,b,s,a)}m+=c/2,n&&(v=jj(p,f,n),"top"===g?m+=n[0]:"bottom"===g&&(m-=n[2]));for(var x=0,_=!1,w=(Hj("fill"in e?e.fill:(_=!0,d.fill))),S=(Vj("stroke"in e?e.stroke:o||d.autoStroke&&!_?null:(x=2,d.stroke))),C=e.textShadowBlur>0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,k=0;k<u.length;k++){var A=this._getOrCreateChild(mj),I=A.createStyle();A.useStyle(I),I.text=u[k],I.x=v,I.y=m,f&&(I.textAlign=f),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,C&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=e.lineWidth||x,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=t,Nj(I,e),m+=c,T&&A.setBoundingRect(new wB(dF(I.x,e.width,I.textAlign),pF(I.y,M,I.textBaseline),l,M))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new nH;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=KV.lastIndex=0;null!=(r=KV.exec(e));){var u=r.index;u>l&&rH(n,e.substring(l,u),t,s),rH(n,r[2],t,s,r[1]),l=KV.lastIndex}l<e.length&&rH(n,e.substring(l,e.length),t,s);var c=[],d=0,p=0,h=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,p=Math.max(p,t)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],b=0,x=0,_=0;_<y.tokens.length;_++){var w=(D=y.tokens[_]).styleName&&t.rich[D.styleName]||{},S=D.textPadding=w.padding,C=S?S[1]+S[3]:0,T=D.font=w.font||t.font;D.contentHeight=hF(T);var M=jL(w.height,D.contentHeight);if(D.innerHeight=M,S&&(M+=S[0]+S[2]),D.height=M,D.lineHeight=WL(w.lineHeight,t.lineHeight,M),D.align=w&&w.align||t.align,D.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&d+D.lineHeight>o){_>0?(y.tokens=y.tokens.slice(0,_),v(y,x,b),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var k=w.width,A=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))D.percentWidth=k,c.push(D),D.contentWidth=lF(D.text,T);else{if(A){var I=w.backgroundColor,E=I&&I.image;E&&XV(E=UV(E))&&(D.width=Math.max(D.width,E.width*M/E.height))}var O=f&&null!=i?i-x:null;null!=O&&O<D.width?!A||O<C?(D.text="",D.width=D.contentWidth=0):(D.text=$V(D.text,O-C,T,t.ellipsis,{minChar:t.truncateMinChar}),D.width=D.contentWidth=lF(D.text,T)):D.contentWidth=lF(D.text,T)}D.width+=C,x+=D.width,w&&(b=Math.max(b,D.lineHeight))}v(y,x,b)}for(n.outerWidth=n.width=jL(i,p),n.outerHeight=n.height=jL(o,d),n.contentHeight=d,n.contentWidth=p,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),m=0;m<c.length;m++){var D,P=(D=c[m]).percentWidth;D.width=parseInt(P,10)/100*n.width}return n}(Wj(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,d=dF(a,r,u),p=pF(s,i,c),h=d,f=p;o&&(h+=o[3],f+=o[0]);var g=h+n;Gj(e)&&this._renderBackground(e,e,d,p,r,i);for(var v=!!e.backgroundColor,m=0;m<t.lines.length;m++){for(var y=t.lines[m],b=y.tokens,x=b.length,_=y.lineHeight,w=y.width,S=0,C=h,T=g,M=x-1,k=void 0;S<x&&(!(k=b[S]).align||"left"===k.align);)this._placeToken(k,e,_,f,C,"left",v),w-=k.width,C+=k.width,S++;for(;M>=0&&"right"===(k=b[M]).align;)this._placeToken(k,e,_,f,T,"right",v),w-=k.width,T-=k.width,M--;for(C+=(n-(C-h)-(g-T)-w)/2;S<=M;)k=b[S],this._placeToken(k,e,_,f,C+k.width/2,"center",v),C+=k.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&Gj(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=jj(i,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(mj),h=p.createStyle();p.useStyle(h);var f=this._defaultStyle,g=!1,v=0,m=Hj("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),y=Vj("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=i,h.y=u,b&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=o,h.textBaseline="middle",h.font=e.font||XP,h.opacity=WL(s.opacity,t.opacity,1),Nj(h,s),y&&(h.lineWidth=WL(s.lineWidth,t.lineWidth,v),h.lineDash=jL(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=y),m&&(h.fill=m);var x=e.contentWidth,_=e.contentHeight;p.setBoundingRect(new wB(dF(h.x,x,h.textAlign),pF(h.y,_,h.textBaseline),x,_))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,p=u&&u.image,h=u&&!p,f=e.borderRadius,g=this;if(h||e.lineHeight||c&&d){(a=this._getOrCreateChild(Ij)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=r,v.width=i,v.height=o,v.r=f,a.dirtyShape()}if(h)(l=a.style).fill=u||null,l.fillOpacity=jL(e.fillOpacity,1);else if(p){(s=this._getOrCreateChild(_j)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=r,m.width=i,m.height=o}c&&d&&((l=a.style).lineWidth=c,l.stroke=d,l.strokeOpacity=jL(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=WL(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return zj(e)&&(t=[e.fontStyle,e.fontWeight,Bj(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&YL(t)||e.textFont||e.font},t}(gH),Pj={left:!0,right:1,center:1},Lj={top:1,bottom:1,middle:1},Rj=["fontStyle","fontWeight","fontSize","fontFamily"];function Bj(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?qP+"px":e+"px":e}function Nj(e,t){for(var n=0;n<Rj.length;n++){var r=Rj[n],i=t[r];null!=i&&(e[r]=i)}}function zj(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Fj(e){if(e){e.font=Dj.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Pj[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Lj[n]?n:"top",e.padding&&(e.padding=UL(e.padding))}}function Vj(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Hj(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function jj(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Wj(e){var t=e.text;return null!=t&&(t+=""),t}function Gj(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Uj=Dj;var qj=SV(),Yj=1,Xj={},Kj=SV(),$j=SV(),Zj=0,Jj=1,Qj=2,eW=["emphasis","blur","select"],tW=["normal","emphasis","blur","select"],nW=10,rW=9,iW="highlight",oW="downplay",aW="select",sW="unselect",lW="toggleSelect";function uW(e){return null!=e&&"none"!==e}function cW(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function dW(e){cW(e,"emphasis",Qj)}function pW(e){e.hoverState===Qj&&cW(e,"normal",Zj)}function hW(e){cW(e,"blur",Jj)}function fW(e){e.hoverState===Jj&&cW(e,"normal",Zj)}function gW(e){e.selected=!0}function vW(e){e.selected=!1}function mW(e,t,n){t(e,n)}function yW(e,t,n){mW(e,t,n),e.isGroup&&e.traverse((function(e){mW(e,t,n)}))}function bW(e,t){switch(t){case"emphasis":e.hoverState=Qj;break;case"normal":e.hoverState=Zj;break;case"blur":e.hoverState=Jj;break;case"select":e.selected=!0}}function xW(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&yL(n,"select")>=0,o=!1;if(e instanceof gj){var a=Kj(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(uW(s)||uW(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=gL({},r),(u=gL({},u)).fill=s):!uW(u.fill)&&uW(s)?(o=!0,r=gL({},r),(u=gL({},u)).fill=YN(s)):!uW(u.stroke)&&uW(l)&&(o||(r=gL({},r),u=gL({},u)),u.stroke=YN(l)),r.style=u}}if(r&&null==r.z2){o||(r=gL({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:nW)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=yL(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=gL({},n),a=gL({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=gL({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:rW)}return n}(this,0,n)}return n}function _W(e){e.stateProxy=xW;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=xW),n&&(n.stateProxy=xW)}function wW(e,t){!IW(e,t)&&!e.__highByOuter&&yW(e,dW)}function SW(e,t){!IW(e,t)&&!e.__highByOuter&&yW(e,pW)}function CW(e,t){e.__highByOuter|=1<<(t||0),yW(e,dW)}function TW(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&yW(e,pW)}function MW(e){yW(e,fW)}function kW(e){yW(e,gW)}function AW(e){yW(e,vW)}function IW(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function EW(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=$j(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){fW(e)})),a&&n.push(i)),o.isBlured=!1})),wL(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function OW(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&MW(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&i&&"self"===t||hW(e)})),_L(t))o(e.getData(),t);else if(LL(t))for(var c=ML(t),d=0;d<c.length;d++)o(e.getData(c[d]),t[c[d]]);l.push(e),$j(e).isBlured=!0}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function DW(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){$j(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){hW(e)}))}}}function PW(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===qj(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function LW(e){wL(e.getAllData(),(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?kW(t):AW(t)}))}))}function RW(e){var t=[];return e.eachSeries((function(e){wL(e.getAllData(),(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function BW(e,t,n){HW(e,!0),yW(e,_W),function(e,t,n){var r=qj(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function NW(e,t,n,r){r?function(e){HW(e,!1)}(e):BW(e,t,n)}var zW=["emphasis","blur","select"],FW={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function VW(e,t,n,r){n=n||"itemStyle";for(var i=0;i<zW.length;i++){var o=zW[i],a=t.getModel([o,n]);e.ensureState(o).style=a[FW[n]]()}}function HW(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function jW(e){return!(!e||!e.__highDownDispatcher)}function WW(e){var t=e.type;return t===aW||t===sW||t===lW}function GW(e){var t=e.type;return t===iW||t===oW}var UW=XH.CMD,qW=[[],[],[]],YW=Math.sqrt,XW=Math.atan2;var KW=Math.sqrt,$W=Math.sin,ZW=Math.cos,JW=Math.PI;function QW(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function eG(e,t){return(e[0]*t[0]+e[1]*t[1])/(QW(e)*QW(t))}function tG(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(eG(e,t))}function nG(e,t,n,r,i,o,a,s,l,u,c){var d=l*(JW/180),p=ZW(d)*(e-n)/2+$W(d)*(t-r)/2,h=-1*$W(d)*(e-n)/2+ZW(d)*(t-r)/2,f=p*p/(a*a)+h*h/(s*s);f>1&&(a*=KW(f),s*=KW(f));var g=(i===o?-1:1)*KW((a*a*(s*s)-a*a*(h*h)-s*s*(p*p))/(a*a*(h*h)+s*s*(p*p)))||0,v=g*a*h/s,m=g*-s*p/a,y=(e+n)/2+ZW(d)*v-$W(d)*m,b=(t+r)/2+$W(d)*v+ZW(d)*m,x=tG([1,0],[(p-v)/a,(h-m)/s]),_=[(p-v)/a,(h-m)/s],w=[(-1*p-v)/a,(-1*h-m)/s],S=tG(_,w);if(eG(_,w)<=-1&&(S=JW),eG(_,w)>=1&&(S=0),S<0){var C=Math.round(S/JW*1e6)/1e6;S=2*JW+C%2*JW}c.addData(u,y,b,a,s,x,S,d,o)}var rG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,iG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var oG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.applyTransform=function(e){},t}(gj);function aG(e){return null!=e.setData}function sG(e,t){var n=function(e){var t=new XH;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=XH.CMD,l=e.match(rG);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),p=void 0,h=c.match(iG)||[],f=h.length,g=0;g<f;g++)h[g]=parseFloat(h[g]);for(var v=0;v<f;){var m=void 0,y=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,C=r,T=i,M=void 0,k=void 0;switch(d){case"l":r+=h[v++],i+=h[v++],p=s.L,t.addData(p,r,i);break;case"L":r=h[v++],i=h[v++],p=s.L,t.addData(p,r,i);break;case"m":r+=h[v++],i+=h[v++],p=s.M,t.addData(p,r,i),o=r,a=i,d="l";break;case"M":r=h[v++],i=h[v++],p=s.M,t.addData(p,r,i),o=r,a=i,d="L";break;case"h":r+=h[v++],p=s.L,t.addData(p,r,i);break;case"H":r=h[v++],p=s.L,t.addData(p,r,i);break;case"v":i+=h[v++],p=s.L,t.addData(p,r,i);break;case"V":i=h[v++],p=s.L,t.addData(p,r,i);break;case"C":p=s.C,t.addData(p,h[v++],h[v++],h[v++],h[v++],h[v++],h[v++]),r=h[v-2],i=h[v-1];break;case"c":p=s.C,t.addData(p,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i,h[v++]+r,h[v++]+i),r+=h[v-2],i+=h[v-1];break;case"S":m=r,y=i,M=t.len(),k=t.data,n===s.C&&(m+=r-k[M-4],y+=i-k[M-3]),p=s.C,C=h[v++],T=h[v++],r=h[v++],i=h[v++],t.addData(p,m,y,C,T,r,i);break;case"s":m=r,y=i,M=t.len(),k=t.data,n===s.C&&(m+=r-k[M-4],y+=i-k[M-3]),p=s.C,C=r+h[v++],T=i+h[v++],r+=h[v++],i+=h[v++],t.addData(p,m,y,C,T,r,i);break;case"Q":C=h[v++],T=h[v++],r=h[v++],i=h[v++],p=s.Q,t.addData(p,C,T,r,i);break;case"q":C=h[v++]+r,T=h[v++]+i,r+=h[v++],i+=h[v++],p=s.Q,t.addData(p,C,T,r,i);break;case"T":m=r,y=i,M=t.len(),k=t.data,n===s.Q&&(m+=r-k[M-4],y+=i-k[M-3]),r=h[v++],i=h[v++],p=s.Q,t.addData(p,m,y,r,i);break;case"t":m=r,y=i,M=t.len(),k=t.data,n===s.Q&&(m+=r-k[M-4],y+=i-k[M-3]),r+=h[v++],i+=h[v++],p=s.Q,t.addData(p,m,y,r,i);break;case"A":b=h[v++],x=h[v++],_=h[v++],w=h[v++],S=h[v++],nG(C=r,T=i,r=h[v++],i=h[v++],w,S,b,x,_,p=s.A,t);break;case"a":b=h[v++],x=h[v++],_=h[v++],w=h[v++],S=h[v++],nG(C=r,T=i,r+=h[v++],i+=h[v++],w,S,b,x,_,p=s.A,t)}}"z"!==d&&"Z"!==d||(p=s.Z,t.addData(p),r=o,i=a),n=p}return t.toStatic(),t}(e),r=gL({},t);return r.buildPath=function(e){if(aG(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=UW.M,d=UW.C,p=UW.L,h=UW.R,f=UW.A,g=UW.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case p:r=1;break;case d:r=3;break;case g:r=2;break;case f:var v=t[4],m=t[5],y=YW(t[0]*t[0]+t[1]*t[1]),b=YW(t[2]*t[2]+t[3]*t[3]),x=XW(-t[1]/b,t[0]/y);l[i]*=y,l[i++]+=v,l[i]*=b,l[i++]+=m,l[i++]*=y,l[i++]*=b,l[i++]+=x,l[i++]+=x,o=i+=2;break;case h:s[0]=l[i++],s[1]=l[i++],MR(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],MR(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var _=qW[a];_[0]=l[i++],_[1]=l[i++],MR(_,_,t),l[o++]=_[0],l[o++]=_[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}function lG(e,t){return new oG(sG(e,t))}var uG=function(){return function(){this.cx=0,this.cy=0,this.r=0}}(),cG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new uG},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(gj);cG.prototype.type="circle";const dG=cG;var pG=function(){return function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),hG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new pG},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(gj);hG.prototype.type="ellipse";const fG=hG;var gG=Math.PI,vG=2*gG,mG=Math.sin,yG=Math.cos,bG=Math.acos,xG=Math.atan2,_G=Math.abs,wG=Math.sqrt,SG=Math.max,CG=Math.min,TG=1e-4;function MG(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/wG(s*s+l*l),c=u*l,d=-u*s,p=e+c,h=t+d,f=n+c,g=r+d,v=(p+f)/2,m=(h+g)/2,y=f-p,b=g-h,x=y*y+b*b,_=i-o,w=p*g-f*h,S=(b<0?-1:1)*wG(SG(0,_*_*x-w*w)),C=(w*b-y*S)/x,T=(-w*y-b*S)/x,M=(w*b+y*S)/x,k=(-w*y+b*S)/x,A=C-v,I=T-m,E=M-v,O=k-m;return A*A+I*I>E*E+O*O&&(C=M,T=k),{cx:C,cy:T,x0:-c,y0:-d,x1:C*(i/_-1),y1:T*(i/_-1)}}function kG(e,t){var n,r=SG(t.r,0),i=SG(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,p=_G(l-s),h=p>vG&&p%vG;if(h>TG&&(p=h),r>TG)if(p>vG-TG)e.moveTo(u+r*yG(s),c+r*mG(s)),e.arc(u,c,r,s,l,!d),i>TG&&(e.moveTo(u+i*yG(l),c+i*mG(l)),e.arc(u,c,i,l,s,d));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,C=void 0,T=void 0,M=void 0,k=void 0,A=void 0,I=void 0,E=r*yG(s),O=r*mG(s),D=i*yG(l),P=i*mG(l),L=p>TG;if(L){var R=t.cornerRadius;R&&(f=(n=function(e){var t;if(IL(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(R))[0],g=n[1],v=n[2],m=n[3]);var B=_G(r-i)/2;if(y=CG(B,v),b=CG(B,m),x=CG(B,f),_=CG(B,g),C=w=SG(y,b),T=S=SG(x,_),(w>TG||S>TG)&&(M=r*yG(l),k=r*mG(l),A=i*yG(s),I=i*mG(s),p<gG)){var N=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,p=d*l-c*u;if(!(p*p<TG))return[e+(p=(c*(t-o)-d*(e-i))/p)*l,t+p*u]}(E,O,A,I,M,k,D,P);if(N){var z=E-N[0],F=O-N[1],V=M-N[0],H=k-N[1],j=1/mG(bG((z*V+F*H)/(wG(z*z+F*F)*wG(V*V+H*H)))/2),W=wG(N[0]*N[0]+N[1]*N[1]);C=CG(w,(r-W)/(j+1)),T=CG(S,(i-W)/(j-1))}}}if(L)if(C>TG){var G=CG(v,C),U=CG(m,C),q=MG(A,I,E,O,r,G,d),Y=MG(M,k,D,P,r,U,d);e.moveTo(u+q.cx+q.x0,c+q.cy+q.y0),C<w&&G===U?e.arc(u+q.cx,c+q.cy,C,xG(q.y0,q.x0),xG(Y.y0,Y.x0),!d):(G>0&&e.arc(u+q.cx,c+q.cy,G,xG(q.y0,q.x0),xG(q.y1,q.x1),!d),e.arc(u,c,r,xG(q.cy+q.y1,q.cx+q.x1),xG(Y.cy+Y.y1,Y.cx+Y.x1),!d),U>0&&e.arc(u+Y.cx,c+Y.cy,U,xG(Y.y1,Y.x1),xG(Y.y0,Y.x0),!d))}else e.moveTo(u+E,c+O),e.arc(u,c,r,s,l,!d);else e.moveTo(u+E,c+O);if(i>TG&&L)if(T>TG){G=CG(f,T),q=MG(D,P,M,k,i,-(U=CG(g,T)),d),Y=MG(E,O,A,I,i,-G,d);e.lineTo(u+q.cx+q.x0,c+q.cy+q.y0),T<S&&G===U?e.arc(u+q.cx,c+q.cy,T,xG(q.y0,q.x0),xG(Y.y0,Y.x0),!d):(U>0&&e.arc(u+q.cx,c+q.cy,U,xG(q.y0,q.x0),xG(q.y1,q.x1),!d),e.arc(u,c,i,xG(q.cy+q.y1,q.cx+q.x1),xG(Y.cy+Y.y1,Y.cx+Y.x1),d),G>0&&e.arc(u+Y.cx,c+Y.cy,G,xG(Y.y1,Y.x1),xG(Y.y0,Y.x0),!d))}else e.lineTo(u+D,c+P),e.arc(u,c,i,l,s,d);else e.lineTo(u+D,c+P)}else e.moveTo(u,c);e.closePath()}}}var AG=function(){return 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}}(),IG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new AG},t.prototype.buildPath=function(e,t){kG(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(gj);IG.prototype.type="sector";const EG=IG;var OG=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),DG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new OG},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(gj);DG.prototype.type="ring";const PG=DG;function LG(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,h=e.length;p<h;p++)kR(a,a,e[p]),AR(s,s,e[p]);kR(a,a,r[0]),AR(s,s,r[1])}for(p=0,h=e.length;p<h;p++){var f=e[p];if(n)i=e[p?p-1:h-1],o=e[(p+1)%h];else{if(0===p||p===h-1){l.push(cR(e[p]));continue}i=e[p-1],o=e[p+1]}fR(u,o,i),bR(u,u,t);var g=_R(f,i),v=_R(f,o),m=g+v;0!==m&&(g/=m,v/=m),bR(c,u,-g),bR(d,u,v);var y=pR([],f,c),b=pR([],f,d);r&&(AR(y,y,a),kR(y,y,s),AR(b,b,a),kR(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var RG=function(){return function(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),BG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultShape=function(){return new RG},t.prototype.buildPath=function(e,t){LG(e,t,!0)},t}(gj);BG.prototype.type="polygon";const NG=BG;var zG=function(){return function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),FG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zG},t.prototype.buildPath=function(e,t){LG(e,t,!1)},t}(gj);FG.prototype.type="polyline";const VG=FG;var HG={},jG=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),WG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jG},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Sj(HG,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(gj);WG.prototype.type="line";const GG=WG;var UG=[],qG=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function YG(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?sN:aN)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?sN:aN)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?hN:pN)(e.x1,e.cpx1,e.x2,t),(n?hN:pN)(e.y1,e.cpy1,e.y2,t)]}var XG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qG},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(gN(n,a,i,c,UG),a=UG[1],i=UG[2],gN(r,s,o,c,UG),s=UG[1],o=UG[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(cN(n,a,l,i,c,UG),a=UG[1],l=UG[2],i=UG[3],cN(r,s,u,o,c,UG),s=UG[1],u=UG[2],o=UG[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return YG(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=YG(this.shape,e,!0);return xR(t,t)},t}(gj);XG.prototype.type="bezier-curve";const KG=XG;var $G=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),ZG=function(e){function t(t){return e.call(this,t)||this}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $G},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(gj);ZG.prototype.type="arc";const JG=ZG;var QG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return jP(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gj.prototype.getBoundingRect.call(this)},t}(gj);const eU=QG;var tU=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const nU=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return jP(t,e),t}(tU);const rU=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return jP(t,e),t}(tU);var iU=[0,0],oU=[0,0],aU=new pB,sU=new pB,lU=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pB;for(n=0;n<2;n++)this._axes[n]=new pB;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);pB.sub(r[0],n[1],n[0]),pB.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return aU.set(1/0,1/0),sU.set(0,0),!this._intersectCheckOneSide(this,e,aU,sU,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,aU,sU,r,-1)&&(n=!1,r)||r||pB.copy(t,n?aU:sU),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,iU),this._getProjMinMaxOnAxis(s,t._corners,oU),iU[1]<oU[0]||iU[0]>oU[1]){if(a=!1,i)return a;var u=Math.abs(oU[0]-iU[1]),c=Math.abs(iU[0]-oU[1]);Math.min(u,c)>r.len()&&(u<c?pB.scale(r,l,-u*o):pB.scale(r,l,c*o))}else if(n){u=Math.abs(oU[0]-iU[1]),c=Math.abs(iU[0]-oU[1]);Math.min(u,c)<n.len()&&(u<c?pB.scale(n,l,u*o):pB.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();const uU=lU;var cU=[],dU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return jP(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wB(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(cU)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(gH);const pU=dU;var hU=SV();function fU(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=jL(r.duration,200),u=jL(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),EL(c)&&(c=c(n,i)),EL(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function gU(e,t,n,r,i,o,a){var s,l=!1;EL(i)?(a=o,o=i,i=null):LL(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=fU(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function vU(e,t,n,r,i,o){gU("update",e,t,n,r,i,o)}function mU(e,t,n,r,i,o){gU("enter",e,t,n,r,i,o)}function yU(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function bU(e,t,n,r,i,o){yU(e)||gU("leave",e,t,n,r,i,o)}function xU(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),bU(e,{style:{opacity:0}},t,n,r)}function _U(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||xU(e,t,n,r)})):xU(e,t,n,r)}function wU(e){hU(e).oldStyle=e.style}var SU=Math.max,CU=Math.min,TU={};function MU(e){return gj.extend(e)}var kU=function(e,t){var n=sG(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return jP(t,e),t}(oG)};function AU(e,t){return kU(e,t)}function IU(e,t){TU[e]=t}function EU(e){if(TU.hasOwnProperty(e))return TU[e]}function OU(e,t,n,r){var i=lG(e,t);return n&&("center"===r&&(n=PU(n,i.getBoundingRect())),RU(i,n)),i}function DU(e,t,n){var r=new _j({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(PU(t,i))}}});return r}function PU(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var LU=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new gj(t);return a.createPathProxy(),a.buildPath=function(e){if(aG(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function RU(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function BU(e,t){return Sj(e,e,{lineWidth:t}),e}var NU=Tj;function zU(e,t){for(var n=iB([]);e&&e!==t;)aB(n,e.getLocalTransform(),n),e=e.parent;return n}function FU(e,t,n){return t&&!_L(t)&&(t=iF.getLocalTransform(t)),n&&(t=cB([],t)),MR([],e,t)}function VU(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=FU(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function HU(e){return!e.isGroup}function jU(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){HU(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(HU(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),vU(e,r,n,qj(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=gL({},e.shape)),t}}function WU(e,t){return SL(e,(function(e){var n=e[0];n=SU(n,t.x),n=CU(n,t.x+t.width);var r=e[1];return r=SU(r,t.y),[n,r=CU(r,t.y+t.height)]}))}function GU(e,t){var n=SU(e.x,t.x),r=CU(e.x+e.width,t.x+t.width),i=SU(e.y,t.y),o=CU(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function UU(e,t,n){var r=gL({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),vL(i,n),new _j(r)):OU(e.replace("path://",""),r,n,"center")}function qU(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,d=a-i,p=s-o,h=YU(d,p,u,c);if((l=h)<=1e-6&&l>=-1e-6)return!1;var f=e-i,g=t-o,v=YU(f,g,u,c)/h;if(v<0||v>1)return!1;var m=YU(f,g,d,p)/h;return!(m<0||m>1)}function YU(e,t,n,r){return e*r-n*t}function XU(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=OL(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&wL(ML(l),(function(e){iR(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=qj(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:vL({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function KU(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function $U(e,t){if(e)if(IL(e))for(var n=0;n<e.length;n++)KU(e[n],t);else KU(e,t)}IU("circle",dG),IU("ellipse",fG),IU("sector",EG),IU("ring",PG),IU("polygon",NG),IU("polyline",VG),IU("rect",Ij),IU("line",GG),IU("bezierCurve",KG),IU("arc",JG);const ZU=Object.freeze(Object.defineProperty({__proto__:null,Arc:JG,BezierCurve:KG,BoundingRect:wB,Circle:dG,CompoundPath:eU,Ellipse:fG,Group:kF,Image:_j,IncrementalDisplayable:pU,Line:GG,LinearGradient:nU,OrientedBoundingRect:uU,Path:gj,Point:pB,Polygon:NG,Polyline:VG,RadialGradient:rU,Rect:Ij,Ring:PG,Sector:EG,Text:Uj,applyTransform:FU,clipPointsByRect:WU,clipRectByRect:GU,createIcon:UU,extendPath:AU,extendShape:MU,getShapeClass:EU,getTransform:zU,groupTransition:jU,initProps:mU,isElementRemoved:yU,lineLineIntersect:qU,linePolygonIntersect:function(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(qU(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:DU,makePath:OU,mergePath:LU,registerShape:IU,removeElement:bU,removeElementWithFadeOut:_U,resizePath:RU,setTooltipConfig:XU,subPixelOptimize:NU,subPixelOptimizeLine:BU,subPixelOptimizeRect:function(e){return Cj(e.shape,e.shape,e.style),e},transformDirection:VU,traverseElements:$U,updateProps:vU},Symbol.toStringTag,{value:"Module"}));var JU={};function QU(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=EL(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<eW.length;u++){var c=eW[u],d=t[c];l[c]=jL(i?i.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,r)}return l}function eq(e,t,n,r){n=n||JU;for(var i=e instanceof Uj,o=!1,a=0;a<tW.length;a++){if((p=t[tW[a]])&&p.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Uj,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=QU(n,t),u=t.normal,c=!!u.getShallow("show"),d=nq(u,r&&r.normal,n,!1,!i);d.text=l.normal,i||e.setTextConfig(rq(u,n,!1));for(a=0;a<eW.length;a++){var p,h=eW[a];if(p=t[h]){var f=s.ensureState(h),g=!!jL(p.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=nq(p,r&&r[h],n,!0,!i),f.style.text=l[h],!i)e.ensureState(h).textConfig=rq(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(uq(s).setLabelText=function(e){var r=QU(n,t,e);!function(e,t){for(var n=0;n<eW.length;n++){var r=eW[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function tq(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<eW.length;r++){var i=eW[r];n[i]=e.getModel([i,t])}return n}function nq(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||JU;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||JU).rich;if(n){t=t||{};for(var r=ML(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);sq(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");null!=p&&(e.margin=p);sq(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&gL(o,t),o}function rq(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=jL(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var iq=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],oq=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],aq=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function sq(e,t,n,r,i,o,a,s){n=!i&&n||JU;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=jL(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var p=jL(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var h=jL(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var f=jL(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<iq.length;g++){var v=iq[g];null!=(y=jL(t.getShallow(v),n[v]))&&(e[v]=y)}for(g=0;g<oq.length;g++){v=oq[g];null!=(y=t.getShallow(v))&&(e[v]=y)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<aq.length;g++){var y;v=aq[g];null!=(y=t.getShallow(v))&&(e[v]=y)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function lq(e,t){var n=t&&t.getModel("textStyle");return YL([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var uq=SV();var cq,dq,pq=["textStyle","color"],hq=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],fq=new Uj,gq=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(pq):null)},e.prototype.getFont=function(){return lq({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<hq.length;n++)t[hq[n]]=this.getShallow(hq[n]);return fq.useStyle(t),fq.update(),fq.getBoundingRect()},e}(),vq=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mq=HV(vq),yq=function(){function e(){}return e.prototype.getLineStyle=function(e){return mq(this,e)},e}(),bq=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xq=HV(bq),_q=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return xq(this,e,t)},e}(),wq=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){hL(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(pL(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!UP.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();RV(wq),cq=wq,dq=["__\0is_clz",NV++].join("_"),cq.prototype[dq]=!0,cq.isInstance=function(e){return!(!e||!e[dq])},xL(wq,yq),xL(wq,_q),xL(wq,WV),xL(wq,gq);const Sq=wq;var Cq=Math.round(10*Math.random());function Tq(e){return[e||"",Cq++].join("_")}function Mq(e,t){return hL(hL({},e,!0),t,!0)}var kq="ZH",Aq="EN",Iq=Aq,Eq={},Oq={},Dq=UP.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Iq).toUpperCase().indexOf(kq)>-1?kq:Iq;function Pq(e,t){e=e.toUpperCase(),Oq[e]=new Sq(t),Eq[e]=t}Pq(Aq,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Pq(kq,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}});var Lq=1e3,Rq=60*Lq,Bq=60*Rq,Nq=24*Bq,zq=365*Nq,Fq={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}"},Vq="{yyyy}-{MM}-{dd}",Hq={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vq,hour:Vq+" "+Fq.hour,minute:Vq+" "+Fq.minute,second:Vq+" "+Fq.second,millisecond:Fq.none},jq=["year","month","day","hour","minute","second","millisecond"],Wq=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Gq(e,t){return"0000".substr(0,t-(e+="").length)+e}function Uq(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function qq(e){return e===Uq(e)}function Yq(e,t,n,r){var i=ZF(e),o=i[$q(n)](),a=i[Zq(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Jq(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Qq(n)](),d=(c-1)%12+1,p=i[eY(n)](),h=i[tY(n)](),f=i[nY(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),m=r instanceof Sq?r:function(e){return Oq[e]}(r||Dq)||Oq[Iq],y=m.getModel("time"),b=y.get("month"),x=y.get("monthAbbr"),_=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Gq(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Gq(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Gq(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gq(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Gq(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Gq(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Gq(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Gq(f,3)).replace(/{S}/g,f+"")}function Xq(e,t){var n=ZF(e),r=n[Zq(t)]()+1,i=n[Jq(t)](),o=n[Qq(t)](),a=n[eY(t)](),s=n[tY(t)](),l=0===n[nY(t)](),u=l&&0===s,c=u&&0===a,d=c&&0===o,p=d&&1===i;return p&&1===r?"year":p?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Kq(e,t,n){var r=PL(e)?ZF(e):e;switch(t=t||Xq(e,n)){case"year":return r[$q(n)]();case"half-year":return r[Zq(n)]()>=6?1:0;case"quarter":return Math.floor((r[Zq(n)]()+1)/4);case"month":return r[Zq(n)]();case"day":return r[Jq(n)]();case"half-day":return r[Qq(n)]()/24;case"hour":return r[Qq(n)]();case"minute":return r[eY(n)]();case"second":return r[tY(n)]();case"millisecond":return r[nY(n)]()}}function $q(e){return e?"getUTCFullYear":"getFullYear"}function Zq(e){return e?"getUTCMonth":"getMonth"}function Jq(e){return e?"getUTCDate":"getDate"}function Qq(e){return e?"getUTCHours":"getHours"}function eY(e){return e?"getUTCMinutes":"getMinutes"}function tY(e){return e?"getUTCSeconds":"getSeconds"}function nY(e){return e?"getUTCMilliseconds":"getMilliseconds"}function rY(e){return e?"setUTCFullYear":"setFullYear"}function iY(e){return e?"setUTCMonth":"setMonth"}function oY(e){return e?"setUTCDate":"setDate"}function aY(e){return e?"setUTCHours":"setHours"}function sY(e){return e?"setUTCMinutes":"setMinutes"}function lY(e){return e?"setUTCSeconds":"setSeconds"}function uY(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cY(e){if(!rV(e))return OL(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function dY(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var pY=UL;function hY(e,t,n){function r(e){return e&&YL(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?ZF(e):e;if(!isNaN(+s))return Yq(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return DL(e)?r(e):PL(e)&&i(e)?e+"":"-";var l=nV(e);return i(l)?cY(l):DL(e)?r(e):"boolean"==typeof e?e+"":"-"}var fY=["a","b","c","d","e","f","g"],gY=function(e,t){return"{"+e+(null==t?"":t)+"}"};function vY(e,t,n){IL(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=fY[o];e=e.replace(gY(a),gY(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(gY(fY[l],s),n?jR(u):u)}return e}function mY(e,t){var n=OL(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+jR(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+jR(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function yY(e,t){return t=t||"transparent",OL(e)?e:LL(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function bY(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var xY=wL,_Y=["left","right","top","bottom","width","height"],wY=[["width","left","right"],["height","top","bottom"]];function SY(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,p=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect();if("horizontal"===e){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(d=a+v)>i||l.newline?(o+=s+n,a=0,d=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var CY=SY;function TY(e,t,n){n=pY(n||0);var r=t.width,i=t.height,o=VF(e.left,r),a=VF(e.top,i),s=VF(e.right,r),l=VF(e.bottom,i),u=VF(e.width,r),c=VF(e.height,i),d=n[2]+n[0],p=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-d-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var f=new wB(o+n[3],a+n[0],u,c);return f.margin=n,f}function MY(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||e).x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new wB(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(a=a.clone()).applyTransform(c)}var d=TY(vL({width:a.width,height:a.height},t),n,r),p=s?d.x-a.x:0,h=l?d.y-a.y:0;return"raw"===u?(o.x=p,o.y=h):(o.x+=p,o.y+=h),o===e&&e.markRedraw(),!0}function kY(e){var t=e.layoutMode||e.constructor.layoutMode;return LL(t)?t:t?{type:t}:null}function AY(e,t,n){var r=n&&n.ignoreSize;!IL(r)&&(r=[r,r]);var i=a(wY[0],0),o=a(wY[1],1);function a(n,i){var o={},a=0,u={},c=0;if(xY(n,(function(t){u[t]=e[t]})),xY(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!s(o,p)&&s(e,p)){o[p]=e[p];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){xY(e,(function(e){t[e]=n[e]}))}u(wY[0],e,i),u(wY[1],e,o)}function IY(e){return EY({},e)}function EY(e,t){return t&&e&&xY(_Y,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}AL(SY,"vertical"),AL(SY,"horizontal");var OY=SV(),DY=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Tq("ec_cpt_model"),i}var n;return jP(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=kY(this),r=n?IY(e):{};hL(e,t.getTheme().get(this.mainType)),hL(e,this.getDefaultOption()),n&&AY(e,r,n)},t.prototype.mergeOption=function(e,t){hL(this.option,e,!0);var n=kY(this);n&&AY(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[PV])}(e))return e.defaultOption;var t=OY(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=hL(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return IV(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(Sq);BV(DY,Sq),VV(DY),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=LV(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=LV(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(DY),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return wL(e,(function(o){var a=n(r,o),s=function(e,t){var n=[];return wL(e,(function(e){yL(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),wL(s,(function(e){yL(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);yL(t.successor,e)<0&&t.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(wL(e,(function(e){u[e]=!0}));l.length;){var c=l.pop(),d=s[c],p=!!u[c];p&&(i.call(o,c,d.originalDeps.slice()),delete u[c]),wL(d.successor,p?f:h)}wL(u,(function(){throw new Error("")}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,h(e)}}}(DY,(function(e){var t=[];wL(DY.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=SL(t,(function(e){return LV(e).main})),"dataset"!==e&&yL(t,"dataset")<=0&&t.unshift("dataset");return t}));var PY="";"undefined"!=typeof navigator&&(PY=navigator.platform||"");var LY="rgba(0, 0, 0, 0.2)";const RY={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:LY,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:LY,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:LY,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:LY,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:LY,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:LY,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:PY.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 BY=eR(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),NY="original",zY="arrayRows",FY="objectRows",VY="keyedColumns",HY="typedArray",jY="unknown",WY="column",GY="row",UY={Must:1,Might:2,Not:3},qY=SV();function YY(e,t,n){var r={},i=KY(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=qY(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;wL(e=e.slice(),(function(t,n){var i=LL(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var p=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return wL(e,(function(e,t){var n=e.name,i=f(e);if(null==o){var a=p.valueWayDim;h(r[n],a,i),h(l,a,i),p.valueWayDim+=i}else if(o===t)h(r[n],0,i),h(s,0,i);else{a=p.categoryWayDim;h(r[n],a,i),h(l,a,i),p.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function XY(e,t,n){var r={};if(!KY(e))return r;var i,o=t.sourceFormat,a=t.dimensionsDefine;o!==FY&&o!==VY||wL(a,(function(e,t){"name"===(LL(e)?e.name:e)&&(i=t)}));var s=function(){for(var e={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=ZY(t.data,o,t.seriesLayoutBy,a,t.startIndex,l);s.push(c);var d=c===UY.Not;if(d&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!d&&s[e.n]===UY.Not)&&(e.n=l),p(e)&&s[e.n]!==UY.Not)return e;d||(c===UY.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function KY(e){if(!e.get("data",!0))return IV(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},kV).models[0]}function $Y(e,t){return ZY(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ZY(e,t,n,r,i,o){var a,s,l;if(BL(e))return UY.Not;if(r){var u=r[o];LL(u)?(s=u.name,l=u.type):OL(u)&&(s=u)}if(null!=l)return"ordinal"===l?UY.Must:UY.Not;if(t===zY){var c=e;if(n===GY){for(var d=c[o],p=0;p<(d||[]).length&&p<5;p++)if(null!=(a=b(d[i+p])))return a}else for(p=0;p<c.length&&p<5;p++){var h=c[i+p];if(h&&null!=(a=b(h[o])))return a}}else if(t===FY){var f=e;if(!s)return UY.Not;for(p=0;p<f.length&&p<5;p++){if((m=f[p])&&null!=(a=b(m[s])))return a}}else if(t===VY){var g=e;if(!s)return UY.Not;if(!(d=g[s])||BL(d))return UY.Not;for(p=0;p<d.length&&p<5;p++)if(null!=(a=b(d[p])))return a}else if(t===NY){var v=e;for(p=0;p<v.length&&p<5;p++){var m,y=fV(m=v[p]);if(!IL(y))return UY.Not;if(null!=(a=b(y[o])))return a}}function b(e){var t=OL(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?UY.Might:UY.Not:t&&"-"!==e?UY.Must:void 0}return UY.Not}var JY=eR();var QY=SV();SV();var eX,tX,nX,rX=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=dV(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if(c=c||n,!c||!c.length)return;var d=c[l];i&&(u[i]=d);return s.paletteIdx=(l+1)%c.length,d}(this,QY,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=QY)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();var iX="\0_ec_inner",oX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new Sq(r),this._locale=new Sq(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=lX(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,lX(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):nX(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&wL(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=eR(),s=t&&t.replaceMergeMainTypeMap;qY(this).datasetMap=eR(),wL(e,(function(e,t){null!=e&&(DY.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?pL(e):hL(n[t],e,!0))})),s&&s.each((function(e,t){DY.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),DY.topologicalTravel(o,DY.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=JY.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,dV(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=vV(a,o,l);(function(e,t,n){wL(e,(function(e){var r=e.newOption;LL(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(u,t,DY),n[t]=null,r.set(t,null),i.set(t,0);var c,d=[],p=[],h=0;wL(u,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=DY.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=gL({componentIndex:n},e.keyInfo);gL(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),p.push(r),h++):(d.push(void 0),p.push(void 0))}),this),n[t]=d,r.set(t,p),i.set(t,h),"series"===t&&eX(this)}),this),this._seriesIndices||eX(this)},t.prototype.getOption=function(){var e=pL(this.option);return wL(e,(function(t,n){if(DY.hasClass(n)){for(var r=dV(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!_V(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e[iX],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],wL(dV(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=i?aX("id",i,a):null!=o?aX("name",o,a):TL(a,(function(e){return!!e})),sX(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o=e.query,a=e.mainType,s=(n=a+"Index",r=a+"Id",i=a+"Name",!(t=o)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:a,index:t[n],id:t[r],name:t[i]});return function(t){return e.filter?TL(t,e.filter):t}(sX(s?this.queryComponents(s):TL(this._componentsMap.get(a),(function(e){return!!e})),e))},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(EL(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=OL(e)?r.get(e):LL(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=bV(e,null);return TL(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return TL(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return TL(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){tX(this),wL(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){wL(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){tX(this),wL(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return wL(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return tX(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){tX(this);var n=[];wL(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=eR(n)},t.prototype.restoreData=function(e){eX(this);var t=this._componentsMap,n=[];t.each((function(e,t){DY.hasClass(t)&&n.push(t)})),DY.topologicalTravel(n,DY.getAllClassMainTypes(),(function(n){wL(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(eX=function(e){var t=e._seriesIndices=[];wL(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=eR(t)},tX=function(e){},void(nX=function(e,t){e.option={},e.option[iX]=1,e._componentsMap=eR({series:[]}),e._componentsCount=eR();var n,r,i,o=t.aria;LL(o)&&null==o.enabled&&(o.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,wL(r,(function(e,t){"colorLayer"===t&&i||DY.hasClass(t)||("object"==typeof e?n[t]=n[t]?hL(n[t],e,!1):pL(e):null==n[t]&&(n[t]=e))})),hL(t,RY,!1),e._mergeOption(t,null)})),t}(Sq);function aX(e,t,n){if(IL(t)){var r=eR();return wL(t,(function(e){null!=e&&(null!=bV(e,null)&&r.set(e,!0))})),TL(n,(function(t){return t&&r.get(t[e])}))}var i=bV(t,null);return TL(n,(function(t){return t&&null!=i&&t[e]===i}))}function sX(e,t){return t.hasOwnProperty("subType")?TL(e,(function(e){return e&&e.subType===t.subType})):e}function lX(e){var t=eR();return e&&wL(dV(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}xL(oX,rX);var uX=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cX=function(){return function(e){wL(uX,(function(t){this[t]=kL(e[t],e)}),this)}}(),dX={},pX=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];wL(dX,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){wL(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){dX[e]=t},e.get=function(e){return dX[e]},e}(),hX=/^(min|max)?(.+)$/,fX=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(wL(dV(e.series),(function(e){e&&e.data&&BL(e.data)&&KL(e.data)})),wL(dV(e.dataset),(function(e){e&&e.source&&BL(e.source)&&KL(e.source)}))),e=pL(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e);c&&IL(u)&&wL(u,(function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))}));function p(e){wL(t,(function(t){t(e,n)}))}return p(i),wL(l,(function(e){return p(e)})),wL(o,(function(e){return p(e.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],pL(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=pL(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)gX(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=SL(s,(function(e){return pL(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,l},e}();function gX(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return wL(e,(function(e,t){var n=t.match(hX);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}})),i}var vX=wL,mX=LL,yX=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function bX(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=yX.length;n<r;n++){var i=yX[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?hL(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?hL(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function xX(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,vL(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function _X(e){xX(e,"itemStyle"),xX(e,"lineStyle"),xX(e,"areaStyle"),xX(e,"label"),xX(e,"labelLine"),xX(e,"upperLabel"),xX(e,"edgeLabel")}function wX(e,t){var n=mX(e)&&e[t],r=mX(n)&&n.textStyle;if(r)for(var i=0,o=hV.length;i<o;i++){var a=hV[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function SX(e){e&&(_X(e),wX(e,"label"),e.emphasis&&wX(e.emphasis,"label"))}function CX(e){return IL(e)?e:e?[e]:[]}function TX(e){return(IL(e)?e[0]:e)||{}}function MX(e,t){vX(CX(e.series),(function(e){mX(e)&&function(e){if(mX(e)){bX(e),_X(e),wX(e,"label"),wX(e,"upperLabel"),wX(e,"edgeLabel"),e.emphasis&&(wX(e.emphasis,"label"),wX(e.emphasis,"upperLabel"),wX(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(bX(t),SX(t));var n=e.markLine;n&&(bX(n),SX(n));var r=e.markArea;r&&SX(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!BL(o))for(var a=0;a<o.length;a++)SX(o[a]);wL(e.categories,(function(e){_X(e)}))}if(i&&!BL(i))for(a=0;a<i.length;a++)SX(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)SX(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)IL(l[a])?(SX(l[a][0]),SX(l[a][1])):SX(l[a])}"gauge"===e.type?(wX(e,"axisLabel"),wX(e,"title"),wX(e,"detail")):"treemap"===e.type?(xX(e.breadcrumb,"itemStyle"),wL(e.levels,(function(e){_X(e)}))):"tree"===e.type&&_X(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),vX(n,(function(t){vX(CX(e[t]),(function(e){e&&(wX(e,"axisLabel"),wX(e.axisPointer,"label"))}))})),vX(CX(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;wX(t,"axisLabel"),wX(t&&t.axisPointer,"label")})),vX(CX(e.calendar),(function(e){xX(e,"itemStyle"),wX(e,"dayLabel"),wX(e,"monthLabel"),wX(e,"yearLabel")})),vX(CX(e.radar),(function(e){wX(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),vX(CX(e.geo),(function(e){mX(e)&&(SX(e),vX(CX(e.regions),(function(e){SX(e)})))})),vX(CX(e.timeline),(function(e){SX(e),xX(e,"label"),xX(e,"itemStyle"),xX(e,"controlStyle",!0);var t=e.data;IL(t)&&wL(t,(function(e){LL(e)&&(xX(e,"label"),xX(e,"itemStyle"))}))})),vX(CX(e.toolbox),(function(e){xX(e,"iconStyle"),vX(e.feature,(function(e){xX(e,"iconStyle")}))})),wX(TX(e.axisPointer),"label"),wX(TX(e.tooltip).axisPointer,"label")}function kX(e){e&&wL(AX,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var AX=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IX=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],EX=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function OX(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<EX.length;n++){var r=EX[n][1],i=EX[n][0];null!=t[r]&&(t[i]=t[r])}}function DX(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function PX(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function LX(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&LX(e[n].children,t)}function RX(e,t){MX(e,t),e.series=dV(e.series),wL(e.series,(function(e){if(LL(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),DX(e.label),(i=e.data)&&!BL(i))for(var n=0;n<i.length;n++)DX(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];null==a[o[s]]&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(OX(e),OX(e.backgroundStyle),OX(e.emphasis),(i=e.data)&&!BL(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(OX(i[n]),OX(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),PX(e),LX(e.data,PX)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&vL(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),kX(e)}})),e.dataRange&&(e.visualMap=e.dataRange),wL(IX,(function(t){var n=e[t];n&&(IL(n)||(n=[n]),wL(n,(function(e){kX(e)})))}))}function BX(e){wL(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var d,p,h=a.get(t.stackedDimension,c);if(isNaN(h))return i;s?p=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,d)),p>=0){var m=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&h>=0&&m>0||"samesign"===l&&h<=0&&m<0){h=YF(h,m),f=m;break}}}return r[0]=h,r[1]=f,r}))}))}var NX,zX,FX,VX,HX,jX=function(){return function(e){this.data=e.data||(e.sourceFormat===VY?{}:[]),this.sourceFormat=e.sourceFormat||jY,this.seriesLayoutBy=e.seriesLayoutBy||WY,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&$Y(this,n)===UY.Must&&(r.type="ordinal")}}}();function WX(e){return e instanceof jX}function GX(e,t,n){n=n||qX(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:YX(i),startIndex:a,dimensionsDetectedCount:o};if(t===zY){var s=e;"auto"===r||null==r?XX((function(e){null!=e&&"-"!==e&&(OL(e)?null==a&&(a=1):a=0)}),n,s,10):a=PL(r)?r:r?1:0,i||1!==a||(i=[],XX((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:n===GY?s.length:s[0]?s[0].length:null}else if(t===FY)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return ML(t)}(e));else if(t===VY)i||(i=[],wL(e,(function(e,t){i.push(t)})));else if(t===NY){var l=fV(e[0]);o=IL(l)&&l.length||1}return{startIndex:a,dimensionsDefine:YX(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new jX({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pL(t)})}function UX(e){return new jX({data:e,sourceFormat:BL(e)?HY:NY})}function qX(e){var t=jY;if(BL(e))t=HY;else if(IL(e)){0===e.length&&(t=zY);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(IL(i)||BL(i)){t=zY;break}if(LL(i)){t=FY;break}}}}else if(LL(e))for(var o in e)if(iR(e,o)&&_L(e[o])){t=VY;break}return t}function YX(e){if(e){var t=eR();return SL(e,(function(e,n){var r={name:(e=LL(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function XX(e,t,n,r){if(t===GY)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function KX(e){var t=e.sourceFormat;return t===FY||t===VY}var $X=function(){function e(e,t){var n=WX(e)?e:UX(e);this._source=n;var r=this._data=n.data;n.sourceFormat===HY&&(this._offset=0,this._dimSize=t,this._data=r),HX(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;HX=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(gL(e,VX[aK(a,s)]),a===HY)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=QX(a,s);e.getItem=kL(c,null,i,l,u);var d=nK(a,s);e.count=kL(d,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],p=0;p<c;p++){var h=i[p*o+a];d[e+p]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[zY+"_"+WY]={pure:!0,appendData:i},e[zY+"_"+GY]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[FY]={pure:!0,appendData:i},e[VY]={pure:!0,appendData:function(e){var t=this._data;wL(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[NY]={appendData:i},e[HY]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},VX=e}(),e}(),ZX=function(e,t,n,r){return e[r]},JX=((NX={})[zY+"_"+WY]=function(e,t,n,r){return e[r+t]},NX[zY+"_"+GY]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},NX[FY]=ZX,NX[VY]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},NX[NY]=ZX,NX);function QX(e,t){return JX[aK(e,t)]}var eK=function(e,t,n){return e.length},tK=((zX={})[zY+"_"+WY]=function(e,t,n){return Math.max(0,e.length-t)},zX[zY+"_"+GY]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},zX[FY]=eK,zX[VY]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},zX[NY]=eK,zX);function nK(e,t){return tK[aK(e,t)]}var rK=function(e,t,n){return e[t]},iK=((FX={})[zY]=rK,FX[FY]=function(e,t,n){return e[n]},FX[VY]=rK,FX[NY]=function(e,t,n){var r=fV(e);return r instanceof Array?r[t]:r},FX[HY]=rK,FX);function oK(e){return iK[e]}function aK(e,t){return e===zY?e+"_"+t:e}function sK(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return oK(o)(r,a,s)}var l=r;return o===NY&&(l=fV(r)),l}}}var lK=/\{@(.+?)\}/g,uK=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&IL(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return EL(i)?(s.status=t,s.dimensionIndex=r,i(s)):OL(i)?vY(i,s).replace(lK,(function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=sK(a,e,i);if(o&&IL(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return sK(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function cK(e){var t,n;return LL(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function dK(e){return new pK(e)}var pK=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||p<h)){var f=this._progress;if(IL(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,h,l,u);else this._doProgress(f,p,h,l,u)}this._dueIndex=h;var v=null!=this._settedOutputEnd?this._settedOutputEnd:h;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){hK.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:hK.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),IL(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),hK=function(){var e,t,n,r,i,o={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function fK(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||PL(e)||null==e||"-"===e||(e=+ZF(e)),null==e||""===e?NaN:Number(e))}eR({number:function(e){return parseFloat(e)},time:function(e){return+ZF(e)},trim:function(e){return OL(e)?YL(e):e}});var gK=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=PL(e)?e:nV(e),r=PL(t)?t:nV(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=OL(e),s=OL(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),vK=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return fK(e,t)},e}();function mK(e){if(!SK(e.sourceFormat)){sV("")}return e.data}function yK(e){var t=e.sourceFormat,n=e.data;if(!SK(t)){sV("")}if(t===zY){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===FY){for(r=[],i=0,o=n.length;i<o;i++)r.push(gL({},n[i]));return r}}function bK(e,t,n){if(null!=n)return PL(n)||!isNaN(n)&&!iR(t,n)?e[n]:iR(t,n)?t[n]:void 0}function xK(e){return pL(e)}var _K=eR();function wK(e,t,n,r){t.length||sV(""),LL(e)||sV("");var i=e.type,o=_K.get(i);o||sV("");var a=SL(t,(function(e){return function(e,t){var n=new vK,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==WY&&sV("");var a=[],s={},l=e.dimensionsDefine;if(l)wL(l,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(iR(s,n)&&sV(""),s[n]=r)}));else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=QX(i,WY);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=kL(mK,null,e)),n.cloneRawData=kL(yK,null,e);var d=nK(i,WY);n.count=kL(d,null,r,o,a);var p=oK(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return h(n,t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=kL(bK,null,a,s),n.cloneAllDimensionInfo=kL(xK,null,a),n}(e,o)}));return SL(dV(o.transform({upstream:a[0],upstreamList:a,config:pL(e.config)})),(function(e,n){var r;LL(e)||sV(""),e.data||sV(""),SK(qX(e.data))||sV("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:WY,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:WY,sourceHeader:0,dimensions:e.dimensions};return GX(e.data,r,null)}))}function SK(e){return e===zY||e===FY}var CK,TK="undefined",MK=typeof Uint32Array===TK?Array:Uint32Array,kK=typeof Uint16Array===TK?Array:Uint16Array,AK=typeof Int32Array===TK?Array:Int32Array,IK=typeof Float64Array===TK?Array:Float64Array,EK={float:IK,int:AK,ordinal:Array,number:Array,time:IK};function OK(e){return e>65535?MK:kK}function DK(e,t,n,r,i){var o=EK[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var PK=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=eR()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=CK[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],KX(r),this._dimensions=SL(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new EK[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++){DK(n,l,(h=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var d=c-a,p=0;p<i;p++){var h=r[p],f=CK.arrayRows.call(this,e[d]||u,h.property,d,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=SL(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),DK(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],p=e;p<t;p++){d=r.getItem(p,d);for(var h=0;h<a;h++){var f=i[h],g=this._dimValueGetter(d,l[h],p,h);f[p]=g;var v=s[h];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<o||d===o&&c>=0&&a<0)&&(o=d,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=OK(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(OK(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,p=n.getRawIndex(c);if(0===a)d=t(c);else if(1===a){d=t(u[l][p],c)}else{for(var h=0;h<a;h++)o[h]=u[e[h]][p];o[h]=c,d=t.apply(null,o)}d&&(i[s++]=p)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=ML(e),i=r.length;if(!i)return this;var o=t.count(),a=new(OK(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,p=!1;if(!t._indices){var h=0;if(1===i){for(var f=d[r[0]],g=0;g<n;g++){((b=f[g])>=u&&b<=c||isNaN(b))&&(a[s++]=h),h++}p=!0}else if(2===i){f=d[r[0]];var v=d[r[1]],m=e[r[1]][0],y=e[r[1]][1];for(g=0;g<n;g++){var b=f[g],x=v[g];(b>=u&&b<=c||isNaN(b))&&(x>=m&&x<=y||isNaN(x))&&(a[s++]=h),h++}p=!0}}if(!p)if(1===i)for(g=0;g<o;g++){var _=t.getRawIndex(g);((b=d[r[0]][_])>=u&&b<=c||isNaN(b))&&(a[s++]=_)}else for(g=0;g<o;g++){for(var w=!0,S=(_=t.getRawIndex(g),0);S<i;S++){var C=r[S];((b=d[C][_])<e[C][0]||b>e[C][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),p=0;p<o;p++)s[p]=r[t[p]][d];s[o]=c;var h=n&&n.apply(null,s);if(null!=h){"object"!=typeof h&&(i[0]=h,h=i);for(u=0;u<h.length;u++){var f=t[u],g=h[u],v=l[f],m=r[f];m&&(m[d]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(OK(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var p=1;p<s-1;p+=u){for(var h=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+h)/2,v=0,m=h;m<f;m++){var y=a[T=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=f-h;var b=p,x=Math.min(p+u,s),_=p-1,w=a[c];n=-1,i=b;var S=-1,C=0;for(m=b;m<x;m++){var T;y=a[T=this.getRawIndex(m)];isNaN(y)?(C++,S<0&&(S=T)):(r=Math.abs((_-g)*(y-w)-(_-m)*(v-w)))>n&&(n=r,i=T)}C>0&&C<x-b&&(d[l++]=Math.min(S,i),i=Math.max(S,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],d=new(OK(this._rawCount))(Math.ceil(u/s)),p=0,h=0;h<u;h+=s){s>u-h&&(s=u-h,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(h+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(h+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),d[p++]=m}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,i,o=new e,a=this._chunks,s=t&&CL(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=pL(this._extent),e._rawExtent=pL(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return fK(e[r],this._dimensions[r])}CK={arrayRows:e,objectRows:function(e,t,n,r){return fK(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return fK(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),LK=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(RK(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=BL(a=o.get("data",!0))?HY:NY,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},p=jL(c.seriesLayoutBy,d.seriesLayoutBy)||null,h=jL(c.sourceHeader,d.sourceHeader),f=jL(c.dimensions,d.dimensions);e=p!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||f?[GX(a,{seriesLayoutBy:p,sourceHeader:h,dimensions:f},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{e=[GX(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&BK("")}var o,a=[],s=[];return wL(e,(function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||BK(""),a.push(t),s.push(e._getVersionSign())})),r?t=function(e,t,n){var r=dV(e),i=r.length;i||sV("");for(var o=0,a=i;o<a;o++)t=wK(r[o],t),o!==a-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new jX({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:pL(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];RK(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new PK).initData(new $X(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(RK(e)){var t=KY(e);return t?[t.getSourceManager()]:[]}return SL(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?IV(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},kV).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(RK(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function RK(e){return"series"===e.mainType}function BK(e){throw new Error(e)}var NK="line-height:1";function zK(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+jR(r+"")+"px;color:"+jR(n)+";font-weight:"+jR(i+""),valueStyle:"font-size:"+jR(a+"")+"px;color:"+jR(o)+";font-weight:"+jR(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var FK=[0,10,20,30],VK=["","\n","\n\n","\n\n\n"];function HK(e,t){return t.type=e,t}function jK(e){return"section"===e.type}function WK(e){return jK(e)?UK:qK}function GK(e){if(jK(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return wL(e.blocks,(function(e){var n=GK(e);n>=t&&(t=n+ +(r&&(!n||jK(e)&&!e.noHeader)))})),t}return 0}function UK(e,t,n,r){var i,o=t.noHeader,a=(i=GK(t),{html:FK[i],richText:VK[i]}),s=[],l=t.blocks||[];qL(!l||IL(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(iR(c,u)){var d=new gK(c[u],null);l.sort((function(e,t){return d.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&l.reverse()}wL(l,(function(n,i){var o=t.valueFormatter,l=WK(n)(o?gL(gL({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var p="richText"===e.renderMode?s.join(a.richText):XK(s.join(""),o?n:a.html);if(o)return p;var h=hY(t.header,"ordinal",e.useUTC),f=zK(r,e.renderMode).nameStyle;return"richText"===e.renderMode?KK(e,h,f)+a.richText+p:XK('<div style="'+f+";"+NK+';">'+jR(h)+"</div>"+p,n)}function qK(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return SL(e=IL(e)?e:[e],(function(e,t){return hY(e,IL(h)?h[t]:h,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":hY(l,"ordinal",u),h=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!o,v=!s&&o,m=zK(r,i),y=m.nameStyle,b=m.valueStyle;return"richText"===i?(s?"":d)+(o?"":KK(e,p,y))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(IL(t)?t.join("  "):t,o)}(e,f,g,v,b)):XK((s?"":d)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+jR(e)+"</span>"}(p,!s,y))+(a?"":function(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=IL(e)?e:[e],'<span style="'+o+";"+r+'">'+SL(e,(function(e){return jR(e)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,b)),n)}}function YK(e,t,n,r,i,o){if(e)return WK(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function XK(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+NK+';">'+e+'<div style="clear:both"></div></div>'}function KK(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function $K(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var ZK=function(){function e(){this.richTextStyles={},this._nextStyleNameId=iV()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=mY({color:t,type:e,renderMode:n,markerId:r});return OL(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};IL(t)?wL(t,(function(e){return gL(n,e)})):gL(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function JK(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),p=IL(d),h=function(e,t){return yY(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||p&&!c){var f=function(e,t,n,r,i){var o=t.getData(),a=CL(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(HK("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?wL(r,(function(e){c(sK(o,n,e),e)})):wL(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,o,a,u,h);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=sK(l,a,u[0]),n=g.type}else i=t=p?d[0]:d;var v=xV(o),m=v&&o.name||"",y=l.getName(a),b=s?m:y;return HK("section",{header:m,noHeader:s||!v,sortParam:i,blocks:[HK("nameValue",{markerType:"item",markerColor:h,name:b,noName:!YL(b),value:t,valueType:n,dataIndex:a})].concat(r||[])})}var QK=SV();function e$(e,t){return e.getName(t)||e.getId(t)}var t$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return jP(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=dK({count:r$,reset:i$}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(QK(this).sourceManager=new LK(this)).prepareSource();var r=this.getInitialData(e,n);a$(r,this),this.dataTask.context.data=r,QK(this).dataBeforeProcessed=r,n$(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=kY(this),r=n?IY(e):{},i=this.subType;DY.hasClass(i)&&(i+="Series"),hL(e,t.getTheme().get(this.subType)),hL(e,this.getDefaultOption()),pV(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&AY(e,r,n)},t.prototype.mergeOption=function(e,t){e=hL(this.option,e,!0),this.fillDataTextStyle(e.data);var n=kY(this);n&&AY(this.option,e,n);var r=QK(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);a$(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,QK(this).dataBeforeProcessed=i,n$(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!BL(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&pV(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=l$(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return QK(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=l$(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}QK(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return eR(e)},t.prototype.getSourceManager=function(){return QK(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return QK(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return JK({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(UP.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=rX.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e$(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=ML(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[e$(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){LL(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[d=e$(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],d=e$(e,c);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return DY.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(DY);function n$(e){var t=e.name;xV(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return wL(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function r$(e){return e.model.getRawData().count()}function i$(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),o$}function o$(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function a$(e,t){wL(tR(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,AL(s$,t))}))}function s$(e,t){var n=l$(e);return n&&n.setOutputEnd((t||this).count()),t}function l$(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}xL(t$,uK),xL(t$,rX),BV(t$,DY);const u$=t$;var c$=function(){function e(){this.group=new kF,this.uid=Tq("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function d$(){var e=SV();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}RV(c$),VV(c$);var p$=SV(),h$=d$(),f$=function(){function e(){this.group=new kF,this.uid=Tq("viewChart"),this.renderTask=dK({plan:m$,reset:y$}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&v$(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&v$(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){$U(this.group,e)},e.markUpdateMethod=function(e,t){p$(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function g$(e,t,n){e&&jW(e)&&("emphasis"===t?CW:TW)(e,n)}function v$(e,t,n){var r=wV(e,t),i=t&&null!=t.highlightKey?function(e){var t=Xj[e];return null==t&&Yj<=32&&(t=Xj[e]=Yj++),t}(t.highlightKey):null;null!=r?wL(dV(r),(function(t){g$(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){g$(e,n,i)}))}function m$(e){return h$(e.model)}function y$(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&p$(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),b$[l]}RV(f$),VV(f$);var b$={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const x$=f$;var _$="\0__throttleOriginMethod",w$="\0__throttleRate",S$="\0__throttleType";function C$(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var p=function(){for(var e=[],p=0;p<arguments.length;p++)e[p]=arguments[p];r=(new Date).getTime(),o=this,a=e;var h=s||t,f=s||n;s=null,i=r-(f?l:u)-h,clearTimeout(c),f?c=setTimeout(d,h):i>=0?d():c=setTimeout(d,-i),l=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(e){s=e},p}function T$(e,t,n,r){var i=e[t];if(i){var o=i[_$]||i,a=i[S$];if(i[w$]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=C$(o,n,"debounce"===r))[_$]=o,i[S$]=r,i[w$]=n}return i}}function M$(e,t){var n=e[t];n&&n[_$]&&(n.clear&&n.clear(),e[t]=n[_$])}var k$=SV(),A$={itemStyle:HV(bq,!0),lineStyle:HV(vq,!0)},I$={lineStyle:"stroke",itemStyle:"fill"};function E$(e,t){var n=e.visualStyleMapper||A$[t];return n||A$.itemStyle}function O$(e,t){var n=e.visualDrawType||I$[t];return n||"fill"}var D$={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=E$(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=O$(e,r),l=o[s],u=EL(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||EL(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||EL(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=gL({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},P$=new Sq,L$={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=E$(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){P$.option=n[r];var a=i(P$);gL(e.ensureUniqueItemVisual(t,"style"),a),P$.option.decal&&(e.setItemVisual(t,"decal",P$.option.decal),P$.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},R$={performRawSeries:!0,overallReset:function(e){var t=eR();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),k$(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=k$(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=O$(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},B$=Math.PI;var N$=function(){function e(e,t,n,r){this._stageTaskMap=eR(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=eR();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;wL(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});qL(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}wL(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,p=c.agentStubMap;p.each((function(e){a(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var h=o.getPerformArgs(c,r.block);p.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=eR(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||dK({plan:j$,reset:W$,count:q$}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||dK({reset:z$});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=eR(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,dK({reset:F$,onDirty:H$})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}qL(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,wL(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return EL(e)&&(e={overallReset:e,seriesType:Y$(e)}),e.uid=Tq("stageHandler"),t&&(e.visualType=t),e},e}();function z$(e){e.overallReset(e.ecModel,e.api,e.payload)}function F$(e){return e.overallProgress&&V$}function V$(){this.agent.dirty(),this.getDownstream().dirty()}function H$(){this.agent&&this.agent.dirty()}function j$(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function W$(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=dV(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?SL(t,(function(e,t){return U$(t)})):G$}var G$=U$(0);function U$(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function q$(e){return e.data.count()}function Y$(e){X$=null;try{e(K$,$$)}catch(t){}return X$}var X$,K$={},$$={};function Z$(e,t){for(var n in t.prototype)e[n]=oR}Z$(K$,oX),Z$($$,cX),K$.eachSeriesByType=K$.eachRawSeriesByType=function(e){X$=e},K$.eachComponent=function(e){"series"===e.mainType&&e.subType&&(X$=e.subType)};var J$=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Q$={color:J$,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],J$]};var eZ="#B9B8CE",tZ="#100C2A",nZ=function(){return{axisLine:{lineStyle:{color:eZ}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},rZ=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],iZ={darkMode:!0,color:rZ,backgroundColor:tZ,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:eZ}},textStyle:{color:eZ},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:eZ}},dataZoom:{borderColor:"#71708A",textStyle:{color:eZ},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:eZ}},timeline:{lineStyle:{color:eZ},label:{color:eZ},controlStyle:{color:eZ,borderColor:eZ}},calendar:{itemStyle:{color:tZ},dayLabel:{color:eZ},monthLabel:{color:eZ},yearLabel:{color:eZ}},timeAxis:nZ(),logAxis:nZ(),valueAxis:nZ(),categoryAxis:nZ(),line:{symbol:"circle"},graph:{color:rZ},gauge:{title:{color:eZ},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:eZ},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};iZ.categoryAxis.splitLine.show=!1;var oZ=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(OL(e)){var i=LV(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};wL(e,(function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.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,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),aZ=["symbol","symbolSize","symbolRotate","symbolOffset"],sZ=aZ.concat(["symbolKeepAspect"]),lZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<aZ.length;a++){var s=aZ[a],l=e.get(s);EL(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(gL({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=ML(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},uZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<sZ.length;r++){var i=sZ[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function cZ(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function dZ(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function pZ(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}wL([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,i){t=gL({},t),i.dispatchAction(gL(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function hZ(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=wV(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:IL(u)?l.getName(u[0]):l.getName(u),selected:OL(r)?r:gL({},r)})}}))}function fZ(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var gZ=Math.round(9*Math.random()),vZ="function"==typeof Object.defineProperty,mZ=function(){function e(){this._id="__ec_inner_"+gZ++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return vZ?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),yZ=gj.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),bZ=gj.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),xZ=gj.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),p=Math.cos(u),h=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*h,l+s+p*h,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*h,l+s+p*h,n-c,l+s),e.closePath()}}),_Z=gj.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),wZ={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},SZ={};wL({line:GG,rect:Ij,roundRect:Ij,square:Ij,circle:dG,diamond:bZ,pin:xZ,arrow:_Z,triangle:yZ},(function(e,t){SZ[t]=new e}));var CZ=gj.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=gF(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=SZ[r];i||(i=SZ[r="rect"]),wZ[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function TZ(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function MZ(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?DU(e.slice(8),new wB(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?OU(e.slice(7),{},new wB(t,n,r,i),a?"center":"cover"):new CZ({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=TZ,o&&s.setColor(o),s}function kZ(e){return IL(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function AZ(e,t){if(null!=e)return IL(e)||(e=[e,e]),[VF(e[0],t[0])||0,VF(jL(e[1],e[0]),t[1])||0]}function IZ(e){return isFinite(e)}function EZ(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=IZ(a)?a:.5,s=IZ(s)?s:.5,l=l>=0&&IZ(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=IZ(r)?r:0,i=IZ(i)?i:1,o=IZ(o)?o:0,a=IZ(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function OZ(e){return parseInt(e,10)}function DZ(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||OZ(s[r])||OZ(e.style[r]))-(OZ(s[o])||0)-(OZ(s[a])||0)|0}function PZ(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:PL(t)?[t]:IL(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=SL(i,(function(e){return e/a})),o/=a)}return[i,o]}var LZ=new XH(!0);function RZ(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function BZ(e){return"string"==typeof e&&"none"!==e}function NZ(e){var t=e.fill;return null!=t&&"none"!==t}function zZ(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function FZ(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function VZ(e,t,n){var r=qV(t.image,t.__image,n);if(XV(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*aR),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var HZ=["shadowBlur","shadowOffsetX","shadowOffsetY"],jZ=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function WZ(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){$Z(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?lH.opacity:a}(r||t.blend!==n.blend)&&(o||($Z(e,i),o=!0),e.globalCompositeOperation=t.blend||lH.blend);for(var s=0;s<HZ.length;s++){var l=HZ[s];(r||t[l]!==n[l])&&(o||($Z(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||($Z(e,i),o=!0),e.shadowColor=t.shadowColor||lH.shadowColor),o}function GZ(e,t,n,r,i){var o=ZZ(t,i.inHover),a=r?null:n&&ZZ(n,i.inHover)||{};if(o===a)return!1;var s=WZ(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||($Z(e,i),s=!0),BZ(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||($Z(e,i),s=!0),BZ(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||($Z(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||($Z(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<jZ.length;u++){var c=jZ[u],d=c[0];(r||o[d]!==a[d])&&(s||($Z(e,i),s=!0),e[d]=o[d]||c[1])}return s}function UZ(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}var qZ=1,YZ=2,XZ=3,KZ=4;function $Z(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ZZ(e,t){return t&&e.__hoverStyle||e.style}function JZ(e,t){QZ(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function QZ(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~HB,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&($Z(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&($Z(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),UZ(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,d,p=t instanceof gj&&t.autoBatch&&function(e){var t=NZ(e),n=RZ(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,d=u.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?($Z(e,n),UZ(e,t)):p||$Z(e,n);var h=ZZ(t,n.inHover);t instanceof gj?(n.lastDrawType!==qZ&&(l=!0,n.lastDrawType=qZ),GZ(e,t,u,l,n),p&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=RZ(n),a=NZ(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||LZ,d=t.__dirty;if(!r){var p=n.fill,h=n.stroke,f=a&&!!p.colorStops,g=o&&!!h.colorStops,v=a&&!!p.image,m=o&&!!h.image,y=void 0,b=void 0,x=void 0,_=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=d?EZ(e,p,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=d?EZ(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),v&&(x=d||!t.__canvasFillPattern?VZ(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(_=d||!t.__canvasStrokePattern?VZ(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),f?e.fillStyle=y:v&&(x?e.fillStyle=x:a=!1),g?e.strokeStyle=b:m&&(_?e.strokeStyle=_:o=!1)}var S,C,T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=PZ(t))[0],C=i[1]);var M=!0;(u||d&jB)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=C),r||(n.strokeFirst?(o&&FZ(e,n),a&&zZ(e,n)):(a&&zZ(e,n),o&&FZ(e,n))),S&&e.setLineDash([])}(e,t,h,p),p&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof mj?(n.lastDrawType!==XZ&&(l=!0,n.lastDrawType=XZ),GZ(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||XP,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=PZ(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(RZ(n)&&e.strokeText(i,n.x,n.y),NZ(n)&&e.fillText(i,n.x,n.y)):(NZ(n)&&e.fillText(i,n.x,n.y),RZ(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,h)):t instanceof _j?(n.lastDrawType!==YZ&&(l=!0,n.lastDrawType=YZ),function(e,t,n,r,i){WZ(e,ZZ(t,i.inHover),n&&ZZ(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=qV(n.image,t.__image,t,t.onload);if(r&&XV(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var d=a-(u=n.sx),p=s-(c=n.sy);e.drawImage(r,u,c,d,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,h)):t.getTemporalDisplayables&&(n.lastDrawType!==KZ&&(l=!0,n.lastDrawType=KZ),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),QZ(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),QZ(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),p&&r&&$Z(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var eJ=new mZ,tJ=new wN(100),nJ=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rJ(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&eJ.delete(e);var o=eJ.get(e);if(o)return o;var a=vL(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<nJ.length;++l){var u=a[nJ[l]];if(null!=u&&!IL(u)&&!OL(u)&&!PL(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=tJ.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,p=oJ(a.dashArrayX),h=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(PL(e)){var t=Math.ceil(e);return[t,t]}var n=SL(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),f=iJ(a.symbol),g=(x=p,SL(x,(function(e){return aJ(e)}))),v=aJ(h),m=!i&&$P.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=aV(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=aV(r,f[t].length);e*=r;var i=v*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var x;m&&(m.width=b.width*n,m.height=b.height*n,d=m.getContext("2d"));(function(){d&&(d.clearRect(0,0,m.width,m.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<h.length;++t)e+=h[t];if(e<=0)return;var o=-v,s=0,l=0,u=0;for(;o<b.height;){if(s%2==0){for(var c=l/2%f.length,g=0,x=0,_=0;g<2*b.width;){var w=0;for(t=0;t<p[u].length;++t)w+=p[u][t];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+p[u][x]*S,T=o+h[s]*S,M=p[u][x]*a.symbolSize,k=h[s]*a.symbolSize,A=_/2%f[c].length;I(C,T,M,k,f[c][A])}g+=p[u][x],++_,++x===p[u].length&&(x=0)}++u===p.length&&(u=0)}o+=h[s],++l,++s===h.length&&(s=0)}function I(e,t,o,s,l){var u=i?1:n,c=MZ(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var p=r.painter.renderOneToVNode(c);p&&y.children.push(p)}else JZ(d,c)}})(),s&&tJ.put(t,m||y);e.image=m,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,eJ.set(e,s),e.dirty=!1,s}function iJ(e){if(!e||0===e.length)return[["rect"]];if(OL(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!OL(e[n])){t=!1;break}if(t)return iJ([e]);var r=[];for(n=0;n<e.length;++n)OL(e[n])?r.push([e[n]]):r.push(e[n]);return r}function oJ(e){if(!e||0===e.length)return[[0,0]];if(PL(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!PL(e[n])){t=!1;break}if(t)return oJ([e]);var r=[];for(n=0;n<e.length;++n)if(PL(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=SL(e[n],(function(e){return Math.ceil(e)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function aJ(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var sJ=new DR,lJ={};function uJ(e){return lJ[e]}var cJ=2e3,dJ=4500,pJ={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:cJ,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:dJ,ARIA:6e3,DECAL:7e3}},hJ="__flagInMainProcess",fJ="__pendingUpdate",gJ="__needsUpdateStatus",vJ=/^[a-zA-Z0-9_]+$/,mJ="__connectUpdateStatus";function yJ(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return xJ(this,e,t);this.id}}function bJ(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return xJ(this,e,t)}}function xJ(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),DR.prototype[t].apply(e,n)}var _J,wJ,SJ,CJ,TJ,MJ,kJ,AJ,IJ,EJ,OJ,DJ,PJ,LJ,RJ,BJ,NJ,zJ,FJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t}(DR),VJ=FJ.prototype;VJ.on=bJ("on"),VJ.off=bJ("off");var HJ=function(e){function t(t,n,r){var i=e.call(this,new oZ)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},OL(n)&&(n=KJ[n]),i._dom=t;r.ssr&&RF((function(e){var t=qj(e),n=t.dataIndex;if(null!=n){var r=eR();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}}));var o=i._zr=DF(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:jL(r.useDirtyRect,!1),useCoarsePointer:jL(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=C$(kL(o.flush,o),17),(n=pL(n))&&RX(n,!0),i._theme=n,i._locale=function(e){if(OL(e)){var t=Eq[e.toUpperCase()]||{};return e===kq||e===Aq?pL(t):hL(pL(t),pL(Eq[Iq]),!1)}return hL(pL(e),pL(Eq[Iq]),!1)}(r.locale||Dq),i._coordSysMgr=new pX;var a=i._api=RJ(i);function s(e,t){return e.__prio-t.__prio}return VB(XJ,s),VB(qJ,s),i._scheduler=new N$(i,a,qJ,XJ),i._messageCenter=new FJ,i._initEvents(),i.resize=kL(i.resize,i),o.animation.on("frame",i._onframe,i),EJ(o,i),OJ(o,i),KL(i),i}return jP(t,e),t.prototype._onframe=function(){if(!this._disposed){zJ(this);var e=this._scheduler;if(this[fJ]){var t=this[fJ].silent;this[hJ]=!0;try{_J(this),CJ.update.call(this,null,this[fJ].updateParams)}catch(a){throw this[hJ]=!1,this[fJ]=null,a}this._zr.flush(),this[hJ]=!1,this[fJ]=null,AJ.call(this,t),IJ.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),MJ(this,r),e.performVisualTasks(r),LJ(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[hJ])if(this._disposed)this.id;else{var r,i,o;if(LL(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[hJ]=!0,!this._model||t){var a=new fX(this._api),s=this._theme,l=this._model=new oX;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},YJ);var u={seriesTransition:o,optionChanged:!0};if(n)this[fJ]={silent:r,updateParams:u},this[hJ]=!1,this.getZr().wakeUp();else{try{_J(this),CJ.update.call(this,null,u)}catch(c){throw this[fJ]=null,this[hJ]=!1,c}this._ssr||this._zr.flush(),this[fJ]=null,this[hJ]=!1,AJ.call(this,r),IJ.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||UP.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(UP.svgSupported){var e=this._zr;return wL(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;wL(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return wL(r,(function(e){e.group.ignore=!1})),o}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(JJ[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();wL(ZJ,(function(o,d){if(o.group===n){var p=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(pL(e)),h=o.getDom().getBoundingClientRect();a=r(h.left,a),s=r(h.top,s),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:p,left:h.left,top:h.top})}}));var p=(l*=d)-(a*=d),h=(u*=d)-(s*=d),f=$P.createCanvas(),g=DF(f,{renderer:t?"svg":"canvas"});if(g.resize({width:p,height:h}),t){var v="";return wL(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Ij({shape:{x:0,y:0,width:p,height:h},style:{fill:e.connectedBackgroundColor}})),wL(c,(function(e){var t=new _j({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t){return TJ(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return TJ(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return wL(TV(this._model,e),(function(e,r){r.indexOf("Models")>=0&&wL(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}}),this)}),this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=TV(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?cZ(r,i,t):dZ(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;wL(WJ,(function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&fZ(o,(function(e){var t=qj(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=gL({},t.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&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),wL(UJ,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),wL(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(hZ("map","selectchanged",t,r,e),hZ("pie","selectchanged",t,r,e)):"select"===e.fromAction?(hZ("map","selected",t,r,e),hZ("pie","selected",t,r,e)):"unselect"===e.fromAction&&(hZ("map","unselected",t,r,e),hZ("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&EV(this.getDom(),tQ,"");var e=this,t=e._api,n=e._model;wL(e._componentsViews,(function(e){e.dispose(n,t)})),wL(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ZJ[e.id]}},t.prototype.resize=function(e){if(!this[hJ])if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[fJ]&&(null==r&&(r=this[fJ].silent),n=!0,this[fJ]=null),this[hJ]=!0;try{n&&_J(this),CJ.update.call(this,{type:"resize",animation:gL({duration:0},e&&e.animation)})}catch(i){throw this[hJ]=!1,i}this[hJ]=!1,AJ.call(this,r),IJ.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(LL(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),$J[e]){var n=$J[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=gL({},e);return t.type=UJ[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(LL(t)||(t={silent:!!t}),GJ[e.type]&&this._model)if(this[hJ])this._pendingActions.push(e);else{var n=t.silent;kJ.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&UP.browser.weChat&&this._throttledZrFlush(),AJ.call(this,n),IJ.call(this,n)}},t.prototype.updateLabelLayout=function(){sJ.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Qj&&e.states.emphasis?t.push("emphasis"):e.hoverState===Jj&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return r(e,n,i,-1/0),!0}))}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered((function(e){if(!yU(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function o(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(yU(e))return;if(e instanceof gj&&function(e){var t=Kj(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}_J=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),wJ(e,!0),wJ(e,!1),t.plan()},wJ=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=LV(e.type);(c=new(t?c$.getClass(d.main,d.sub):x$.getClass(d.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},SJ=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=eR(),wL(dV(u),(function(e){var t=bV(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){if(!(l&&null!=l.get(t.id)))if(GW(n))if(t instanceof u$)n.type!==iW||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=wV(i,t);o=(IL(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=qj(a);OW(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&OW(r,c,d,n)}}}(t,n,e._api);else{var r=PW(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===iW&&i&&!n.notBlur&&DW(t.mainType,t.componentIndex,e._api),o&&wL(o,(function(e){n.type===iW?CW(e):TW(e)}))}else WW(n)&&t instanceof u$&&(!function(e,t,n){if(WW(t)){var r=t.dataType,i=wV(e.getData(r),t);IL(i)||(i=[i]),e[t.type===lW?"toggleSelect":t.type===aW?"select":"unselect"](i,r)}}(t,n,e._api),LW(t),NJ(e))}),e),o&&o.eachComponent(s,(function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else wL([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},CJ={prepareAndUpdate:function(e){_J(this),CJ.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),MJ(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),DJ(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),sJ.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=eR();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),LJ(this,r,i,t,{},a),sJ.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),x$.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),DJ(this,n,this._api,t,{}),sJ.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),x$.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),sJ.trigger("afterupdate",r,this._api))},updateLayout:function(e){CJ.update.call(this,e)}},TJ=function(e,t,n,r){if(e._disposed)e.id;else for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=TV(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}},MJ=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},kJ=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=GJ[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&LV(l[0]);this[hJ]=!0;var d=[e],p=!1;e.batch&&(p=!0,d=SL(e.batch,(function(t){return(t=vL(gL({},t),e)).batch=null,t})));var h,f=[],g=WW(e),v=GW(e);if(v&&EW(this._api),wL(d,(function(t){if((h=(h=a.action(t,n._model,n._api))||gL({},t)).type=s.event||h.type,f.push(h),v){var r=MV(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";SJ(n,u,t,o),NJ(n)}else g?(SJ(n,u,t,"series"),NJ(n)):c&&SJ(n,u,t,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[fJ]?(_J(this),CJ.update.call(this,e),this[fJ]=null):CJ[u].call(this,e)}catch(b){throw this[hJ]=!1,b}if(h=p?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[hJ]=!1,!t){var m=this._messageCenter;if(m.trigger(h.type,h),g){var y={type:"selectchanged",escapeConnect:o,selected:RW(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};m.trigger(y.type,y)}}},AJ=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();kJ.call(this,n,e)}},IJ=function(e){!e&&this.trigger("updated")},EJ=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[fJ]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},OJ=function(e,t){e.on("mouseover",(function(e){var n=fZ(e.target,jW);n&&(!function(e,t,n){var r=qj(e),i=PW(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&DW(r.componentMainType,r.componentIndex,n),wL(o,(function(e){return wW(e,t)}))):(OW(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&DW(r.componentMainType,r.componentIndex,n),wW(e,t))}(n,e,t._api),NJ(t))})).on("mouseout",(function(e){var n=fZ(e.target,jW);n&&(!function(e,t,n){EW(n);var r=qj(e),i=PW(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?wL(i,(function(e){return SW(e,t)})):SW(e,t)}(n,e,t._api),NJ(t))})).on("click",(function(e){var n=fZ(e.target,(function(e){return null!=qj(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=qj(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},DJ=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);VB(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),wL(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(t),PJ(e,t,n,r,i),wL(e._chartsViews,(function(e){e.__alive=!1})),LJ(e,t,n,r,i),wL(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},PJ=function(e,t,r,a,s,l){wL(l||e._componentsViews,(function(e){var s=e.__model;i(s,e),e.render(s,t,r,a),n(s,e),o(s,e)}))},LJ=function(e,t,r,a,s,l){var u=e._scheduler;s=gL(s||{},{updatedSeries:t.getSeries()}),sJ.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),LW(t)})),u.unfinished=c||u.unfinished,sJ.trigger("series:layoutlabels",t,r,s),sJ.trigger("series:transition",t,r,s),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];n(t,r),o(t,r)})),function(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!UP.node&&!UP.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),sJ.trigger("series:afterupdate",t,r,s)},NJ=function(e){e[gJ]=!0,e.getZr().wakeUp()},zJ=function(e){e[gJ]&&(e.getZr().storage.traverse((function(e){yU(e)||t(e)})),e[gJ]=!1)},RJ=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return jP(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){CW(t,n),NJ(e)},n.prototype.leaveEmphasis=function(t,n){TW(t,n),NJ(e)},n.prototype.enterBlur=function(t){!function(e){yW(e,hW)}(t),NJ(e)},n.prototype.leaveBlur=function(t){MW(t),NJ(e)},n.prototype.enterSelect=function(t){kW(t),NJ(e)},n.prototype.leaveSelect=function(t){AW(t),NJ(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(cX))(e)},BJ=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][mJ]=t}}wL(UJ,(function(n,r){e._messageCenter.on(r,(function(n){if(JJ[e.group]&&0!==e[mJ]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];wL(ZJ,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),wL(i,(function(e){1!==e[mJ]&&e.dispatchAction(r)})),t(i,2)}}))}))}}(),t}(DR),jJ=HJ.prototype;jJ.on=yJ("on"),jJ.off=yJ("off"),jJ.one=function(e,t,n){var r=this;this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)};var WJ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var GJ={},UJ={},qJ=[],YJ=[],XJ=[],KJ={},$J={},ZJ={},JJ={},QJ=+new Date-0,eQ=+new Date-0,tQ="_echarts_instance_";function nQ(e){JJ[e]=!1}var rQ=nQ;function iQ(e){return ZJ[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,tQ)]}function oQ(e,t){KJ[e]=t}function aQ(e){yL(YJ,e)<0&&YJ.push(e)}function sQ(e,t){vQ(qJ,e,t,2e3)}function lQ(e){cQ("afterinit",e)}function uQ(e){cQ("afterupdate",e)}function cQ(e,t){sJ.on(e,t)}function dQ(e,t,n){EL(t)&&(n=t,t="");var r=LL(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,UJ[t]||(qL(vJ.test(r)&&vJ.test(t)),GJ[r]||(GJ[r]={action:n,actionInfo:e}),UJ[t]=r)}function pQ(e,t){pX.register(e,t)}function hQ(e,t){vQ(XJ,e,t,1e3,"layout")}function fQ(e,t){vQ(XJ,e,t,3e3,"visual")}var gQ=[];function vQ(e,t,n,r,i){if((EL(t)||LL(t))&&(n=t,t=r),!(yL(gQ,n)>=0)){gQ.push(n);var o=N$.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function mQ(e,t){$J[e]=t}function yQ(e,t,n){var r=uJ("registerMap");r&&r(e,t,n)}var bQ=function(e){var t=(e=pL(e)).type;t||sV("");var n=t.split(":");2!==n.length&&sV("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,_K.set(t,e)};fQ(cJ,D$),fQ(dJ,L$),fQ(dJ,R$),fQ(cJ,lZ),fQ(dJ,uZ),fQ(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=rJ(n,t))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=rJ(i,t)}}))})),aQ(RX),sQ(900,(function(e){var t=eR();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(BX)})),mQ("default",(function(e,t){vL(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new kF,r=new Ij({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Uj({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ij({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new JG({shape:{startAngle:-B$/2,endAngle:-B$/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*B$/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*B$/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),dQ({type:iW,event:iW,update:iW},oR),dQ({type:oW,event:oW,update:oW},oR),dQ({type:aW,event:aW,update:aW},oR),dQ({type:sW,event:sW,update:sW},oR),dQ({type:lW,event:lW,update:lW},oR),oQ("light",Q$),oQ("dark",iZ);function xQ(e){return null==e?0:e.length||1}function _Q(e){return e}var wQ=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||_Q,this._newKeyGetter=r||_Q,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=xQ(s);if(l>1){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(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=xQ(l),d=xQ(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=xQ(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=xQ(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),SQ=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function CQ(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var TQ=function(){return function(e){this.otherDims={},null!=e&&gL(this,e)}}(),MQ=SV(),kQ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},AQ=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=OQ(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return jL(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=KX(this.source),n=!DQ(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=kQ[l]||"f",u&&(r+=u.uid),r+="$"}var p=this.source;return{dimensions:i,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function IQ(e){return e instanceof AQ}function EQ(e){for(var t=eR(),n=0;n<(e||[]).length;n++){var r=e[n],i=LL(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function OQ(e){var t=MQ(e);return t.dimNameMap||(t.dimNameMap=EQ(e.dimensionsDefine))}function DQ(e){return e>30}var PQ,LQ,RQ,BQ,NQ,zQ,FQ,VQ=LL,HQ=SL,jQ="undefined"==typeof Int32Array?Array:Int32Array,WQ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],GQ=["_approximateExtent"],UQ=function(){function e(e,t){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 r=!1;IQ(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=OL(c)?new TQ({name:c}):c instanceof TQ?c:new TQ(c),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};o.push(p),i[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(a[p]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=eR();wL(o,(function(e){f.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(PL(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof PK&&(r=e),!r){var o=this.dimensions,a=WX(e)||_L(e)?new $X(e,o.length):e;r=new PK;var s=HQ(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=eR(),o=[],a=[],s={};wL(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;CQ(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),CQ(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}BY.each((function(e,t){var n=CQ(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=SL(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new SQ(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&FQ(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==HY&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===NY&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&gV(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=bV(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=bV(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)FQ(this,a);PQ(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){VQ(e)?gL(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=RQ(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return LQ(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return IL(e)?r.getValues(HQ(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){EL(e)&&(n=t,t=e,e=[]);var r=n||this,i=HQ(BQ(e),this._getStoreDimIndex,this);this._store.each(i,r?kL(t,r):t)},e.prototype.filterSelf=function(e,t,n){EL(e)&&(n=t,t=e,e=[]);var r=n||this,i=HQ(BQ(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?kL(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={};return wL(ML(e),(function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){EL(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=HQ(BQ(e),this._getStoreDimIndex,this),a=zQ(this);return a._store=this._store.map(o,i?kL(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=HQ(BQ(e),this._getStoreDimIndex,this);this._store.modify(o,i?kL(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=zQ(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=zQ(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Sq(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new wQ(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return LQ(e,t)}),(function(e){return LQ(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},VQ(e)?gL(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(IL(i=this.getVisual(t))?i=i.slice():VQ(i)&&(i=gL({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,VQ(t)?gL(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){VQ(e)?gL(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?gL(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=qj(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=qj(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){wL(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:HQ(this.dimensions,this._getDimInfo,this),this.hostModel)),NQ(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];EL(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(GL(arguments)))})},e.internalField=(PQ=function(e){var t=e._invertedIndicesMap;wL(t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new jQ(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},RQ=function(e,t,n){return bV(e._getCategory(t,n),null)},LQ=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=RQ(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},BQ=function(e){return IL(e)||(e=null!=e?[e]:[]),e},zQ=function(t){var n=new e(t._schema?t._schema:HQ(t.dimensions,t._getDimInfo,t),t.hostModel);return NQ(n,t),n},NQ=function(e,t){wL(WQ.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,wL(GQ,(function(n){e[n]=pL(t[n])})),e._calculationInfo=gL({},t._calculationInfo)},void(FQ=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=RQ(e,i,t)),null==s&&null!=o&&(r[t]=s=RQ(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();const qQ=UQ;function YQ(e,t){WX(e)||(e=UX(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=eR(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return wL(t,(function(e){var t;LL(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&DQ(a),l=r===e.dimensionsDefine,u=l?OQ(e):EQ(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=eR(c),p=new AK(a),h=0;h<p.length;h++)p[h]=-1;function f(e){var t=p[e];if(t<0){var n=r[e],i=LL(n)?n:{name:n},a=new TQ,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return p[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(h=0;h<a;h++)f(h);d.each((function(e,t){var n=dV(e).slice();if(1===n.length&&!OL(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);wL(n,(function(e,n){var i=OL(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,v(f(i),t,n))}))}}));var g=0;function v(e,t,n){null!=BY.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}wL(n,(function(e){var t,n,r,i;if(OL(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=gL({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=dV(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}wL(s,(function(e,o){var a=f(e);if(l&&null!=i.type&&(a.type=i.type),v(vL(a,i),t,o),null==a.name&&n){var s=n[o];!LL(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&vL(a.otherDims,r)}))}}));var m=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=m?y||1:0;var x=m||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)wL(o,(function(e){_(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=XQ(x,i,b),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),_(S),null!=S.type||$Y(e,w)!==UY.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=eR(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new AQ({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function XQ(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var KQ=function(){return function(e){this.coordSysDims=[],this.axisMap=eR(),this.categoryAxisMap=eR(),this.coordSysName=e}}();var $Q={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",kV).models[0],o=e.getReferringComponents("yAxis",kV).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),ZQ(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),ZQ(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",kV).models[0];t.coordSysDims=["single"],n.set("single",i),ZQ(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",kV).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),ZQ(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),ZQ(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();wL(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),ZQ(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function ZQ(e){return"category"===e.get("type")}function JQ(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!IQ(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,d,p=!(!e||!e.get("stack"));if(wL(r,(function(e,t){OL(e)&&(r[t]=e={name:e}),p&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,f=u.type,g=0;wL(r,(function(e){e.coordDim===h&&g++}));var v={name:c,coordDim:h,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function QQ(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function e0(e,t){return QQ(e,t)?e.getCalculationInfo("stackResultDimension"):t}function t0(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=UX(e)):o=(r=i.getSource()).sourceFormat===NY;var a=function(e){var t=e.get("coordinateSystem"),n=new KQ(t),r=$Q[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=pX.get(r);return t&&t.coordSysDims&&(n=SL(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=EL(l)?l:l?AL(YY,s,t):null,c=YQ(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),d=function(e,t,n){var r,i;return n&&wL(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(c),h=JQ(t,{schema:c,store:p}),f=new qQ(c,t);f.setCalculationInfo(h);var g=null!=d&&function(e){if(e.sourceFormat===NY){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!IL(fV(t))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:p,null,g),f}var n0=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();VV(n0);var r0=0,i0=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++r0}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&SL(r,o0);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!OL(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=eR(this.categories))},e}();function o0(e){return LL(e)&&null!=e.value?e.value:e+""}function a0(e){return"interval"===e.type||"log"===e.type}function s0(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=eV(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=u0(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),c0(e,0,t),c0(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[HF(Math.ceil(e[0]/a)*a,s),HF(Math.floor(e[1]/a)*a,s)],e),i}function l0(e){var t=Math.pow(10,QF(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,HF(n*t)}function u0(e){return WF(e)+2}function c0(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function d0(e,t){return e>=t[0]&&e<=t[1]}function p0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h0(e,t){return e*(t[1]-t[0])+t[0]}var f0=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new i0({})),IL(r)&&(r=new i0({categories:SL(r,(function(e){return LL(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return jP(t,e),t.prototype.parse=function(e){return null==e?NaN:OL(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return d0(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p0(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(h0(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(n0);n0.registerClass(f0);var g0=HF,v0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return jP(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return d0(e,this._extent)},t.prototype.normalize=function(e){return p0(e,this._extent)},t.prototype.scale=function(e){return h0(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=u0(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:g0(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=g0(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:g0(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=g0(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=WF(e.value)||0:"auto"===n&&(n=this._intervalPrecision),cY(g0(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=s0(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=g0(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=g0(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(n0);n0.registerClass(v0);var m0="undefined"!=typeof Float32Array,y0=m0?Float32Array:Array;function b0(e){return IL(e)?m0?new Float32Array(e):e:new y0(e)}var x0="__ec_stack_";function _0(e){return e.get("stack")||x0+e.seriesIndex}function w0(e){return e.dim+e.index}function S0(e,t){var n=[];return t.eachSeriesByType(e,(function(e){M0(e)&&n.push(e)})),n}function C0(e){var t=function(e){var t={};wL(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return wL(e,(function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var d=e.getData();r=Math.abs(o[1]-o[0])/d.count()}var p=VF(e.get("barWidth"),r),h=VF(e.get("barMaxWidth"),r),f=VF(e.get("barMinWidth")||(k0(e)?.5:1),r),g=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:w0(i),stackId:_0(e)})})),function(e){var t={};wL(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var p=e.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return wL(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=ML(r).length;o=Math.max(35-4*a,15)+"%"}var s=VF(o,i),l=VF(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),wL(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var p,h=0;wL(r,(function(e,t){e.width||(e.width=d),p=e,h+=e.width*(1+l)})),p&&(h-=p.width*l);var f=-h/2;wL(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}(n)}function T0(e,t){var n=S0(e,t),r=C0(n);wL(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=_0(e),o=r[w0(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function M0(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function k0(e){return e.pipelineContext&&e.pipelineContext.large}var A0=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return jP(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Yq(e.value,Hq[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Uq(this._minLevelUnit))]||Hq.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(OL(n))o=n;else if(EL(n))o=n(e.value,t,{level:e.level});else{var a=gL({},Fq);if(e.level>0)for(var s=0;s<jq.length;++s)a[jq[s]]="{primary|"+a[jq[s]]+"}";var l=n?!1===n.inherit?n:vL(n,a):a,u=Xq(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Wq.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(IL(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return Yq(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,o=Wq,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=ZF(t),o=ZF(n),a=function(e){return Kq(i,e,r)===Kq(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},p=function(){return d()&&a("second")},h=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return p();case"millisecond":return h()}}(Uq(e),r[0],r[1],n)){l&&(i=[{value:R0(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var p=void 0,h=void 0,f=void 0,g=!1;switch(e){case"year":p=Math.max(1,Math.round(t/Nq/365)),h=$q(n),f=rY(n);break;case"half-year":case"quarter":case"month":p=O0(t),h=Zq(n),f=iY(n);break;case"week":case"half-week":case"day":p=E0(t),h=Jq(n),f=oY(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=D0(t),h=Qq(n),f=aY(n);break;case"minute":p=P0(t,!0),h=eY(n),f=sY(n);break;case"second":p=P0(t,!1),h=tY(n),f=lY(n);break;case"millisecond":p=L0(t),h=nY(n),f=uY(n)}s(p,c,d,h,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,p=0,h=0;h<o.length&&a++<i;++h){var f=Uq(o[h]);if(qq(o[h]))if(l(o[h],u[u.length-1]||[],c),f!==(o[h+1]?Uq(o[h+1]):null)){if(c.length){p=d,c.sort((function(e,t){return e.value-t.value}));for(var g=[],v=0;v<c.length;++v){var m=c[v].value;0!==v&&c[v-1].value===m||(g.push(c[v]),m>=r[0]&&m<=r[1]&&d++)}var y=(r[1]-r[0])/t;if(d>1.5*y&&p>y/1.5)break;if(u.push(g),d>y||e===o[h])break}c=[]}}var b=TL(SL(u,(function(e){return TL(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],_=b.length-1;for(h=0;h<b.length;++h)for(var w=b[h],S=0;S<w.length;++S)x.push({value:w[S].value,level:_-h});x.sort((function(e,t){return e.value-t.value}));var C=[];for(h=0;h<x.length;++h)0!==h&&x[h].value===x[h-1].value||C.push(x[h]);return C}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Nq,t[1]+=Nq),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Nq}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=I0.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(I0,this._approxInterval,0,o),o-1);this._interval=I0[a][1],this._minLevelUnit=I0[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return PL(e)?e:+ZF(e)},t.prototype.contain=function(e){return d0(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p0(this.parse(e),this._extent)},t.prototype.scale=function(e){return h0(e,this._extent)},t.type="time",t}(v0),I0=[["second",Lq],["minute",Rq],["hour",Bq],["quarter-day",6*Bq],["half-day",12*Bq],["day",1.2*Nq],["half-week",3.5*Nq],["week",7*Nq],["month",31*Nq],["quarter",95*Nq],["half-year",zq/2],["year",zq]];function E0(e,t){return(e/=Nq)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function O0(e){return(e/=30*Nq)>6?6:e>3?3:e>2?2:1}function D0(e){return(e/=Bq)>12?12:e>6?6:e>3.5?4:e>2?2:1}function P0(e,t){return(e/=t?Rq:Lq)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function L0(e){return eV(e,!0)}function R0(e,t,n){var r=new Date(e);switch(Uq(t)){case"year":case"month":r[iY(n)](0);case"day":r[oY(n)](1);case"hour":r[aY(n)](0);case"minute":r[sY(n)](0);case"second":r[lY(n)](0),r[uY(n)](0)}return r.getTime()}n0.registerClass(A0);var B0=n0.prototype,N0=v0.prototype,z0=HF,F0=Math.floor,V0=Math.ceil,H0=Math.pow,j0=Math.log,W0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new v0,t._interval=0,t}return jP(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return SL(N0.getTicks.call(this,e),(function(e){var t=e.value,i=HF(H0(this.base,t));return i=t===n[0]&&this._fixMin?U0(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?U0(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=j0(this.base);e=j0(Math.max(0,e))/n,t=j0(Math.max(0,t))/n,N0.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=B0.getExtent.call(this);t[0]=H0(e,t[0]),t[1]=H0(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=U0(t[0],n[0])),this._fixMax&&(t[1]=U0(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=j0(e[0])/j0(t),e[1]=j0(e[1])/j0(t),B0.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=JF(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[HF(V0(t[0]/r)*r),HF(F0(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){N0.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return d0(e=j0(e)/j0(this.base),this._extent)},t.prototype.normalize=function(e){return p0(e=j0(e)/j0(this.base),this._extent)},t.prototype.scale=function(e){return e=h0(e,this._extent),H0(this.base,e)},t.type="log",t}(n0),G0=W0.prototype;function U0(e,t){return z0(e,WF(t))}G0.getMinorTicks=N0.getMinorTicks,G0.getLabel=N0.getLabel,n0.registerClass(W0);var q0=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;EL(o)?this._modelMinNum=$0(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=$0(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(EL(a)?this._modelMaxNum=$0(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=$0(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=IL(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fF(l[0],1),fF(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=VL(a)||VL(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[X0[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[Y0[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Y0={min:"_determinedMin",max:"_determinedMax"},X0={min:"_dataMin",max:"_dataMax"};function K0(e,t,n){var r=e.rawExtentInfo;return r||(r=new q0(e,t,n),e.rawExtentInfo=r,r)}function $0(e,t){return null==t?null:VL(t)?NaN:e.parse(t)}function Z0(e,t){var n=e.type,r=K0(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=S0("bar",a),l=!1;if(wL(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=C0(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t,n){if(e&&t){var r=e[w0(t)];return null!=r&&null!=n?r[_0(n)]:r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;wL(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;wL(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/o)-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function J0(e,t){var n=t,r=Z0(e,n),i=r.extent,o=n.get("splitNumber");e instanceof W0&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Q0(e,t){if(t=t||e.get("type"))switch(t){case"category":return new f0({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new A0({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(n0.getClass(t)||v0)}}function e1(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):OL(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(t):EL(t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(t1(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function t1(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function n1(e){var t=e.get("interval");return null==t?"auto":t}function r1(e){return"category"===e.type&&0===n1(e.getLabelModel())}function i1(e,t){var n={};return wL(e.mapDimensionsAll(t),(function(t){n[e0(e,t)]=!0})),ML(n)}var o1=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();var a1={isDimensionStacked:QQ,enableDataStack:JQ,getStackedDimension:e0};const s1=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:function(e,t){return YQ(e,t).dimensions},createList:function(e){return t0(null,e)},createScale:function(e,t){var n=t;t instanceof Sq||(n=new Sq(t));var r=Q0(n);return r.setExtent(e[0],e[1]),J0(r,n),r},createSymbol:MZ,createTextStyle:function(e,t){return nq(e,null,null,"normal"!==(t=t||{}).state)},dataStack:a1,enableHoverEmphasis:BW,getECData:qj,getLayoutRect:TY,mixinAxisModelCommonMethods:function(e){xL(e,o1)}},Symbol.toStringTag,{value:"Module"}));var l1=[],u1={registerPreprocessor:aQ,registerProcessor:sQ,registerPostInit:lQ,registerPostUpdate:uQ,registerUpdateLifecycle:cQ,registerAction:dQ,registerCoordinateSystem:pQ,registerLayout:hQ,registerVisual:fQ,registerTransform:bQ,registerLoading:mQ,registerMap:yQ,registerImpl:function(e,t){lJ[e]=t},PRIORITY:pJ,ComponentModel:DY,ComponentView:c$,SeriesModel:u$,ChartView:x$,registerComponentModel:function(e){DY.registerClass(e)},registerComponentView:function(e){c$.registerClass(e)},registerSeriesModel:function(e){u$.registerClass(e)},registerChartView:function(e){x$.registerClass(e)},registerSubTypeDefaulter:function(e,t){DY.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){PF(e,t)}};function c1(e){IL(e)?wL(e,(function(e){c1(e)})):yL(l1,e)>=0||(l1.push(e),EL(e)&&(e={install:e}),e.install(u1))}var d1=1e-8;function p1(e,t){return Math.abs(e-t)<d1}function h1(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=nj(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return p1(i[0],s[0])&&p1(i[1],s[1])||(r+=nj(i[0],i[1],s[0],s[1],t,n)),0!==r}var f1=[];function g1(e,t){for(var n=0;n<e.length;n++)MR(e[n],e[n],t)}function v1(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(kR(t,t,o),AR(n,n,o))}}var m1=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),y1=function(){return function(e,t){this.type="polygon",this.exterior=e,this.interiors=t}}(),b1=function(){return function(e){this.type="linestring",this.points=e}}(),x1=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return jP(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior,a=o&&o.length;a>n&&(e=i,n=a)}if(e)return function(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0];return wL(this.geometries,(function(t){"polygon"===t.type?v1(t.exterior,n,r,e):wL(t.points,(function(t){v1(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new wB(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(h1(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(h1(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new wB(e,t,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(g1(c.exterior,s),wL(c.interiors,(function(e){g1(e,s)}))):wL(c.points,(function(e){g1(e,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(m1),_1=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return jP(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=iB(f1),i=e;i&&!i.isGeoSVGGraphicRoot;)aB(r,i.getLocalTransform(),r),i=i.parent;return cB(r,r),MR(n,n,r),n},t}(m1);function w1(e,t,n){for(var r=0;r<e.length;r++)e[r]=S1(e[r],t[r],n)}function S1(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function C1(e,t){return SL(TL((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),wL(t.features,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=S1(i,r,n);break;case"Polygon":case"MultiLineString":w1(i,r,n);break;case"MultiPolygon":wL(i,(function(e,t){return w1(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new y1(o[0],o.slice(1)));break;case"MultiPolygon":wL(r.coordinates,(function(e){e[0]&&i.push(new y1(e[0],e.slice(1)))}));break;case"LineString":i.push(new b1([r.coordinates]));break;case"MultiLineString":i.push(new b1(r.coordinates))}var a=new x1(n[t||"name"],i,n.cp);return a.properties=n,a}))}const T1=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:jF,getPercentWithPrecision:function(e,t,n){return e[t]&&qF(e,n)[t]||0},getPixelPrecision:UF,getPrecision:WF,getPrecisionSafe:GF,isNumeric:rV,isRadianAroundZero:KF,linearMap:FF,nice:eV,numericToNumber:nV,parseDate:ZF,quantile:function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i},quantity:JF,quantityExponent:QF,reformIntervals:tV,remRadian:XF,round:HF},Symbol.toStringTag,{value:"Module"})),M1=Object.freeze(Object.defineProperty({__proto__:null,format:Yq,parse:ZF},Symbol.toStringTag,{value:"Module"})),k1=Object.freeze(Object.defineProperty({__proto__:null,Arc:JG,BezierCurve:KG,BoundingRect:wB,Circle:dG,CompoundPath:eU,Ellipse:fG,Group:kF,Image:_j,IncrementalDisplayable:pU,Line:GG,LinearGradient:nU,Polygon:NG,Polyline:VG,RadialGradient:rU,Rect:Ij,Ring:PG,Sector:EG,Text:Uj,clipPointsByRect:WU,clipRectByRect:GU,createIcon:UU,extendPath:AU,extendShape:MU,getShapeClass:EU,getTransform:zU,initProps:mU,makeImage:DU,makePath:OU,mergePath:LU,registerShape:IU,resizePath:RU,updateProps:vU},Symbol.toStringTag,{value:"Module"})),A1=Object.freeze(Object.defineProperty({__proto__:null,addCommas:cY,capitalFirst:function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},encodeHTML:jR,formatTime:function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=ZF(t),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",Gq(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Gq(o%100+"",2)).replace("dd",Gq(s,2)).replace("d",s).replace("hh",Gq(l,2)).replace("h",l).replace("mm",Gq(u,2)).replace("m",u).replace("ss",Gq(c,2)).replace("s",c).replace("SSS",Gq(d,3))},formatTpl:vY,getTextRect:function(e,t,n,r,i,o,a,s){return new Uj({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:mY,normalizeCssArray:pY,toCamelCase:dY,truncateText:$V},Symbol.toStringTag,{value:"Module"})),I1=Object.freeze(Object.defineProperty({__proto__:null,bind:kL,clone:pL,curry:AL,defaults:vL,each:wL,extend:gL,filter:TL,indexOf:yL,inherits:bL,isArray:IL,isFunction:EL,isObject:LL,isString:OL,map:SL,merge:hL,reduce:CL},Symbol.toStringTag,{value:"Module"}));var E1=SV();function O1(e,t){var n=SL(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function D1(e){var t=e.getLabelModel().get("customValues");if(t){var n=e1(e);return{labels:O1(e,t).map((function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=L1(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=e1(e);return{labels:SL(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function P1(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:O1(e,n)}:"category"===e.type?function(e,t){var n,r,i=R1(e,"ticks"),o=n1(t),a=B1(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(EL(o))n=F1(e,o,!0);else if("auto"===o){var s=L1(e,e.getLabelModel());r=s.labelCategoryInterval,n=SL(s.labels,(function(e){return e.tickValue}))}else n=z1(e,r=o,!0);return N1(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:SL(e.scale.getTicks(),(function(e){return e.value}))}}function L1(e,t){var n,r,i=R1(e,"labels"),o=n1(t),a=B1(i,o);return a||(EL(o)?n=F1(e,o):(r="auto"===o?function(e){var t=E1(e).autoInterval;return null!=t?t:E1(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=z1(e,r)),N1(i,o,{labels:n,labelCategoryInterval:r}))}function R1(e,t){return E1(e)[t]||(E1(e)[t]=[])}function B1(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function N1(e,t,n){return e.push({key:t,value:n}),n}function z1(e,t,n){var r=e1(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=r1(e),p=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&f-l!==o[1]&&g(o[1]),s}function F1(e,t,n){var r=e.scale,i=e1(e),o=[];return wL(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var V1=[0,1],H1=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return UF(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&j1(n=n.slice(),r.count()),FF(e,V1,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&j1(n=n.slice(),r.count());var i=FF(e,n,V1,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=SL(P1(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;wL(t,(function(e){e.coord-=u/2})),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=HF(e),t=HF(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),SL(this.scale.getMinorTicks(e),(function(e){return SL(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return D1(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=e1(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.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=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),p=0,h=0;l<=o[1];l+=s){var f,g,v=cF(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,p=Math.max(p,f,7),h=Math.max(h,g,7)}var m=p/c,y=h/d;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(m,y))),x=E1(e.model),_=e.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?b=w:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=_[0],x.axisExtent1=_[1]),b}(this)},e}();function j1(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}const W1=H1;function G1(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,d=r-t,p=Math.sqrt(c*c+d*d),h=(l*(c/=p)+u*(d/=p))/p;h*=p;var f=a[0]=e+h*c,g=a[1]=t+h*d;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}var U1=new pB,q1=new pB,Y1=new pB,X1=new pB,K1=new pB,$1=[],Z1=new pB;function J1(e,t){if(t<=180&&t>0){t=t/180*Math.PI,U1.fromArray(e[0]),q1.fromArray(e[1]),Y1.fromArray(e[2]),pB.sub(X1,U1,q1),pB.sub(K1,Y1,q1);var n=X1.len(),r=K1.len();if(!(n<.001||r<.001)){X1.scale(1/n),K1.scale(1/r);var i=X1.dot(K1);if(Math.cos(t)<i){var o=G1(q1.x,q1.y,Y1.x,Y1.y,U1.x,U1.y,$1);Z1.fromArray($1),Z1.scaleAndAdd(K1,o/Math.tan(Math.PI-t));var a=Y1.x!==q1.x?(Z1.x-q1.x)/(Y1.x-q1.x):(Z1.y-q1.y)/(Y1.y-q1.y);if(isNaN(a))return;a<0?pB.copy(Z1,q1):a>1&&pB.copy(Z1,Y1),Z1.toArray(e[1])}}}}function Q1(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,U1.fromArray(e[0]),q1.fromArray(e[1]),Y1.fromArray(e[2]),pB.sub(X1,q1,U1),pB.sub(K1,Y1,q1);var r=X1.len(),i=K1.len();if(!(r<.001||i<.001))if(X1.scale(1/r),K1.scale(1/i),X1.dot(t)<Math.cos(n)){var o=G1(q1.x,q1.y,Y1.x,Y1.y,U1.x,U1.y,$1);Z1.fromArray($1);var a=Math.PI/2,s=a+Math.acos(K1.dot(t))-n;if(s>=a)pB.copy(Z1,Y1);else{Z1.scaleAndAdd(K1,o/Math.tan(Math.PI/2-s));var l=Y1.x!==q1.x?(Z1.x-q1.x)/(Y1.x-q1.x):(Z1.y-q1.y)/(Y1.y-q1.y);if(isNaN(l))return;l<0?pB.copy(Z1,q1):l>1&&pB.copy(Z1,Y1)}Z1.toArray(e[1])}}}function e2(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function t2(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=wR(r[0],r[1]),o=wR(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=TR([],r[1],r[0],a/i),l=TR([],r[1],r[2],a/o),u=TR([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function n2(e,t,n,r){return function(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=0,d=0;d<a;d++){var p=e[d],h=p.rect;(s=h[t]-l)<0&&(h[t]-=s,p.label[t]-=s,u=!0),c+=Math.max(-s,0),l=h[t]+h[n]}c>0&&o&&x(-c/a,0,a);var f,g,v=e[0],m=e[a-1];return y(),f<0&&_(-f,.8),g<0&&_(g,.8),y(),b(f,g,1),b(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[t]-r,g=i-m.rect[t]-m.rect[n]}function b(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,a);var i=r+e;i<0&&_(-i*n,1)}else _(-e*n,1)}}function x(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function _(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)x(o[l]*d,0,l+1);else for(l=a-1;l>0;l--)x(-o[l-1]*d,l,a)}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?x(n,0,r+1):x(-n,a-r-1,a),(e-=n)<=0)return}}(e,"y","height",t,n,r)}const r2=Object.freeze(Object.defineProperty({__proto__:null,Axis:W1,ChartView:x$,ComponentModel:DY,ComponentView:c$,List:qQ,Model:Sq,PRIORITY:pJ,SeriesModel:u$,color:XN,connect:function(e){if(IL(e)){var t=e;e=null,wL(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+eQ++,wL(t,(function(t){t.group=e}))}return JJ[e]=!0,e},dataTool:{},dependencies:{zrender:"5.6.0"},disConnect:rQ,disconnect:nQ,dispose:function(e){OL(e)?e=ZJ[e]:e instanceof HJ||(e=iQ(e)),e instanceof HJ&&!e.isDisposed()&&e.dispose()},env:UP,extendChartView:function(e){var t=x$.extend(e);return x$.registerClass(t),t},extendComponentModel:function(e){var t=DY.extend(e);return DY.registerClass(t),t},extendComponentView:function(e){var t=c$.extend(e);return c$.registerClass(t),t},extendSeriesModel:function(e){var t=u$.extend(e);return u$.registerClass(t),t},format:A1,getCoordinateSystemDimensions:function(e){var t=pX.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},getInstanceByDom:iQ,getInstanceById:function(e){return ZJ[e]},getMap:function(e){var t=uJ("getMap");return t&&t(e)},graphic:k1,helper:s1,init:function(e,t,n){var r=!(n&&n.ssr);if(r){var i=iQ(e);if(i)return i}var o=new HJ(e,t,n);return o.id="ec_"+QJ++,ZJ[o.id]=o,r&&EV(e,tQ,o.id),BJ(o),sJ.trigger("afterinit",o),o},innerDrawElementOnCanvas:JZ,matrix:dB,number:T1,parseGeoJSON:C1,parseGeoJson:C1,registerAction:dQ,registerCoordinateSystem:pQ,registerLayout:hQ,registerLoading:mQ,registerLocale:Pq,registerMap:yQ,registerPostInit:lQ,registerPostUpdate:uQ,registerPreprocessor:aQ,registerProcessor:sQ,registerTheme:oQ,registerTransform:bQ,registerUpdateLifecycle:cQ,registerVisual:fQ,setCanvasCreator:function(e){ZP({createCanvas:e})},setPlatformAPI:ZP,throttle:C$,time:M1,use:c1,util:I1,vector:IR,version:"5.5.1",zrUtil:sR,zrender:BF},Symbol.toStringTag,{value:"Module"}));var i2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return jP(t,e),t.prototype.getInitialData=function(e){return t0(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new kF,n=MZ("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=MZ(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(u$);function o2(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=sK(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(sK(e,t,n[a]));return o.join(" ")}}function a2(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!IL(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var s2=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return jP(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=MZ(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=l2,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){CW(this.childAt(0))},t.prototype.downplay=function(){TW(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(d):vU(p,d,a,n),wU(p)}if(this._updateCommon(e,n,s,r,i),l){var p=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,mU(p,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,d,p,h,f=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,p=r.hoverScale,h=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),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"),d=tq(v),p=m.getShallow("scale"),h=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var b=AZ(e.getItemVisual(t,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),h&&f.attr("cursor",h);var x=e.getItemVisual(t,"style"),_=x.fill;if(f instanceof _j){var w=f.style;f.useStyle(gL({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(gL({},x)):f.useStyle(x),f.style.decal=null,f.setColor(_,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var T=i&&i.useNameLabel;eq(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):o2(e,t)},inheritColor:_,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var k=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*k,M.scaleY=this._sizeY*k,this.setSymbolScale(1),NW(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=qj(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&bU(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();bU(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return kZ(e.getItemVisual(t,"symbolSize"))},t}(kF);function l2(e,t){this.parent.drift(e,t)}function u2(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function c2(e){return null==e||LL(e)||(e={isIgnore:e}),e||{}}function d2(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:tq(t),cursorStyle:t.get("cursor")}}var p2=function(){function e(e){this.group=new kF,this._SymbolCtor=e||s2}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=c2(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=d2(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(u2(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var p=i.getItemGraphicEl(d),h=u(c);if(u2(e,h,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(e,c,s,l)).setPosition(h);else{p.updateData(e,c,s,l);var v={x:h[0],y:h[1]};a?p.attr(v):vU(p,v,r)}n.add(p),e.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=d2(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c2(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(u2(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){$U(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();function h2(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:PL(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=SL(e.dimensions,(function(e){return t.mapDimension(e)})),p=!1,h=t.getCalculationInfo("stackResultDimension");return QQ(t,d[0])&&(p=!0,d[0]=h),QQ(t,d[1])&&(p=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function f2(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var g2=Math.min,v2=Math.max;function m2(e,t){return isNaN(e)||isNaN(t)}function y2(e,t,n,r,i,o,a,s,l){for(var u,c,d,p,h,f,g=n,v=0;v<r;v++){var m=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(m2(m,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,y),d=m,p=y;else{var b=m-u,x=y-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){for(var _=g+o,w=t[2*_],S=t[2*_+1];w===m&&S===y&&v<r;)v++,g+=o,w=t[2*(_+=o)],S=t[2*_+1],b=(m=t[2*g])-u,x=(y=t[2*g+1])-c;var C=v+1;if(l)for(;m2(w,S)&&C<r;)C++,w=t[2*(_+=o)],S=t[2*_+1];var T=.5,M=0,k=0,A=void 0,I=void 0;if(C>=r||m2(w,S))h=m,f=y;else{M=w-u,k=S-c;var E=m-u,O=w-m,D=y-c,P=S-y,L=void 0,R=void 0;if("x"===s){var B=M>0?1:-1;h=m-B*(L=Math.abs(E))*a,f=y,A=m+B*(R=Math.abs(O))*a,I=y}else if("y"===s){var N=k>0?1:-1;h=m,f=y-N*(L=Math.abs(D))*a,A=m,I=y+N*(R=Math.abs(P))*a}else L=Math.sqrt(E*E+D*D),h=m-M*a*(1-(T=(R=Math.sqrt(O*O+P*P))/(R+L))),f=y-k*a*(1-T),I=y+k*a*T,A=g2(A=m+M*a*T,v2(w,m)),I=g2(I,v2(S,y)),A=v2(A,g2(w,m)),f=y-(k=(I=v2(I,g2(S,y)))-y)*L/R,h=g2(h=m-(M=A-m)*L/R,v2(u,m)),f=g2(f,v2(c,y)),A=m+(M=m-(h=v2(h,g2(u,m))))*R/L,I=y+(k=y-(f=v2(f,g2(c,y))))*R/L}e.bezierCurveTo(d,p,h,f,m,y),d=A,p=I}else e.lineTo(m,y)}u=m,c=y,g+=o}return v}var b2=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),x2=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new b2},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&m2(n[2*i-2],n[2*i-1]);i--);for(;r<i&&m2(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=y2(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=XH.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,d=void 0,p=void 0,h=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[e,v]:[v,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],d=i[l++],p=i[l++],h=i[l++],f=i[l++];var m=a?lN(n,u,d,h,e,s):lN(r,c,p,f,e,s);if(m>0)for(var y=0;y<m;y++){var b=s[y];if(b<=1&&b>=0){v=a?aN(r,c,p,f,b):aN(n,u,d,h,b);return a?[e,v]:[v,e]}}n=h,r=f}}},t}(gj),_2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t}(b2),w2=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return jP(t,e),t.prototype.getDefaultShape=function(){return new _2},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&m2(n[2*o-2],n[2*o-1]);o--);for(;i<o&&m2(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=y2(e,n,i,o,o,1,t.smooth,a,t.connectNulls);y2(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(gj);function S2(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new Ij({shape:{x:a,y:s,width:l,height:u}});if(t){var p=e.getBaseAxis(),h=p.isHorizontal(),f=p.inverse;h?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=EL(i)?function(e){i(e,d)}:null;mU(d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}function C2(e,t,n){var r=e.getArea(),i=HF(r.r0,1),o=HF(r.r,1),a=new EG({shape:{cx:HF(e.cx,1),cy:HF(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,mU(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function T2(e,t){return e.type===t}function M2(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function k2(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function A2(e,t){var n=k2(e),r=n[0],i=n[1],o=k2(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function I2(e){return PL(e)?e:e?.5:0}function E2(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+c[o])/2,h=[];l[o]=h[o]=p,l[1-o]=u[1-o],h[1-o]=c[1-o],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function O2(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=SL(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var p=function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:VN((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),h=p.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=p[0].coord-10,g=p[h-1].coord+10,v=g-f;if(v<.001)return"transparent";wL(p,(function(e){e.offset=(e.coord-f)/v})),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var m=new nU(0,0,0,0,p,!0);return m[i]=f,m[i+"2"]=g,m}}}function D2(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*s2.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return wL(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function P2(e,t){return[e[2*t],e[2*t+1]]}function L2(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<eW.length;t++)if(e.get([eW[t],"endLabel","show"]))return!0;return!1}function R2(e,t,n,r){if(T2(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=L2(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=S2(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var d=c.shape,p=Math.max(d.width,d.height);u?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return l&&l(1,c),c}return C2(t,n,r)}var B2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.init=function(){var e=new kF,t=new p2;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,d=this._coordSys,p=this._symbolDraw,h=this._polyline,f=this._polygon,g=this._lineGroup,v=!t.ssr&&e.get("animation"),m=!l.isEmpty(),y=l.get("origin"),b=h2(i,a,y),x=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=b0(2*r),o=0;o<r;o++){var a=f2(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,b),_=e.get("showSymbol"),w=e.get("connectNulls"),S=_&&!c&&D2(e,a,i),C=this._data;C&&C.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),C.setItemGraphicEl(t,null))})),_||p.remove(),o.add(g);var T,M=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(T=i.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var k=O2(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&d.type===i.type&&M===this._step){m&&!f?f=this._newPolygon(u,x):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,yY(k));var A=g.getClipPath();if(A)mU(A,{shape:R2(this,i,!1,e).shape},e);else g.setClipPath(R2(this,i,!0,e));_&&p.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),M2(this._stackedOnPoints,x)&&M2(this._points,u)||(v?this._doUpdateAnimation(a,x,i,n,M,y,w):(M&&(u=E2(u,i,M,w),x&&(x=E2(x,i,M,w))),h.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else _&&p.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,i,T),M&&(u=E2(u,i,M,w),x&&(x=E2(x,i,M,w))),h=this._newPolyline(u),m?f=this._newPolygon(u,x):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,yY(k)),g.setClipPath(R2(this,i,!0,e));var I=e.getModel("emphasis"),E=I.get("focus"),O=I.get("blurScope"),D=I.get("disabled");(h.useStyle(vL(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),VW(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1);qj(h).seriesIndex=e.seriesIndex,NW(h,E,O,D);var P=I2(e.get("smooth")),L=e.get("smoothMonotone");if(h.setShape({smooth:P,smoothMonotone:L,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(vL(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(B=I2(R.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:B,smoothMonotone:L,connectNulls:w}),VW(f,e,"areaStyle"),qj(f).seriesIndex=e.seriesIndex,NW(f,E,O,D)}var N=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=N)})),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=M,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,h),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){qj(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=wV(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.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=e.get("zlevel")||0,d=e.get("z")||0;(s=new s2(i,o)).x=l,s.y=u,s.setZ(c,d);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=d,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else x$.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=wV(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else x$.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;bW(this._polyline,e),t&&bW(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new x2({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new w2({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");EL(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=EL(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],p=void 0,h=void 0,f=void 0;if(n)if(i){var g=n,v=t.pointToCoord(d);r?(p=g.startAngle,h=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,h=g.r,f=v[0])}else{var m=n;r?(p=m.x,h=m.x+m.width,f=e.x):(p=m.y+m.height,h=m.y,f=e.y)}var y=h===p?0:(f-p)/(h-p);a&&(y=1-y);var b=EL(u)?u(o):l*y+c,x=s.getSymbolPath(),_=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(L2(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Uj({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(a);l>=0&&(eq(o,tq(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?a2(i,n):o2(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),p=o.get("precision"),h=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=t.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,b=(g?h:0)*(v?-1:1),x=(g?0:-h)*(v?-1:1),_=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,y,_),S=w.range,C=S[1]-S[0],T=void 0;if(C>=1){if(C>1&&!d){var M=P2(u,S[0]);s.attr({x:M[0]+b,y:M[1]+x}),i&&(T=c.getRawValue(S[0]))}else{(M=l.getPointOn(y,_))&&s.attr({x:M[0]+b,y:M[1]+x});var k=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(T=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(PL(r))return HF(f=lV(n||0,r,i),o?Math.max(WF(n||0),WF(r)):t);if(OL(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)a[c]=(i<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,h=l[c],f=lV(p,h,i);a[c]=HF(f,o?Math.max(WF(p),WF(h)):t)}}return a}(n,p,k,A,w.t))}r.lastFrameIndex=S[0]}else{var I=1===e||r.lastFrameIndex>0?S[0]:0;M=P2(u,I);i&&(T=c.getRawValue(I)),s.attr({x:M[0]+b,y:M[1]+x})}if(i){var E=uq(s);"function"==typeof E.setLabelText&&E.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),u=[],c=[],d=[],p=[],h=[],f=[],g=[],v=h2(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var C=m[w],T=m[w+1],M=y[S],k=y[S+1];(isNaN(C)||isNaN(T))&&(C=M,T=k),u.push(C,T),c.push(M,k),d.push(n[w],n[w+1]),p.push(r[S],r[S+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var A=x.idx,I=v.dataDimsForPoint,E=i.dataToPoint([t.get(I[0],A),t.get(I[1],A)]);S=2*A,u.push(E[0],E[1]),c.push(y[S],y[S+1]);var O=f2(v,i,t,A);d.push(O[0],O[1]),p.push(r[S],r[S+1]),g.push(t.getRawIndex(A));break;case"-":_=!1}_&&(h.push(x),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var D=u.length,P=b0(D),L=b0(D),R=b0(D),B=b0(D),N=[];for(b=0;b<f.length;b++){var z=f[b],F=2*b,V=2*z;P[F]=u[V],P[F+1]=u[V+1],L[F]=c[V],L[F+1]=c[V+1],R[F]=d[V],R[F+1]=d[V+1],B[F]=p[V],B[F+1]=p[V+1],N[b]=h[z]}return{current:P,next:L,stackedOnCurrent:R,stackedOnNext:B,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,p=c.stackedOnCurrent,h=c.next,f=c.stackedOnNext;if(i&&(d=E2(c.current,n,i,a),p=E2(c.stackedOnCurrent,n,i,a),h=E2(c.next,n,i,a),f=E2(c.stackedOnNext,n,i,a)),A2(d,h)>3e3||l&&A2(p,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:h}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),vU(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),vU(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;y<m.length;y++){if("="===m[y].cmd){var b=e.getItemGraphicEl(m[y].idx1);b&&v.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,r=2*v[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(x$);var N2={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);o>t&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},z2=function(e){return Math.round(e.length/2)};function F2(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var h=void 0;OL(i)?h=N2[i]:EL(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/p,h,z2))}}}}}function V2(e){e.registerChartView(B2),e.registerSeriesModel(i2),e.registerLayout({seriesType:"line",plan:d$(),reset:function(e){var t=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,n){var r=SL(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),i=r.length,o=t.getCalculationInfo("stackResultDimension");QQ(t,r[0])&&(r[0]=o),QQ(t,r[1])&&(r[1]=o);var a=t.getStore(),s=t.getDimensionIndex(r[0]),l=t.getDimensionIndex(r[1]);return i&&{progress:function(e,t){for(var r=b0((e.end-e.start)*i),o=[],u=[],c=e.start,d=0;c<e.end;c++){var p=void 0;if(1===i){var h=a.get(s,c);p=n.dataToPoint(h,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),p=n.dataToPoint(o,null,u);r[d++]=p[0],r[d++]=p[1]}t.setLayout("points",r)}}}}}),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,F2("line"))}var H2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.getInitialData=function(e,t){return t0(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),o=r.dataToPoint(i);if(n)wL(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,p=0;p<r.length;p++){var h=r[p].coord,f=p===r.length-1?r[p-1].tickValue+d:r[p].tickValue;if(f===s){c=h;break}if(f<s)u=h;else if(null!=u&&f>s){c=(h+u)/2;break}1===p&&(d=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(u$);u$.registerClass(H2);var j2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.getInitialData=function(){return t0(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Mq(H2.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(H2),W2=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),G2=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return jP(t,e),t.prototype.getDefaultShape=function(){return new W2},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,p=c?u-l<d:l-u<d;p||(l=u-(c?d:-d));var h=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(e.moveTo(h*i+n,f*i+r),e.arc(h*s+n,f*s+r,a,-Math.PI+l,l,!c)):e.moveTo(h*o+n,f*o+r),e.arc(n,r,o,l,u,!c),e.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(gj);function U2(e,t,n){return t*Math.sin(e)*(n?-1:1)}function q2(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Y2(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;IL(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:SL(r,(function(e){return fF(e,i)}))}}var X2=Math.max,K2=Math.min;var $2=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return jP(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");"cartesian2d"!==i&&"polar"!==i||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){$U(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);d&&this._enableRealtimeSort(d,a,n);var p=e.get("clip",!0)||d,h=function(e,t){var n=e.getArea&&e.getArea();if(T2(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],b=this._backgroundEls,x=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(e){var t=i3[l.type](a,e),n=function(e,t,n){var r="polar"===e.type?EG:Ij;return new r({shape:d3(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",m):n.setShape("cornerRadius",m),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=i3[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&r3[l.type](r)){var s=!1;p&&(s=Z2[l.type](h,r));var v=J2[l.type](e,a,t,r,i,c,u.model,!1,f);d&&(v.forceLabelAnimation=!0),a3(v,a,t,n,r,e,i,"polar"===l.type),x?v.attr({shape:r}):d?Q2(d,c,v,r,t,i,!1,!1):mU(v,{shape:r},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),S=i3[l.type](a,t,r);if(g){var C=void 0;0===b.length?C=w(n):((C=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",m):C.setShape("cornerRadius",m),y[t]=C);var T=i3[l.type](a,t);vU(C,{shape:d3(i,T,l)},c,t)}var M=s.getItemGraphicEl(n);if(a.hasValue(t)&&r3[l.type](S)){var k=!1;if(p&&(k=Z2[l.type](h,S))&&o.remove(M),M?wU(M):M=J2[l.type](e,a,t,S,i,c,u.model,!!M,f),d&&(M.forceLabelAnimation=!0),_){var A=M.getTextContent();if(A){var I=uq(A);null!=I.prevValue&&(I.prevValue=I.value)}}else a3(M,a,t,r,S,e,i,"polar"===l.type);x?M.attr({shape:S}):d?Q2(d,c,M,S,t,i,!0,_):vU(M,{shape:S},e,t,null),a.setItemGraphicEl(t,M),M.ignore=k,o.add(M)}else o.remove(M)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&_U(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new kF);S.removeAll();for(var C=0;C<y.length;++C)S.add(y[C]);o.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),u3(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),u3(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&function(e,t,n,r,i){return e?"polar"===e.type?C2(e,t,n):"cartesian2d"===e.type?S2(e,t,n,r,i):null:null}(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:SL(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){_U(t,e,qj(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(x$),Z2={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=X2(t.x,e.x),s=K2(t.x+t.width,i),l=X2(t.y,e.y),u=K2(t.y+t.height,o),c=s<a,d=u<l;return t.x=c&&a>i?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=K2(t.r,e.r),o=X2(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},J2={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new Ij({shape:gL({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?G2:EG,c=new u({shape:r,z2:1});c.name="item";var d,p,h=o3(i);if(c.calculateTextPosition=(d=h,p=({isRoundCap:u===G2}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return gF(e,t,n);var i=d(r),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,h=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=p?Math.abs(u-c)/2:0,y=Math.cos,b=Math.sin,x=s+u*y(f),_=l+u*b(f),w="left",S="top";switch(i){case"startArc":x=s+(c-o)*y(v),_=l+(c-o)*b(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*y(v),_=l+(c+o)*b(v),w="center",S="bottom";break;case"startAngle":x=s+h*y(f)+U2(f,o+m,!1),_=l+h*b(f)+q2(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":x=s+h*y(f)+U2(f,-o+m,!1),_=l+h*b(f)+q2(f,-o+m,!1),w="left",S="middle";break;case"middle":x=s+h*y(v),_=l+h*b(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*y(v),_=l+(u+o)*b(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*y(v),_=l+(u-o)*b(v),w="center",S="top";break;case"endAngle":x=s+h*y(g)+U2(g,o+m,!0),_=l+h*b(g)+q2(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":x=s+h*y(g)+U2(g,-o+m,!0),_=l+h*b(g)+q2(g,-o+m,!0),w="right",S="middle";break;default:return gF(e,t,n)}return(e=e||{}).x=x,e.y=_,e.align=w,e.verticalAlign=S,e}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?vU:mU)(c,{shape:g},o)}return c}};function Q2(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?vU:mU)(n,{shape:l},t,i,null),(a?vU:mU)(n,{shape:u},t?e.baseAxis.model:null,i)}function e3(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var t3=["x","y","width","height"],n3=["cx","cy","r","startAngle","endAngle"],r3={cartesian2d:function(e){return!e3(e,t3)},polar:function(e){return!e3(e,n3)}},i3={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function o3(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function a3(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape;gL(u,Y2(r.getModel("itemStyle"),u,!0)),e.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=tq(r);eq(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:o2(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=e.getTextContent();if(s&&f){var g=r.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,n,r){if(PL(r))e.setTextConfig({rotation:r});else if(IL(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}(e,"outside"===g?p:g,o3(a),r.get(["label","rotate"]))}!function(e,t,n,r){if(e){var i=uq(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}(f,h,o.getRawValue(n),(function(e){return a2(t,e)}));var v=r.getModel(["emphasis"]);NW(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),VW(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",wL(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var s3=function(){return function(){}}(),l3=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return jP(t,e),t.prototype.getDefaultShape=function(){return new s3},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],e.rect(o[0],o[1],a[0],a[1])},t}(gj);function u3(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new l3({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new l3({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),qj(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",c3),d.on("mousemove",c3)),n&&n.push(d)}var c3=C$((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c<d;c++){var p=3*c;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);qj(this).dataIndex=t>=0?t:null}),30,!1);function d3(e,t,n){if(T2(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var o=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function p3(e){e.registerChartView($2),e.registerSeriesModel(j2),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,AL(T0,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:d$(),reset:function(e){if(M0(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=QQ(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=function(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,i),h=k0(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,l=h&&b0(3*i),u=h&&s&&b0(3*i),y=h&&b0(i),b=n.master.getRect(),x=d?b.width:b.height,_=t.getStore(),w=0;null!=(r=e.next());){var S=_.get(c?g:o,r),C=_.get(a,r),T=p,M=void 0;c&&(M=+S-_.get(o,r));var k=void 0,A=void 0,I=void 0,E=void 0;if(d){var O=n.dataToPoint([S,C]);c&&(T=n.dataToPoint([M,C])[0]),k=T,A=O[1]+m,I=O[0]-T,E=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([C,S]),c&&(T=n.dataToPoint([C,M])[1]),k=O[0]+m,A=T,I=v,E=O[1]-T,Math.abs(E)<f&&(E=(E<=0?-1:1)*f);h?(l[w]=k,l[w+1]=A,l[w+2]=d?I:E,u&&(u[w]=d?b.x:k,u[w+1]=d?A:b.y,u[w+2]=x),y[r]=r):t.setItemLayout(r,{x:k,y:A,width:I,height:E}),w+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,F2("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var h3=2*Math.PI,f3=Math.PI/180;function g3(e,t){return TY(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v3(e,t){var n=g3(e,t),r=e.get("center"),i=e.get("radius");IL(i)||(i=[0,i]);var o,a,s=VF(n.width,t.getWidth()),l=VF(n.height,t.getHeight()),u=Math.min(s,l),c=VF(i[0],u/2),d=VF(i[1],u/2),p=e.coordinateSystem;if(p){var h=p.dataToPoint(r);o=h[0]||0,a=h[1]||0}else IL(r)||(r=[r,r]),o=VF(r[0],s)+n.x,a=VF(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function m3(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=g3(e,n),o=v3(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*f3,d=e.get("endAngle"),p=e.get("padAngle")*f3;d="auto"===d?c-h3:-d*f3;var h=e.get("minAngle")*f3+p,f=0;t.each(r,(function(e){!isNaN(e)&&f++}));var g=t.getSum(r),v=Math.PI/(g||f)*2,m=e.get("clockwise"),y=e.get("roseType"),b=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var _=m?1:-1,w=[c,d],S=_*p/2;YH(w,!m),c=w[0],d=w[1];var C=y3(e);C.startAngle=c,C.endAngle=d,C.clockwise=m;var T=Math.abs(d-c),M=T,k=0,A=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:y?NaN:l});else{(r="area"!==y?0===g&&b?v:e*v:T/f)<h?(r=h,M-=h):k+=e;var i=A+_*r,o=0,c=0;p>r?c=o=A+_*r/2:(o=A+S,c=i-S),t.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:y?FF(e,x,[u,l]):l}),A=i}})),M<h3&&f)if(M<=.001){var I=T/f;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=I;var i=0,o=0;I<p?o=i=c+_*(n+.5)*I:(i=c+_*n*I+S,o=c+_*(n+1)*I-S),r.startAngle=i,r.endAngle=o}}))}else v=M/k,A=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===h?h:e*v,o=0,a=0;i<p?a=o=A+_*i/2:(o=A+S,a=A+_*i-S),r.startAngle=o,r.endAngle=a,A+=_*i}}))}))}var y3=SV();var b3=Math.PI/180;function x3(e,t,n,r,i,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var p=e[d].label.x-u;e[d].linePoints[1][0]+=p,e[d].label.x=u}n2(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,p=r+l.len,f=Math.abs(d)<p?Math.sqrt(c*c/(1-d*d/p/p)):p;u.rB=f,u.maxY=c}u.list.push(l)}h(o),h(a)}(e)}function h(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,d=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*d),h=t+(p+l.len2)*i,f=h-l.label.x;_3(l,l.targetTextWidth-f*i,!0),l.label.x=h}}}function _3(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(t<c||n){var d=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var h=t-l,f=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-d)/2}}}function w3(e){return"center"===e.position}function S3(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*b3,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,d=s.y,p=s.height;function h(e){e.ignore=!0}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(e),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),b=v.get("alignTo"),x=VF(v.get("edgeDistance"),u),_=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=VF(S,u);var C=w.get("length2");if(C=VF(C,u),Math.abs(d.endAngle-d.startAngle)<a)return wL(p.states,h),p.ignore=!0,void(f&&(wL(f.states,h),f.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(p)){var T,M,k,A,I=(d.startAngle+d.endAngle)/2,E=Math.cos(I),O=Math.sin(I);t=d.cx,n=d.cy;var D="inside"===m||"inner"===m;if("center"===m)T=d.cx,M=d.cy,A="center";else{var P=(D?(d.r+d.r0)/2*E:d.r*E)+t,L=(D?(d.r+d.r0)/2*O:d.r*O)+n;if(T=P+3*E,M=L+3*O,!D){var R=P+E*(S+l-d.r),B=L+O*(S+l-d.r),N=R+(E<0?-1:1)*C;T="edge"===b?E<0?c+x:c+u-x:N+(E<0?-y:y),M=B,k=[[P,L],[R,B],[N,B]]}A=D?"center":"edge"===b?E>0?"right":"left":E>0?"left":"right"}var z=Math.PI,F=0,V=v.get("rotate");if(PL(V))F=V*(z/180);else if("center"===m)F=0;else if("radial"===V||!0===V){F=E<0?-I+z:-I}else if("tangential"===V&&"outside"!==m&&"outer"!==m){var H=Math.atan2(E,O);H<0&&(H=2*z+H),O>0&&(H=z+H),F=H-z}if(o=!!F,p.x=T,p.y=M,p.rotation=F,p.setStyle({verticalAlign:"middle"}),D){p.setStyle({align:A});var j=p.states.select;j&&(j.x+=p.x,j.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var G=(p.style.margin||0)+2.1;W.y-=G/2,W.height+=G,i.push({label:p,labelLine:f,position:m,len:S,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new pB(E,O),linePoints:k,textAlign:A,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:_,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:D})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var h=e[p].label;w3(e[p])||(h.x<t?(c=Math.min(c,h.x),l.push(e[p])):(d=Math.max(d,h.x),u.push(e[p])))}for(p=0;p<e.length;p++)if(!w3(v=e[p])&&v.linePoints){if(null!=v.labelStyleWidth)continue;h=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?h.x<t?f[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?h.x<t?c-a-v.bleedMargin:a+i-d-v.bleedMargin:h.x<t?h.x-a-v.bleedMargin:a+i-h.x-v.bleedMargin,v.targetTextWidth=g,_3(v,g)}for(x3(u,t,n,r,1,0,o,0,s,d),x3(l,t,n,r,-1,0,o,0,s,c),p=0;p<e.length;p++){var v;if(!w3(v=e[p])&&v.linePoints){h=v.label,f=v.linePoints;var m="edge"===v.labelAlignTo,y=h.style.padding,b=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:b,_=v.rect.width+x,w=f[1][0]-f[2][0];m?h.x<t?f[2][0]=a+v.edgeDistance+_+v.labelDistance:f[2][0]=a+i-v.edgeDistance-_-v.labelDistance:(h.x<t?f[2][0]=h.x+v.labelDistance:f[2][0]=h.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=h.y}}}(i,t,n,l,u,p,c,d);for(var f=0;f<i.length;f++){var g=i[f],v=g.label,m=g.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),y&&(wL(v.states,h),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(m){var x=g.linePoints;y||!x?(wL(m.states,h),m.ignore=!0):(J1(x,g.minTurnAngle),Q1(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new pB(x[0][0],x[0][1])})}}}var C3=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new Uj;return i.setTextContent(o),i.updateData(t,n,r,!0),i}return jP(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=gL(Y2(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(mU(i,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,mU(i,{shape:{r:l.r}},o,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),mU(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(i.shape.endAngle=l.startAngle,vU(i,{shape:{endAngle:l.endAngle}},o,t))}else wU(i),vU(i,{shape:u},o,t);i.useStyle(e.getItemVisual(t,"style")),VW(i,a);var d=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),h=Math.cos(d)*p,f=Math.sin(d)*p,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,e,t),i.ensureState("emphasis").shape=gL({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Y2(s.getModel("itemStyle"),l)),gL(i.ensureState("select"),{x:h,y:f,shape:Y2(a.getModel(["select","itemStyle"]),l)}),gL(i.ensureState("blur"),{shape:Y2(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&gL(v.ensureState("select"),{x:h,y:f}),gL(m.ensureState("select"),{x:h,y:f}),NW(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),o=i.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;eq(r,tq(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new VG,this.setTextGuideLine(d)),function(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<tW.length;l++){var u=tW[l],c=t[u],d="normal"===u;if(c){var p=c.get("show");if((d?s:jL(i.states[u]&&i.states[u].ignore,s))||!jL(p,a)){var h=d?r:r&&r.states[u];h&&(h.ignore=!0),r&&e2(r,!0,u,c);continue}r||(r=new VG,e.setTextGuideLine(r),d||!s&&a||e2(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),e2(r,!1,u,c)}}if(r){vL(r.style,n),r.style.fill=null;var f=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=t2}}else r&&e.removeTextGuideLine()}(this,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<eW.length;r++){var i=eW[r];n[i]=e.getModel([i,t])}return n}(i),{stroke:s,opacity:WL(o.get(["lineStyle","opacity"]),l,1)})}},t}(EG),T3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return jP(t,e),t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=y3(e),d=new EG({shape:gL(v3(e,n),c)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}o.diff(a).add((function(e){var t=new C3(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){_U(a.getItemGraphicEl(t),e,t)})).execute(),S3(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="pie",t}(x$);function M3(e,t,n){t=IL(t)&&{coordDimensions:t}||gL({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=YQ(r,t).dimensions,o=new qQ(i,e);return o.initData(r,n),o}var k3=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),A3=SV(),I3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new k3(kL(this.getData,this),kL(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return M3(this,{coordDimensions:["value"],encodeDefaulter:AL(XY,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=A3(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),i=r.seats=qF(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=i[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){pV(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(u$);function E3(e){e.registerChartView(T3),e.registerSeriesModel(I3),pZ("pie",e.registerAction),e.registerLayout(AL(m3,"pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(PL(r)&&!isNaN(r)&&r<0)}))}}}("pie"))}var O3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(DY),D3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",kV).models[0]},t.type="cartesian2dAxis",t}(DY);xL(D3,o1);var P3={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)"]}}},L3=hL({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},P3),R3=hL({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}}},P3);const B3={category:L3,value:R3,time:hL({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R3),log:vL({logBase:10},R3)};var N3={value:1,category:1,time:1,log:1};function z3(e,t,n,r){wL(N3,(function(i,o){var a=hL(hL({},B3[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return jP(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=kY(this),r=n?IY(e):{};hL(e,t.getTheme().get(o+"Axis")),hL(e,this.getDefaultOption()),e.type=F3(e),n&&AY(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=i0.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",F3)}function F3(e){return e.type||(e.data?"category":"value")}var V3=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return SL(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),TL(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),H3=["x","y"];function j3(e){return"interval"===e.type||"time"===e.type}var W3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=H3,t}return jP(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(j3(e)&&j3(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,p=this._transform=[l,0,0,u,c,d];this._invTransform=cB([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new wB(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return MR(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return MR(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new wB(r,i,o,a)},t}(V3),G3=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return jP(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(W1);function U3(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:d[0],"x"===u?f[p[l]]:d[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[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),HL(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function q3(e){return"cartesian2d"===e.get("coordinateSystem")}function Y3(e){var t={xAxisModel:null,yAxisModel:null};return wL(t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,kV).models[0];t[r]=o})),t}var X3=Math.log;var K3=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=H3,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=ML(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;a0(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(J0(l,s),a0(l)&&(t=a))}i.length&&(t||J0((t=i.pop()).scale,t.model),wL(i,(function(e){!function(e,t,n){var r=v0.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Z0(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var p=X3(e.base);u=[X3(u[0])/p,X3(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var h=r.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var f=r.getInterval.call(e),g=u[0],v=u[1];if(c&&d)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=l0(f),v=u[0]+f*a;else if(d)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=l0(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=l0(f));var m=f*a;(g=HF((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=HF(m)):v>0&&u[1]<=0&&(v=0,g=-HF(m))}var y=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+f*y,v+f*b),r.setInterval.call(e,f),(y||b)&&r.setNiceExtent.call(e,g+f,v-f)}(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};wL(n.x,(function(e){Z3(n,"y",e,i)})),wL(n.y,(function(e){Z3(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=TY(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){wL(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)}))}s(),i&&(wL(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof f0?n.count():(r=n.getTicks()).length;var a,s,l,u,c,d,p,h=e.getLabelModel(),f=e1(e),g=1;i>40&&(g=Math.ceil(i/40));for(var v=0;v<i;v+=g){var m=f(r?r[v]:{value:o[0]+v},v),y=(s=h.getTextRect(m),l=void 0,u=void 0,c=void 0,d=void 0,p=void 0,l=(h.get("rotate")||0)*Math.PI/180,u=s.width,c=s.height,d=u*Math.abs(Math.cos(l))+Math.abs(c*Math.sin(l)),p=u*Math.abs(Math.sin(l))+Math.abs(c*Math.cos(l)),new wB(s.x,s.y,d,p));a?a.union(y):a=y}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),wL(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}LL(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",kV).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",kV).models[0],a=e.gridModel,s=this._coordsList;if(r)yL(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if($3(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new G3(t,Q0(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,wL(a.x,(function(t,n){wL(a.y,(function(i,o){var a="x"+n+"y"+o,s=new W3(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){wL(i1(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}wL(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(q3(e)){var r=Y3(e),i=r.xAxisModel,o=r.yAxisModel;if(!$3(i,t)||!$3(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return wL(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);yL(t,i)<0&&t.push(i),yL(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(q3(e)){var t=Y3(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=H3,e}();function $3(e,t){return e.getCoordSysModel()===t}function Z3(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)J3(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&J3(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function J3(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var Q3=Math.PI,e4=function(){function e(e,t){this.group=new kF,this.opt=t,this.axisModel=e,vL(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new kF({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!t4[e]},e.prototype.add=function(e){t4[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=XF(t-e);return KF(o)?(i=n>0?"top":"bottom",r="center"):KF(o-Q3)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<Q3?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),t4={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(MR(s,s,a),MR(l,l,a));var c=gL({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new GG({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});BU(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);OL(p)&&(p=[p,p]),(OL(h)||PL(h))&&(h=[h,h]);var f=AZ(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],v=h[1];wL([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.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(t,r){if("none"!==p[r]&&null!=p[r]){var i=MZ(p[r],-g/2,-v/2,g,v,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=o4(i.getTicksCoords(),t.transform,l,vL(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),o=function(e,t,n,r){var i=n.axis,o=HL(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(HL(r.labelRotate,a.get("rotate"))||0)*Q3/180,c=e4.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],h=e4.isLabelSilent(n),f=n.get("triggerEvent");return wL(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,m=o.rawLabel,y=a;if(d&&d[g]){var b=d[g];LL(b)&&b.textStyle&&(y=new Sq(b.textStyle,a,n.ecModel))}var x=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(g),w=y.getShallow("align",!0)||c.textAlign,S=jL(y.getShallow("alignMinLabel",!0),w),C=jL(y.getShallow("alignMaxLabel",!0),w),T=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,M=jL(y.getShallow("verticalAlignMinLabel",!0),T),k=jL(y.getShallow("verticalAlignMaxLabel",!0),T),A=new Uj({x:_,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(o.level||0),style:nq(y,{text:v,align:0===u?S:u===l.length-1?C:w,verticalAlign:0===u?M:u===l.length-1?k:T,fill:EL(x)?x("category"===i.type?m:"value"===i.type?g+"":g,u):x})});if(A.anid="label_"+g,f){var I=e4.makeAxisEventDataBase(n);I.targetType="axisLabel",I.value=m,I.tickIndex=u,"category"===i.type&&(I.dataIndex=g),qj(A).eventData=I}t.add(A),A.updateTransform(),p.push(A),e.add(A),A.decomposeTransform()})),p}(n,r,t,e);if(function(e,t,n){if(r1(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],p=n[n.length-2];!1===r?(n4(o),n4(u)):r4(o,a)&&(r?(n4(a),n4(c)):(n4(o),n4(u)));!1===i?(n4(s),n4(d)):r4(l,s)&&(i?(n4(l),n4(p)):(n4(s),n4(d)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=vL(s.getLineStyle(),vL(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=o4(a[c],t.transform,l,u,"minorticks_"+c),p=0;p<d.length;p++)e.add(d[p])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new uU(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(SL(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));!function(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new wB(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,p=!1,h=0;h<t.length;h++){var f=t[h];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new uU(f.localRect,f.transform)),d||(d=new uU(s,l)),d.intersect(f.obb)){p=!0;break}}}p?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(a)}},axisName:function(e,t,n,r){var i=HL(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,h=["start"===s?d[0]-p*c:"end"===s?d[1]+p*c:(d[0]+d[1])/2,i4(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*Q3/180),i4(s)?o=e4.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,r){var i,o,a=XF(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;KF(a-Q3/2)?(o=l?"bottom":"top",i="center"):KF(a-1.5*Q3)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*Q3&&a>Q3/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,f||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,y=HL(e.nameTruncateMaxWidth,v.maxWidth,a),b=new Uj({x:h[0],y:h[1],rotation:o.rotation,silent:e4.isLabelSilent(t),style:nq(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(XU({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var x=e4.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,qj(b).eventData=x}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function n4(e){e&&(e.ignore=!0)}function r4(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=iB([]);return lB(i,i,-e.rotation),n.applyTransform(aB([],i,e.getLocalTransform())),r.applyTransform(aB([],i,t.getLocalTransform())),n.intersect(r)}}function i4(e){return"middle"===e||"center"===e}function o4(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(MR(a,a,t),MR(s,s,t));var c=new GG({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});BU(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function a4(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];wL(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=c4(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(wL(n.getAxes(),AL(h,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&wL(p.baseAxes,AL(h,!d||"cross",c)),d&&wL(p.otherAxes,AL(h,"cross",!1))}}function h(r,s,c){var d=c.model.getModel("axisPointer",i),p=d.get("show");if(p&&("auto"!==p||r||u4(d))){null==s&&(s=d.get("triggerTooltip")),d=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};wL(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=pL(a.get(e))})),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&vL(l,c.textStyle)}}return e.model.getModel("axisPointer",new Sq(s,n,r))}(c,u,i,t,r,s):d;var h=d.get("snap"),f=d.get("triggerEmphasis"),g=c4(c.model),v=s||h||"category"===c.type,m=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:v,snap:h,useHandle:u4(d),seriesModels:[],linkGroup:null};l[g]=m,e.seriesInvolved=e.seriesInvolved||v;var y=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(s4(o[r+"AxisId"],n.id)||s4(o[r+"AxisIndex"],n.componentIndex)||s4(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=m,b.mapper=o[y].mapper,m.linkGroup=b}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&wL(e.coordSysAxesInfo[c4(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function s4(e,t){return"all"===e||IL(e)&&yL(e,t)>=0||e===t}function l4(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[c4(e)]}function u4(e){return!!e.get(["handle","show"])}function c4(e){return e.type+"||"+e.id}var d4={},p4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=l4(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=u4(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=l4(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){d4[e]=t},t.getAxisPointerClass=function(e){return e&&d4[e]},t.type="axis",t}(c$),h4=SV();var f4=["axisLine","axisTickLabel","axisName"],g4=["splitArea","splitLine","minorSplitLine"],v4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return jP(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new kF,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=U3(a,t),l=new e4(t,gL({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(a0(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));wL(f4,l.add,l),this._axisGroup.add(l.getGroup()),wL(g4,(function(e){t.get([e,"show"])&&m4[e](this,this._axisGroup,t,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||jU(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){h4(this).splitAreaColors=null},t.type="cartesianAxis",t}(p4),m4={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=IL(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o}),p=[],h=[],f=a.getLineStyle(),g=0;g<d.length;g++){var v=i.toGlobalCoord(d[g].coord);u?(p[0]=v,p[1]=l.y,h[0]=v,h[1]=l.y+l.height):(p[0]=l.x,p[1]=v,h[0]=l.x+l.width,h[1]=v);var m=c++%s.length,y=d[g].tickValue,b=new GG({anid:null!=y?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:h[0],y2:h[1]},style:vL({stroke:s[m]},f),silent:!0});BU(b.shape,f.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=o.getLineStyle(),p=0;p<l.length;p++)for(var h=0;h<l[p].length;h++){var f=i.toGlobalCoord(l[p][h].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new GG({anid:"minor_line_"+l[p][h].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});BU(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=h4(e).splitAreaColors,p=eR(),h=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){h=(g+(c-1)*f)%c;break}}var v=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=IL(s)?s:[s],f=1;f<u.length;f++){var y=i.toGlobalCoord(u[f].coord),b=void 0,x=void 0,_=void 0,w=void 0;i.isHorizontal()?(b=v,x=l.y,_=y-b,w=l.height,v=b+_):(b=l.x,x=v,_=l.width,v=x+(w=y-x));var S=u[f-1].tickValue;null!=S&&p.set(S,h),t.add(new Ij({anid:null!=S?"area_"+S:null,shape:{x:b,y:x,width:_,height:w},style:vL({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}h4(e).splitAreaColors=p}}}(e,t,n,r)}},y4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="xAxis",t}(v4),b4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=y4.type,t}return jP(t,e),t.type="yAxis",t}(v4),x4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return jP(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Ij({shape:e.coordinateSystem.getRect(),style:vL({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(c$),_4={offset:0};function w4(e){e.registerComponentView(x4),e.registerComponentModel(O3),e.registerCoordinateSystem("cartesian2d",K3),z3(e,"x",D3,_4),z3(e,"y",D3,_4),e.registerComponentView(y4),e.registerComponentView(b4),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}var S4="\0_ec_interaction_mutex";function C4(e,t){return!!T4(e)[t]}function T4(e){return e[S4]||(e[S4]={})}dQ({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},oR);var M4=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=kL(n._mousedownHandler,n),i=kL(n._mousemoveHandler,n),o=kL(n._mouseupHandler,n),a=kL(n._mousewheelHandler,n),s=kL(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=vL(pL(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return jP(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!QR(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&I4("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!C4(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&JR(e.event),A4(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){QR(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=I4("zoomOnMouseWheel",e,this._opt),n=I4("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;k4(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);k4(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){C4(this._zr,"globalPan")||k4(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(DR);function k4(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(JR(r.event),A4(e,t,n,r,i))}function A4(e,t,n,r,i){i.isAvailableBehavior=kL(I4,null,n,r),e.trigger(t,i)}function I4(e,t,n){var r=n[e];return!e||r&&(!OL(r)||t.event[r+"Key"])}function E4(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function O4(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var D4,P4={axisPointer:1,tooltip:1,brush:1};function L4(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!P4.hasOwnProperty(r.mainType)&&i&&i.model!==n}function R4(e){OL(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var B4={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"},N4=ML(B4),z4={"alignment-baseline":"textBaseline","stop-color":"stopColor"},F4=ML(z4),V4=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=R4(e);this._defsUsePending=[];var r=new kF;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),q4(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=$4(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=t5(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var p=r;(r=new kF).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Ij({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=D4[s];if(u&&iR(D4,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var p=H4[s];if(p&&iR(H4,s)){var h=p.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new mj({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});G4(t,n),q4(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(D4={g:function(e,t){var n=new kF;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Ij;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new dG;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new GG;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new fG;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=U4(r));var i=new NG({shape:{points:n||[]},silent:!0});return G4(t,i),q4(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=U4(r));var i=new VG({shape:{points:n||[]},silent:!0});return G4(t,i),q4(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new _j;return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new kF;return G4(t,a),q4(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new kF;return G4(t,a),q4(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=lG(e.getAttribute("d")||"");return G4(t,n),q4(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),H4={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new nU(t,n,r,i);return j4(e,o),W4(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new rU(t,n,r);return j4(e,i),W4(e,i),i}};function j4(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function W4(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};e5(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function G4(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),vL(t.__inheritedStyle,e.__inheritedStyle))}function U4(e){for(var t=$4(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function q4(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Z4,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=$4(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":sB(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":uB(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":lB(i,i,-parseFloat(l[0])*J4,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":aB(i,[1,0,Math.tan(parseFloat(l[0])*J4),1,0,0],i);break;case"skewY":aB(i,[1,Math.tan(parseFloat(l[0])*J4),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}t.setLocalTransform(i)}}(e,t),e5(e,a,s),r||function(e,t,n){for(var r=0;r<N4.length;r++){var i=N4[r];null!=(o=e.getAttribute(i))&&(t[B4[i]]=o)}for(r=0;r<F4.length;r++){var o;i=F4[r];null!=(o=e.getAttribute(i))&&(n[z4[i]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=X4(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=X4(o,"stroke",a.stroke,n)),wL(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),wL(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=SL($4(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Y4=/^url\(\s*#(.*?)\)/;function X4(e,t,n,r){var i=n&&n.match(Y4);if(!i)return"none"===n&&(n=null),n;var o=YL(i[1]);r.push([e,t,o])}var K4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $4(e){return e.match(K4)||[]}var Z4=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,J4=Math.PI/180;var Q4=/([^\s:;]+)\s*:\s*([^:;]+)/g;function e5(e,t,n){var r,i=e.getAttribute("style");if(i)for(Q4.lastIndex=0;null!=(r=Q4.exec(i));){var o=r[1],a=iR(B4,o)?B4[o]:null;a&&(t[a]=r[2]);var s=iR(z4,o)?z4[o]:null;s&&(n[s]=r[2])}}function t5(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}var n5=eR(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),r5=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=eR(),this._freedGraphics=[],this._mapName=e,this._parsedXML=R4(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=eR();return wL(e,(function(e){if(null==e.namedFrom){var r=new _1(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{qL(null!=(n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new V4).parse(r,i))||{}).root))}catch(m){throw new Error("Invalid svg format\n"+m.message)}var o=new kF;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,d=void 0,p=void 0,h=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(d=0,h=s):l&&(d=l.y,h=l.height),null==c||null==d){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==d&&(d=f.y,h=f.height)}u=this._boundingRect=new wB(c,d,p,h)}if(l){var g=t5(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new Ij({shape:u.plain()}));var v=[];return wL(t.named,(function(e){var t;null!=n5.get(e.svgNodeTagLower)&&(v.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:o,boundingRect:u,named:v}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var i5=[126,25],o5="南海诸岛",a5=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s5=0;s5<a5.length;s5++)for(var l5=0;l5<a5[s5].length;l5++)a5[s5][l5][0]/=10.5,a5[s5][l5][1]/=-14,a5[s5][l5][0]+=i5[0],a5[s5][l5][1]+=i5[1];var u5={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var c5=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var d5=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=eR(),this._mapName=e,this._specialAreas=n,this._geoJSON=OL(r=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:p5(r)})}var i=eR(),o=[];return wL(n.regions,(function(t){var n=t.name;e&&iR(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new wB(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?C1(r,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===o5)return;t.push(new x1(o5,SL(a5,(function(e){return{type:"polygon",exterior:e}})),i5))}}(n,t),wL(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=u5[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:c5[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function p5(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var h5=eR();const f5={registerMap:function(e,t,n){if(t.svg){var r=new r5(e,t.svg);h5.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new d5(e,i,n);h5.set(e,r)}},getGeoResource:function(e){return h5.get(e)},getMapForUser:function(e){var t=h5.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=h5.get(e);if(r)return r.load(t,n)}};var g5=["rect","circle","line","ellipse","polygon","polyline","path"],v5=eR(g5),m5=eR(g5.concat(["g"])),y5=eR(g5.concat(["g"])),b5=SV();function x5(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function _5(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var w5=function(){function e(e){var t=new kF;this.uid=Tq("ec_map_draw"),this._controller=new M4(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new kF),t.add(this._svgGroup=new kF)}return e.prototype.draw=function(e,t,n,r,i){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,p=c.roam;!l.childAt(0)||i?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):vU(u,p,e);var h=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=eR(),n=eR(),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var i=u(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:c(e)}}}r.removeAll(),wL(e.geo.regions,(function(i){var c=i.name,p=t.get(c),h=n.get(c)||{},f=h.dataIdx,g=h.regionModel;p||(p=t.set(c,new kF),r.add(p),f=a?a.indexOfName(c):null,g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];wL(i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=A5(t,l)),wL(t,(function(e){v.push(new NG(d(e)))}))}else{var n=e.points;l&&(n=A5(n,l,!0)),wL(n,(function(e){m.push(new VG(d(e)))}))}}));var y=u(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new eU({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});p.add(r),S5(e,r,f,g),C5(e,r,c,g,o,f,y),n&&(_5(r),wL(r.states,_5))}}b(v),b(m,!0)})),t.each((function(t,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;T5(e,t,r,s,o,a),M5(e,t,r,s,o),k5(e,t,r,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=eR(),i=!1;wL(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=v5.get(s)&&l instanceof gH&&S5(e,l,u,c),l instanceof gH&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=y5.get(s)&&C5(e,l,n,c,o,u,null),T5(e,l,n,c,o,u),M5(e,l,n,c,o),null!=m5.get(s)&&("self"===k5(e,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){_W(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=f5.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=f5.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,E4(o,e.dx,e.dy),n.dispatchAction(gL(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,O4(o,e.scale,e.originX,e.originY),n.dispatchAction(gL(s(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!L4(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=b5(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function S5(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=x5(i),u=x5(o),c=x5(s),d=x5(a),p=e.data;if(p){var h=p.getItemVisual(n,"style"),f=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),f&&(l.decal=rJ(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,_W(t)}function C5(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var d=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;eq(t,tq(r),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var f=t.getTextContent();if(f&&(b5(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function T5(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):qj(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function M5(e,t,n,r,i){e.data||XU({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function k5(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return NW(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&function(e,t,n){var r=qj(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),a}function A5(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),wL(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var I5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(o=this._mapDraw)&&i.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new w5(n);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new dG({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:nW+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),d=u.indexOfName(c),p=r.getItemModel(n),h=p.getModel("label"),f=u.getItemGraphicEl(d);eq(l,tq(p),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){bW(l,e)}}i.add(l)}}}))},t.type="map",t}(x$),E5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return jP(t,e),t.prototype.getInitialData=function(e){for(var t=M3(this,{coordDimensions:["value"],encodeDefaulter:AL(XY,this)}),n=eR(),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}return wL(f5.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return HK("section",{header:s.join(", "),noHeader:!s.length,blocks:[HK("nameValue",{name:o,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=MZ(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.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"},t}(u$);function O5(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),wL(t,(function(e,t){for(var n,r,i,o=(n=SL(e,(function(e){return e.getData()})),r=e[0].get("mapValueCalculation"),i={},wL(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var o="ec-"+n[0].getName(t),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]}))}function D5(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};wL(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var P5=MR,L5=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new iF,n._rawTransformable=new iF,n.name=t,n}return jP(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new wB(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new wB(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new wB(e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[VF(e[0],t.getWidth()),VF(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=MR([],r,e),n=MR([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),oB(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],cB(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new iF;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?P5(n,e,r):uR(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?P5([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=R5(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=R5(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(iF);function R5(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var B5={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},N5=["lng","lat"],z5=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=N5,i.type="geo",i._nameCoordMap=eR(),i.map=n;var o=r.projection,a=f5.load(n,r.nameMap,r.nameProperty),s=f5.getGeoResource(n);i.resourceType=s?s.type:null;var l,u=i.regions=a.regions,c=B5[s.type];if(i._regionsMap=a.regionsMap,i.regions=a.regions,i.projection=o,o)for(var d=0;d<u.length;d++){var p=u[d].getBoundingRect(o);(l=l||p.clone()).union(p)}else l=a.boundingRect;return i.setBoundingRect(l.x,l.y,l.width,l.height),i.aspectScale=o?1:jL(r.aspectScale,c.aspectScale),i._invertLongitute=!o&&c.invertLongitute,i}return jP(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new wB(e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(OL(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=F5(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=F5(t);return r===this?r.pointToData(n):null},t}(L5);function F5(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",kV).models[0]||{}).coordinateSystem:null}xL(z5,L5);const V5=z5;function H5(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,d=o.project([e+s*c,t+l*c]);kR(r,r,d),AR(i,i,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else;}var d,p,h,f=this.getBoundingRect(),g=e.get("layoutCenter"),v=e.get("layoutSize"),m=t.getWidth(),y=t.getHeight(),b=f.width/f.height*this.aspectScale,x=!1;if(g&&v&&(d=[VF(g[0],m),VF(g[1],y)],p=VF(v,Math.min(m,y)),isNaN(d[0])||isNaN(d[1])||isNaN(p)||(x=!0)),x)h={},b>1?(h.width=p,h.height=p/b):(h.height=p,h.width=p*b),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var _=e.getBoxLayoutParams();_.aspect=b,h=TY(_,{width:m,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var j5=function(){function e(){this.dimensions=N5}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new V5(o+i,o,gL({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=H5,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),wL(i,(function(e,i){var o=SL(e,(function(e){return e.get("nameMap")})),a=new V5(i,i,gL({nameMap:fL(o)},r(e[0])));a.zoomLimit=HL.apply(null,SL(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=H5,a.resize(e[0],t),wL(e,(function(e){e.coordinateSystem=a,function(e,t){wL(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=eR(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return wL(f5.load(t,n,r).regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}(),W5=new j5,G5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.init=function(e,t,n){var r=f5.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),pV(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=W5.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=CL(t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new Sq(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),eR()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Sq(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return EL(r)?(i.status=t,r(i)):OL(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(DY);function U5(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function q5(e,t,n,r){var i=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(U5(e,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(U5(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Y5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return jP(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new w5(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;fZ(e.target,(function(e){return null!=(t=qj(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=qj(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(c$);function X5(e,t,n){f5.registerMap(e,t,n)}function K5(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),wL(n.coordinateSystem.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var o=[];wL(r,(function(e,t){r[t]&&o.push(t)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",W5),e.registerComponentModel(G5),e.registerComponentView(Y5),e.registerImpl("registerMap",X5),e.registerImpl("getMap",(function(e){return f5.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var o=q5(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===r&&wL(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function $5(e){c1(K5),e.registerChartView(I5),e.registerSeriesModel(E5),e.registerLayout(D5),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O5),pZ("map",e.registerAction)}var Z5=SV();function J5(e,t){if(Z5(r=this).mainData===r){var n=gL({},Z5(this).datas);n[this.dataType]=t,r6(t,n,e)}else i6(t,this.dataType,Z5(this).mainData,e);var r;return t}function Q5(e,t){return e.struct&&e.struct.update(),t}function e6(e,t){return wL(Z5(t).datas,(function(n,r){n!==t&&i6(n.cloneShallow(),r,t,e)})),t}function t6(e){var t=Z5(this).mainData;return null==e||null==t?t:Z5(t).datas[e]}function n6(){var e=Z5(this).mainData;return null==e?[{data:e}]:SL(ML(Z5(e).datas),(function(t){return{type:t,data:Z5(e).datas[t]}}))}function r6(e,t,n){Z5(e).datas={},wL(t,(function(t,r){i6(t,r,e,n)}))}function i6(e,t,n,r){Z5(n).datas[t]=e,Z5(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=t6,e.getLinkedDataAll=n6}var o6=wL,a6=LL,s6=-1,l6=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=pL(t);this.type=r,this.mappingMethod=n,this._normalizeData=y6[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(u6(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,wL(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(o6(t,(function(e,t){n[e]=t})),!IL(r)){var i=[];LL(r)?o6(r,(function(e,t){var r=n[t];i[null!=r?r:s6]=e})):i[s6]=r,r=m6(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}(i):u6(i,!0):(qL("linear"!==n||i.dataExtent),u6(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return kL(this._normalizeData,this)},e.listVisualTypes=function(){return ML(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){LL(e)?wL(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=IL(t)?[]:LL(t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&o6(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(IL(e))e=e.slice();else{if(!a6(e))return[];var t=[];o6(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||OL(s)&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(b6(c[1],e,u[1]))return o}else if(u[1]===1/0){if(b6(c[0],u[0],e))return o}else if(b6(c[0],u[0],e)&&b6(c[1],e,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:p6("color"),getColorMapper:function(){var e=this.option;return kL("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),h6.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=zN(t,e.parsedVisual,r),i?r:GN(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return GN(zN(e,this.option.parsedVisual),"rgba")},category:h6,piecewise:function(e,t){var n=v6.call(this,t);return null==n&&(n=GN(zN(e,this.option.parsedVisual),"rgba")),n},fixed:f6}},colorHue:c6((function(e,t){return jN(e,t)})),colorSaturation:c6((function(e,t){return jN(e,null,t)})),colorLightness:c6((function(e,t){return jN(e,null,null,t)})),colorAlpha:c6((function(e,t){return WN(e,t)})),decal:{applyVisual:p6("decal"),_normalizedToVisual:{linear:null,category:h6,piecewise:null,fixed:null}},opacity:{applyVisual:p6("opacity"),_normalizedToVisual:g6([0,1])},liftZ:{applyVisual:p6("liftZ"),_normalizedToVisual:{linear:f6,category:f6,piecewise:f6,fixed:f6}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:d6,category:h6,piecewise:function(e,t){var n=v6.call(this,t);return null==n&&(n=d6.call(this,e)),n},fixed:f6}},symbolSize:{applyVisual:p6("symbolSize"),_normalizedToVisual:g6([0,1])}},e}();function u6(e,t){var n=e.visual,r=[];LL(n)?o6(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),m6(e,r)}function c6(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:g6([0,1])}}function d6(e){var t=this.option.visual;return t[Math.round(FF(e,[0,1],[0,t.length-1],!0))]||{}}function p6(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function h6(e){var t=this.option.visual;return t[this.option.loop&&e!==s6?e%t.length:e]}function f6(){return this.option.visual[0]}function g6(e){return{linear:function(t){return FF(t,e,this.option.visual,!0)},category:h6,piecewise:function(t,n){var r=v6.call(this,n);return null==r&&(r=FF(t,e,this.option.visual,!0)),r},fixed:f6}}function v6(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[l6.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function m6(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=SL(t,(function(e){var t=RN(e);return t||[0,0,0,1]}))),t}var y6={linear:function(e){return FF(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=l6.findPieceIndex(e,t,!0);if(null!=n)return FF(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?s6:t},fixed:oR};function b6(e,t,n){return e?t<=n:t<n}function x6(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){PL(n)&&(n=i[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}))}function _6(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){OL(t)&&(t=i["ec-"+t]);var o=n.getItemVisual(t,"style");gL(r.ensureUniqueItemVisual(e,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)r.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}}))}))}function w6(e){return e instanceof Array||(e=[e,e]),e}function S6(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=w6(e.get("edgeSymbol")),i=w6(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),o=w6(r.getShallow("symbol",!0)),a=w6(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(gL(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var C6="--\x3e",T6=function(e){return e.get("autoCurveness")||null},M6=function(e,t){var n=T6(e),r=20,i=[];if(PL(n))r=n;else if(IL(n))return void(e.__curvenessList=n);t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},k6=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(C6)},A6=function(e){var t=e.split(C6);return[t[0],t[2],t[1]].join(C6)},I6=function(e,t){var n=k6(e.node1,e.node2,t);return t.__edgeMap[n]},E6=function(e,t){return O6(k6(e.node1,e.node2,t),t)+O6(k6(e.node2,e.node1,t),t)},O6=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function D6(e,t,n,r){var i=T6(t),o=IL(i);if(!i)return null;var a=I6(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=E6(e,t);M6(t,u),e.lineStyle=e.lineStyle||{};var c=k6(e.node1,e.node2,t),d=t.__curvenessList,p=o||u%2?0:1;if(a.isForward)return d[p+s];var h=A6(c),f=O6(h,t),g=d[s+f+p];return r?o?i&&0===i[0]?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:d[s+f+p]}function P6(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),L6(n,e)}}function L6(e,t){e.eachEdge((function(e,n){var r=WL(e.getModel().get(["lineStyle","curveness"]),-D6(e,t,n,!0),0),i=cR(e.node1.getLayout()),o=cR(e.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),e.setLayout(a)}))}function R6(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];wL(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}L6(r.graph,e)}else t&&"none"!==t||P6(e)}))}function B6(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function N6(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var z6=Math.PI,F6=[];function V6(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:u}),d){if(n){var p=i.pointToData(r),h=p[0],f=p[1],g=[h-l,f-u];xR(g,g),bR(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),j6(n,e.get(["circular","rotateLabel"]),l,u)}H6[t](e,s,a,c,l,u,d),s.eachEdge((function(t,n){var r,i=WL(t.getModel().get(["lineStyle","curveness"]),D6(t,e,n),0),o=cR(t.node1.getLayout()),a=cR(t.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),t.setLayout([o,a,r])}))}}}var H6={value:function(e,t,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,r,i,o,a){var s=0;F6.length=a;var l=B6(e);t.eachNode((function(e){var t=N6(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=z6/2),F6[e.dataIndex]=n,s+=2*n}));var u=(2*z6-s)/a/2,c=0;t.eachNode((function(e){var t=u+F6[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=t}))}};function j6(e,t,n,r){var i=e.getGraphicEl();if(i){var o=e.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var d=a.ensureState("emphasis");gL(d.textConfig||(d.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function W6(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&V6(e,"symbolSize")}))}var G6=hR;function U6(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,o=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&V6(e,"value"):P6(e);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),p=IL(c)?c:[c,c],h=IL(d)?d:[d,d];h=[h[1],h[0]];var f=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=FF(e,l,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=FF(t,u,h);isNaN(o)&&(o=(h[0]+h[1])/2);var a=i.getModel(),s=WL(i.getModel().get(["lineStyle","curveness"]),-D6(i,e,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),m=function(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var d=r[c];d.p||(d.p=lR(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=cR(d.p),d.edges=null}var p,h,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){p=e},afterStep:function(e){h=e},step:function(e){p&&p(r,i);for(var t=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;fR(t,(v=a.n2).p,s.p);var c=gR(t)-a.d,d=v.w/(s.w+v.w);isNaN(d)&&(d=0),xR(t,t),!s.fixed&&G6(s.p,s.p,t,d*c*g),!v.fixed&&G6(v.p,v.p,t,-(1-d)*c*g)}}for(o=0;o<n;o++)(b=r[o]).fixed||(fR(t,l,b.p),G6(b.p,b.p,t,u*g));for(o=0;o<n;o++){s=r[o];for(var f=o+1;f<n;f++){var v;fR(t,(v=r[f]).p,s.p),0===(c=gR(t))&&(dR(t,Math.random()-.5,Math.random()-.5),c=1);var m=(s.rep+v.rep)/c/c;!s.fixed&&G6(s.pp,s.pp,t,m),!v.fixed&&G6(v.pp,v.pp,t,-m)}}var y=[];for(o=0;o<n;o++){var b;(b=r[o]).fixed||(fR(y,b.p,b.pp),G6(b.p,b.p,y,g),uR(b.pp,b.p))}var x=(g*=.992)<.01;h&&h(r,i,x),e&&e(x)}}}(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&uR(e[n].p,r.getNodeByIndex(n).getLayout())})),m.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[i.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=r.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],uR(p[0],c),uR(p[1],d),+l.curveness&&(p[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(p)}})),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null}))}function q6(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),o=[],a=[];!function(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=vH(i,r[0]),o=mH(o,r[0]),a=vH(a,r[1]),s=mH(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}(i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(e,t,n){return TY(gL(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],d=l.width,p=l.height,h=e.coordinateSystem=new L5;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(o[0],o[1],u,c),h.setViewRect(l.x,l.y,d,p),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),n.push(h)}})),n}var Y6=GG.prototype,X6=KG.prototype,K6=function(){return function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();function $6(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}jP(t,e)}(K6);var Z6=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return jP(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new K6},t.prototype.buildPath=function(e,t){$6(t)?Y6.buildPath.call(this,e,t):X6.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return $6(this.shape)?Y6.pointAt.call(this,e):X6.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=$6(t)?[t.x2-t.x1,t.y2-t.y1]:X6.tangentAt.call(this,e);return xR(n,n)},t}(gj),J6=["fromSymbol","toSymbol"];function Q6(e){return"_"+e+"Type"}function e8(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=kZ(i);return r+l+AZ(a||0,l)+(o||"")+(s||"")}function t8(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=kZ(i),u=AZ(a||0,l),c=MZ(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function n8(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var r8=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return jP(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new Z6({name:"line",subPixelOptimize:!0});return n8(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,mU(i,{shape:{percent:1}},r,t),this.add(i),wL(J6,(function(n){var r=t8(n,e,t);this.add(r),this[Q6(n)]=e8(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};n8(a.shape,o),vU(i,a,r,t),wL(J6,(function(n){var r=e8(n,e,t),i=Q6(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=t8(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(t),h=p.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=h.get("disabled"),c=h.get("focus"),d=h.get("blurScope"),l=tq(p)}var f=e.getItemVisual(t,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,wL(J6,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<eW.length;n++){var r=eW[n],o=i.getState(r);if(o){var a=o.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=r.getRawValue(t);eq(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?HF(v):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var b=y.get("distance");IL(b)||(b=[b,b]),m.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),NW(this,c,d,u)},t.prototype.highlight=function(){CW(this)},t.prototype.downplay=function(){TW(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");n8(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=fR([],u,l);if(xR(c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,p=void 0,h=r.__labelDistance,f=h[0]*i,g=h[1]*i,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],b=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=m[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var _=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(_=Math.PI+_),r.rotation=_}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,p="top";break;default:w=0,p="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*x+l[0],r.y=l[1]+w,d=m[0]<0?"right":"left",r.originX=-f*x,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,d="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*x+u[0],r.y=u[1]+w,d=m[0]>=0?"right":"left",r.originX=f*x,r.originY=-w}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(kF),i8=function(){function e(e){this.group=new kF,this._LineCtor=e||r8}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=o8(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=o8(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(s8(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){$U(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(s8(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var o=e.getItemGraphicEl(n);s8(t.getItemLayout(r))?(o?o.updateData(t,r,i):o=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},e}();function o8(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:tq(t)}}function a8(e){return isNaN(e[0])||isNaN(e[1])}function s8(e){return e&&!a8(e[0])&&!a8(e[1])}var l8=[],u8=[],c8=[],d8=pN,p8=CR,h8=Math.abs;function f8(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){l8[0]=d8(i[0],o[0],a[0],c),l8[1]=d8(i[1],o[1],a[1],c),(h=h8(p8(l8,t)-l))<s&&(s=h,r=c)}for(var d=0;d<32;d++){var p=r+u;u8[0]=d8(i[0],o[0],a[0],r),u8[1]=d8(i[1],o[1],a[1],r),c8[0]=d8(i[0],o[0],a[0],p),c8[1]=d8(i[1],o[1],a[1],p);var h=p8(u8,t)-l;if(h8(h)<.01)break;var f=p8(c8,t)-l;u/=2,h<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function g8(e,t){var n=[],r=gN,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[cR(l[0]),cR(l[1])],l[2]&&l.__original.push(cR(l[2])));var d=l.__original;if(null!=l[2]){if(uR(i[0],d[0]),uR(i[1],d[2]),uR(i[2],d[1]),u&&"none"!==u){var p=N6(e.node1),h=f8(i,d[0],p*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){p=N6(e.node2),h=f8(i,d[1],p*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}uR(l[0],i[0]),uR(l[1],i[2]),uR(l[2],i[1])}else{if(uR(o[0],d[0]),uR(o[1],d[1]),fR(a,o[1],o[0]),xR(a,a),u&&"none"!==u){p=N6(e.node1);hR(o[0],o[0],a,p*t)}if(c&&"none"!==c){p=N6(e.node2);hR(o[1],o[1],a,-p*t)}uR(l[0],o[0]),uR(l[1],o[1])}}))}function v8(e){return"view"===e.type}var m8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.init=function(e,t){var n=new p2,r=new i8,i=this.group;this._controller=new M4(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(v8(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):vU(s,l,e)}g8(e.getGraph(),B6(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var h=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(h){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,p),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),V6(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(n,[i.x,i.y]),L6(e.getGraph(),e),r.updateLayout(e)}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(qj(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(qj(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(e){j6(e,f,g,v)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!L4(t,n,e)})),v8(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){E4(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){O4(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),g8(e.getGraph(),B6(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=B6(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){g8(e.getGraph(),B6(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(x$);function y8(e){return"_EC_"+e}var b8=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[y8(e)]){var r=new x8(e,t);return r.hostGraph=this,this.nodes.push(r),n[y8(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[y8(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(PL(e)&&(e=this.nodes[e]),PL(t)&&(t=this.nodes[t]),e instanceof x8||(e=r[y8(e)]),t instanceof x8||(t=r[y8(t)]),e&&t){var o=e.id+"-"+t.id,a=new _8(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof x8&&(e=e.id),t instanceof x8&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof x8||(t=this._nodesMap[y8(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),x8=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=eR(),t=eR(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var i=[r.node1],o=[r.node2],a=0;a<i.length;){var s=i[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,t.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),_8=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=eR(),t=eR();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(i=0;i<r.length;){var s=r[i];i++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function w8(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}function S8(e,t,n,r,i){for(var o=new b8(r),a=0;a<e.length;a++)o.addNode(HL(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],d=c.source,p=c.target;o.addEdge(d,p,u)&&(l.push(c),s.push(HL(bV(c.id,null),d+" > "+p)),u++)}var h,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=t0(e,n);else{var g=pX.get(f),v=g&&g.dimensions||[];yL(v,"value")<0&&v.concat(["value"]);var m=YQ(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;(h=new qQ(m,n)).initData(e)}var y,b,x,_=new qQ(["value"],n);return _.initData(l,s),i&&i(h,_),b=(y={mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:_},datasAttr:{node:"data",edge:"edgeData"}}).mainData,(x=y.datas)||(x={main:b},y.datasAttr={main:"data"}),y.datas=y.mainData=null,r6(b,x,y),wL(x,(function(e){wL(b.TRANSFERABLE_METHODS,(function(t){e.wrapMethod(t,AL(J5,y))}))})),b.wrapMethod("cloneShallow",AL(e6,y)),wL(b.CHANGABLE_METHODS,(function(e){b.wrapMethod(e,AL(Q5,y))})),qL(x[b.dataType]===b),o.update(),o}xL(x8,w8("hostGraph","data")),xL(_8,w8("hostGraph","edgeData"));var C8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return jP(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new k3(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),pV(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&r){T6(n=this)&&(n.__curvenessList=[],n.__edgeMap={},M6(n));var a=S8(i,r,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=Sq.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=r,e}))}));return wL(a.edges,(function(e){!function(e,t,n,r){if(T6(n)){var i=k6(e,t,n),o=n.__edgeMap,a=o[A6(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),HK("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return JK({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=SL(this.option.categories||[],(function(e){return null!=e.value?e:gL({value:0},e)})),t=new qQ(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}}},t}(u$),T8={type:"graphRoam",event:"graphRoam",update:"none"};function M8(e){e.registerChartView(m8),e.registerSeriesModel(C8),e.registerProcessor(x6),e.registerVisual(_6),e.registerVisual(S6),e.registerLayout(R6),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,W6),e.registerLayout(U6),e.registerCoordinateSystem("graphView",{dimensions:L5.dimensions,create:q6}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},oR),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},oR),e.registerAction(T8,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=q5(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function k8(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=I8(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=I8(s,[0,a]),i=o=I8(s,[i,o]),r=0}t[0]=I8(t[0],n),t[1]=I8(t[1],n);var l=A8(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=I8(t[r],d),u=A8(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=A8(t,r),null!=o&&u.span>o&&(t[1-r]=t[r]+u.sign*o),t}function A8(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function I8(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var E8=!0,O8=Math.min,D8=Math.max,P8=Math.pow,L8=1e4,R8=6,B8=6,N8="globalPan",z8={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},F8={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},V8={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},H8=0,j8=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new kF,n._uid="brushController_"+H8++,wL(g7,(function(e,t){this._handlers[t]=kL(e,this)}),n),n}return jP(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){T4(e)[t]=n}(t,N8,this._uid),wL(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=hL(pL(V8),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=T4(e);r[t]===n&&(r[t]=null)}(e,N8,this._uid),wL(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};wL(e,(function(e){t[e.panelId]=pL(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=SL(e,(function(e){return hL(pL(V8),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new wQ(n,e,(function(e,t){return a(e.__brushOption,t)}),a).add(s).update(s).remove((function(e){n[e]!==o&&i.group.remove(n[e])})).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,a){var s=e[t];if(null!=a&&n[a]===o)r[t]=n[a];else{var l=r[t]=null!=a?(n[a].__brushOption=s,n[a]):G8(i,W8(i,s));Y8(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),Z8(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(DR);function W8(e,t){var n=m7[t.brushType].createCover(e,t);return n.__brushOption=t,q8(n,t),e.group.add(n),n}function G8(e,t){var n=X8(t);return n.endCreating&&(n.endCreating(e,t),q8(t,t.__brushOption)),t}function U8(e,t){var n=t.__brushOption;X8(t).updateCoverShape(e,t,n.range,n)}function q8(e,t){var n=t.z;null==n&&(n=L8),e.traverse((function(e){e.z=n,e.z2=n}))}function Y8(e,t){X8(t).updateCommon(e,t),U8(e,t)}function X8(e){return m7[e.__brushOption.brushType]}function K8(e,t,n){var r,i=e._panels;if(!i)return E8;var o=e._transform;return wL(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function $8(e,t){var n=e._panels;if(!n)return E8;var r=t.__brushOption.panelId;return null!=r?n[r]:E8}function Z8(e){var t=e._covers,n=t.length;return wL(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function J8(e,t){var n=SL(e._covers,(function(e){var t=e.__brushOption,n=pL(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Q8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function e7(e,t,n,r){var i=new kF;return i.add(new Ij({name:"main",style:i7(n),silent:!0,draggable:!0,cursor:"move",drift:AL(s7,e,t,i,["n","s","w","e"]),ondragend:AL(J8,t,{isEnd:!0})})),wL(r,(function(n){i.add(new Ij({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:AL(s7,e,t,i,n),ondragend:AL(J8,t,{isEnd:!0})}))})),i}function t7(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=D8(i,B8),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],p=c-o+i/2,h=d-o+i/2,f=c-a,g=d-s,v=f+i,m=g+i;r7(e,t,"main",a,s,f,g),r.transformable&&(r7(e,t,"w",l,u,o,m),r7(e,t,"e",p,u,o,m),r7(e,t,"n",l,u,v,o),r7(e,t,"s",l,h,v,o),r7(e,t,"nw",l,u,o,o),r7(e,t,"ne",p,u,o,o),r7(e,t,"sw",l,h,o,o),r7(e,t,"se",p,h,o,o))}function n7(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(i7(n)),i.attr({silent:!r,cursor:r?"move":"default"}),wL([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?a7(e,n[0]):function(e,t){var n=[a7(e,t[0]),a7(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?F8[o]+"-resize":null})}))}function r7(e,t,n,r,i,o,a){var s,l,u,c,d,p=t.childOfName(n);p&&p.setShape((s=c7(e,t,[[r,i],[r+o,i+a]]),l=O8(s[0][0],s[1][0]),u=O8(s[0][1],s[1][1]),c=D8(s[0][0],s[1][0]),d=D8(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:d-u}))}function i7(e){return vL({strokeNoScale:!0},e.brushStyle)}function o7(e,t,n,r){var i=[O8(e,n),O8(t,r)],o=[D8(e,n),D8(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function a7(e,t){var n=VU({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return zU(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function s7(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=u7(t,i,o);wL(r,(function(e){var t=z8[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(o7(s[0][0],s[1][0],s[0][1],s[1][1])),Y8(t,n),J8(t,{isEnd:!1})}function l7(e,t,n,r){var i=t.__brushOption.range,o=u7(e,n,r);wL(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),Y8(e,t),J8(e,{isEnd:!1})}function u7(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function c7(e,t,n){var r=$8(e,t);return r&&r!==E8?r.clipPath(n,e._transform):pL(n)}function d7(e){var t=e.event;t.preventDefault&&t.preventDefault()}function p7(e,t,n){return e.childOfName("main").contain(t,n)}function h7(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return P8(i*i+o*o,.5)>R8}(e)||o){if(a&&!o){"single"===s.brushMode&&Z8(e);var l=pL(s);l.brushType=f7(l.brushType,a),l.panelId=a===E8?null:a.panelId,o=e._creatingCover=W8(e,l),e._covers.push(o)}if(o){var u=m7[f7(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(c7(e,o,e._track)),r&&(G8(e,o),u.updateCommon(e,o)),U8(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&K8(e,t,n)&&Z8(e)&&(i={isEnd:r,removeOnClick:!0});return i}function f7(e,t){return"auto"===e?t.defaultBrushType:e}var g7={mousedown:function(e){if(this._dragging)v7(this,e);else if(!e.target||!e.target.draggable){d7(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=K8(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=K8(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===E8||s.panelId===o.panelId)&&m7[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){d7(e);var i=h7(this,e,r,!1);i&&J8(this,i)}},mouseup:function(e){v7(this,e)}};function v7(e,t){if(e._dragging){d7(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=h7(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&J8(e,o)}}var m7={lineX:y7(0),lineY:y7(1),rect:{createCover:function(e,t){function n(e){return e}return e7({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Q8(e);return o7(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){t7(e,t,n,r)},updateCommon:n7,contain:p7},polygon:{createCover:function(e,t){var n=new kF;return n.add(new VG({name:"main",style:i7(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new NG({name:"main",draggable:!0,drift:AL(l7,e,t),ondragend:AL(J8,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:c7(e,t,n)})},updateCommon:n7,contain:p7}};function y7(e){return{createCover:function(t,n){return e7({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Q8(t);return[O8(n[0][e],n[1][e]),D8(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=$8(t,n);if(a!==E8&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),t7(t,n,l,i)},updateCommon:n7,contain:p7}}function b7(e){return e=w7(e),function(t){return WU(t,e)}}function x7(e,t){return e=w7(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function _7(e,t,n){var r=w7(e);return function(e,i){return r.contain(i[0],i[1])&&!L4(e,t,n)}}function w7(e){return wB.create(e)}function S7(e,t){t&&(t.font=t.textFont||t.font,iR(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),iR(t,"textAlign")&&(e.align=t.textAlign),iR(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),iR(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),iR(t,"textWidth")&&(e.width=t.textWidth),iR(t,"textHeight")&&(e.height=t.textHeight),iR(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),iR(t,"textPadding")&&(e.padding=t.textPadding),iR(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),iR(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),iR(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),iR(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),iR(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),iR(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),iR(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}var C7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},T7=ML(C7);CL(oF,(function(e,t){return e[t]=1,e}),{}),oF.join(", ");var M7=["","style","shape","extra"],k7=SV();function A7(e,t,n,r,i){var o=e+"Animation",a=fU(e,r,i)||{},s=k7(t).userDuring;return a.duration>0&&(a.during=s?kL(L7,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),gL(a,n[o]),a}function I7(e,t,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=k7(e),u=t.style;l.userDuring=t.during;var c={},d={};if(function(e,t,n){for(var r=0;r<T7.length;r++){var i=T7[r],o=C7[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<oF.length;r++){var s=oF[r];null!=t[s]&&(n[s]=t[s])}}(0,t,d),B7("shape",t,d),B7("extra",t,d),!o&&s&&(function(e,t,n){for(var r=t.transition,i=O7(r)?oF:dV(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];n[a]=s}}}(e,t,c),R7("shape",e,t,c),R7("extra",e,t,c),function(e,t,n,r){if(!n)return;var i,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!O7(a)){var l=dV(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];i[f]=c}}else if(e.getAnimationStyleProps&&(O7(s)||O7(a)||yL(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=r.style={});var h=ML(n);for(u=0;u<h.length;u++){var f;if(p[f=h[u]]){c=o[f];i[f]=c}}}}}}(e,t,u,c)),d.style=u,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,d,a),function(e,t){iR(t,"silent")&&(e.silent=t.silent),iR(t,"ignore")&&(e.ignore=t.ignore),e instanceof gH&&iR(t,"invisible")&&(e.invisible=t.invisible);e instanceof gj&&iR(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(o){var p={};wL(M7,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),gL(e?p[e]:p,n.enterFrom))}));var h=A7("enter",e,t,n,i);h.duration>0&&e.animateFrom(p,h)}else!function(e,t,n,r,i){if(i){var o=A7("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}(e,t,i||0,n,c);E7(e,t),u?e.dirty():e.markRedraw()}function E7(e,t){for(var n=k7(e).leaveToProps,r=0;r<M7.length;r++){var i=M7[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=k7(e).leaveToProps={}),i&&(n[i]=n[i]||{}),gL(i?n[i]:n,o.leaveTo))}}function O7(e){return"all"===e}var D7={},P7={setTransform:function(e,t){return D7.el[e]=t,this},getTransform:function(e){return D7.el[e]},setShape:function(e,t){var n=D7.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=D7.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=D7.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=D7.el.style;if(t)return t[e]},setExtra:function(e,t){return(D7.el.extra||(D7.el.extra={}))[e]=t,this},getExtra:function(e){var t=D7.el.extra;if(t)return t[e]}};function L7(){var e=this,t=e.el;if(t){var n=k7(t).userDuring,r=e.userDuring;n===r?(D7.el=t,r(P7)):e.el=e.userDuring=null}}function R7(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[e]={}),O7(l))gL(o,a);else for(var u=dV(l),c=0;c<u.length;c++){var d=a[h=u[c]];o[h]=d}else if(O7(s)||yL(s,e)>=0){!o&&(o=r[e]={});var p=ML(a);for(c=0;c<p.length;c++){var h;d=a[h=p[c]];N7(i[h],d)&&(o[h]=d)}}}}}function B7(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=ML(r),a=0;a<o.length;a++){var s=o[a];i[s]=yz(r[s])}}function N7(e,t){return _L(e)?e!==t:null!=e&&isFinite(e)}var z7=SV(),F7=["percent","easing","shape","style","extra"];function V7(e,t,n){if(n.isAnimationEnabled()&&t)if(IL(t))wL(t,(function(t){V7(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){var o=fU("enter",n,0);i=o&&o.duration}if(r&&i){var a=z7(e);wL(M7,(function(n){var o;n&&!e[n]||(r.sort((function(e,t){return e.percent-t.percent})),wL(r,(function(r){var s=e.animators,l=n?r[n]:r;if(l){var u=ML(l);if(n||(u=TL(u,(function(e){return yL(F7,e)<0}))),u.length){o||((o=e.animate(n,t.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;wL(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(t.delay||0).duration(i).start(t.easing))}))}}}var H7=Math.sin,j7=Math.cos,W7=Math.PI,G7=2*Math.PI,U7=180/W7,q7=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),d=JN(c-G7)||(u?l>=G7:-l>=G7),p=l>0?l%G7:l%G7+G7,h=!1;h=!!d||!JN(c)&&p>=W7==!!u;var f=e+n*j7(o),g=t+r*H7(o);this._start&&this._add("M",f,g);var v=Math.round(i*U7);if(d){var m=1/this._p,y=(u?1:-1)*(G7-m);this._add("A",n,r,v,1,+u,e+n*j7(o+y),t+r*H7(o+y)),m>.01&&this._add("A",n,r,v,0,+u,f,g)}else{var b=e+n*j7(a),x=t+r*H7(a);this._add("A",n,r,v,+h,+u,b,x)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Y7="none",X7=Math.round;var K7=["lineCap","miterLimit","lineJoin"],$7=SL(K7,(function(e){return"stroke-"+e.toLowerCase()}));function Z7(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof _j)e("opacity",i);else{if(function(e){var t=e.fill;return null!=t&&t!==Y7}(t)){var o=$N(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*i:o.opacity*i;a<1&&e("fill-opacity",a)}else e("fill",Y7);if(function(e){var t=e.stroke;return null!=t&&t!==Y7}(t)){var s=$N(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if(1!==u&&e("stroke-width",u),d&&e("paint-order",d?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var p=PZ(n),h=p[0],f=p[1];h&&(f=X7(f||0),e("stroke-dasharray",h.join(",")),(f||r)&&e("stroke-dashoffset",f))}for(var g=0;g<K7.length;g++){var v=K7[g];if(t[v]!==pj[v]){var m=t[v]||pj[v];m&&e($7[g],m)}}}}}var J7="http://www.w3.org/2000/svg",Q7="http://www.w3.org/1999/xlink",e9="http://www.w3.org/2000/xmlns/",t9="http://www.w3.org/XML/1998/namespace",n9="ecmeta_";function r9(e){return document.createElementNS(J7,e)}function i9(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function o9(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,i=t.tag,o=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}(i,o)+("style"!==i?jR(a):a||"")+(r?""+n+SL(r,(function(t){return e(t)})).join(n)+n:"")+function(e){return"</"+e+">"}(i)}(e)}function a9(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function s9(e,t,n,r){return i9("svg","root",{width:e,height:t,xmlns:J7,"xmlns:xlink":Q7,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var l9=0;function u9(){return l9++}var c9={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"},d9="transform-origin";function p9(e,t,n){var r=gL({},e.shape);gL(r,t),e.buildPath(n,r);var i=new q7;return i.reset(lz(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function h9(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[d9]=n+"px "+r+"px")}var f9={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function g9(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function v9(e){return OL(e)?c9[e]?"cubic-bezier("+c9[e]+")":yN(e)?e:"":""}function m9(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof eU){var s=function(e,t,n){var r,i,o=e.shape.paths,a={};if(wL(o,(function(e){var t=a9(n.zrId);t.animation=!0,m9(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=ML(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var d in c){var p=c[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var h in s){var f=s[h].animation;f.indexOf(i)>=0&&(r=f)}}})),r){t.d=!1;var s=g9(a,n);return r.replace(i,s)}}(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],d=[c.getMaxTime()/1e3+"s"],p=v9(c.getClip().easing),h=c.getDelay();p?d.push(p):d.push("linear"),h&&d.push(h/1e3+"s"),c.getLoop()&&d.push("infinite");var f=d.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},d="animation-timing-function";function p(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],p=Math.round(c.time/i*100)+"%",h=v9(c.easing),f=c.rawValue;(OL(f)||PL(f))&&(t[p]=t[p]||{},t[p][l]=c.rawValue,h&&(t[p][d]=h))}}}}for(var h=0;h<s;h++){(S=(w=a[h]).targetName)?"shape"===S&&p(w,u):!r&&p(w,l)}for(var f in l){var g={};aF(g,e),gL(g,l[f]);var v=uz(g),m=l[f][d];c[f]=v?{transform:v}:{},h9(c[f],g),m&&(c[f][d]=m)}var y=!0;for(var f in u){c[f]=c[f]||{};var b=!o;m=u[f][d];b&&(o=new XH);var x=o.len();o.reset(),c[f].d=p9(e,u[f],o);var _=o.len();if(!b&&x!==_){y=!1;break}m&&(c[f][d]=m)}if(!y)for(var f in c)delete c[f].d;if(!r)for(h=0;h<s;h++){var w,S;"style"===(S=(w=a[h]).targetName)&&p(w,c,(function(e){return f9[e]}))}var C,T=ML(c),M=!0;for(h=1;h<T.length;h++){var k=T[h-1],A=T[h];if(c[k][d9]!==c[A][d9]){M=!1;break}C=c[k][d9]}if(M&&C){for(var f in c)c[f][d9]&&delete c[f][d9];t[d9]=C}if(TL(T,(function(e){return ML(c[e]).length>0})).length)return g9(c,n)+" "+i[0]+" both"}for(var v in l){(s=g(l[v]))&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+u9();n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}function y9(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+u9(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var b9=Math.round;function x9(e){return e&&OL(e.src)}function _9(e){return e&&EL(e.toDataURL)}function w9(e,t,n,r){Z7((function(i,o){var a="fill"===i||"stroke"===i;a&&az(o)?P9(t,e,i,r):a&&rz(o)?L9(n,e,i,r):e[i]=a&&"none"===o?"transparent":o}),t,n,!1),function(e,t,n){var r=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(r)){var i=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,d=r.shadowOffsetY||0,p=r.shadowBlur,h=$N(r.shadowColor),f=h.opacity,g=h.color,v=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=i9("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[i9("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:v,"flood-color":g,"flood-opacity":f})]),o[i]=a}t.filter=sz(a)}}(n,e,r)}function S9(e,t){var n=LF(t);n&&(n.each((function(t,n){null!=t&&(e[(n9+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[n9+"silent"]="true"))}function C9(e){return JN(e[0]-1)&&JN(e[1])&&JN(e[2])&&JN(e[3]-1)}function T9(e,t,n){if(t&&(!function(e){return JN(e[4])&&JN(e[5])}(t)||!C9(t))){var r=1e4;e.transform=C9(t)?"translate("+b9(t[4]*r)/r+" "+b9(t[5]*r)/r+")":function(e){return"matrix("+QN(e[0])+","+QN(e[1])+","+QN(e[2])+","+QN(e[3])+","+ez(e[4])+","+ez(e[5])+")"}(t)}}function M9(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(b9(r[o][0]*n)/n),i.push(b9(r[o][1]*n)/n);t.points=i.join(" ")}function k9(e){return!e.smooth}var A9,I9,E9={circle:[(A9=["cx","cy","r"],I9=SL(A9,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var r=0;r<I9.length;r++){var i=I9[r],o=e[i[0]];null!=o&&(t[i[1]]=b9(o*n)/n)}})],polyline:[M9,k9],polygon:[M9,k9]};function O9(e,t){var n=e.style,r=e.shape,i=E9[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&lz(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),h=e,f=h.__svgPathBuilder;h.__svgPathVersion===p&&f&&l===h.__svgPathStrokePercent||(f||(f=h.__svgPathBuilder=new q7),f.reset(u),d.rebuildPath(f,l),f.generateStr(),h.__svgPathVersion=p,h.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=e.type;var g=Math.pow(10,u);i[0](r,o,g)}return T9(o,e.transform),w9(o,n,e,t),S9(o,e),t.animation&&m9(e,o,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())y9(u={"pointer-events":"none"},t,n);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=r.fill;if(!i){var o=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&a||o;s&&(i=YN(s))}var l=r.lineWidth;l&&(l/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var u={cursor:"pointer"};i&&(u.fill=i),r.stroke&&(u.stroke=r.stroke),l&&(u["stroke-width"]=l),y9(u,t,n)}}(e,o,t),i9(s,e.id+"",o)}function D9(e,t){return e instanceof gj?O9(e,t):e instanceof _j?function(e,t){var n=e.style,r=n.image;if(r&&!OL(r)&&(x9(r)?r=r.src:_9(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),T9(a,e.transform),w9(a,n,e,t),S9(a,e),t.animation&&m9(e,a,t),i9("image",e.id+"",a)}}(e,t):e instanceof mj?function(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||XP,o=n.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,hF(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":tz[n.textAlign]||n.textAlign};if(zj(n)){var l="",u=n.fontStyle,c=Bj(n.fontSize);if(!parseFloat(c))return;var d=n.fontFamily||YP,p=n.fontWeight;l+="font-size:"+c+";font-family:"+d+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),p&&"normal"!==p&&(l+="font-weight:"+p+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),T9(s,e.transform),w9(s,n,e,t),S9(s,e),t.animation&&m9(e,s,t),i9("text",e.id+"",s,void 0,r)}}(e,t):void 0}function P9(e,t,n,r){var i,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(iz(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!oz(o))return;i="radialGradient",a.cx=jL(o.x,.5),a.cy=jL(o.y,.5),a.r=jL(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=100*ez(s[u].offset)+"%",p=$N(s[u].color),h=p.color,f=p.opacity,g={offset:d};g["stop-color"]=h,f<1&&(g["stop-opacity"]=f),l.push(i9("stop",u+"",g))}var v=o9(i9(i,"",a,l)),m=r.gradientCache,y=m[v];y||(y=r.zrId+"-g"+r.gradientIdx++,m[v]=y,a.id=y,r.defs[y]=i9(i,y,a,l)),t[n]=sz(y)}function L9(e,t,n,r){var i,o=e.style[n],a=e.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,d="repeat-y"===l;if(nz(o)){var p=o.imageWidth,h=o.imageHeight,f=void 0,g=o.image;if(OL(g)?f=g:x9(g)?f=g.src:_9(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";qL(p,v),qL(h,v)}else if(null==p||null==h){var m=function(e,t){if(e){var n=e.elm,r=p||t.width,i=h||t.height;"pattern"===e.tag&&(c?(i=1,r/=a.width):d&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},y=qV(f,null,e,(function(e){u||m(w,e),m(i,e)}));y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}i=i9("image","img",{href:f,width:p,height:h}),s.width=p,s.height=h}else o.svgElement&&(i=pL(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var b,x;u?b=x=1:c?(x=1,b=s.width/a.width):d?(b=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==x||isNaN(x)||(s.height=x);var _=uz(o);_&&(s.patternTransform=_);var w=i9("pattern","",s,[i]),S=o9(w),C=r.patternCache,T=C[S];T||(T=r.zrId+"-p"+r.patternIdx++,C[S]=T,s.id=T,w=r.defs[T]=i9("pattern",T,s,[i])),t[n]=sz(T)}}function R9(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=o,i[o]=i9("clipPath",o,a,[O9(e,n)])}t["clip-path"]=sz(o)}function B9(e){return document.createTextNode(e)}function N9(e,t,n){e.insertBefore(t,n)}function z9(e,t){e.removeChild(t)}function F9(e,t){e.appendChild(t)}function V9(e){return e.parentNode}function H9(e){return e.nextSibling}function j9(e,t){e.textContent=t}var W9=58,G9=120,U9=i9("","");function q9(e){return void 0===e}function Y9(e){return void 0!==e}function X9(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;void 0!==o&&(r[o]=i)}return r}function K9(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function $9(e){var t,n=e.children,r=e.tag;if(Y9(r)){var i=e.elm=r9(r);if(Q9(U9,e),IL(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&F9(i,$9(o))}else Y9(e.text)&&!LL(e.text)&&F9(i,B9(e.text))}else e.elm=B9(e.text);return e.elm}function Z9(e,t,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&N9(e,$9(o),t)}}function J9(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(Y9(i.tag))z9(V9(i.elm),i.elm);else z9(e,i.elm)}}function Q9(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:n.charCodeAt(0)!==G9?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(e9,n,a):n.charCodeAt(3)===W9?r.setAttributeNS(t9,n,a):n.charCodeAt(5)===W9?r.setAttributeNS(Q7,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function eee(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Q9(e,t),q9(t.text)?Y9(r)&&Y9(i)?r!==i&&function(e,t,n){for(var r,i,o,a=0,s=0,l=t.length-1,u=t[0],c=t[l],d=n.length-1,p=n[0],h=n[d];a<=l&&s<=d;)null==u?u=t[++a]:null==c?c=t[--l]:null==p?p=n[++s]:null==h?h=n[--d]:K9(u,p)?(eee(u,p),u=t[++a],p=n[++s]):K9(c,h)?(eee(c,h),c=t[--l],h=n[--d]):K9(u,h)?(eee(u,h),N9(e,u.elm,H9(c.elm)),u=t[++a],h=n[--d]):K9(c,p)?(eee(c,p),N9(e,c.elm,u.elm),c=t[--l],p=n[++s]):(q9(r)&&(r=X9(t,a,l)),q9(i=r[p.key])||(o=t[i]).tag!==p.tag?N9(e,$9(p),u.elm):(eee(o,p),t[i]=void 0,N9(e,o.elm,u.elm)),p=n[++s]);(a<=l||s<=d)&&(a>l?Z9(e,null==n[d+1]?null:n[d+1].elm,n,s,d):J9(e,t,a,l))}(n,r,i):Y9(i)?(Y9(e.text)&&j9(n,""),Z9(n,null,i,0,i.length-1)):Y9(r)?J9(n,r,0,r.length-1):Y9(e.text)&&j9(n,""):e.text!==t.text&&(Y9(r)&&J9(n,r,0,r.length-1),j9(n,t.text)))}var tee=0,nee=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=n=gL({},n),this.root=e,this._id="zr"+tee++,this._oldVNode=s9(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=r9("svg");Q9(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(K9(e,t))eee(e,t);else{var n=e.elm,r=V9(n);$9(t),null!==r&&(N9(r,t.elm,H9(n)),J9(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return D9(e,a9(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=a9(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],a=this._bgVNode=function(e,t,n,r){var i;if(n&&"none"!==n)if(i=i9("rect","bg",{width:e,height:t,x:"0",y:"0"}),az(n))P9({fill:n},i.attrs,"fill",r);else if(rz(n))L9({style:{fill:n},dirty:oR,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var o=$N(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=e.compress?null:this._mainVNode=i9("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var l=SL(ML(i.defs),(function(e){return i.defs[e]}));if(l.length&&o.push(i9("defs","defs",{},l)),e.animation){var u=function(e,t,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=SL(ML(e),(function(t){return t+i+SL(ML(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=SL(ML(t),(function(e){return"@keyframes "+e+i+SL(ML(t[e]),(function(n){return n+i+SL(ML(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=i9("style","stl",{},[],u);o.push(c)}}return s9(n,r,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},o9(this.renderToVNode({animation:jL(e.cssAnimation,!0),emphasis:jL(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:jL(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,p=d&&d.length||0,h=i&&i.length||0,f=void 0;for(f=Math.max(p-1,h-1);f>=0&&(!d||!i||d[f]!==i[f]);f--);for(var g=h-1;g>f;g--)r=a[--s-1];for(var v=f+1;v<p;v++){var m={};R9(d[v],m,t);var y=i9("g","clip-g-"+l++,m,[]);(r?r.children:n).push(y),a[s++]=y,r=y}i=d;var b=D9(c,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=DZ(r,0,n),t=DZ(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(rz(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=cz(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function ree(e){e.registerPainter("svg",nee)}function iee(e,t,n){var r=$P.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var oee=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Xz,"string"==typeof t?i=iee(t,n,r):LL(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(rR(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return jP(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=iee("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new wB(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new wB(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new wB(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var p=e.width*e.height,h=c.width*c.height,f=l.width*l.height-p-h;f<r&&(r=f,i=u)}}if(s&&(o[i].union(e),n=!0),!n)(t=new wB(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(h=e[c]){var d=h.shouldBePainted(n,r,!0,!0);(f=h.__isRendered&&(h.__dirty&HB||!d)?h.getPrevPaintRect():null)&&u(f);var p=d&&(h.__dirty&HB||!h.__isRendered)?h.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,f;d=(h=t[c])&&h.shouldBePainted(n,r,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered)(f=h.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var d=this.domBack;function p(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;if(zL(t))a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||EZ(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o;else FL(t)&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=VZ(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,o),i.restore())}!n||s?p(0,0,o,a):n.length&&wL(n,(function(e){p(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(DR),aee=1e5,see=314159,lee=.01;var uee=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=gL({},n||{}),this.dpr=n.devicePixelRatio||Xz,this._singleCanvas=i,this.root=e,e.style&&(rR(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new oee(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=see,o.push(see),this._domRoot=e}else{this._width=DZ(e,0,n),this._height=DZ(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(aee)),r||(r=n.ctx).save(),QZ(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(aee)},e.prototype.paintOne=function(e,t){JZ(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;qB((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(see).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=function(a){var s,l=i[a],d=l.ctx,h=o&&l.createRepaintRects(e,t,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,h);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,h)}-1===f&&(f=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&d.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var x=p.dpr,_=0;_<h.length;++_){var w=h[_];d.save(),d.beginPath(),d.rect(w.x*x,w.y*x,w.width*x,w.height*x),d.clip(),b(w),d.restore()}else d.save(),b(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,h=0;h<i.length;h++)d(h);return UP.wxa&&wL(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(QZ(a,e,i,o),e.setPrevPaintRect(s))}else QZ(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=see);var n=this._layers[e];return n||((n=new oee("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?hL(n,this._layerConfig[e],!0):this._layerConfig[e-lee]&&hL(n,this._layerConfig[e-lee],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?lee:0),this._needsManuallyCompositing),u.__builtin__||dL("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),s.__dirty&HB&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,wL(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?hL(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+lee)hL(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(yL(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=DZ(i,0,r),t=DZ(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(see).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new oee("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];QZ(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function cee(e){e.registerPainter("canvas",uee)}var dee=SV(),pee=pL,hee=kL,fee=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,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,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=AL(gee,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new kF,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);bee(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=l4(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=dee(e).pointerEl=new ZU[i.type](pee(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=dee(e).labelEl=new Uj(pee(t.label));e.add(i),mee(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=dee(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=dee(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),mee(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=UU(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){JR(e.event)},onmousedown:hee(this._onHandleDragMove,this,0,0),drift:hee(this._onHandleDragMove,this),ondragend:hee(this._onHandleDragEnd,this)}),r.add(i)),bee(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");IL(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,T$(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){gee(this._axisPointerModel,!t&&this._moveAnimation,this._handle,yee(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(yee(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(yee(r)),dee(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),M$(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function gee(e,t,n,r){vee(dee(n).lastProp,r)||(dee(n).lastProp=r,t?vU(n,r,e):(n.stopAnimation(),n.attr(r)))}function vee(e,t){if(LL(e)&&LL(t)){var n=!0;return wL(t,(function(t,r){n=n&&vee(e[r],t)})),!!n}return e===t}function mee(e,t){e[t.get(["label","show"])?"show":"hide"]()}function yee(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bee(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}function xee(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function _ee(e,t,n,r,i){var o=wee(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=pY(a.get("padding")||0),l=a.getFont(),u=cF(o,l),c=i.position,d=u.width+s[1]+s[3],p=u.height+s[0]+s[2],h=i.align;"right"===h&&(c[0]-=d),"center"===h&&(c[0]-=d/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,p,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:nq(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function wee(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:t1(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};wL(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),OL(a)?o=a.replace("{value}",o):EL(a)&&(o=a(s))}return o}function See(e,t,n){var r=[1,0,0,1,0,0];return lB(r,r,n.rotation),sB(r,r,n.position),FU([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Cee(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Tee(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var Mee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=kee(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=xee(r),d=Aee[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}!function(e,t,n,r,i,o){var a=e4.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),_ee(t,r,i,o,{position:See(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,U3(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=U3(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=See(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=kee(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(fee);function kee(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Aee={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:Cee([t,n[0]],[t,n[1]],Iee(e))}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=Iee(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function Iee(e){return"x"===e.dim?0:1}var Eee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="axisPointer",t.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}},t}(DY),Oee=SV(),Dee=wL;function Pee(e,t,n){if(!UP.node){var r=t.getZr();Oee(r).records||(Oee(r).records={}),function(e,t){if(Oee(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);Dee(Oee(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}Oee(e).initialized=!0,n("click",AL(Ree,"click")),n("mousemove",AL(Ree,"mousemove")),n("globalout",Lee)}(r,t),(Oee(r).records[e]||(Oee(r).records[e]={})).handler=n}}function Lee(e,t,n){e.handler("leave",null,n)}function Ree(e,t,n,r){t.handler(e,n,r)}function Bee(e,t){if(!UP.node){var n=t.getZr();(Oee(n).records||{})[e]&&(Oee(n).records[e]=null)}}var Nee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Pee("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){Bee("axisPointer",t)},t.prototype.dispose=function(e,t){Bee("axisPointer",t)},t.type="axisPointer",t}(c$);function zee(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=wV(o,e);if(null==a||a<0||IL(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,p="x"===c||"radius"===c?1:0,h=o.mapDimension(d),f=[];f[p]=o.get(h,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(SL(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Fee=SV();function Vee(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||kL(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Uee(i)&&(i=zee({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Uee(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||Uee(i),p={},h={},f={list:[],map:{}},g={showPointer:AL(jee,h),showTooltip:AL(Wee,f)};wL(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);wL(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&Hee(e,a,g,!1,p)}}))}));var v={};return wL(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&wL(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,Gee(t),Gee(e)))),v[e.key]=o}}))})),wL(v,(function(e,t){Hee(c[t],e,g,!0,p)})),function(e,t,n){var r=n.axesInfo=[];wL(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(h,c,p),function(e,t,n,r){if(Uee(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(f,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=Fee(r)[i]||{},a=Fee(r)[i]={};wL(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&wL(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];wL(o,(function(e,t){!a[t]&&l.push(e)})),wL(a,(function(e,t){!o[t]&&s.push(e)})),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),p}}function Hee(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return wL(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,f=Math.abs(h);f<=a&&((f<a||h>=0&&s<0)&&(a=f,s=h,i=u,o.length=0),wL(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&gL(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function jee(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Wee(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=c4(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Gee(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Uee(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function qee(e){p4.registerAxisPointerClass("CartesianAxisPointer",Mee),e.registerComponentModel(Eee),e.registerComponentView(Nee),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!IL(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=a4(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Vee)}function Yee(e){c1(w4),c1(qee)}var Xee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(t),u=r.get("type");if(u&&"none"!==u){var c=xee(r),d=Kee[u](o,a,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=function(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];lB(p,p,s),sB(p,p,[r.cx,r.cy]),l=FU([a,-i],p);var h=t.getModel("axisLabel").get("rotate")||0,f=e4.innerTextLayout(s,h*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=r.coordToPoint([g+i,a]);var v=r.cx,m=r.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}}(t,n,0,a,r.get(["label","margin"]));_ee(e,n,r,i,p)},t}(fee);var Kee={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:Cee(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Tee(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:Tee(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},$ee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(DY),Zee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",kV).models[0]},t.type="polarAxis",t}(DY);xL(Zee,o1);var Jee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="angleAxis",t}(Zee),Qee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="radiusAxis",t}(Zee),ete=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return jP(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(W1);ete.prototype.dataToRadius=W1.prototype.dataToCoord,ete.prototype.radiusToData=W1.prototype.coordToData;var tte=SV(),nte=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return jP(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=cF(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),d=tte(e.model),p=d.lastAutoInterval,h=d.lastTickCount;return null!=p&&null!=h&&Math.abs(p-c)<=1&&Math.abs(h-i)<=1&&p>c?c=p:(d.lastTickCount=i,d.lastAutoInterval=c),c},t}(W1);nte.prototype.dataToAngle=W1.prototype.dataToCoord,nte.prototype.angleToData=W1.prototype.coordToData;var rte=["radius","angle"],ite=function(){function e(e){this.dimensions=rte,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new ete,this._angleAxis=new nte,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return ote(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return ote(t)===this?this.pointToData(n):null},e}();function ote(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const ate=ite;function ste(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();wL(i1(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),wL(i1(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),J0(r.scale,r.model),J0(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function lte(e,t){var n;if(e.type=t.get("type"),e.scale=Q0(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var ute={dimensions:rte,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new ate(r+"");i.update=ste;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");lte(o,s),lte(a,l),function(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=VF(r[0],i),e.cy=VF(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:IL(l)||(l=[0,l]);var u=[VF(l[0],s),VF(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",kV).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},cte=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function dte(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function pte(e){return e.getRadiusAxis().inverse?0:1}function hte(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var fte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return jP(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=SL(n.getViewLabels(),(function(e){e=pL(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));hte(s),hte(o),wL(cte,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||gte[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(p4),gte={axisLine:function(e,t,n,r,i,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),d=pte(n),p=d?0:1,h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[p]?new ZU[h]({shape:{cx:n.cx,cy:n.cy,r:o[d],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new PG({shape:{cx:n.cx,cy:n.cy,r:o[d],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[pte(n)],u=SL(r,(function(e){return new GG({shape:dte(n,[l,l+s],e.coord)})}));e.add(LU(u,{style:vL(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[pte(n)],c=[],d=0;d<i.length;d++)for(var p=0;p<i[d].length;p++)c.push(new GG({shape:dte(n,[u,u+l],i[d][p].coord)}));e.add(LU(c,{style:vL(s.getModel("lineStyle").getLineStyle(),vL(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");wL(a,(function(r,i){var a=l,d=r.tickValue,p=o[pte(n)],h=n.coordToPoint([p+u,r.coord]),f=n.cx,g=n.cy,v=Math.abs(h[0]-f)/p<.3?"center":h[0]>f?"left":"right",m=Math.abs(h[1]-g)/p<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];LL(y)&&y.textStyle&&(a=new Sq(y.textStyle,l,l.ecModel))}var b=new Uj({silent:e4.isLabelSilent(t),style:nq(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:m})});if(e.add(b),c){var x=e4.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,qj(b).eventData=x}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new GG({shape:dte(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)e.add(LU(u[c],{style:vL({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new GG({shape:dte(n,o,i[l][u].coord)}));e.add(LU(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,d=-r[0].coord*c,p=Math.min(o[0],o[1]),h=Math.max(o[0],o[1]),f=t.get("clockwise"),g=1,v=r.length;g<=v;g++){var m=g===v?r[0].coord:r[g].coord,y=l++%s.length;u[y]=u[y]||[],u[y].push(new EG({shape:{cx:n.cx,cy:n.cy,r0:p,r:h,startAngle:d,endAngle:-m*c,clockwise:f},silent:!0})),d=-m*c}for(g=0;g<u.length;g++)e.add(LU(u[g],{style:vL({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},vte=["axisLine","axisTickLabel","axisName"],mte=["splitLine","splitArea","minorSplitLine"],yte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return jP(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new kF;this.group.add(r);var i=e.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),d=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(o,e,u),p=new e4(e,d);wL(vte,p.add,p),r.add(p.getGroup()),jU(n,r,e),wL(mte,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&bte[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(p4),bte={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],f=0;f<o.length;f++){var g=l++%s.length;h[g]=h[g]||[],h[g].push(new ZU[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse}}))}for(f=0;f<h.length;f++)e.add(LU(h[f],{style:vL({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new dG({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));e.add(LU(l,{style:vL({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,d=1;d<o.length;d++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new EG({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[d].coord}for(d=0;d<u.length;d++)e.add(LU(u[d],{style:vL({fill:s[d%s.length]},a.getAreaStyle()),silent:!0}))}}};function xte(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function _te(e,t){return t.dim+e.model.componentIndex}function wte(e,t,n){var r={},i=function(e){var t={};wL(e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=_te(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=xte(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var p=VF(e.get("barWidth"),l),h=VF(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");p&&!c[d].width&&(p=Math.min(u.remainedWidth,p),c[d].width=p,u.remainedWidth-=p),h&&(c[d].maxWidth=h),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return wL(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=VF(e.categoryGap,i),a=VF(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),wL(r,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;wL(r,(function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+a)})),c&&(d-=c.width*a);var p=-d/2;wL(r,(function(e,r){n[t][r]=n[t][r]||{offset:p,width:e.width},p+=e.width*(1+a)}))})),n}(TL(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=_te(n,o),s=xte(e),l=i[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(o),p=e.coordinateSystem.cx,h=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=t.mapDimension(d.dim),m=t.mapDimension(o.dim),y=QQ(t,v),b="radius"!==o.dim||!e.get("roundCap",!0),x=d.model.get("startValue"),_=d.dataToCoord(x||0),w=0,S=t.count();w<S;w++){var C=t.get(v,w),T=t.get(m,w),M=C>=0?"p":"n",k=_;y&&(r[s][T]||(r[s][T]={p:_,n:_}),k=r[s][T][M]);var A=void 0,I=void 0,E=void 0,O=void 0;if("radius"===d.dim){var D=d.dataToCoord(C)-_,P=o.dataToCoord(T);Math.abs(D)<f&&(D=(D<0?-1:1)*f),A=k,I=k+D,O=(E=P-u)-c,y&&(r[s][T][M]=I)}else{var L=d.dataToCoord(C,b)-_,R=o.dataToCoord(T);Math.abs(L)<g&&(L=(L<0?-1:1)*g),I=(A=R+u)+c,E=k,O=k+L,y&&(r[s][T][M]=O)}t.setItemLayout(w,{cx:p,cy:h,r0:A,r:I,startAngle:-E*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:E>=O})}}}))}var Ste={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Cte={splitNumber:5},Tte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="polar",t}(c$);function Mte(e){c1(qee),p4.registerAxisPointerClass("PolarAxisPointer",Xee),e.registerCoordinateSystem("polar",ute),e.registerComponentModel($ee),e.registerComponentView(Tte),z3(e,"angle",Jee,Ste),z3(e,"radius",Qee,Cte),e.registerComponentView(fte),e.registerComponentView(yte),e.registerLayout(AL(wte,"bar"))}function kte(e,t){var n;return wL(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var Ate=["transition","enterFrom","leaveTo"],Ite=Ate.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ete(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Ate:Ite,i=0;i<r.length;i++){var o=r[i];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}var Ote=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return jP(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,o=[];this._flatten(r,o,null);var a=vV(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];wL(a,(function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=gL({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(hL(i,r,!0),AY(i,r,{ignoreSize:!0}),EY(n,i),Ete(n,i),Ete(n,i,"shape"),Ete(n,i,"style"),Ete(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[kte(t,["left","right"]),kte(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))}),this),n.elements=TL(i,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){wL(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(DY),Dte={path:null,compoundPath:null,group:kF,image:_j,text:Uj},Pte=SV(),Lte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.init=function(){this._elMap=eR()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),o=e.get("zlevel");wL(t,(function(t){var a=bV(t.id,null),s=null!=a?n.get(a):null,l=bV(t.parentId,null),u=null!=l?n.get(l):r,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=t.textContent,h=t.textConfig;if(d&&function(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||iR(e,"text")))}(d,c,!!h,!!p)){var f=function(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},iR(a,"text")&&(o.text=a.text),iR(a,"rich")&&(o.rich=a.rich),iR(a,"textFill")&&(o.fill=a.textFill),iR(a,"textStroke")&&(o.stroke=a.textStroke),iR(a,"fontFamily")&&(o.fontFamily=a.fontFamily),iR(a,"fontSize")&&(o.fontSize=a.fontSize),iR(a,"fontStyle")&&(o.fontStyle=a.fontStyle),iR(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=iR(a,"textPosition");r.position=s?a.textPosition:"inside",iR(a,"textPosition")&&(r.position=a.textPosition),iR(a,"textOffset")&&(r.offset=a.textOffset),iR(a,"textRotation")&&(r.rotation=a.textRotation),iR(a,"textDistance")&&(r.distance=a.textDistance)}return S7(o,e),wL(o.rich,(function(e){S7(e,e)})),{textConfig:r,textContent:i}}(d,c);!h&&f.textConfig&&(h=t.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=function(e){return e=gL({},e),wL(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(_Y),(function(t){delete e[t]})),e}(t),v=t.$action||"merge",m="merge"===v,y="replace"===v;if(m){var b=s;(M=!s)?b=Bte(a,u,t.type,n):(b&&(Pte(b).isNew=!1),function(e){e.stopAnimation("keyframe"),e.attr(z7(e))}(b)),b&&(I7(b,g,e,{isInit:M}),zte(b,t,i,o))}else if(y){Nte(s,t,n,e);var x=Bte(a,u,t.type,n);x&&(I7(x,g,e,{isInit:!0}),zte(x,t,i,o))}else"remove"===v&&(E7(s,t),Nte(s,t,n,e));var _=n.get(a);if(_&&p)if(m){var w=_.getTextContent();w?w.attr(p):_.setTextContent(new Uj(p))}else y&&_.setTextContent(new Uj(p));if(_){var S=t.clipPath;if(S){var C=S.type,T=void 0,M=!1;if(m){var k=_.getClipPath();T=(M=!k||Pte(k).type!==C)?Rte(C):k}else y&&(M=!0,T=Rte(C));_.setClipPath(T),I7(T,S,e,{isInit:M}),V7(T,S.keyframeAnimation,e)}var A=Pte(_);_.setTextConfig(h),A.option=t,function(e,t,n){var r=qj(e).eventData;e.silent||e.ignore||r||(r=qj(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(_,e,t),XU({el:_,componentModel:e,itemName:_.name,itemTooltipOption:t.tooltip}),V7(_,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(h=bV((p=n[l]).id,null))?i.get(h):null)&&f.isGroup){var u=(g=f.parent)===r,c=Pte(f),d=Pte(g);c.width=VF(c.option.width,u?o:d.width)||0,c.height=VF(c.option.height,u?a:d.height)||0}}for(l=n.length-1;l>=0;l--){var p,h,f;if(f=null!=(h=bV((p=n[l]).id,null))?i.get(h):null){var g=f.parent,v=(d=Pte(g),{}),m=MY(f,p,g===r?{width:o,height:a}:{width:d.width,height:d.height},null,{hv:p.hv,boundingMode:p.bounding},v);if(!Pte(f).isNew&&m){for(var y=p.transition,b={},x=0;x<s.length;x++){var _=s[x],w=v[_];y&&(O7(y)||yL(y,_)>=0)?b[_]=w:f[_]=w}vU(f,b,e,0)}else f.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){Nte(n,Pte(n).option,t,e._lastGraphicModel)})),this._elMap=eR()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(c$);function Rte(e){var t=new(iR(Dte,e)?Dte[e]:EU(e))({});return Pte(t).type=e,t}function Bte(e,t,n,r){var i=Rte(n);return t.add(i),r.set(e,i),Pte(i).id=e,Pte(i).isNew=!0,i}function Nte(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse((function(e){Nte(e,t,n,r)})),function(e,t,n,r){if(e){var i=e.parent,o=k7(e).leaveToProps;if(o){var a=A7("update",e,t,n,0);a.done=function(){i.remove(e)},e.animateTo(o,a)}else i.remove(e)}}(e,t,r),n.removeKey(Pte(e).id))}function zte(e,t,n,r){e.isGroup||wL([["cursor",gH.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];iR(t,r)?e[r]=jL(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),wL(ML(t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=EL(r)?r:null}})),iR(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function Fte(e){e.registerComponentModel(Ote),e.registerComponentView(Lte),e.registerPreprocessor((function(e){var t=e.graphic;IL(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var Vte=["x","y","radius","angle","single"],Hte=["cartesian2d","polar","singleAxis"];function jte(e){return e+"Axis"}function Wte(e,t){var n,r=eR(),i=[],o=eR();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function Gte(e){var t=e.ecModel,n={infoList:[],infoMap:eR()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(jte(e),r);if(i){var o=i.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(i)}}})),n}var Ute=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),qte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return jP(t,e),t.prototype.init=function(e,t,n){var r=Yte(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=Yte(e);hL(this.option,e,!0),hL(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;wL([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=eR();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return wL(Vte,(function(n){var r=this.getReferringComponents(jte(n),AV);if(r.specified){t=!0;var i=new Ute;wL(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var i=t[0];if(i){var o=new Ute;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",kV).models[0];a&&wL(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",kV).models[0]&&o.add(e.componentIndex)}))}}}r&&wL(Vte,(function(t){if(r){var i=n.findComponents({mainType:jte(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new Ute;o.add(i[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");wL([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(jte(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){wL(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(jte(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;wL([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;wL(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(DY);function Yte(e){var t={};return wL(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Xte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="dataZoom.select",t}(qte),Kte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(c$),$te=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="dataZoom.select",t}(Kte),Zte=wL,Jte=jF,Qte=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return yL(Hte,t)>=0}(t)){var n=jte(this._dimName),r=t.getReferringComponents(n,kV).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return pL(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];Zte(["start","end"],(function(l,u){var c=e[l],d=e[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),d=r.parse(FF(c,o,n))):(t=!0,c=FF(d=null==d?n[u]:r.parse(d),n,o)),s[u]=null==d||isNaN(d)?n[u]:d,a[u]=null==c||isNaN(c)?o[u]:c})),Jte(s),Jte(a);var l=this._minMaxSpan;function u(e,t,n,i,o){var a=o?"Span":"ValueSpan";k8(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=FF(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];Zte(n,(function(e){!function(e,t,n){t&&wL(i1(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}(r,e.getData(),t)}));var i=e.getAxisModel(),o=K0(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&Zte(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=t.getStore(),s=SL(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,l=0;l<r.length;l++){var u=a.get(s[l],e),c=!isNaN(u),d=u<o[0],p=u>o[1];if(c&&!d&&!p)return!0;c&&(i=!0),d&&(t=!0),p&&(n=!0)}return i&&t&&n}))}else Zte(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));Zte(r,(function(e){t.setApproximateExtent(o,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Zte(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=FF(n[0]+o,n,[0,100],!0):null!=i&&(o=FF(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=UF(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();var ene={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(jte(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new Qte(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=eR();return wL(n,(function(e){wL(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var tne=!1;function nne(e){tne||(tne=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,ene),function(e){e.registerAction("dataZoom",(function(e,t){wL(Wte(t,e),(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function rne(e){e.registerComponentModel(Xte),e.registerComponentView($te),nne(e)}var ine=function(){return function(){}}(),one={};function ane(e,t){one[e]=t}function sne(e){return one[e]}var lne=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;wL(this.option.feature,(function(e,n){var r=sne(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),hL(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(DY);function une(e,t){var n=pY(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Ij({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var cne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];wL(s,(function(e,t){u.push(t)})),new wQ(this._featureNames||[],u).add(c).update(c).remove(AL(c,null)).execute(),this._featureNames=u,function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=TY(r,o,i);CY(t.get("orient"),e,t.get("itemGap"),a.width,a.height),MY(e,r,o,i)}(i,e,n),i.add(une(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!EL(l)&&t){var u=l.style||(l.style={}),c=cF(t,Uj.makeFont(u)),d=e.x+i.x,p=!1;e.y+i.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var h=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",h],u.align="right"):d-c.width/2<0&&(a.position=[0,h],u.align="left")}}))}function c(c,d){var p,h=u[c],f=u[d],g=s[h],v=new Sq(g,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===h&&(g.title=r.newTitle),h&&!f){if(function(e){return 0===e.indexOf("my")}(h))p={onclick:v.option.onclick,featureName:h};else{var m=sne(h);if(!m)return;p=new m}l[h]=p}else if(!(p=l[f]))return;p.uid=Tq("toolbox-feature"),p.model=v,p.ecModel=t,p.api=n;var y=p instanceof ine;h||!f?!v.get("show")||y&&p.unusable?y&&p.remove&&p.remove(t,n):(!function(r,s,l){var u,c,d=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),h=s instanceof ine&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};OL(h)?(u={})[l]=h:u=h;OL(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};wL(u,(function(l,u){var h=UU(l,{},{x:-o/2,y:-o/2,width:o,height:o});h.setStyle(d.getItemStyle()),h.ensureState("emphasis").style=p.getItemStyle();var f=new Uj({style:{text:c[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:lq({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},t)},ignore:!0});h.setTextContent(f),XU({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var t=p.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||r}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===r.get(["iconStatus",u])?CW:TW)(h),i.add(h),h.on("click",kL(s.onclick,s,t,n,u)),g[u]=h}))}(v,p,h),v.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?CW:TW)(r[e])},p instanceof ine&&p.render&&p.render(v,t,n,r)):y&&p.dispose&&p.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){wL(this._features,(function(e){e instanceof ine&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){wL(this._features,(function(n){n instanceof ine&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){wL(this._features,(function(n){n instanceof ine&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(c$);var dne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=UP.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=c.length,h=new Uint8Array(p);p--;)h[p]=c.charCodeAt(p);var f=new Blob([h]);window.navigator.msSaveOrOpenBlob(f,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var v=g.contentWindow,m=v.document;m.open("image/svg+xml","replace"),m.write(c),m.close(),v.focus(),m.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',x=window.open();x.document.write(b),x.document.title=r}else{var _=document.createElement("a");_.download=r+"."+o,_.target="_blank",_.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(w)}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(ine),pne="__ec_magicType_stack__",hne=[["line","bar"],["stack"]],fne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return wL(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(gne[n]){var o,a={series:[]};wL(hne,(function(e){yL(e,n)>=0&&wL(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(e){var t=e.subType,i=e.id,o=gne[n](t,i,e,r);o&&(vL(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,kV).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=hL({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(ine),gne={line:function(e,t,n,r){if("bar"===e)return hL({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return hL({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===pne;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),hL({id:t,stack:i?"":pne},r.get(["option","stack"])||{},!0)}};dQ({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var vne=new Array(60).join("-"),mne="\t";function yne(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var bne=new RegExp("["+mne+"]+","g");function xne(e,t){var n=e.split(new RegExp("\n*"+vne+"\n*","g")),r={series:[]};return wL(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(mne)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=SL(yne(t.shift()).split(bne),(function(e){return{name:e,data:[]}})),i=0;i<t.length;i++){var o=yne(t[i]).split(bne);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=yne(t.shift()),r=[],i=0;i<t.length;i++){var o=yne(t[i]);if(o){var a=o.split(bne),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(e);r.series.push(i)}})),r}var _ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=function(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:TL([(n=i.seriesGroupByCategoryAxis,r=[],wL(n,(function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(SL(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];wL(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var s=[o.join(mne)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(mne))}r.push(s.join("\n"))})),r.join("\n\n"+vne+"\n\n")),(t=i.other,SL(t,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+mne:"")+r.join(mne))})),n.join("\n")})).join("\n\n"+vne+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+vne+"\n\n"),meta:i.meta}}(e);if(EL(u)){var p=u(t.getOption());OL(p)?s.innerHTML=p:NL(p)&&s.appendChild(p)}else{l.readOnly=r.get("readOnly");var h=l.style;h.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",h.color=r.get("textColor"),h.borderColor=r.get("textareaBorderColor"),h.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var b=this;function x(){n.removeChild(i),b._dom=null}$R(m,"click",x),$R(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var e;try{e=EL(c)?c(s,t.getOption()):xne(l.value,f)}catch(n){throw x(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),x()}})),m.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=m.style.cssText=v,!r.get("readOnly")&&g.appendChild(y),g.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(ine);function wne(e,t){return SL(e,(function(e,n){var r=t&&t[n];if(LL(r)&&!IL(r)){LL(e)&&!IL(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=vL(e,r),i&&delete e.name,e}return e}))}dQ({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];wL(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:wne(e.data,i)})}else n.push(gL({type:"scatter"},e))})),t.mergeOption(vL({series:n},e.newOption))}));var Sne=wL,Cne=SV();function Tne(e){var t=Cne(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Mne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.onclick=function(e,t){!function(e){Cne(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(ine);dQ({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var kne=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Ane=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=Ene(t,e);wL(One,(function(e,t){(!n||!n.include||yL(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=Lne[e.brushType](0,n,t);e.__rangeOffset={offset:Bne[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){wL(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&wL(r.coordSyses,(function(r){var i=Lne[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){wL(e,(function(e){var n,r,i,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=Lne[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?Bne[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=zne(n),o=zne(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return SL(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:b7(r),isTargetByCursor:_7(r,e,n.coordSysModel),getLinearBrushOtherExtent:x7(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&yL(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Ene(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<Dne.length;s++)if(Dne[s](r,o))return o}return!0},e}();function Ine(e){return e[0]>e[1]&&e.reverse(),e}function Ene(e,t){return TV(e,t,{includeMainTypes:kne})}var One={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=eR(),a={},s={};(n||r||i)&&(wL(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),wL(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),wL(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];wL(i.getCartesians(),(function(e,t){(yL(n,e.getAxis("x").model)>=0||yL(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:Pne.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){wL(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Pne.geo})}))}},Dne=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Pne={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(zU(e)),t}},Lne={lineX:AL(Rne,0),lineY:AL(Rne,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[Ine([i[0],o[0]]),Ine([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:SL(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function Rne(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=Ine(SL([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var Bne={lineX:AL(Nne,0),lineY:AL(Nne,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return SL(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function Nne(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function zne(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Fne,Vne,Hne=wL,jne=cV+"toolbox-dataZoom_",Wne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jP(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new j8(n.getZr()),this._brushController.on("brush",kL(this._onBrush,this)).mount()),function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new Ane(Une(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return Tne(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){Gne[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new Ane(Une(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),function(e,t){var n=Tne(e);Sne(t,(function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=k8(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];Hne(e,(function(e,n){t.push(pL(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(ine),Gne={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=Tne(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Sne(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}})),r}(this.ecModel))}};function Une(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function qne(e){e.registerComponentModel(lne),e.registerComponentView(cne),ane("saveAsImage",dne),ane("magicType",fne),ane("dataView",_ne),ane("dataZoom",Wne),ane("restore",Mne),c1(rne)}Fne="dataZoom",Vne=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=TV(e,Une(r));return Hne(o.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),Hne(o.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),i}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:jne+t+o};a[n]=o,i.push(a)}},qL(null==JY.get(Fne)&&Vne),JY.set(Fne,Vne);var Yne=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(DY);function Xne(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Kne(e){if(UP.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var $ne=Kne(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Zne(e,t){if(!e)return t;t=dY(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var Jne=Zne(Kne(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Qne=Zne($ne,"transform"),ere="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(UP.transform3dSupported?"will-change:transform;":"");function tre(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!UP.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=UP.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+Qne+":"+a+";":[["top",0],["left",0],[$ne,a]]}function nre(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=$K(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=UP.transformSupported?","+Qne+r:",left"+r+",top"+r),Jne+":"+i}(i,n)),o&&r.push("background-color:"+o),wL(["width","color","radius"],(function(t){var n="border-"+t,i=dY(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),wL(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(c)),null!=d&&r.push("padding:"+pY(d).join("px ")+"px"),r.join(";")+";"}function rre(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){zR(NR,t,r,i,!0)&&zR(e,n,NR[0],NR[1])}(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ire=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,UP.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(OL(i)?document.querySelector(i):NL(i)?i:EL(i)&&i(e.getDom()));rre(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;KR(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a[o]:null),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=ere+nre(e,!this._firstShow,this._longHide)+tre(i[0],i[1],!0)+"border-color:"+yY(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(OL(i)&&"item"===n.get("trigger")&&!Xne(n)&&(a=function(e,t,n){if(!OL(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=yY(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=Qne+":";yL(["left","right"],s)>-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 d=a*Math.PI/180,p=l+i,h=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),f=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),OL(e))o.innerHTML=e+a;else if(e){o.innerHTML="",IL(e)||(e=[e]);for(var s=0;s<e.length;s++)NL(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(rre(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;wL(tre(n[0],n[1]),(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",UP.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(kL(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),ore=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),lre(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;LL(e)&&sV(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Uj({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:$K(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),wL(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),wL(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=sre(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;lre(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=are(i.borderWidth||0),a=sre(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(kL(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function are(e){return Math.max(0,e)}function sre(e){var t=are(e.shadowBlur||0),n=are(e.shadowOffsetX||0),r=are(e.shadowOffsetY||0);return{left:are(t-n),right:are(t+n),top:are(t-r),bottom:are(t+r)}}function lre(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ure=new Ij({shape:{x:-1,y:-1,width:2,height:2}}),cre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.init=function(e,t){if(!UP.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?UP.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new ore(t):new ire(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!UP.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?T$(this,"_updatePosition",50,"fixRate"):M$(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Pee("itemTooltip",this._api,kL((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!UP.node&&n.getDom()){var i=pre(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=MV(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=IV(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(t){var n=qj(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,t,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:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=ure;l.x=r.x,l.y=r.y,l.update(),qj(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=zee(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(pre(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===dre([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;if("legend"===qj(n).ssrType)return;this._lastDataByCoordSys=null,fZ(n,(function(e){return null!=qj(e).dataIndex?(i=e,!0):null!=qj(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=kL(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=dre([t.tooltipOption],r),a=this._renderMode,s=[],l=HK("section",{blocks:[],noHeader:!0}),u=[],c=new ZK;wL(e,(function(e){wL(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=wee(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=HK("section",{header:o,noHeader:!YL(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),wL(e.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=p.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=t1(t.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",yY(f.color),a);var g=cK(p.formatTooltip(h,!0,null)),v=g.frag;if(v){var m=dre([p],r).get("valueFormatter");d.blocks.push(m?gL({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,p=o.get("order"),h=YK(l,c,a,p,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=qj(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,p=e.positionDefault,h=dre([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=h.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new ZK;g.marker=v.makeTooltipMarker("item",yY(g.color),d);var m=cK(s.formatTooltip(l,!1,u)),y=h.get("order"),b=h.get("valueFormatter"),x=m.frag,_=x?YK(b?gL({valueFormatter:b},x):x,v,d,y,r.get("useUTC"),h.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,_,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=qj(t),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(OL(o)){o={content:o,formatter:o},a=!0}a&&r&&o.content&&((o=pL(o)).content=jR(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=dre(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),p=Math.random()+"",h=new ZK;this._showOrMove(c,(function(){var n=pL(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,p,e.offsetX,e.offsetY,e.position,t,h)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,p=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(OL(c)){var h=e.ecModel.get("useUTC"),f=IL(n)?n[0]:n;d=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=Yq(f.axisValue,d,h)),d=vY(d,n,!0)}else if(EL(c)){var g=kL((function(t,r){t===this._ticket&&(u.setContent(r,l,e,p,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,d=c(n,r,g)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||IL(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:IL(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),EL(t)&&(t=t([n,r],o,i.el,p,{viewSize:[s,l],contentSize:u.slice()})),IL(t))n=VF(t[0],s),r=VF(t[1],l);else if(LL(t)){var h=t;h.width=u[0],h.height=u[1];var f=TY(h,{width:s,height:l});n=f.x,r=f.y,c=null,d=null}else if(OL(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,p,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,i,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=hre(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=hre(d)?u[1]/2:"bottom"===d?u[1]:0),Xne(e)){g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&wL(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&wL(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&wL(a,(function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&wL(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!UP.node&&t.getDom()&&(M$(this,"_updatePosition"),this._tooltipContent.dispose(),Bee("itemTooltip",t))},t.type="tooltip",t}(c$);function dre(e,t,n){var r,i=t.ecModel;n?(r=new Sq(n,i,i),r=new Sq(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Sq&&(a=a.get("tooltip",!0)),OL(a)&&(a={formatter:a}),a&&(r=new Sq(a,r,i)))}return r}function pre(e,t){return e.dispatchAction||kL(t.dispatchAction,t)}function hre(e){return"center"===e||"middle"===e}function fre(e){c1(qee),e.registerComponentModel(Yne),e.registerComponentView(cre),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},oR),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},oR)}var gre=wL;function vre(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function mre(e,t,n){var r={};return gre(t,(function(t){var i,o=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);gre(e[t],(function(e,r){if(l6.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new l6(i),"opacity"===r&&((i=pL(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new l6(i))}}))})),r}var yre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return jP(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(DY),bre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=jL(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Uj({style:nq(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new Uj({style:nq(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!p&&!f,d.silent=!h&&!f,p&&l.on("click",(function(){bY(p,"_"+e.get("target"))})),h&&d.on("click",(function(){bY(h,"_"+e.get("subtarget"))})),qj(l).eventData=qj(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=TY(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=r.getBoundingRect();var b=m.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var _=new Ij({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(_)}},t.type="title",t}(c$);function xre(e){e.registerComponentModel(yre),e.registerComponentView(bre)}var _re=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return jP(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),IL(t)&&wL(t,(function(e,r){OL(e)&&(e={type:e}),t[r]=hL(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&xV(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=eR(),o=SL(r,(function(e){return(OL(e)||PL(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Sq(e,this,this.ecModel))}),this);this._data=TL(o,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&wL(this._data,(function(e){t[e.get("name")]=!1}));t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;wL(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;wL(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&yL(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(DY),wre=AL,Sre=wL,Cre=kF,Tre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return jP(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new Cre),this.group.add(this._selectorGroup=new Cre),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=TY(l,u,c),p=this.layoutInner(e,i,d,r,a,s),h=TY(vL({width:p.width,height:p.height},l),u,c);this.group.x=h.x-p.x,this.group.y=h.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=une(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=eR(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),Sre(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new Cre;return d.newline=!0,void s.add(d)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var h=p.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),v=h.getVisual("style"),m=this._createItem(p,a,o,i,t,e,f,v,g,u,r);m.on("click",wre(Mre,a,null,r,c)).on("mouseover",wre(Are,p.name,null,r,c)).on("mouseout",wre(Ire,p.name,null,r,c)),n.ssr&&m.eachChild((function(e){var t=qj(e);t.seriesIndex=p.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var p=d.indexOfName(a),h=d.getItemVisual(p,"style"),f=d.getItemVisual(p,"legendIcon"),g=RN(h.fill);g&&0===g[3]&&(g[3]=.2,h=gL(gL({},h),{fill:GN(g,"rgba")}));var v=this._createItem(s,a,o,i,t,e,{},h,f,u,r);v.on("click",wre(Mre,null,a,r,c)).on("mouseover",wre(Are,null,a,r,c)).on("mouseout",wre(Ire,null,a,r,c)),n.ssr&&v.eachChild((function(e){var t=qj(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();Sre(e,(function(e){var r=e.type,i=new Uj({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),eq(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),BW(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,p=i.get("itemWidth"),h=i.get("itemHeight"),f=i.isSelected(t),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),m=r.get("icon"),y=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),Sre(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?rJ(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(l=m||l||"roundRect",r,a,s,d,f,c),b=new Cre,x=r.getModel("textStyle");if(!EL(e.getLegendIcon)||m&&"inherit"!==m){var _="inherit"===m&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;b.add(function(e){var t=e.icon||"roundRect",n=MZ(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:h,icon:l,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else b.add(e.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?p+5:-5,S=o,C=i.get("formatter"),T=t;OL(C)&&C?T=C.replace("{name}",null!=t?t:""):EL(C)&&(T=C(t));var M=f?x.getTextColor():r.get("inactiveColor");b.add(new Uj({style:nq(x,{text:T,x:w,y:h/2,fill:M,align:S,verticalAlign:"middle"},{inheritColor:M})}));var k=new Ij({shape:b.getBoundingRect(),style:{fill:"transparent"}}),A=r.getModel("tooltip");return A.get("show")&&XU({el:k,componentModel:i,itemName:t,itemTooltipOption:A.option}),b.add(k),b.eachChild((function(e){e.silent=!0})),k.silent=!u,this.getContentGroup().add(b),BW(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();CY(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){CY("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",g=0===h?"height":"width",v=0===h?"y":"x";"end"===o?d[h]+=l[f]+p:u[h]+=c[f]+p,d[1-h]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+p+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+d[1-h]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(c$);function Mre(e,t,n,r){Ire(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),Are(e,t,n,r)}function kre(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function Are(e,t,n,r){kre(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Ire(e,t,n,r){kre(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function Ere(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function Ore(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),wL(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function Dre(e){e.registerComponentModel(_re),e.registerComponentView(Tre),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Ere),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",AL(Ore,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",AL(Ore,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",AL(Ore,"inverseSelect")),e.registerAction("legendSelect","legendselected",AL(Ore,"select")),e.registerAction("legendUnSelect","legendunselected",AL(Ore,"unSelect"))}(e)}var Pre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=IY(t);e.prototype.init.call(this,t,n,r),Lre(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Lre(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Mq(_re.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(_re);function Lre(e,t,n){var r=[1,1];r[e.getOrient().index]=0,AY(t,n,{type:"box",ignoreSize:!!r})}var Rre=kF,Bre=["width","height"],Nre=["x","y"],zre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return jP(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Rre),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Rre)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=IL(c)?c:[c,c];h("pagePrev",0);var p=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",o=UU(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:kL(l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new Uj({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=Bre[s],u=Nre[s],c=Bre[1-s],d=Nre[1-s];i&&CY("horizontal",a,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),f=[-h.x,-h.y],g=pL(n);i&&(g[l]=n[l]-h[l]-p);var v=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(i){if("end"===o)f[s]+=v[l]+p;else{var m=h[l]+p;f[s]-=m,v[u]-=m}v[l]+=h[l]+p,f[1-s]+=v[d]+v[c]/2-h[c]/2,v[c]=Math.max(v[c],h[c]),v[d]=Math.min(v[d],h[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;CY(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),CY("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),p=c.getBoundingRect(),h=this._showController=d[i]>n[i],f=[-d.x,-d.y];t||(f[r]=l[s]);var g=[0,0],v=[-p.x,-p.y],m=jL(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?v[r]+=n[i]-p[i]:g[r]+=p[i]+m);v[1-r]+=d[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var y={x:0,y:0};if(y[i]=h?n[i]:d[i],y[o]=Math.max(d[o],p[o]),y[a]=Math.min(0,p[a]+v[1-r]),u.__rectSize=n[i],h){var b={x:0,y:0};b[i]=Math.max(n[i]-p[i]-m,0),b[o]=y[o],u.setClipPath(new Ij({shape:b})),u.__rectSize=b[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&vU(l,{x:x.contentPosition[0],y:x.contentPosition[1]},h?e:null),this._updatePageInfoView(e,x),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;wL(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",OL(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=Bre[i],a=Nre[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,p={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var h=y(u);p.contentPosition[i]=-h.s;for(var f=s+1,g=h,v=h,m=null;f<=c;++f)(!(m=y(l[f]))&&v.e>g.s+r||m&&!b(m,g.s))&&(g=v.i>g.i?v:m)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=m;for(f=s-1,g=h,v=h,m=null;f>=-1;--f)(m=y(l[f]))&&b(v,m.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=m;return p;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(Tre);function Fre(e){c1(Dre),e.registerComponentModel(Pre),e.registerComponentView(zre),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function Vre(e){c1(Dre),c1(Fre)}var Hre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="dataZoom.inside",t.defaultOption=Mq(qte.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(qte),jre=SV();function Wre(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Gre(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Ure(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function qre(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=jre(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=eR());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){wL(Gte(e).infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(e,t){var n={model:t,containsPoint:AL(Ure,t),dispatchAction:AL(Gre,e),dataZoomInfoMap:null,controller:null},r=n.controller=new M4(e.getZr());return wL(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=eR())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),T$(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else Wre(r,e)}))}))}var Yre=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return jP(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){jre(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}(r,t,{pan:kL(Xre.pan,this),zoom:kL(Xre.zoom,this),scrollMove:kL(Xre.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=jre(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||Wre(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Kte),Xre={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=$re[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return k8(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:Kre((function(e,t,n,r,i,o){var a=$re[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:Kre((function(e,t,n,r,i,o){return $re[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n).signal*(e[1]-e[0])*o.scrollDelta}))};function Kre(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return k8(e(a,s,t,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var $re={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function Zre(e){nne(e),e.registerComponentModel(Hre),e.registerComponentView(Yre),qre(e)}var Jre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Mq(qte.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(qte),Qre=Ij,eie="horizontal",tie="vertical",nie=["line","bar","candlestick","scatter"],rie={easing:"cubicOut",duration:100,delay:0},iie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return jP(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=kL(this._onBrush,this),this._onBrushEnd=kL(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),T$(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){M$(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new kF;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===eie?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=IY(e.option);wL(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=TY(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===tie&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==eie||i?n===eie&&i?{scaleY:a?1:-1,scaleX:-1}:n!==tie||i?{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=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new Qre({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new Qre({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:kL(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,p=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],g=[],v=h[1]/(i.count()-1),m=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)m+=v;else{var n=null==e||isNaN(e)||""===e,r=n?0:FF(e,u,p,!0);n&&!d&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(f.push([m,0]),g.push([m,0])),f.push([m,r]),g.push([m,r]),m+=v,d=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b,x,_,w,S,C=this.dataZoomModel,T=0;T<3;T++){var M=(b=1===T,x=void 0,_=void 0,w=void 0,S=void 0,x=C.getModel(b?"selectedDataBackground":"dataBackground"),_=new kF,w=new NG({shape:{points:s},segmentIgnoreThreshold:1,style:x.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),S=new VG({shape:{points:l},segmentIgnoreThreshold:1,style:x.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),_.add(w),_.add(S),_);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){wL(e.getAxisProxy(i,o).getTargetSeriesModels(),(function(e){if(!(n||!0!==t&&yL(nie,e.get("type"))<0)){var a,s=r.getComponent(jte(i),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new Qre({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new Qre({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)"}})),wL([0,1],(function(t){var o=a.get("handleIcon");!SZ[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=MZ(o,-1,0,2,2,null,!0);s.attr({cursor:oie(this._orient),draggable:!0,drift:kL(this._onDragMove,this,t),ondragend:kL(this._onDragEnd,this),onmouseover:kL(this._showDataInfo,this,!0),onmouseout:kL(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=VF(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(),BW(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var d=a.getModel("textStyle");e.add(r[t]=new Uj({silent:!0,invisible:!0,style:nq(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var p=VF(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new Ij({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=t.moveHandleIcon=MZ(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));(d=t.moveZone=new Ij({invisible:!0,shape:{y:o[1]-v,height:p+v}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(d)}d.attr({draggable:!0,cursor:oie(this._orient),drift:kL(this._onDragMove,this,"all"),ondragstart:kL(this._showDataInfo,this,!0),ondragend:kL(this._onDragEnd,this),onmouseover:kL(this._showDataInfo,this,!0),onmouseout:kL(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[FF(e[0],[0,100],t,!0),FF(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];k8(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?FF(o.minSpan,a,i,!0):null,null!=o.maxSpan?FF(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=jF([FF(r[0],i,a,!0),FF(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=jF(n.slice()),i=this._size;wL([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Ij,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=jF(this._handleEnds.slice());function d(e){var t=zU(n.handles[e].parent,this.group),a=VU(0===e?"right":"left",t),s=this._handleWidth/2+5,l=FU([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===eie?"middle":a,align:i===eie?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return EL(r)?r(e,o):OL(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,JR(r.event);var i=FU([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new pB(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=jF([FF(n.x,r,i,!0),FF(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(JR(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new Qre({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?rie:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Gte(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(Kte);function oie(e){return"vertical"===e?"ns-resize":"ew-resize"}function aie(e){e.registerComponentModel(Jre),e.registerComponentView(iie),nne(e)}function sie(e){c1(Zre),c1(aie)}var lie=function(e,t,n){var r=pL((uie[e]||{})[t]);return n&&IL(r)?r[r.length-1]:r},uie={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]}},cie=l6.mapVisual,die=l6.eachVisual,pie=IL,hie=wL,fie=jF,gie=FF,vie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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 jP(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&function(e,t,n){var r;wL(n,(function(e){t.hasOwnProperty(e)&&vre(t[e])&&(r=!0)})),r&&wL(n,(function(n){t.hasOwnProperty(n)&&vre(t[n])?e[n]=pL(t[n]):delete e[n]}))}(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=kL(e,this),this.controllerVisuals=mre(this.option.controller,t,e),this.targetVisuals=mre(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=dV(e),t},t.prototype.eachTargetSeries=function(e,t){wL(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],IL(e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return OL(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):EL(s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=fie([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});hL(r,n),hL(i,n);var o=this.isCategory();function a(n){pie(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,r),a.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},hie(r,(function(e,t){if(l6.isValidType(t)){var n=lie(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";hie(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=t&&pL(t)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&pL(n)||(o?s[0]:[s[0],s[0]])),l.symbol=cie(l.symbol,(function(e){return"none"===e?i:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;die(u,(function(e){e>c&&(c=e)})),l.symbolSize=cie(u,(function(e){return gie(e,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(DY),mie=[20,140],yie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=mie[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=mie[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):IL(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),wL(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=jF((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=bie(this,"outOfRange",this.getExtent()),n=bie(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Mq(vie.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(vie);function bie(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var xie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return jP(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=pY(t.get("padding")||0),r=e.getBoundingRect();e.add(new Ij({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=i.controllerVisuals[r||i.getValueState(e)];return wL(l6.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),l6.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;MY(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(c$),_ie=[["left","right","width"],["top","bottom","height"]];function wie(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=_ie[a],l=[0,null,10],u={},c=0;c<3;c++)u[_ie[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][a],p=TY(u,o,r.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*o[d[1]]?0:1]}function Sie(e,t){return wL(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var Cie=FF,Tie=wL,Mie=Math.min,kie=Math.max,Aie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return jP(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=kL(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=kL(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Uj({style:nq(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=wie(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new kF;s.add(l),l.add(n.outOfRange=Iie()),l.add(n.inRange=Iie(null,o?Oie(this._orient):null,kL(this._dragHandle,this,"all",!1),kL(this._dragHandle,this,"all",!0))),l.setClipPath(new Ij({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=kie(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=kL(this._dragHandle,this,n,!1),s=kL(this._dragHandle,this,n,!0),l=fF(e.get("handleSize"),r[0]),u=MZ(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=Oie(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){JR(e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),HW(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,p=new Uj({cursor:c,draggable:!0,drift:a,onmousemove:function(e){JR(e.event)},ondragend:s,style:nq(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var h=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=h,f.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,r,i){var o=fF(e.get("indicatorSize"),n[0]),a=MZ(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof _j){var l=a.style;a.useStyle(gL({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new Uj({silent:!0,invisible:!0,style:nq(u,{x:0,y:0,text:""})});this.group.add(c);var d=[("horizontal"===i?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():Eie(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[Cie(t[0],n,r,!0),Cie(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];k8(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[Cie(r[0],i,o,!0),Cie(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new nU(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new kF("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();Tie([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=Cie(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var p=FU(n.handleLabelPoints[l],zU(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),p=Cie(e,o,s,!0),h=a[0]-d/2,f={x:u.x,y:u.y};u.y=p,u.x=h;var g=FU(l.indicatorLabelPoint,zU(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||"")+i.formatValueText(t),verticalAlign:y?m:"middle",align:y?"center":m});var b={x:h,y:p,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(b,_),v.animateTo(x,_)}else u.attr(b),v.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=Mie(kie(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=Mie(kie(i[0],e),i[1]);var a=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=Cie(i,t,n,!0)/2);return r}(n,o,i),s=[e-a,e+a],l=Cie(e,i,o,!0),u=[Cie(s[0],i,o,!0),Cie(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(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,d=[];(t||Eie(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=bV(e[r].seriesId,null);if(null==o)return;for(var a=dV(e[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,d);this._dispatchHighDown("downplay",Sie(p[0],n)),this._dispatchHighDown("highlight",Sie(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(fZ(e.target,(function(e){var n=qj(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sie(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=zU(t,r?null:this.group);return IL(e)?FU(e,i,n):VU(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(xie);function Iie(e,t,n,r){return new NG({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){JR(e.event)},ondragend:r})}function Eie(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function Oie(e){return"vertical"===e?"ns-resize":"ew-resize"}var Die={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Pie=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},Lie=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r,i,o,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((r=t.stateList,i=t.targetVisuals,o=kL(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},wL(r,(function(e){var t=l6.prepareVisualTypes(i[e]);s[e]=t})),{progress:function(e,t){var n,r;function l(e){return cZ(t,r,e)}function u(e,n){!function(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r)}}(t,r,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var c=t.getStore();null!=(r=e.next());){var d=t.getRawDataItem(r);if(!d||!1!==d.visualMap)for(var p=null!=a?c.get(n,r):r,h=o(p),f=i[h],g=s[h],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(kL(Rie,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function Rie(e,t,n,r){for(var i=t.targetVisuals[r],o=l6.prepareVisualTypes(i),a={color:dZ(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,p)}return a.color;function d(e){return a[e]}function p(e,t){a[e]=t}}var Bie=wL;function Nie(e){var t=e&&e.visualMap;IL(t)||(t=t?[t]:[]),Bie(t,(function(e){if(e){zie(e,"splitList")&&!zie(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&IL(t)&&Bie(t,(function(e){LL(e)&&(zie(e,"start")&&!zie(e,"min")&&(e.min=e.start),zie(e,"end")&&!zie(e,"max")&&(e.max=e.end))}))}}))}function zie(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Fie=!1;function Vie(e){Fie||(Fie=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(Die,Pie),wL(Lie,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(Nie))}function Hie(e){e.registerComponentModel(yie),e.registerComponentView(Aie),Vie(e)}var jie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return jP(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Wie[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=pL(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=SL(this._pieceList,(function(e){return e=pL(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=l6.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}wL(t.pieces,(function(e){wL(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),wL(n,(function(e,n){var r=!1;wL(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&wL(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=lie(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,wL(r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;wL(r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=pL(e)},t.prototype.getValueState=function(e){var t=l6.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){l6.findPieceIndex(t,n)===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return wL(i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Mq(vie.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(vie),Wie={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),tV(e),wL(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;wL(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),Gie(t,e)},pieces:function(e){var t=this.option;wL(t.pieces,(function(t,n){LL(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=t[d[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=l6.retrieveVisuals(t),e.push(r)}),this),Gie(t,e),tV(e),wL(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function Gie(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var Uie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return jP(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=HL(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),wL(l.viewPieceList,(function(r){var l=r.piece,u=new kF;u.onclick=kL(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(d);u.add(new Uj({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),CY(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:Sie(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return wie(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new kF,a=this.visualMapModel.textStyleModel;o.add(new Uj({style:nq(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=SL(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(MZ(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=pL(n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,wL(i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(xie);function qie(e){e.registerComponentModel(jie),e.registerComponentView(Uie),Vie(e)}function Yie(e){c1(Hie),c1(qie)}function Xie(e){return!!se()&&(le(e),!0)}function Kie(e){return"function"==typeof e?e():Lt(e)}const $ie="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const Zie=Object.prototype.toString,Jie=e=>"[object Object]"===Zie.call(e),Qie=()=>{};const eoe=e=>e();function toe(e,t,n={}){const{eventFilter:r=eoe,...i}=n;return Mi(e,function(e,t){return function(...n){return new Promise(((r,i)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(i)}))}}(r,t),i)}function noe(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=function(e=eoe){const t=Et(!0);return{isActive:gt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(r);return{stop:toe(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function roe(e,t=!0,n){jo()?Xn(e,n):t?e():rn(e)}function ioe(e){var t;const n=Kie(e);return null!=(t=null==n?void 0:n.$el)?t:n}const ooe=$ie?window:void 0;function aoe(...e){let t,n,r,i;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,i]=e,t=ooe):[t,n,r,i]=e,!t)return Qie;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach((e=>e())),o.length=0},s=Mi((()=>[ioe(t),Kie(i)]),(([e,t])=>{if(a(),!e)return;const i=Jie(t)?{...t}:t;o.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,i))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Xie(l),l}function soe(e){const t=function(){const e=Et(!1),t=jo();return t&&Xn((()=>{e.value=!0}),t),e}();return ia((()=>(t.value,Boolean(e()))))}const loe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},uoe="__vueuse_ssr_handlers__",coe=doe();function doe(){return uoe in loe||(loe[uoe]=loe[uoe]||{}),loe[uoe]}function poe(e,t){return coe[e]||t}const hoe={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},foe="vueuse-storage";function goe(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=ooe,eventFilter:p,onError:h=e=>{},initOnMounted:f}=r,g=(c?Ot:Et)("function"==typeof t?t():t);if(!n)try{n=poe("getDefaultStorage",(()=>{var e;return null==(e=ooe)?void 0:e.localStorage}))()}catch(C){h(C)}if(!n)return g;const v=Kie(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(v),y=null!=(i=r.serializer)?i:hoe[m],{pause:b,resume:x}=noe(g,(()=>function(t){try{const r=n.getItem(e);if(null==t)_(r,null),n.removeItem(e);else{const i=y.write(t);r!==i&&(n.setItem(e,i),_(r,i))}}catch(C){h(C)}}(g.value)),{flush:o,deep:a,eventFilter:p});function _(t,r){!d||n instanceof Storage||d.dispatchEvent(new CustomEvent(foe,{detail:{key:e,oldValue:t,newValue:r,storageArea:n}}))}function w(t){if(!t||t.storageArea===n)if(t&&null==t.key)g.value=v;else if(!t||t.key===e){b();try{(null==t?void 0:t.newValue)!==y.write(g.value)&&(g.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return l&&null!=v&&n.setItem(e,y.write(v)),v;if(!t&&u){const e=y.read(r);return"function"==typeof u?u(e,v):"object"!==m||Array.isArray(e)?e:{...v,...e}}return"string"!=typeof r?r:y.read(r)}(t))}catch(C){h(C)}finally{t?rn(x):x()}}}function S(e){w(e.detail)}return d&&s&&roe((()=>{n instanceof Storage?aoe(d,"storage",w):aoe(d,foe,S),f&&w()})),f||w(),g}function voe(e){return function(e,t={}){const{window:n=ooe}=t,r=soe((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia));let i;const o=Et(!1),a=e=>{o.value=e.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=wi((()=>{r.value&&(s(),i=n.matchMedia(Kie(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)}));return Xie((()=>{l(),s(),i=void 0})),o}("(prefers-color-scheme: dark)",e)}const moe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function yoe(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=ooe,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u,disableTransition:c=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},p=voe({window:i}),h=ia((()=>p.value?"dark":"light")),f=l||(null==a?function(...e){if(1!==e.length)return jt(...e);const t=e[0];return"function"==typeof t?gt(zt((()=>({get:t,set:Qie})))):Et(t)}(r):goe(a,r,o,{window:i,listenToStorageChanges:s})),g=ia((()=>"auto"===f.value?h.value:f.value)),v=poe("updateHTMLAttrs",((e,t,n)=>{const r="string"==typeof e?null==i?void 0:i.document.querySelector(e):ioe(e);if(!r)return;const o=new Set,a=new Set;let s,l=null;if("class"===t){const e=n.split(/\s/g);Object.values(d).flatMap((e=>(e||"").split(/\s/g))).filter(Boolean).forEach((t=>{e.includes(t)?o.add(t):a.add(t)}))}else l={key:t,value:n};if(0!==o.size||0!==a.size||null!==l){c&&(s=i.document.createElement("style"),s.appendChild(document.createTextNode(moe)),i.document.head.appendChild(s));for(const e of o)r.classList.add(e);for(const e of a)r.classList.remove(e);l&&r.setAttribute(l.key,l.value),c&&(i.getComputedStyle(s).opacity,document.head.removeChild(s))}}));function m(e){var r;v(t,n,null!=(r=d[e])?r:e)}function y(t){e.onChanged?e.onChanged(t,m):m(t)}Mi(g,y,{flush:"post",immediate:!0}),roe((()=>y(g.value)));const b=ia({get:()=>u?f.value:g.value,set(e){f.value=e}});try{return Object.assign(b,{store:f,system:h,state:g})}catch(x){return b}}function boe(e={}){const{valueDark:t="dark",valueLight:n="",window:r=ooe}=e,i=yoe({...e,onChanged:(t,n)=>{var r;e.onChanged?null==(r=e.onChanged)||r.call(e,"dark"===t,n,t):n(t)},modes:{dark:t,light:n}}),o=ia((()=>{if(i.system)return i.system.value;return voe({window:r}).value?"dark":"light"}));return ia({get:()=>"dark"===i.value,set(e){const t=e?"dark":"light";o.value===t?i.value="auto":i.value=t}})}function xoe(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function _oe(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:xoe(t[n])&&xoe(e[n])&&Object.keys(t[n]).length>0&&_oe(e[n],t[n])}))}const woe={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Soe(){const e="undefined"!=typeof document?document:{};return _oe(e,woe),e}const Coe={document:woe,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Toe(){const e="undefined"!=typeof window?window:{};return _oe(e,Coe),e}function Moe(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function koe(){return Date.now()}function Aoe(e,t){void 0===t&&(t="x");const n=Toe();let r,i,o;const a=function(e){const t=Toe();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}function Ioe(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Eoe(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&(n=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(Ioe(e[r])&&Ioe(i[r])?i[r].__swiper__?e[r]=i[r]:Eoe(e[r],i[r]):!Ioe(e[r])&&Ioe(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:Eoe(e[r],i[r])):e[r]=i[r])}}}var n;return e}function Ooe(e,t,n){e.style.setProperty(t,n)}function Doe(e){let{swiper:t,targetPosition:n,side:r}=e;const i=Toe(),o=-t.translate;let a,s=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const u=n>o?"next":"prev",c=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,d=()=>{a=(new Date).getTime(),null===s&&(s=a);const e=Math.max(Math.min((a-s)/l,1),0),u=.5-Math.cos(e*Math.PI)/2;let p=o+u*(n-o);if(c(p,n)&&(p=n),t.wrapperEl.scrollTo({[r]:p}),c(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function Poe(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function Loe(e,t){void 0===t&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter((e=>e.matches(t))):n}function Roe(e){try{return}catch(t){}}function Boe(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),n}function Noe(e,t){return Toe().getComputedStyle(e,null).getPropertyValue(t)}function zoe(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Foe(e,t,n){const r=Toe();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function Voe(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let Hoe,joe,Woe;function Goe(){return Hoe||(Hoe=function(){const e=Toe(),t=Soe();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Hoe}function Uoe(e){return void 0===e&&(e={}),joe||(joe=function(e){let{userAgent:t}=void 0===e?{}:e;const n=Goe(),r=Toe(),i=r.navigator.platform,o=t||r.navigator.userAgent,a={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let c=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!c&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(s,"x").concat(l))>=0&&(c=o.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),u&&!h&&(a.os="android",a.android=!0),(c||p||d)&&(a.os="ios",a.ios=!0),a}(e)),joe}function qoe(){return Woe||(Woe=function(){const e=Toe(),t=Uoe();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&r<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||i&&t.ios,isWebView:i}}()),Woe}const Yoe=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Xoe=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Koe=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":".".concat(e.params.slideClass));if(n){let t=n.querySelector(".".concat(e.params.lazyPreloaderClass));!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)),t&&t.remove())}))),t&&t.remove()}},$oe=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Zoe=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=i,o=[n-t];return o.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{o.includes(t.column)&&$oe(e,n)}))}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=o+t;a+=1){const t=(a%n+n)%n;(t<i||t>o)&&$oe(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(o+t,n-1);a+=1)a!==i&&(a>o||a<i)&&$oe(e,a)};var Joe={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Noe(r,"padding-left")||0,10)-parseInt(Noe(r,"padding-right")||0,10),n=n-parseInt(Noe(r,"padding-top")||0,10)-parseInt(Noe(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:a,wrongRTL:s}=e,l=e.virtual&&n.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=Loe(i,".".concat(e.params.slideClass,", swiper-slide")),d=l?e.virtual.slides.length:c.length;let p=[];const h=[],f=[];let g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(e));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(e));const m=e.snapGrid.length,y=e.slidesGrid.length;let b=n.spaceBetween,x=-g,_=0,w=0;if(void 0===o)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*o:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b,c.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(Ooe(r,"--swiper-centered-offset-before",""),Ooe(r,"--swiper-centered-offset-after",""));const S=n.grid&&n.grid.rows>1&&e.grid;let C;S?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let M=0;M<d;M+=1){let r;if(C=0,c[M]&&(r=c[M]),S&&e.grid.updateSlide(M,r,c),!c[M]||"none"!==Noe(r,"display")){if("auto"===n.slidesPerView){T&&(c[M].style[e.getDirectionLabel("width")]="");const i=getComputedStyle(r),o=r.style.transform,a=r.style.webkitTransform;if(o&&(r.style.transform="none"),a&&(r.style.webkitTransform="none"),n.roundLengths)C=e.isHorizontal()?Foe(r,"width"):Foe(r,"height");else{const e=t(i,"width"),n=t(i,"padding-left"),o=t(i,"padding-right"),a=t(i,"margin-left"),s=t(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=e+a+s;else{const{clientWidth:t,offsetWidth:i}=r;C=e+n+o+a+s+(i-t)}}o&&(r.style.transform=o),a&&(r.style.webkitTransform=a),n.roundLengths&&(C=Math.floor(C))}else C=(o-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),c[M]&&(c[M].style[e.getDirectionLabel("width")]="".concat(C,"px"));c[M]&&(c[M].swiperSlideSize=C),f.push(C),n.centeredSlides?(x=x+C/2+_/2+b,0===_&&0!==M&&(x=x-o/2-b),0===M&&(x=x-o/2-b),Math.abs(x)<.001&&(x=0),n.roundLengths&&(x=Math.floor(x)),w%n.slidesPerGroup==0&&p.push(x),h.push(x)):(n.roundLengths&&(x=Math.floor(x)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup==0&&p.push(x),h.push(x),x=x+C+b),e.virtualSize+=C+b,_=C,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width="".concat(e.virtualSize+b,"px")),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]="".concat(e.virtualSize+b,"px")),S&&e.grid.updateWrapperSize(C,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let i=p[r];n.roundLengths&&(i=Math.floor(i)),p[r]<=e.virtualSize-o&&t.push(i)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&n.loop){const t=f[0]+b;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==b){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==c.length-1)).forEach((e=>{e.style[t]="".concat(b,"px")}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=e>o?e-o:0;p=p.map((e=>e<=0?-g:e>t?t+v:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ooe(r,"--swiper-centered-offset-before","".concat(-p[0],"px")),Ooe(r,"--swiper-centered-offset-after","".concat(e.size/2-f[f.length-1]/2,"px"));const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==u&&e.emit("slidesLengthChange"),p.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==y&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t="".concat(n.containerModifierClass,"backface-hidden"),r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(a(e))}else n.push(a(t.activeIndex));for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height="".concat(o,"px"))},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let l=0;l<r.length;l+=1){const e=r[l];let u=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-u)/(e.swiperSlideSize+s),d=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(e.swiperSlideSize+s),p=-(a-u),h=p+t.slidesSizesGrid[l],f=p>=0&&p<=t.size-t.slidesSizesGrid[l],g=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;g&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(l)),Yoe(e,g,n.slideVisibleClass),Yoe(e,f,n.slideFullyVisibleClass),e.progress=i?-c:c,e.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(0===r)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||i<=0,a=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],o=t.slidesGrid[r],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,s=e=>Loe(r,".".concat(n.slideClass).concat(e,", swiper-slide").concat(e))[0];let l,u,c;if(o)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s('[data-swiper-slide-index="'.concat(t,'"]'))}else l=s('[data-swiper-slide-index="'.concat(i,'"]'));else a?(l=t.filter((e=>e.column===i))[0],c=t.filter((e=>e.column===i+1))[0],u=t.filter((e=>e.column===i-1))[0]):l=t[i];l&&(a||(c=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&!c&&(c=t[0]),u=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&0===!u&&(u=t[t.length-1]))),t.forEach((e=>{Xoe(e,e===l,n.slideActiveClass),Xoe(e,e===c,n.slideNextClass),Xoe(e,e===u,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,u=e;const c=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===u&&(u=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)void 0!==t[o+1]?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,u);l=e+Math.floor((u-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),u===o&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(u===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(u));const d=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=c(u);else if(d){const e=t.slides.filter((e=>e.column===u))[0];let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/i.grid.rows)}else if(t.slides[u]){const e=t.slides[u].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):u}else p=u;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:u}),t.initialized&&Zoe(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let i=e.closest(".".concat(r.slideClass,", swiper-slide"));!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(".".concat(r.slideClass,", swiper-slide"))&&(i=e)}));let o,a=!1;if(i)for(let s=0;s<n.slides.length;s+=1)if(n.slides[s]===i){a=!0,o=s;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};function Qoe(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:a}=t;let s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit("transition".concat(i)),n&&o!==a){if("reset"===s)return void t.emit("slideResetTransition".concat(i));t.emit("slideChangeTransition".concat(i)),"next"===s?t.emit("slideNextTransition".concat(i)):t.emit("slidePrevTransition".concat(i))}}var eae={slideTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=o;if(!f&&!r&&!i||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let v=g+Math.floor((a-g)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const m=-l[v];if(s.normalizeSlideIndex)for(let x=0;x<u.length;x+=1){const e=-Math.floor(100*m),t=Math.floor(100*u[x]),n=Math.floor(100*u[x+1]);void 0!==u[x+1]?e>=t&&e<n-(n-t)/2?a=x:e>=t&&e<n&&(a=x+1):e>=t&&(a=x)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(p?m>o.translate&&m>o.minTranslate():m<o.translate&&m<o.minTranslate()))return!1;if(!o.allowSlidePrev&&m>o.translate&&m>o.maxTranslate()&&(d||0)!==a)return!1}let y;a!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(m),y=a>d?"next":a<d?"prev":"reset";const b=o.virtual&&o.params.virtual.enabled;if(!(b&&i)&&(p&&-m===o.translate||!p&&m===o.translate))return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(m),"reset"!==y&&(o.transitionStart(n,y),o.transitionEnd(n,y)),!1;if(s.cssMode){const e=o.isHorizontal(),n=p?m:-m;if(0===t)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return Doe({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(m),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,y),0===t?o.transitionEnd(n,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){const t=a*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(a);const t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params;let s=i.params.slidesPerView;"auto"===s?s=i.slidesPerViewDynamic():(s=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&s%2==0&&(s+=1));let l=t-e<s;if(n&&(l=l||e<Math.ceil(s/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(l=!1),l){const r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){const e=a*i.params.grid.rows;a=i.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame((()=>{i.slideTo(a,t,n,r)})),i},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,u=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(s?r.translate:-r.translate),h=o.map((e=>d(e)));let f=o[h.indexOf(p)-1];if(void 0===f&&i.cssMode){let e;o.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(f=o[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=a.indexOf(f),g<0&&(g=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(g,e,t,n)})),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*r&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;const a=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=e.getSlideIndex(Loe(n,"".concat(a,'[data-swiper-slide-index="').concat(i,'"]'))[0]),Moe((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=e.getSlideIndex(Loe(n,"".concat(a,'[data-swiper-slide-index="').concat(i,'"]'))[0]),Moe((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};var tae={loopCreate:function(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{Loe(r,".".concat(n.slideClass,", swiper-slide")).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},o=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(o?n.grid.rows:1),s=t.slides.length%a!=0,l=o&&t.slides.length%n.grid.rows!=0,u=e=>{for(let r=0;r<e;r+=1){const e=t.isElement?Boe("swiper-slide",[n.slideBlankClass]):Boe("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};if(s){if(n.loopAddBlankSlides){u(a-t.slides.length%a),t.recalcSlides(),t.updateSlides()}else Roe();i()}else if(l){if(n.loopAddBlankSlides){u(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()}else Roe();i()}else i();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,byController:a,byMousewheel:s}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:d,slidesEl:p,params:h}=l,{centeredSlides:f}=h;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return n&&(h.centeredSlides||0!==l.snapIndex?h.centeredSlides&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=d,void l.emit("loopFix");let g=h.slidesPerView;"auto"===g?g=l.slidesPerViewDynamic():(g=Math.ceil(parseFloat(h.slidesPerView,10)),f&&g%2==0&&(g+=1));const v=h.slidesPerGroupAuto?g:h.slidesPerGroup;let m=v;m%v!=0&&(m+=v-m%v),m+=h.loopAdditionalSlides,l.loopedSlides=m;const y=l.grid&&h.grid&&h.grid.rows>1;(u.length<g+m||y&&"row"===h.grid.fill)&&Roe();const b=[],x=[];let _=l.activeIndex;void 0===o?o=l.getSlideIndex(u.filter((e=>e.classList.contains(h.slideActiveClass)))[0]):_=o;const w="next"===r||!r,S="prev"===r||!r;let C=0,T=0;const M=y?Math.ceil(u.length/h.grid.rows):u.length,k=(y?u[o].column:o)+(f&&void 0===i?-g/2+.5:0);if(k<m){C=Math.max(m-k,v);for(let e=0;e<m-k;e+=1){const t=e-Math.floor(e/M)*M;if(y){const e=M-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&b.push(t)}else b.push(M-t-1)}}else if(k+g>M-m){T=Math.max(k-(M-2*m),v);for(let e=0;e<T;e+=1){const t=e-Math.floor(e/M)*M;y?u.forEach(((e,n)=>{e.column===t&&x.push(n)})):x.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),S&&b.forEach((e=>{u[e].swiperLoopMoveDOM=!0,p.prepend(u[e]),u[e].swiperLoopMoveDOM=!1})),w&&x.forEach((e=>{u[e].swiperLoopMoveDOM=!0,p.append(u[e]),u[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():y&&(b.length>0&&S||x.length>0&&w)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),h.watchSlidesProgress&&l.updateSlidesOffset(),n)if(b.length>0&&S){if(void 0===t){const e=l.slidesGrid[_],t=l.slidesGrid[_+C]-e;s?l.setTranslate(l.translate-t):(l.slideTo(_+Math.ceil(C),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){const e=y?b.length/h.grid.rows:b.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(x.length>0&&w)if(void 0===t){const e=l.slidesGrid[_],t=l.slidesGrid[_-T]-e;s?l.setTranslate(l.translate-t):(l.slideTo(_-T,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=y?x.length/h.grid.rows:x.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&n})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function nae(e,t,n){const r=Toe(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function rae(e){const t=this,n=Soe();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void nae(t,r,r.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=t;if(!s)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=r.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=t.contains(e);if(!n&&t instanceof HTMLSlotElement)return[...t.assignedElements()].includes(e);return n}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,c=r.composedPath?r.composedPath():r.path;u&&r.target&&r.target.shadowRoot&&c&&(l=c[0]);const d=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass),p=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===Soe()||n===Toe())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const h=a.currentX,f=a.currentY;if(!nae(t,r,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=f,i.touchStartTime=koe(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let g=!0;l.matches(i.focusableElements)&&(g=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const v=g&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function iae(e){const t=Soe(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==r.touchId)return;if(u.pointerId!==r.pointerId)return}if("touchmove"===u.type){if(l=[...u.changedTouches].filter((e=>e.identifier===r.touchId))[0],!l||l.identifier!==r.touchId)return}else l=u;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u));const c=l.pageX,d=l.pageY;if(u.preventedByNestedSwiper)return o.startX=c,void(o.startY=d);if(!n.allowTouchMove)return u.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=koe()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<o.startX&&n.translate<=n.maxTranslate()||c>o.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",u),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=c,o.currentY=d;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===u.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&u.cancelable&&u.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&u.stopPropagation();let f=n.isHorizontal()?p:h,g=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),o.diff=f,f*=i.touchRatio,a&&(f=-f,g=-g);const v=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=g>0?"prev":"next";const m=n.params.loop&&!i.cssMode,y="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(m&&y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&v!==n.touchesDirection&&m&&y&&Math.abs(f)>=1)return Object.assign(o,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let b=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),f>0?(m&&y&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**x))):f<0&&(m&&y&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==i.slidesPerView&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**x))),b&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(f)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function oae(e){const t=this,n=t.touchEventsData;let r,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(r=[...i.changedTouches].filter((e=>e.identifier===n.touchId))[0],!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(i.pointerId!==n.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=koe(),d=c-n.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),d<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(n.lastClickTime=koe(),Moe((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?s?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,g=t.slidesSizesGrid[0];for(let x=0;x<l.length;x+=x<o.slidesPerGroupSkip?1:o.slidesPerGroup){const e=x<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[x+e]?(h||p>=l[x]&&p<l[x+e])&&(f=x,g=l[x+e]-l[x]):(h||p>=l[x])&&(f=x,g=l[l.length-1]-l[l.length-2])}let v=null,m=null;o.rewind&&(t.isBeginning?m=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const y=(p-l[f])/g,b=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-o.longSwipesRatio?t.slideTo(f+b):null!==m&&y<0&&Math.abs(y)>o.longSwipesRatio?t.slideTo(m):t.slideTo(f))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==v?v:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:f))}}function aae(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function sae(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function lae(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function uae(e){const t=this;Koe(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function cae(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const dae=(e,t)=>{const n=Soe(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",u=t;i&&"string"!=typeof i&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",aae,!0):e[u]("observerUpdate",aae,!0),i[l]("load",e.onLoad,{capture:!0}))};const pae=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var hae={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||e.originalParams,l=pae(e,r),u=pae(e,s),c=e.params.grabCursor,d=s.grabCursor,p=r.enabled;l&&!u?(i.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()):!l&&u&&(i.classList.add("".concat(r.containerModifierClass,"grid")),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===r.grid.fill)&&i.classList.add("".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()),c&&!d?e.unsetGrabCursor():!c&&d&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===s[t])return;const n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const h=s.direction&&s.direction!==r.direction,f=r.loop&&(s.slidesPerView!==r.slidesPerView||h),g=r.loop;h&&n&&e.changeDirection(),Eoe(e.params,s);const v=e.params.enabled,m=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!v?e.disable():!p&&v&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&m?(e.loopCreate(t),e.updateSlides()):g&&!m&&e.loopDestroy()),e.emit("breakpoint",s)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const i=Toe(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let s=0;s<a.length;s+=1){const{point:e,value:o}=a[s];"window"===t?i.matchMedia("(min-width: ".concat(o,"px)")).matches&&(r=e):o<=n.clientWidth&&(r=e)}return r||"max"}};var fae={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function gae(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],i=n[r];"object"==typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Eoe(t,n)):Eoe(t,n)):Eoe(t,n)}}const vae={eventsEmitter:{on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}},update:Joe,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=Aoe(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s,l=0,u=0;n.isHorizontal()?l=r?-e:e:u=e,i.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform="translate3d(".concat(l,"px, ").concat(u,"px, ").concat(0,"px)"));const c=n.maxTranslate()-n.minTranslate();s=0===c?0:(e-n.minTranslate())/c,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),u=o.maxTranslate();let c;if(c=r&&e>l?l:r&&e<u?u:e,o.updateProgress(c),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return Doe({swiper:o,targetPosition:-c,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration="".concat(e,"ms"),n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Qoe({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),Qoe({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:eae,loop:tae,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=rae.bind(e),e.onTouchMove=iae.bind(e),e.onTouchEnd=oae.bind(e),e.onDocumentTouchStart=cae.bind(e),t.cssMode&&(e.onScroll=lae.bind(e)),e.onClick=sae.bind(e),e.onLoad=uae.bind(e),dae(e,"on")},detachEvents:function(){dae(this,"off")}},breakpoints:hae,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},mae={};let yae=class e{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?n=i[0]:[t,n]=i,n||(n={}),n=Eoe({},n),t&&!n.el&&(n.el=t);const a=Soe();if(n.el&&"string"==typeof n.el&&a.querySelectorAll(n.el).length>1){const t=[];return a.querySelectorAll(n.el).forEach((r=>{const i=Eoe({},n,{el:r});t.push(new e(i))})),t}const s=this;s.__swiper__=!0,s.support=Goe(),s.device=Uoe({userAgent:n.userAgent}),s.browser=qoe(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&s.modules.push(...n.modules);const l={};s.modules.forEach((e=>{e({params:n,swiper:s,extendParams:gae(n,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const u=Eoe({},fae,l);return s.params=Eoe({},u,mae,n),s.originalParams=Eoe({},s.params),s.passedParams=Eoe({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach((e=>{s.on(e,s.params.on[e])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=zoe(Loe(t,".".concat(n.slideClass,", swiper-slide"))[0]);return zoe(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Loe(e,".".concat(t.slideClass,", swiper-slide"))}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let u=s+1;u<r.length;u+=1){(t?i[u]+o[u]-i[s]<a:i[u]-i[s]<a)&&(l+=1)}else for(let u=s-1;u>=0;u-=1){i[s]-i[u]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&Koe(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove("".concat(n.params.containerModifierClass).concat(r)),n.el.classList.add("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>".".concat((t.params.wrapperClass||"").trim().split(" ").join("."));let i=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(r())}return Loe(n,r())[0]})();return!i&&t.params.createElements&&(i=Boe("div",t.params.wrapperClass),n.append(i),Loe(n,".".concat(t.params.slideClass)).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Noe(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Noe(n,"direction")),wrongRTL:"-webkit-box"===Noe(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?Koe(t,e):e.addEventListener("load",(e=>{Koe(t,e.target)}))})),Zoe(t),t.initialized=!0,Zoe(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){Eoe(mae,e)}static get extendedDefaults(){return mae}static get defaults(){return fae}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>e.installModule(t))),e):(e.installModule(t),e)}};Object.keys(vae).forEach((e=>{Object.keys(vae[e]).forEach((t=>{yae.prototype[t]=vae[e][t]}))})),yae.use([function(e){let{swiper:t,on:n,emit:r}=e;const i=Toe();let o=null,a=null;const s=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{a=i.requestAnimationFrame((()=>{const{width:n,height:r}=t;let i=n,o=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||s()}))})),o.observe(t.el)):(i.addEventListener("resize",s),i.addEventListener("orientationchange",l))})),n("destroy",(()=>{a&&i.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],a=Toe(),s=function(e,n){void 0===n&&(n={});const r=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const n=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}));r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=function(e,t){const n=[];let r=e.parentElement;for(;r;)n.push(r),r=r.parentElement;return n}(t.hostEl);for(let t=0;t<e.length;t+=1)s(e[t])}s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const bae=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function xae(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function _ae(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:xae(t[n])&&xae(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:_ae(e[n],t[n]):e[n]=t[n]}))}function wae(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function Sae(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function Cae(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function Tae(e){void 0===e&&(e="");const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function Mae(e,t){void 0===e&&(e={});const n={on:{}},r={};_ae(n,fae),n._emitClasses=!0,n.init=!1;const i={},o=bae.map((e=>e.replace(/_/,""))),a=Object.assign({},e);return Object.keys(a).forEach((t=>{void 0!==e[t]&&(o.indexOf(t)>=0?xae(e[t])?(n[t]={},r[t]={},_ae(n[t],e[t]),_ae(r[t],e[t])):(n[t]=e[t],r[t]=e[t]):0===t.search(/on[A-Z]/)&&"function"==typeof e[t]?n.on["".concat(t[2].toLowerCase()).concat(t.substr(3))]=e[t]:i[t]=e[t])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:r,rest:i,events:{}}}function kae(e,t,n){void 0===e&&(e={});const r=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},o=(e,t)=>{Array.isArray(e)&&e.forEach((e=>{const n="symbol"==typeof e.type;"default"===t&&(t="container-end"),n&&e.children?o(e.children,t):e.type&&("SwiperSlide"===e.type.name||"AsyncComponentWrapper"===e.type.name)||e.componentOptions&&"SwiperSlide"===e.componentOptions.tag?r.push(e):i[t]&&i[t].push(e)}))};return Object.keys(e).forEach((t=>{if("function"!=typeof e[t])return;const n=e[t]();o(n,t)})),n.value=t.value,t.value=r,{slides:r,slots:i}}const Aae={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:i,wrapperTag:o}=e,a=Et("swiper"),s=Et(null),l=Et(!1),u=Et(!1),c=Et(null),d=Et(null),p=Et(null),h={value:[]},f={value:[]},g=Et(null),v=Et(null),m=Et(null),y=Et(null),{params:b,passedParams:x}=Mae(e);kae(n,h,f),p.value=x,f.value=h.value;b.onAny=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r(e,...n)},Object.assign(b.on,{_beforeBreakpoint:()=>{kae(n,h,f),l.value=!0},_containerClasses(e,t){a.value=t}});const _={...b};if(delete _.wrapperClass,d.value=new yae(_),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=h.value;const e={cache:!1,slides:h.value,renderExternal:e=>{s.value=e},renderExternalUpdate:!1};_ae(d.value.params.virtual,e),_ae(d.value.originalParams.virtual,e)}function w(e){return b.virtual?function(e,t,n){if(!n)return null;const r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:"".concat(n.offset,"px")}:{top:"".concat(n.offset,"px")},{from:o,to:a}=n,s=e.value.params.loop?-t.length:0,l=e.value.params.loop?2*t.length:t.length,u=[];for(let c=s;c<l;c+=1)c>=o&&c<=a&&u.length<t.length&&u.push(t[r(c)]);return u.map((t=>(t.props||(t.props={}),t.props.style||(t.props.style={}),t.props.swiperRef=e,t.props.style=i,t.type?aa(t.type,{...t.props},t.children):t.componentOptions?aa(t.componentOptions.Ctor,{...t.props},t.componentOptions.children):void 0)))}(d,e,s.value):(e.forEach(((e,t)=>{e.props||(e.props={}),e.props.swiperRef=d,e.props.swiperSlideIndex=t})),e)}return $n((()=>{!u.value&&d.value&&(d.value.emitSlidesClasses(),u.value=!0);const{passedParams:t}=Mae(e),n=function(e,t,n,r,i){const o=[];if(!t)return o;const a=e=>{o.indexOf(e)<0&&o.push(e)};if(n&&r){const e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return bae.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((n=>{if(n in e&&n in t)if(xae(e[n])&&xae(t[n])){const r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})),i.forEach((r=>{e[n][r]!==t[n][r]&&a(n)})))}else e[n]!==t[n]&&a(n)})),o}(t,p.value,h.value,f.value,(e=>e.props&&e.props.key));p.value=t,(n.length||l.value)&&d.value&&!d.value.destroyed&&function(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:a,scrollbarEl:s,paginationEl:l}=e;const u=i.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:c,pagination:d,navigation:p,scrollbar:h,virtual:f,thumbs:g}=t;let v,m,y,b,x,_,w,S;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(v=!0),i.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(m=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(y=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||s)&&(c.scrollbar||!1===c.scrollbar)&&h&&!h.el&&(b=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||o)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(x=!0);const C=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!r.loop?_=!0:!c.loop&&r.loop?w=!0:S=!0),u.forEach((e=>{if(xae(c[e])&&xae(r[e]))Object.assign(c[e],r[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in r[e])||r[e].enabled||C(e);else{const t=r[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=r[e]:!1===t&&C(e)}})),u.includes("controller")&&!m&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&f&&c.virtual.enabled?(f.slides=n,f.update(!0)):i.includes("virtual")&&f&&c.virtual.enabled&&(n&&(f.slides=n),f.update(!0)),i.includes("children")&&n&&c.loop&&(S=!0),v&&g.init()&&g.update(!0);m&&(t.controller.control=c.controller.control),y&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),d.init(),d.render(),d.update()),b&&(!t.isElement||s&&"string"!=typeof s||(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),t.el.appendChild(s)),s&&(c.scrollbar.el=s),h.init(),h.updateSize(),h.setTranslate()),x&&(t.isElement&&(o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-button-next"),o.innerHTML=t.hostEl.constructor.nextButtonSvg,o.part.add("button-next"),t.el.appendChild(o)),a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),o&&(c.navigation.nextEl=o),a&&(c.navigation.prevEl=a),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(_||S)&&t.loopDestroy(),(w||S)&&t.loopCreate(),t.update()}({swiper:d.value,slides:h.value,passedParams:t,changedParams:n,nextEl:g.value,prevEl:v.value,scrollbarEl:y.value,paginationEl:m.value}),l.value=!1})),zr("swiper",d),Mi(s,(()=>{rn((()=>{var e;!(e=d.value)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}))})),Xn((()=>{c.value&&(!function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:a,swiper:s}=e;wae(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),Sae(t)&&o&&(s.params.pagination.el=o,s.originalParams.pagination.el=o),Cae(t)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(n)}({el:c.value,nextEl:g.value,prevEl:v.value,paginationEl:m.value,scrollbarEl:y.value,swiper:d.value},b),r("swiper",d.value))})),Zn((()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)})),()=>{const{slides:t,slots:r}=kae(n,h,f);return aa(i,{ref:c,class:Tae(a.value)},[r["container-start"],aa(o,{class:(s=b.wrapperClass,void 0===s&&(s=""),s?s.includes("swiper-wrapper")?s:"swiper-wrapper ".concat(s):"swiper-wrapper")},[r["wrapper-start"],w(t),r["wrapper-end"]]),wae(e)&&[aa("div",{ref:v,class:"swiper-button-prev"}),aa("div",{ref:g,class:"swiper-button-next"})],Cae(e)&&aa("div",{ref:y,class:"swiper-scrollbar"}),Sae(e)&&aa("div",{ref:m,class:"swiper-pagination"}),r["container-end"]]);var s}}},Iae={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:i}=e,o=Et(null),a=Et("swiper-slide"),s=Et(!1);function l(e,t,n){t===o.value&&(a.value=n)}Xn((()=>{i&&i.value&&(i.value.on("_slideClass",l),r=!0)})),Kn((()=>{!r&&i&&i.value&&(i.value.on("_slideClass",l),r=!0)})),$n((()=>{o.value&&i&&i.value&&(void 0!==e.swiperSlideIndex&&(o.value.swiperSlideIndex=e.swiperSlideIndex),i.value.destroyed&&"swiper-slide"!==a.value&&(a.value="swiper-slide"))})),Zn((()=>{i&&i.value&&i.value.off("_slideClass",l)}));const u=ia((()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0})));zr("swiperSlide",u);const c=()=>{s.value=!0};return()=>aa(e.tag,{class:Tae("".concat(a.value)),ref:o,"data-swiper-slide-index":void 0===e.virtualIndex&&i&&i.value&&i.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:c},e.zoom?aa("div",{class:"swiper-zoom-container","data-swiper-zoom":"number"==typeof e.zoom?e.zoom:void 0},[n.default&&n.default(u.value),e.lazy&&!s.value&&aa("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(u.value),e.lazy&&!s.value&&aa("div",{class:"swiper-lazy-preloader"})])}};function Eae(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const r=t.params.navigation;(e=Voe(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function s(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=function(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((i=>{if(!n[i]&&!0===n.auto){let o=Loe(e.el,".".concat(r[i]))[0];o||(o=Boe("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}})),n}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),r=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=Voe(n),r=Voe(r);const i=(n,r)=>{n&&n.addEventListener("click","next"===r?u:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>i(e,"next"))),r.forEach((e=>i(e,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=Voe(e),n=Voe(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?u:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?p():(c(),s())})),r("toEdge fromEdge lock unlock",(()=>{s()})),r("destroy",(()=>{d()})),r("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=Voe(e),n=Voe(n),t.enabled?s():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r("click",((e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=Voe(r),o=Voe(o);const a=n.target;let s=o.includes(a)||r.includes(a);if(t.isElement&&!s){const e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find((e=>r.includes(e)||o.includes(e))))}if(t.params.navigation.hideOnClick&&!s){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...r,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),s()},disable:p,update:s,init:c,destroy:d})}function Oae(e){let t,n,{swiper:r,extendParams:i,on:o,emit:a,params:s}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,u,c,d,p,h,f,g,v=s&&s.autoplay?s.autoplay.delay:3e3,m=s&&s.autoplay?s.autoplay.delay:3e3,y=(new Date).getTime();function b(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",b),g||e.detail&&e.detail.bySwiperTouchMove||T())}const x=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?u=!0:u&&(m=l,u=!1);const e=r.autoplay.paused?l:y+m-(new Date).getTime();r.autoplay.timeLeft=e,a("autoplayTimeLeft",e,e/v),n=requestAnimationFrame((()=>{x()}))},_=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(n),x();let i=void 0===e?r.params.autoplay.delay:e;v=r.params.autoplay.delay,m=r.params.autoplay.delay;const o=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:r.slides[r.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(o)&&o>0&&void 0===e&&(i=o,v=o,m=o),l=i;const s=r.params.speed,u=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(s,!0,!0),a("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,s,!0,!0),a("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(s,!0,!0),a("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,s,!0,!0),a("autoplay")),r.params.cssMode&&(y=(new Date).getTime(),requestAnimationFrame((()=>{_()}))))};return i>0?(clearTimeout(t),t=setTimeout((()=>{u()}),i)):requestAnimationFrame((()=>{u()})),i},w=()=>{y=(new Date).getTime(),r.autoplay.running=!0,_(),a("autoplayStart")},S=()=>{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),a("autoplayStop")},C=(e,n)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(f=!0);const i=()=>{a("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",b):T()};if(r.autoplay.paused=!0,n)return h&&(l=r.params.autoplay.delay),h=!1,void i();const o=l||r.params.autoplay.delay;l=o-((new Date).getTime()-y),r.isEnd&&l<0&&!r.params.loop||(l<0&&(l=0),i())},T=()=>{r.isEnd&&l<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(y=(new Date).getTime(),f?(f=!1,_(l)):_(),r.autoplay.paused=!1,a("autoplayResume"))},M=()=>{if(r.destroyed||!r.autoplay.running)return;const e=Soe();"hidden"===e.visibilityState&&(f=!0,C(!0)),"visible"===e.visibilityState&&T()},k=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,r.animating||r.autoplay.paused||C(!0))},A=e=>{"mouse"===e.pointerType&&(g=!1,r.autoplay.paused&&T())};o("init",(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",k),r.el.addEventListener("pointerleave",A)),Soe().addEventListener("visibilitychange",M),w())})),o("destroy",(()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",k),r.el.removeEventListener("pointerleave",A)),Soe().removeEventListener("visibilitychange",M),r.autoplay.running&&S()})),o("_freeModeStaticRelease",(()=>{(d||f)&&T()})),o("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?S():C(!0,!0)})),o("beforeTransitionStart",((e,t,n)=>{!r.destroyed&&r.autoplay.running&&(n||!r.params.autoplay.disableOnInteraction?C(!0,!0):S())})),o("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?S():(c=!0,d=!1,f=!1,p=setTimeout((()=>{f=!0,d=!0,C(!0)}),200)))})),o("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&c){if(clearTimeout(p),clearTimeout(t),r.params.autoplay.disableOnInteraction)return d=!1,void(c=!1);d&&r.params.cssMode&&T(),d=!1,c=!1}})),o("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(h=!0)})),Object.assign(r.autoplay,{start:w,stop:S,pause:C,resume:T})}function Dae(e,t){const n=Poe(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Pae(e,t,n){const r="swiper-slide-shadow".concat(n?"-".concat(n):"").concat(" swiper-slide-shadow-".concat(e)),i=Poe(t);let o=i.querySelector(".".concat(r.split(" ").join(".")));return o||(o=Boe("div",r.split(" ")),i.append(o)),o}function Lae(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});!function(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:o,overwriteParams:a,perspective:s,recreateShadows:l,getEffectParams:u}=e;let c;r("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push("".concat(n.params.containerModifierClass).concat(t)),s&&s()&&n.classNames.push("".concat(n.params.containerModifierClass,"3d"));const e=a?a():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),r("setTranslate",(()=>{n.params.effect===t&&i()})),r("setTransition",((e,r)=>{n.params.effect===t&&o(r)})),r("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),r("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame((()=>{c&&n.slides&&n.slides.length&&(i(),c=!1)})))}))}({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:e,height:n,slides:r,slidesSizesGrid:i}=t,o=t.params.coverflowEffect,a=t.isHorizontal(),s=t.translate,l=a?e/2-s:n/2-s,u=a?o.rotate:-o.rotate,c=o.depth,d=function(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}(t);for(let t=0,p=r.length;t<p;t+=1){const e=r[t],n=i[t],s=(l-e.swiperSlideOffset-n/2)/n,p="function"==typeof o.modifier?o.modifier(s):s*o.modifier;let h=a?u*p:0,f=a?0:u*p,g=-c*Math.abs(p),v=o.stretch;"string"==typeof v&&-1!==v.indexOf("%")&&(v=parseFloat(o.stretch)/100*n);let m=a?0:v*p,y=a?v*p:0,b=1-(1-o.scale)*Math.abs(p);Math.abs(y)<.001&&(y=0),Math.abs(m)<.001&&(m=0),Math.abs(g)<.001&&(g=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(b)<.001&&(b=0);const x="translate3d(".concat(y,"px,").concat(m,"px,").concat(g,"px)  rotateX(").concat(d(f),"deg) rotateY(").concat(d(h),"deg) scale(").concat(b,")");if(Dae(0,e).style.transform=x,e.style.zIndex=1-Math.abs(Math.round(p)),o.slideShadows){let t=a?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=a?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");t||(t=Pae("coverflow",e,a?"left":"top")),n||(n=Pae("coverflow",e,a?"right":"bottom")),t&&(t.style.opacity=p>0?p:0),n&&(n.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((e=>Poe(e))).forEach((t=>{t.style.transitionDuration="".concat(e,"ms"),t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration="".concat(e,"ms")}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}export{FP as $,oa as A,Mo as B,hA as C,j as D,_M as E,Ps as F,Do as G,_n as H,wn as I,yI as J,Q as K,Uw as L,lo as M,_I as N,Ot as O,Mi as P,Zn as Q,zr as R,Q_ as S,or as T,Pi as U,Pn as V,If as W,FT as X,zT as Y,jm as Z,LI as _,II as a,JS as a$,On as a0,Qy as a1,ux as a2,zP as a3,ZD as a4,$5 as a5,E3 as a6,p3 as a7,V2 as a8,M8 as a9,DI as aA,tw as aB,wT as aC,Ew as aD,It as aE,B_ as aF,N_ as aG,cr as aH,Bo as aI,zI as aJ,HI as aK,rn as aL,Vm as aM,nM as aN,tM as aO,ox as aP,Oo as aQ,Aae as aR,Iae as aS,Oae as aT,Eae as aU,Lae as aV,bS as aW,lM as aX,Wf as aY,Df as aZ,xS as a_,cee as aa,ree as ab,Yee as ac,xre as ad,Mte as ae,Vre as af,Fte as ag,qne as ah,fre as ai,sie as aj,Yie as ak,r2 as al,Ws as am,Y as an,ia as ao,rr as ap,za as aq,Cf as ar,wf as as,Hw as at,UT as au,qS as av,__ as aw,qT as ax,tC as ay,_T as az,TM as b,boe as b0,VP as b1,Ff as b2,Nf as b3,cC as b4,XI as c,rE as d,oD as e,sr as f,ht as g,_o as h,Fr as i,ko as j,Rs as k,Eo as l,bI as m,Uy as n,go as o,Ry as p,Vx as q,Et as r,sE as s,Ly as t,Lt as u,HT as v,Sn as w,Xn as x,xo as y,_r as z};
