klein-components-vue3 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,127 @@
1
+ (function(h,Nn){typeof exports=="object"&&typeof module<"u"?module.exports=Nn(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Nn):(h=typeof globalThis<"u"?globalThis:h||self,h["klein-components-vue3"]=Nn(h.Vue))})(this,function(h){"use strict";var vbe=Object.defineProperty;var gbe=(h,Nn,ms)=>Nn in h?vbe(h,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ms}):h[Nn]=ms;var az=(h,Nn,ms)=>gbe(h,typeof Nn!="symbol"?Nn+"":Nn,ms);const Nn=h.defineComponent({name:"BtnRender",props:{render:{type:Function,required:!0},params:{type:null,default:null}},setup(e){return()=>e.render(h.h,e.params)}});function ms(e,t){return function(){return e.apply(t,arguments)}}const{toString:oz}=Object.prototype,{getPrototypeOf:vy}=Object,{iterator:Bd,toStringTag:gT}=Symbol,Fd=(e=>t=>{const r=oz.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wa=e=>(e=e.toLowerCase(),t=>Fd(t)===e),zd=e=>t=>typeof t===e,{isArray:Ql}=Array,Yc=zd("undefined");function sz(e){return e!==null&&!Yc(e)&&e.constructor!==null&&!Yc(e.constructor)&&gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mT=wa("ArrayBuffer");function lz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mT(e.buffer),t}const uz=zd("string"),gn=zd("function"),yT=zd("number"),$d=e=>e!==null&&typeof e=="object",cz=e=>e===!0||e===!1,Hd=e=>{if(Fd(e)!=="object")return!1;const t=vy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gT in e)&&!(Bd in e)},fz=wa("Date"),hz=wa("File"),dz=wa("Blob"),pz=wa("FileList"),vz=e=>$d(e)&&gn(e.pipe),gz=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gn(e.append)&&((t=Fd(e))==="formdata"||t==="object"&&gn(e.toString)&&e.toString()==="[object FormData]"))},mz=wa("URLSearchParams"),[yz,_z,bz,Sz]=["ReadableStream","Request","Response","Headers"].map(wa),wz=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xc(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Ql(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function _T(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bT=e=>!Yc(e)&&e!==ys;function gy(){const{caseless:e}=bT(this)&&this||{},t={},r=(n,a)=>{const i=e&&_T(t,a)||a;Hd(t[i])&&Hd(n)?t[i]=gy(t[i],n):Hd(n)?t[i]=gy({},n):Ql(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Xc(arguments[n],r);return t}const xz=(e,t,r,{allOwnKeys:n}={})=>(Xc(t,(a,i)=>{r&&gn(a)?e[i]=ms(a,r):e[i]=a},{allOwnKeys:n}),e),Cz=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tz=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Dz=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&vy(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ez=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Az=e=>{if(!e)return null;if(Ql(e))return e;let t=e.length;if(!yT(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vy(Uint8Array)),Nz=(e,t)=>{const n=(e&&e[Bd]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Iz=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Lz=wa("HTMLFormElement"),kz=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),ST=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Pz=wa("RegExp"),wT=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Xc(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},Oz=e=>{wT(e,(t,r)=>{if(gn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(gn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Rz=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Ql(e)?n(e):n(String(e).split(t)),r},Vz=()=>{},Bz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Fz(e){return!!(e&&gn(e.append)&&e[gT]==="FormData"&&e[Bd])}const zz=e=>{const t=new Array(10),r=(n,a)=>{if($d(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Ql(n)?[]:{};return Xc(n,(o,s)=>{const l=r(o,a+1);!Yc(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},$z=wa("AsyncFunction"),Hz=e=>e&&($d(e)||gn(e))&&gn(e.then)&&gn(e.catch),xT=((e,t)=>e?setImmediate:t?((r,n)=>(ys.addEventListener("message",({source:a,data:i})=>{a===ys&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),ys.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",gn(ys.postMessage)),Gz=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||xT,Q={isArray:Ql,isArrayBuffer:mT,isBuffer:sz,isFormData:gz,isArrayBufferView:lz,isString:uz,isNumber:yT,isBoolean:cz,isObject:$d,isPlainObject:Hd,isReadableStream:yz,isRequest:_z,isResponse:bz,isHeaders:Sz,isUndefined:Yc,isDate:fz,isFile:hz,isBlob:dz,isRegExp:Pz,isFunction:gn,isStream:vz,isURLSearchParams:mz,isTypedArray:Mz,isFileList:pz,forEach:Xc,merge:gy,extend:xz,trim:wz,stripBOM:Cz,inherits:Tz,toFlatObject:Dz,kindOf:Fd,kindOfTest:wa,endsWith:Ez,toArray:Az,forEachEntry:Nz,matchAll:Iz,isHTMLForm:Lz,hasOwnProperty:ST,hasOwnProp:ST,reduceDescriptors:wT,freezeMethods:Oz,toObjectSet:Rz,toCamelCase:kz,noop:Vz,toFiniteNumber:Bz,findKey:_T,global:ys,isContextDefined:bT,isSpecCompliantForm:Fz,toJSONObject:zz,isAsyncFn:$z,isThenable:Hz,setImmediate:xT,asap:Gz,isIterable:e=>e!=null&&gn(e[Bd])};function nt(e,t,r,n,a){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),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Q.inherits(nt,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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const CT=nt.prototype,TT={};["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=>{TT[e]={value:e}}),Object.defineProperties(nt,TT),Object.defineProperty(CT,"isAxiosError",{value:!0}),nt.from=(e,t,r,n,a,i)=>{const o=Object.create(CT);return Q.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nt.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Uz=null;function my(e){return Q.isPlainObject(e)||Q.isArray(e)}function DT(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function ET(e,t,r){return e?e.concat(t).map(function(a,i){return a=DT(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function Wz(e){return Q.isArray(e)&&!e.some(my)}const Yz=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Gd(e,t,r){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Q.isUndefined(m[g])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Q.isDate(v))return v.toISOString();if(Q.isBoolean(v))return v.toString();if(!l&&Q.isBlob(v))throw new nt("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(v)||Q.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,m){let y=v;if(v&&!m&&typeof v=="object"){if(Q.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(Q.isArray(v)&&Wz(v)||(Q.isFileList(v)||Q.endsWith(g,"[]"))&&(y=Q.toArray(v)))return g=DT(g),y.forEach(function(b,S){!(Q.isUndefined(b)||b===null)&&t.append(o===!0?ET([g],S,i):o===null?g:g+"[]",u(b))}),!1}return my(v)?!0:(t.append(ET(m,g,i),u(v)),!1)}const f=[],d=Object.assign(Yz,{defaultVisitor:c,convertValue:u,isVisitable:my});function p(v,g){if(!Q.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),Q.forEach(v,function(y,_){(!(Q.isUndefined(y)||y===null)&&a.call(t,y,Q.isString(_)?_.trim():_,g,d))===!0&&p(y,g?g.concat(_):[_])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return p(e),t}function AT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function yy(e,t){this._pairs=[],e&&Gd(e,this,t)}const MT=yy.prototype;MT.append=function(t,r){this._pairs.push([t,r])},MT.toString=function(t){const r=t?function(n){return t.call(this,n,AT)}:AT;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Xz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function NT(e,t,r){if(!t)return e;const n=r&&r.encode||Xz;Q.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Q.isURLSearchParams(t)?t.toString():new yy(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class IT{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(n){n!==null&&t(n)})}}const LT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kz={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yy,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_y=typeof window<"u"&&typeof document<"u",by=typeof navigator=="object"&&navigator||void 0,jz=_y&&(!by||["ReactNative","NativeScript","NS"].indexOf(by.product)<0),Zz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qz=_y&&window.location.href||"http://localhost",Br={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_y,hasStandardBrowserEnv:jz,hasStandardBrowserWebWorkerEnv:Zz,navigator:by,origin:qz},Symbol.toStringTag,{value:"Module"})),...Kz};function Jz(e,t){return Gd(e,new Br.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Br.isNode&&Q.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Qz(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function e$(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function kT(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=r.length;return o=!o&&Q.isArray(a)?a.length:o,l?(Q.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Q.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Q.isArray(a[o])&&(a[o]=e$(a[o])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const r={};return Q.forEachEntry(e,(n,a)=>{t(Qz(n),a,r,0)}),r}return null}function t$(e,t,r){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Kc={transitional:LT,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return a?JSON.stringify(kT(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Jz(t,this.formSerializer).toString();if((s=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gd(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),t$(t)):t}],transformResponse:[function(t){const r=this.transitional||Kc.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?nt.from(s,nt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Br.classes.FormData,Blob:Br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Kc.headers[e]={}});const r$=Q.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"]),n$=e=>{const t={};let r,n,a;return e&&e.split(`
2
+ `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&r$[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},PT=Symbol("internals");function jc(e){return e&&String(e).trim().toLowerCase()}function Ud(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Ud):String(e)}function a$(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const i$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sy(e,t,r,n,a){if(Q.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Q.isString(t)){if(Q.isString(n))return t.indexOf(n)!==-1;if(Q.isRegExp(n))return n.test(t)}}function o$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function s$(e,t){const r=Q.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}let mn=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,u){const c=jc(l);if(!c)throw new Error("header name must be a non-empty string");const f=Q.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=Ud(s))}const o=(s,l)=>Q.forEach(s,(u,c)=>i(u,c,l));if(Q.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(Q.isString(t)&&(t=t.trim())&&!i$(t))o(n$(t),r);else if(Q.isObject(t)&&Q.isIterable(t)){let s={},l,u;for(const c of t){if(!Q.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?Q.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=jc(t),t){const n=Q.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return a$(a);if(Q.isFunction(r))return r.call(this,a,n);if(Q.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jc(t),t){const n=Q.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Sy(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=jc(o),o){const s=Q.findKey(n,o);s&&(!r||Sy(n,n[s],s,r))&&(delete n[s],a=!0)}}return Q.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||Sy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Q.forEach(this,(a,i)=>{const o=Q.findKey(n,i);if(o){r[o]=Ud(a),delete r[i];return}const s=t?o$(i):String(i).trim();s!==i&&delete r[i],r[s]=Ud(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Q.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Q.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[PT]=this[PT]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=jc(o);n[s]||(s$(a,o),n[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}};mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(mn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Q.freezeMethods(mn);function wy(e,t){const r=this||Kc,n=t||r,a=mn.from(n.headers);let i=n.data;return Q.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function OT(e){return!!(e&&e.__CANCEL__)}function eu(e,t,r){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,r),this.name="CanceledError"}Q.inherits(eu,nt,{__CANCEL__:!0});function RT(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new nt("Request failed with status code "+r.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function l$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function u$(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),r[a]=l,n[a]=u;let f=i,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=c&&u-c;return p?Math.round(d*1e3/p):void 0}}function c$(e,t){let r=0,n=1e3/t,a,i;const o=(u,c=Date.now())=>{r=c,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},n-f)))},()=>a&&o(a)]}const Wd=(e,t,r=3)=>{let n=0;const a=u$(50,250);return c$(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,u=a(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},VT=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},BT=e=>(...t)=>Q.asap(()=>e(...t)),f$=Br.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Br.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Br.origin),Br.navigator&&/(msie|trident)/i.test(Br.navigator.userAgent)):()=>!0,h$=Br.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];Q.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Q.isString(n)&&o.push("path="+n),Q.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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(){return null},remove(){}};function d$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function p$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FT(e,t,r){let n=!d$(t);return e&&(n||r==!1)?p$(e,t):t}const zT=e=>e instanceof mn?{...e}:e;function _s(e,t){t=t||{};const r={};function n(u,c,f,d){return Q.isPlainObject(u)&&Q.isPlainObject(c)?Q.merge.call({caseless:d},u,c):Q.isPlainObject(c)?Q.merge({},c):Q.isArray(c)?c.slice():c}function a(u,c,f,d){if(Q.isUndefined(c)){if(!Q.isUndefined(u))return n(void 0,u,f,d)}else return n(u,c,f,d)}function i(u,c){if(!Q.isUndefined(c))return n(void 0,c)}function o(u,c){if(Q.isUndefined(c)){if(!Q.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>a(zT(u),zT(c),f,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Q.isUndefined(d)&&f!==s||(r[c]=d)}),r}const $T=e=>{const t=_s({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=mn.from(o),t.url=NT(FT(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(r)){if(Br.hasStandardBrowserEnv||Br.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Br.hasStandardBrowserEnv&&(n&&Q.isFunction(n)&&(n=n(t)),n||n!==!1&&f$(t.url))){const u=a&&i&&h$.read(i);u&&o.set(a,u)}return t},v$=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=$T(e);let i=a.data;const o=mn.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,d,p,v;function g(){p&&p(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function y(){if(!m)return;const b=mn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};RT(function(C){r(C),g()},function(C){n(C),g()},x),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new nt("Request aborted",nt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new nt("Network Error",nt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const x=a.transitional||LT;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),n(new nt(S,x.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&Q.forEach(o.toJSON(),function(S,x){m.setRequestHeader(x,S)}),Q.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),s&&s!=="json"&&(m.responseType=a.responseType),u&&([d,v]=Wd(u,!0),m.addEventListener("progress",d)),l&&m.upload&&([f,p]=Wd(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(c=b=>{m&&(n(!b||b.type?new eu(null,e,m):b),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const _=l$(a.url);if(_&&Br.protocols.indexOf(_)===-1){n(new nt("Unsupported protocol "+_+":",nt.ERR_BAD_REQUEST,e));return}m.send(i||null)})},g$=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof nt?c:new eu(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>Q.asap(s),l}},m$=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},y$=async function*(e,t){for await(const r of _$(e))yield*m$(r,t)},_$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},HT=(e,t,r,n)=>{const a=y$(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let d=i+=f;r(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Yd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",GT=Yd&&typeof ReadableStream=="function",b$=Yd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),UT=(e,...t)=>{try{return!!e(...t)}catch{return!1}},S$=GT&&UT(()=>{let e=!1;const t=new Request(Br.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),WT=64*1024,xy=GT&&UT(()=>Q.isReadableStream(new Response("").body)),Xd={stream:xy&&(e=>e.body)};Yd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xd[t]&&(Xd[t]=Q.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,n)})})})(new Response);const w$=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(Br.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await b$(e)).byteLength},x$=async(e,t)=>{const r=Q.toFiniteNumber(e.getContentLength());return r??w$(t)},Cy={http:Uz,xhr:v$,fetch:Yd&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=$T(e);u=u?(u+"").toLowerCase():"text";let p=g$([a,i&&i.toAbortSignal()],o),v;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(l&&S$&&r!=="get"&&r!=="head"&&(m=await x$(c,n))!==0){let x=new Request(t,{method:"POST",body:n,duplex:"half"}),w;if(Q.isFormData(n)&&(w=x.headers.get("content-type"))&&c.setContentType(w),x.body){const[C,T]=VT(m,Wd(BT(l)));n=HT(x.body,WT,C,T)}}Q.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let _=await fetch(v,d);const b=xy&&(u==="stream"||u==="response");if(xy&&(s||b&&g)){const x={};["status","statusText","headers"].forEach(D=>{x[D]=_[D]});const w=Q.toFiniteNumber(_.headers.get("content-length")),[C,T]=s&&VT(w,Wd(BT(s),!0))||[];_=new Response(HT(_.body,WT,C,()=>{T&&T(),g&&g()}),x)}u=u||"text";let S=await Xd[Q.findKey(Xd,u)||"text"](_,e);return!b&&g&&g(),await new Promise((x,w)=>{RT(x,w,{data:S,headers:mn.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:v})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,v),{cause:y.cause||y}):nt.from(y,y&&y.code,e,v)}})};Q.forEach(Cy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const YT=e=>`- ${e}`,C$=e=>Q.isFunction(e)||e===null||e===!1,XT={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!C$(r)&&(n=Cy[(o=String(r)).toLowerCase()],n===void 0))throw new nt(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
4
+ `+i.map(YT).join(`
5
+ `):" "+YT(i[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Cy};function Ty(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eu(null,e)}function KT(e){return Ty(e),e.headers=mn.from(e.headers),e.data=wy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),XT.getAdapter(e.adapter||Kc.adapter)(e).then(function(n){return Ty(e),n.data=wy.call(e,e.transformResponse,n),n.headers=mn.from(n.headers),n},function(n){return OT(n)||(Ty(e),n&&n.response&&(n.response.data=wy.call(e,e.transformResponse,n.response),n.response.headers=mn.from(n.response.headers))),Promise.reject(n)})}const jT="1.10.0",Kd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ZT={};Kd.transitional=function(t,r,n){function a(i,o){return"[Axios v"+jT+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new nt(a(o," has been removed"+(r?" in "+r:"")),nt.ERR_DEPRECATED);return r&&!ZT[o]&&(ZT[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}},Kd.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function T$(e,t,r){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new nt("option "+i+" must be "+l,nt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new nt("Unknown option "+i,nt.ERR_BAD_OPTION)}}const jd={assertOptions:T$,validators:Kd},ja=jd.validators;let bs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new IT,response:new IT}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=_s(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&jd.assertOptions(n,{silentJSONParsing:ja.transitional(ja.boolean),forcedJSONParsing:ja.transitional(ja.boolean),clarifyTimeoutError:ja.transitional(ja.boolean)},!1),a!=null&&(Q.isFunction(a)?r.paramsSerializer={serialize:a}:jd.assertOptions(a,{encode:ja.function,serialize:ja.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),jd.assertOptions(r,{baseUrl:ja.spelling("baseURL"),withXsrfToken:ja.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Q.merge(i.common,i[r.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=mn.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const v=[KT.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(r);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let p=r;for(f=0;f<d;){const v=s[f++],g=s[f++];try{p=v(p)}catch(m){g.call(this,m);break}}try{c=KT.call(this,p)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=_s(this.defaults,t);const r=FT(t.baseURL,t.url,t.allowAbsoluteUrls);return NT(r,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(r,n){return this.request(_s(n||{},{method:t,url:r,data:(n||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(_s(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}bs.prototype[t]=r(),bs.prototype[t+"Form"]=r(!0)});let D$=class iz{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new eu(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new iz(function(a){t=a}),cancel:t}}};function E$(e){return function(r){return e.apply(null,r)}}function A$(e){return Q.isObject(e)&&e.isAxiosError===!0}const Dy={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(Dy).forEach(([e,t])=>{Dy[t]=e});function qT(e){const t=new bs(e),r=ms(bs.prototype.request,t);return Q.extend(r,bs.prototype,t,{allOwnKeys:!0}),Q.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return qT(_s(e,a))},r}const ir=qT(Kc);ir.Axios=bs,ir.CanceledError=eu,ir.CancelToken=D$,ir.isCancel=OT,ir.VERSION=jT,ir.toFormData=Gd,ir.AxiosError=nt,ir.Cancel=ir.CanceledError,ir.all=function(t){return Promise.all(t)},ir.spread=E$,ir.isAxiosError=A$,ir.mergeConfig=_s,ir.AxiosHeaders=mn,ir.formToJSON=e=>kT(Q.isHTMLForm(e)?new FormData(e):e),ir.getAdapter=XT.getAdapter,ir.HttpStatusCode=Dy,ir.default=ir;const{Axios:Cbe,AxiosError:Tbe,CanceledError:Dbe,isCancel:Ebe,CancelToken:Abe,VERSION:Mbe,all:Nbe,Cancel:Ibe,isAxiosError:Lbe,spread:kbe,toFormData:Pbe,AxiosHeaders:Obe,HttpStatusCode:Rbe,formToJSON:Vbe,getAdapter:Bbe,mergeConfig:Fbe}=ir;/*!
7
+ * shared v11.1.12
8
+ * (c) 2025 kazuya kawaguchi
9
+ * Released under the MIT License.
10
+ */function Za(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const JT={};function Ey(e){JT[e]||(JT[e]=!0,Za(e))}const xa=typeof window<"u";let In,Ss;if(process.env.NODE_ENV!=="production"){const e=xa&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(In=t=>{e.mark(t)},Ss=(t,r,n)=>{e.measure(t,r,n),e.clearMarks(r),e.clearMarks(n)})}const M$=/\{([0-9a-zA-Z]+)\}/g;function Zd(e,...t){return t.length===1&&gt(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(M$,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const qa=(e,t=!1)=>t?Symbol.for(e):Symbol(e),N$=(e,t,r)=>I$({l:e,k:t,s:r}),I$=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),cr=e=>typeof e=="number"&&isFinite(e),L$=e=>Ay(e)==="[object Date]",tu=e=>Ay(e)==="[object RegExp]",qd=e=>ut(e)&&Object.keys(e).length===0,mr=Object.assign,k$=Object.create,Ot=(e=null)=>k$(e);let QT;const ws=()=>QT||(QT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ot());function eD(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function tD(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P$(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(n,a,i)=>`${a}="${tD(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(n,a,i)=>`${a}='${tD(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Za("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(n=>{e=e.replace(n,"$1javascript&#58;")}),e}const O$=Object.prototype.hasOwnProperty;function Ca(e,t){return O$.call(e,t)}const jt=Array.isArray,zt=e=>typeof e=="function",Te=e=>typeof e=="string",bt=e=>typeof e=="boolean",gt=e=>e!==null&&typeof e=="object",R$=e=>gt(e)&&zt(e.then)&&zt(e.catch),rD=Object.prototype.toString,Ay=e=>rD.call(e),ut=e=>Ay(e)==="[object Object]",V$=e=>e==null?"":jt(e)||ut(e)&&e.toString===rD?JSON.stringify(e,null,2):String(e);function My(e,t=""){return e.reduce((r,n,a)=>a===0?r+n:r+t+n,"")}const nD=2;function B$(e,t=0,r=e.length){const n=e.split(/\r?\n/);let a=0;const i=[];for(let o=0;o<n.length;o++)if(a+=n[o].length+1,a>=t){for(let s=o-nD;s<=o+nD||r>a;s++){if(s<0||s>=n.length)continue;const l=s+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${n[s]}`);const u=n[s].length;if(s===o){const c=t-(a-u)+1,f=Math.max(1,r>a?u-c:r-t);i.push(" | "+" ".repeat(c)+"^".repeat(f))}else if(s>o){if(r>a){const c=Math.max(Math.min(r-a,u),1);i.push(" | "+"^".repeat(c))}a+=u+1}}break}return i.join(`
11
+ `)}function Ny(){const e=new Map;return{events:e,on(r,n){const a=e.get(r);a&&a.push(n)||e.set(r,[n])},off(r,n){const a=e.get(r);a&&a.splice(a.indexOf(n)>>>0,1)},emit(r,n){(e.get(r)||[]).slice().map(a=>a(n)),(e.get("*")||[]).slice().map(a=>a(r,n))}}}const Jd=e=>!gt(e)||jt(e);function Qd(e,t){if(Jd(e)||Jd(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:a}=r.pop();Object.keys(n).forEach(i=>{i!=="__proto__"&&(gt(n[i])&&!gt(a[i])&&(a[i]=Array.isArray(n[i])?[]:Ot()),Jd(a[i])||Jd(n[i])?a[i]=n[i]:r.push({src:n[i],des:a[i]}))})}}/*!
12
+ * message-compiler v11.1.12
13
+ * (c) 2025 kazuya kawaguchi
14
+ * Released under the MIT License.
15
+ */function F$(e,t,r){return{line:e,column:t,offset:r}}function Iy(e,t,r){return{start:e,end:t}}const je={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},z$=17,$$={[je.EXPECTED_TOKEN]:"Expected token: '{0}'",[je.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[je.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[je.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[je.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[je.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[je.EMPTY_PLACEHOLDER]:"Empty placeholder",[je.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[je.INVALID_LINKED_FORMAT]:"Invalid linked format",[je.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[je.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[je.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[je.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[je.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[je.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ru(e,t,r={}){const{domain:n,messages:a,args:i}=r,o=process.env.NODE_ENV!=="production"?Zd((a||$$)[e]||"",...i||[]):e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=n,s}function H$(e){throw e}const G$=/<\/?[\w\s="/.':;#-\/]+>/,U$=e=>G$.test(e),Ja=" ",W$="\r",Fr=`
16
+ `,Y$="\u2028",X$="\u2029";function K$(e){const t=e;let r=0,n=1,a=1,i=0;const o=C=>t[C]===W$&&t[C+1]===Fr,s=C=>t[C]===Fr,l=C=>t[C]===X$,u=C=>t[C]===Y$,c=C=>o(C)||s(C)||l(C)||u(C),f=()=>r,d=()=>n,p=()=>a,v=()=>i,g=C=>o(C)||l(C)||u(C)?Fr:t[C],m=()=>g(r),y=()=>g(r+i);function _(){return i=0,c(r)&&(n++,a=0),o(r)&&r++,r++,a++,t[r]}function b(){return o(r+i)&&i++,i++,t[r+i]}function S(){r=0,n=1,a=1,i=0}function x(C=0){i=C}function w(){const C=r+i;for(;C!==r;)_();i=0}return{index:f,line:d,column:p,peekOffset:v,charAt:g,currentChar:m,currentPeek:y,next:_,peek:b,reset:S,resetPeek:x,skipToPeek:w}}const Oi=void 0,j$=".",aD="'",Z$="tokenizer";function q$(e,t={}){const r=t.location!==!1,n=K$(e),a=()=>n.index(),i=()=>F$(n.line(),n.column(),n.index()),o=i(),s=a(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(O,z,oe,...be){const St=u();if(z.column+=oe,z.offset+=oe,c){const At=r?Iy(St.startLoc,z):null,ae=ru(O,At,{domain:Z$,args:be});c(ae)}}function d(O,z,oe){O.endLoc=i(),O.currentType=z;const be={type:z};return r&&(be.loc=Iy(O.startLoc,O.endLoc)),oe!=null&&(be.value=oe),be}const p=O=>d(O,13);function v(O,z){return O.currentChar()===z?(O.next(),z):(f(je.EXPECTED_TOKEN,i(),0,z),"")}function g(O){let z="";for(;O.currentPeek()===Ja||O.currentPeek()===Fr;)z+=O.currentPeek(),O.peek();return z}function m(O){const z=g(O);return O.skipToPeek(),z}function y(O){if(O===Oi)return!1;const z=O.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z===95}function _(O){if(O===Oi)return!1;const z=O.charCodeAt(0);return z>=48&&z<=57}function b(O,z){const{currentType:oe}=z;if(oe!==2)return!1;g(O);const be=y(O.currentPeek());return O.resetPeek(),be}function S(O,z){const{currentType:oe}=z;if(oe!==2)return!1;g(O);const be=O.currentPeek()==="-"?O.peek():O.currentPeek(),St=_(be);return O.resetPeek(),St}function x(O,z){const{currentType:oe}=z;if(oe!==2)return!1;g(O);const be=O.currentPeek()===aD;return O.resetPeek(),be}function w(O,z){const{currentType:oe}=z;if(oe!==7)return!1;g(O);const be=O.currentPeek()===".";return O.resetPeek(),be}function C(O,z){const{currentType:oe}=z;if(oe!==8)return!1;g(O);const be=y(O.currentPeek());return O.resetPeek(),be}function T(O,z){const{currentType:oe}=z;if(!(oe===7||oe===11))return!1;g(O);const be=O.currentPeek()===":";return O.resetPeek(),be}function D(O,z){const{currentType:oe}=z;if(oe!==9)return!1;const be=()=>{const At=O.currentPeek();return At==="{"?y(O.peek()):At==="@"||At==="|"||At===":"||At==="."||At===Ja||!At?!1:At===Fr?(O.peek(),be()):A(O,!1)},St=be();return O.resetPeek(),St}function E(O){g(O);const z=O.currentPeek()==="|";return O.resetPeek(),z}function A(O,z=!0){const oe=(St=!1,At="")=>{const ae=O.currentPeek();return ae==="{"||ae==="@"||!ae?St:ae==="|"?!(At===Ja||At===Fr):ae===Ja?(O.peek(),oe(!0,Ja)):ae===Fr?(O.peek(),oe(!0,Fr)):!0},be=oe();return z&&O.resetPeek(),be}function L(O,z){const oe=O.currentChar();return oe===Oi?Oi:z(oe)?(O.next(),oe):null}function N(O){const z=O.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36}function I(O){return L(O,N)}function k(O){const z=O.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36||z===45}function P(O){return L(O,k)}function V(O){const z=O.charCodeAt(0);return z>=48&&z<=57}function B(O){return L(O,V)}function G(O){const z=O.charCodeAt(0);return z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102}function U(O){return L(O,G)}function W(O){let z="",oe="";for(;z=B(O);)oe+=z;return oe}function re(O){let z="";for(;;){const oe=O.currentChar();if(oe==="{"||oe==="}"||oe==="@"||oe==="|"||!oe)break;if(oe===Ja||oe===Fr)if(A(O))z+=oe,O.next();else{if(E(O))break;z+=oe,O.next()}else z+=oe,O.next()}return z}function le(O){m(O);let z="",oe="";for(;z=P(O);)oe+=z;const be=O.currentChar();if(be&&be!=="}"&&be!==Oi&&be!==Ja&&be!==Fr&&be!==" "){const St=Ae(O);return f(je.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,oe+St),oe+St}return O.currentChar()===Oi&&f(je.UNTERMINATED_CLOSING_BRACE,i(),0),oe}function Y(O){m(O);let z="";return O.currentChar()==="-"?(O.next(),z+=`-${W(O)}`):z+=W(O),O.currentChar()===Oi&&f(je.UNTERMINATED_CLOSING_BRACE,i(),0),z}function X(O){return O!==aD&&O!==Fr}function fe(O){m(O),v(O,"'");let z="",oe="";for(;z=L(O,X);)z==="\\"?oe+=we(O):oe+=z;const be=O.currentChar();return be===Fr||be===Oi?(f(je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),be===Fr&&(O.next(),v(O,"'")),oe):(v(O,"'"),oe)}function we(O){const z=O.currentChar();switch(z){case"\\":case"'":return O.next(),`\\${z}`;case"u":return de(O,z,4);case"U":return de(O,z,6);default:return f(je.UNKNOWN_ESCAPE_SEQUENCE,i(),0,z),""}}function de(O,z,oe){v(O,z);let be="";for(let St=0;St<oe;St++){const At=U(O);if(!At){f(je.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${z}${be}${O.currentChar()}`);break}be+=At}return`\\${z}${be}`}function pe(O){return O!=="{"&&O!=="}"&&O!==Ja&&O!==Fr}function Ae(O){m(O);let z="",oe="";for(;z=L(O,pe);)oe+=z;return oe}function me(O){let z="",oe="";for(;z=I(O);)oe+=z;return oe}function Ce(O){const z=oe=>{const be=O.currentChar();return be==="{"||be==="@"||be==="|"||be==="("||be===")"||!be||be===Ja?oe:(oe+=be,O.next(),z(oe))};return z("")}function Qe(O){m(O);const z=v(O,"|");return m(O),z}function Ke(O,z){let oe=null;switch(O.currentChar()){case"{":return z.braceNest>=1&&f(je.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),O.next(),oe=d(z,2,"{"),m(O),z.braceNest++,oe;case"}":return z.braceNest>0&&z.currentType===2&&f(je.EMPTY_PLACEHOLDER,i(),0),O.next(),oe=d(z,3,"}"),z.braceNest--,z.braceNest>0&&m(O),z.inLinked&&z.braceNest===0&&(z.inLinked=!1),oe;case"@":return z.braceNest>0&&f(je.UNTERMINATED_CLOSING_BRACE,i(),0),oe=Ye(O,z)||p(z),z.braceNest=0,oe;default:{let St=!0,At=!0,ae=!0;if(E(O))return z.braceNest>0&&f(je.UNTERMINATED_CLOSING_BRACE,i(),0),oe=d(z,1,Qe(O)),z.braceNest=0,z.inLinked=!1,oe;if(z.braceNest>0&&(z.currentType===4||z.currentType===5||z.currentType===6))return f(je.UNTERMINATED_CLOSING_BRACE,i(),0),z.braceNest=0,lt(O,z);if(St=b(O,z))return oe=d(z,4,le(O)),m(O),oe;if(At=S(O,z))return oe=d(z,5,Y(O)),m(O),oe;if(ae=x(O,z))return oe=d(z,6,fe(O)),m(O),oe;if(!St&&!At&&!ae)return oe=d(z,12,Ae(O)),f(je.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,oe.value),m(O),oe;break}}return oe}function Ye(O,z){const{currentType:oe}=z;let be=null;const St=O.currentChar();switch((oe===7||oe===8||oe===11||oe===9)&&(St===Fr||St===Ja)&&f(je.INVALID_LINKED_FORMAT,i(),0),St){case"@":return O.next(),be=d(z,7,"@"),z.inLinked=!0,be;case".":return m(O),O.next(),d(z,8,".");case":":return m(O),O.next(),d(z,9,":");default:return E(O)?(be=d(z,1,Qe(O)),z.braceNest=0,z.inLinked=!1,be):w(O,z)||T(O,z)?(m(O),Ye(O,z)):C(O,z)?(m(O),d(z,11,me(O))):D(O,z)?(m(O),St==="{"?Ke(O,z)||be:d(z,10,Ce(O))):(oe===7&&f(je.INVALID_LINKED_FORMAT,i(),0),z.braceNest=0,z.inLinked=!1,lt(O,z))}}function lt(O,z){let oe={type:13};if(z.braceNest>0)return Ke(O,z)||p(z);if(z.inLinked)return Ye(O,z)||p(z);switch(O.currentChar()){case"{":return Ke(O,z)||p(z);case"}":return f(je.UNBALANCED_CLOSING_BRACE,i(),0),O.next(),d(z,3,"}");case"@":return Ye(O,z)||p(z);default:{if(E(O))return oe=d(z,1,Qe(O)),z.braceNest=0,z.inLinked=!1,oe;if(A(O))return d(z,0,re(O));break}}return oe}function _t(){const{currentType:O,offset:z,startLoc:oe,endLoc:be}=l;return l.lastType=O,l.lastOffset=z,l.lastStartLoc=oe,l.lastEndLoc=be,l.offset=a(),l.startLoc=i(),n.currentChar()===Oi?d(l,13):lt(n,l)}return{nextToken:_t,currentOffset:a,currentPosition:i,context:u}}const J$="parser",Q$=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function e8(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function t8(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,_,b,S,...x){const w=y.currentPosition();if(w.offset+=S,w.column+=S,r){const C=t?Iy(b,w):null,T=ru(_,C,{domain:J$,args:x});r(T)}}function a(y,_,b){const S={type:y};return t&&(S.start=_,S.end=_,S.loc={start:b,end:b}),S}function i(y,_,b,S){t&&(y.end=_,y.loc&&(y.loc.end=b))}function o(y,_){const b=y.context(),S=a(3,b.offset,b.startLoc);return S.value=_,i(S,y.currentOffset(),y.currentPosition()),S}function s(y,_){const b=y.context(),{lastOffset:S,lastStartLoc:x}=b,w=a(5,S,x);return w.index=parseInt(_,10),y.nextToken(),i(w,y.currentOffset(),y.currentPosition()),w}function l(y,_){const b=y.context(),{lastOffset:S,lastStartLoc:x}=b,w=a(4,S,x);return w.key=_,y.nextToken(),i(w,y.currentOffset(),y.currentPosition()),w}function u(y,_){const b=y.context(),{lastOffset:S,lastStartLoc:x}=b,w=a(9,S,x);return w.value=_.replace(Q$,e8),y.nextToken(),i(w,y.currentOffset(),y.currentPosition()),w}function c(y){const _=y.nextToken(),b=y.context(),{lastOffset:S,lastStartLoc:x}=b,w=a(8,S,x);return _.type!==11?(n(y,je.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),w.value="",i(w,S,x),{nextConsumeToken:_,node:w}):(_.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Qa(_)),w.value=_.value||"",i(w,y.currentOffset(),y.currentPosition()),{node:w})}function f(y,_){const b=y.context(),S=a(7,b.offset,b.startLoc);return S.value=_,i(S,y.currentOffset(),y.currentPosition()),S}function d(y){const _=y.context(),b=a(6,_.offset,_.startLoc);let S=y.nextToken();if(S.type===8){const x=c(y);b.modifier=x.node,S=x.nextConsumeToken||y.nextToken()}switch(S.type!==9&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(S)),S=y.nextToken(),S.type===2&&(S=y.nextToken()),S.type){case 10:S.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(S)),b.key=f(y,S.value||"");break;case 4:S.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(S)),b.key=l(y,S.value||"");break;case 5:S.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(S)),b.key=s(y,S.value||"");break;case 6:S.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(S)),b.key=u(y,S.value||"");break;default:{n(y,je.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const x=y.context(),w=a(7,x.offset,x.startLoc);return w.value="",i(w,x.offset,x.startLoc),b.key=w,i(b,x.offset,x.startLoc),{nextConsumeToken:S,node:b}}}return i(b,y.currentOffset(),y.currentPosition()),{node:b}}function p(y){const _=y.context(),b=_.currentType===1?y.currentOffset():_.offset,S=_.currentType===1?_.endLoc:_.startLoc,x=a(2,b,S);x.items=[];let w=null;do{const D=w||y.nextToken();switch(w=null,D.type){case 0:D.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(D)),x.items.push(o(y,D.value||""));break;case 5:D.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(D)),x.items.push(s(y,D.value||""));break;case 4:D.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(D)),x.items.push(l(y,D.value||""));break;case 6:D.value==null&&n(y,je.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Qa(D)),x.items.push(u(y,D.value||""));break;case 7:{const E=d(y);x.items.push(E.node),w=E.nextConsumeToken||null;break}}}while(_.currentType!==13&&_.currentType!==1);const C=_.currentType===1?_.lastOffset:y.currentOffset(),T=_.currentType===1?_.lastEndLoc:y.currentPosition();return i(x,C,T),x}function v(y,_,b,S){const x=y.context();let w=S.items.length===0;const C=a(1,_,b);C.cases=[],C.cases.push(S);do{const T=p(y);w||(w=T.items.length===0),C.cases.push(T)}while(x.currentType!==13);return w&&n(y,je.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),i(C,y.currentOffset(),y.currentPosition()),C}function g(y){const _=y.context(),{offset:b,startLoc:S}=_,x=p(y);return _.currentType===13?x:v(y,b,S,x)}function m(y){const _=q$(y,mr({},e)),b=_.context(),S=a(0,b.offset,b.startLoc);return t&&S.loc&&(S.loc.source=y),S.body=g(_),e.onCacheKey&&(S.cacheKey=e.onCacheKey(y)),b.currentType!==13&&n(_,je.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),i(S,_.currentOffset(),_.currentPosition()),S}return{parse:m}}function Qa(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function r8(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function iD(e,t){for(let r=0;r<e.length;r++)Ly(e[r],t)}function Ly(e,t){switch(e.type){case 1:iD(e.cases,t),t.helper("plural");break;case 2:iD(e.items,t);break;case 6:{Ly(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function n8(e,t={}){const r=r8(e);r.helper("normalize"),e.body&&Ly(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function a8(e){const t=e.body;return t.type===2?oD(t):t.cases.forEach(r=>oD(r)),e}function oD(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=My(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const i8="minifier";function nu(e){switch(e.t=e.type,e.type){case 0:{const t=e;nu(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let n=0;n<r.length;n++)nu(r[n]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let n=0;n<r.length;n++)nu(r[n]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;nu(t.key),t.k=t.key,delete t.key,t.modifier&&(nu(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ru(je.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:i8,args:[e.type]})}delete e.type}const o8="parser";function s8(e,t){const{filename:r,breakLineCode:n,needIndent:a}=t,i=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:a,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const s=()=>o;function l(g,m){o.code+=g}function u(g,m=!0){const y=m?n:"";l(a?y+" ".repeat(g):y)}function c(g=!0){const m=++o.indentLevel;g&&u(m)}function f(g=!0){const m=--o.indentLevel;g&&u(m)}function d(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:d,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function l8(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),au(e,t.key),t.modifier?(e.push(", "),au(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function u8(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const a=t.items.length;for(let i=0;i<a&&(au(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(n()),e.push("])")}function c8(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const a=t.cases.length;for(let i=0;i<a&&(au(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(n()),e.push("])")}}function f8(e,t){t.body?au(e,t.body):e.push("null")}function au(e,t){const{helper:r}=e;switch(t.type){case 0:f8(e,t);break;case 1:c8(e,t);break;case 2:u8(e,t);break;case 6:l8(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw ru(je.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:o8,args:[t.type]})}}const h8=(e,t={})=>{const r=Te(t.mode)?t.mode:"normal",n=Te(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
17
+ `,i=t.needIndent?t.needIndent:r!=="arrow",o=e.helpers||[],s=s8(e,{filename:n,breakLineCode:a,needIndent:i});s.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),o.length>0&&(s.push(`const { ${My(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),au(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function d8(e,t={}){const r=mr({},t),n=!!r.jit,a=!!r.minify,i=r.optimize==null?!0:r.optimize,s=t8(r).parse(e);return n?(i&&a8(s),a&&nu(s),{ast:s,code:""}):(n8(s,r),h8(s,r))}/*!
18
+ * core-base v11.1.12
19
+ * (c) 2025 kazuya kawaguchi
20
+ * Released under the MIT License.
21
+ */function p8(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ws().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ws().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Wn(e){return gt(e)&&ky(e)===0&&(Ca(e,"b")||Ca(e,"body"))}const sD=["b","body"];function v8(e){return _o(e,sD)}const lD=["c","cases"];function g8(e){return _o(e,lD,[])}const uD=["s","static"];function m8(e){return _o(e,uD)}const cD=["i","items"];function y8(e){return _o(e,cD,[])}const fD=["t","type"];function ky(e){return _o(e,fD)}const hD=["v","value"];function ep(e,t){const r=_o(e,hD);if(r!=null)return r;throw Zc(t)}const dD=["m","modifier"];function _8(e){return _o(e,dD)}const pD=["k","key"];function b8(e){const t=_o(e,pD);if(t)return t;throw Zc(6)}function _o(e,t,r){for(let n=0;n<t.length;n++){const a=t[n];if(Ca(e,a)&&e[a]!=null)return e[a]}return r}const vD=[...sD,...lD,...uD,...cD,...pD,...dD,...hD,...fD];function Zc(e){return new Error(`unhandled node type: ${e}`)}function Py(e){return r=>S8(r,e)}function S8(e,t){const r=v8(t);if(r==null)throw Zc(0);if(ky(r)===1){const i=g8(r);return e.plural(i.reduce((o,s)=>[...o,gD(e,s)],[]))}else return gD(e,r)}function gD(e,t){const r=m8(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=y8(t).reduce((a,i)=>[...a,Oy(e,i)],[]);return e.normalize(n)}}function Oy(e,t){const r=ky(t);switch(r){case 3:return ep(t,r);case 9:return ep(t,r);case 4:{const n=t;if(Ca(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(Ca(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Zc(r)}case 5:{const n=t;if(Ca(n,"i")&&cr(n.i))return e.interpolate(e.list(n.i));if(Ca(n,"index")&&cr(n.index))return e.interpolate(e.list(n.index));throw Zc(r)}case 6:{const n=t,a=_8(n),i=b8(n);return e.linked(Oy(e,i),a?Oy(e,a):void 0,e.type)}case 7:return ep(t,r);case 8:return ep(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const w8="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function x8(e,t){t&&U$(e)&&Za(Zd(w8,{source:e}))}const C8=e=>e;let tp=Ot();function T8(e,t={}){let r=!1;const n=t.onError||H$;return t.onError=a=>{r=!0,n(a)},{...d8(e,t),detectError:r}}function D8(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Te(e)){const r=bt(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&x8(e,r);const a=(t.onCacheKey||C8)(e),i=tp[a];if(i)return i;const{ast:o,detectError:s}=T8(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=Py(o);return s?l:tp[a]=l}else{if(process.env.NODE_ENV!=="production"&&!Wn(e))return Za(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const r=e.cacheKey;if(r){const n=tp[r];return n||(tp[r]=Py(e))}else return Py(e)}}let qc=null;function E8(e){qc=e}function A8(e,t,r){qc&&qc.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const M8=N8("function:translate");function N8(e){return t=>qc&&qc.emit(e,t)}const zr={INVALID_ARGUMENT:z$,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},I8=24;function Ri(e){return ru(e,null,process.env.NODE_ENV!=="production"?{messages:L8}:void 0)}const L8={[zr.INVALID_ARGUMENT]:"Invalid arguments",[zr.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[zr.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[zr.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[zr.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[zr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[zr.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ry(e,t){return t.locale!=null?mD(t.locale):mD(e.locale)}let Vy;function mD(e){if(Te(e))return e;if(zt(e)){if(e.resolvedOnce&&Vy!=null)return Vy;if(e.constructor.name==="Function"){const t=e();if(R$(t))throw Ri(zr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vy=t}else throw Ri(zr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ri(zr.NOT_SUPPORT_LOCALE_TYPE)}function k8(e,t,r){return[...new Set([r,...jt(t)?t:gt(t)?Object.keys(t):Te(t)?[t]:[r]])]}function yD(e,t,r){const n=Te(r)?r:Jc,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;jt(o);)o=_D(i,o,t);const s=jt(t)||!ut(t)?t:t.default?t.default:null;o=Te(s)?[s]:s,jt(o)&&_D(i,o,!1),a.__localeChainCache.set(n,i)}return i}function _D(e,t,r){let n=!0;for(let a=0;a<t.length&&bt(n);a++){const i=t[a];Te(i)&&(n=P8(e,t[a],r))}return n}function P8(e,t,r){let n;const a=t.split("-");do{const i=a.join("-");n=O8(e,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function O8(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(jt(r)||ut(r))&&r[a]&&(n=r[a])}return n}const bo=[];bo[0]={w:[0],i:[3,0],"[":[4],o:[7]},bo[1]={w:[1],".":[2],"[":[4],o:[7]},bo[2]={w:[2],i:[3,0],0:[3,0]},bo[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},bo[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},bo[5]={"'":[4,0],o:8,l:[5,0]},bo[6]={'"':[4,0],o:8,l:[6,0]};const R8=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function V8(e){return R8.test(e)}function B8(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function F8(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function z8(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:V8(t)?B8(t):"*"+t}function $8(e){const t=[];let r=-1,n=0,a=0,i,o,s,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=s:o+=s},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),a++},d[3]=()=>{if(a>0)a--,n=4,d[0]();else{if(a=0,o===void 0||(o=z8(o),o===!1))return!1;d[1]()}};function p(){const v=e[r+1];if(n===5&&v==="'"||n===6&&v==='"')return r++,s="\\"+v,d[0](),!0}for(;n!==null;)if(r++,i=e[r],!(i==="\\"&&p())){if(l=F8(i),f=bo[n],u=f[l]||f.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=i,c()===!1))))return;if(n===7)return t}}const bD=new Map;function H8(e,t){return gt(e)?e[t]:null}function G8(e,t){if(!gt(e))return null;let r=bD.get(t);if(r||(r=$8(t),r&&bD.set(t,r)),!r)return null;const n=r.length;let a=e,i=0;for(;i<n;){const o=r[i];if(vD.includes(o)&&Wn(a))return null;const s=a[o];if(s===void 0||zt(a))return null;a=s,i++}return a}const yn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},U8=8,W8={[yn.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[yn.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[yn.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[yn.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[yn.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[yn.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[yn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function xs(e,...t){return Zd(W8[e],...t)}const Y8="11.1.12",rp=-1,Jc="en-US",np="",SD=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function X8(){return{upper:(e,t)=>t==="text"&&Te(e)?e.toUpperCase():t==="vnode"&&gt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Te(e)?e.toLowerCase():t==="vnode"&&gt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Te(e)?SD(e):t==="vnode"&&gt(e)&&"__v_isVNode"in e?SD(e.children):e}}let wD;function K8(e){wD=e}let xD;function j8(e){xD=e}let CD;function Z8(e){CD=e}let TD=null;const q8=e=>{TD=e},J8=()=>TD;let DD=null;const ED=e=>{DD=e},Q8=()=>DD;let AD=0;function e6(e={}){const t=zt(e.onWarn)?e.onWarn:Za,r=Te(e.version)?e.version:Y8,n=Te(e.locale)||zt(e.locale)?e.locale:Jc,a=zt(n)?Jc:n,i=jt(e.fallbackLocale)||ut(e.fallbackLocale)||Te(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=ut(e.messages)?e.messages:By(a),s=ut(e.datetimeFormats)?e.datetimeFormats:By(a),l=ut(e.numberFormats)?e.numberFormats:By(a),u=mr(Ot(),e.modifiers,X8()),c=e.pluralRules||Ot(),f=zt(e.missing)?e.missing:null,d=bt(e.missingWarn)||tu(e.missingWarn)?e.missingWarn:!0,p=bt(e.fallbackWarn)||tu(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,g=!!e.unresolving,m=zt(e.postTranslation)?e.postTranslation:null,y=ut(e.processor)?e.processor:null,_=bt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,S=zt(e.messageCompiler)?e.messageCompiler:wD;process.env.NODE_ENV!=="production"&&zt(e.messageCompiler)&&Ey(xs(yn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const x=zt(e.messageResolver)?e.messageResolver:xD||H8,w=zt(e.localeFallbacker)?e.localeFallbacker:CD||k8,C=gt(e.fallbackContext)?e.fallbackContext:void 0,T=e,D=gt(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,E=gt(T.__numberFormatters)?T.__numberFormatters:new Map,A=gt(T.__meta)?T.__meta:{};AD++;const L={version:r,cid:AD,locale:n,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:v,unresolving:g,postTranslation:m,processor:y,warnHtmlMessage:_,escapeParameter:b,messageCompiler:S,messageResolver:x,localeFallbacker:w,fallbackContext:C,onWarn:t,__meta:A};return L.datetimeFormats=s,L.numberFormats=l,L.__datetimeFormatters=D,L.__numberFormatters=E,process.env.NODE_ENV!=="production"&&(L.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&A8(L,r,A),L}const By=e=>({[e]:Ot()});function ap(e,t){return e instanceof RegExp?e.test(t):e}function MD(e,t){return e instanceof RegExp?e.test(t):e}function Fy(e,t,r,n,a){const{missing:i,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:r,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const s=i(e,r,t,a);return Te(s)?s:t}else return process.env.NODE_ENV!=="production"&&MD(n,t)&&o(xs(yn.NOT_FOUND_KEY,{key:t,locale:r})),t}function Qc(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function ND(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function t6(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n<t.length;n++)if(ND(e,t[n]))return!0;return!1}const ID=typeof Intl<"u",LD={dateTimeFormat:ID&&typeof Intl.DateTimeFormat<"u",numberFormat:ID&&typeof Intl.NumberFormat<"u"};function kD(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!LD.dateTimeFormat)return i(xs(yn.CANNOT_FORMAT_DATE)),np;const[l,u,c,f]=zy(...t),d=bt(c.missingWarn)?c.missingWarn:e.missingWarn,p=bt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,v=!!c.part,g=Ry(e,c),m=o(e,a,g);if(!Te(l)||l==="")return new Intl.DateTimeFormat(g,f).format(u);let y={},_,b=null,S=g,x=null;const w="datetime format";for(let D=0;D<m.length;D++){if(_=x=m[D],process.env.NODE_ENV!=="production"&&g!==_&&ap(p,l)&&i(xs(yn.FALLBACK_TO_DATE_FORMAT,{key:l,target:_})),process.env.NODE_ENV!=="production"&&g!==_){const E=e.__v_emitter;E&&E.emit("fallback",{type:w,key:l,from:S,to:x,groupId:`${w}:${l}`})}if(y=r[_]||{},b=y[l],ut(b))break;Fy(e,l,_,d,w),S=x}if(!ut(b)||!Te(_))return n?rp:l;let C=`${_}__${l}`;qd(f)||(C=`${C}__${JSON.stringify(f)}`);let T=s.get(C);return T||(T=new Intl.DateTimeFormat(_,mr({},b,f)),s.set(C,T)),v?T.formatToParts(u):T.format(u)}const PD=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function zy(...e){const[t,r,n,a]=e,i=Ot();let o=Ot(),s;if(Te(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ri(zr.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Ri(zr.INVALID_ISO_DATE_ARGUMENT)}}else if(L$(t)){if(isNaN(t.getTime()))throw Ri(zr.INVALID_DATE_ARGUMENT);s=t}else if(cr(t))s=t;else throw Ri(zr.INVALID_ARGUMENT);return Te(r)?i.key=r:ut(r)&&Object.keys(r).forEach(l=>{PD.includes(l)?o[l]=r[l]:i[l]=r[l]}),Te(n)?i.locale=n:ut(n)&&(o=n),ut(a)&&(o=a),[i.key||"",s,i,o]}function OD(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function RD(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!LD.numberFormat)return i(xs(yn.CANNOT_FORMAT_NUMBER)),np;const[l,u,c,f]=$y(...t),d=bt(c.missingWarn)?c.missingWarn:e.missingWarn,p=bt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,v=!!c.part,g=Ry(e,c),m=o(e,a,g);if(!Te(l)||l==="")return new Intl.NumberFormat(g,f).format(u);let y={},_,b=null,S=g,x=null;const w="number format";for(let D=0;D<m.length;D++){if(_=x=m[D],process.env.NODE_ENV!=="production"&&g!==_&&ap(p,l)&&i(xs(yn.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:_})),process.env.NODE_ENV!=="production"&&g!==_){const E=e.__v_emitter;E&&E.emit("fallback",{type:w,key:l,from:S,to:x,groupId:`${w}:${l}`})}if(y=r[_]||{},b=y[l],ut(b))break;Fy(e,l,_,d,w),S=x}if(!ut(b)||!Te(_))return n?rp:l;let C=`${_}__${l}`;qd(f)||(C=`${C}__${JSON.stringify(f)}`);let T=s.get(C);return T||(T=new Intl.NumberFormat(_,mr({},b,f)),s.set(C,T)),v?T.formatToParts(u):T.format(u)}const VD=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $y(...e){const[t,r,n,a]=e,i=Ot();let o=Ot();if(!cr(t))throw Ri(zr.INVALID_ARGUMENT);const s=t;return Te(r)?i.key=r:ut(r)&&Object.keys(r).forEach(l=>{VD.includes(l)?o[l]=r[l]:i[l]=r[l]}),Te(n)?i.locale=n:ut(n)&&(o=n),ut(a)&&(o=a),[i.key||"",s,i,o]}function BD(e,t,r){const n=e;for(const a in r){const i=`${t}__${a}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}const r6=e=>e,n6=e=>"",a6="text",i6=e=>e.length===0?"":My(e),o6=V$;function FD(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function s6(e){const t=cr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(cr(e.named.count)||cr(e.named.n))?cr(e.named.count)?e.named.count:cr(e.named.n)?e.named.n:t:t}function l6(e,t){t.count||(t.count=e),t.n||(t.n=e)}function u6(e={}){const t=e.locale,r=s6(e),n=gt(e.pluralRules)&&Te(t)&&zt(e.pluralRules[t])?e.pluralRules[t]:FD,a=gt(e.pluralRules)&&Te(t)&&zt(e.pluralRules[t])?FD:void 0,i=y=>y[n(r,y.length,a)],o=e.list||[],s=y=>o[y],l=e.named||Ot();cr(e.pluralIndex)&&l6(r,l);const u=y=>l[y];function c(y,_){const b=zt(e.messages)?e.messages(y,!!_):gt(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):n6)}const f=y=>e.modifiers?e.modifiers[y]:r6,d=ut(e.processor)&&zt(e.processor.normalize)?e.processor.normalize:i6,p=ut(e.processor)&&zt(e.processor.interpolate)?e.processor.interpolate:o6,v=ut(e.processor)&&Te(e.processor.type)?e.processor.type:a6,m={list:s,named:u,plural:i,linked:(y,..._)=>{const[b,S]=_;let x="text",w="";_.length===1?gt(b)?(w=b.modifier||w,x=b.type||x):Te(b)&&(w=b||w):_.length===2&&(Te(b)&&(w=b||w),Te(S)&&(x=S||x));const C=c(y,!0)(m),T=x==="vnode"&&jt(C)&&w?C[0]:C;return w?f(w)(T,x):T},message:c,type:v,interpolate:p,normalize:d,values:mr(Ot(),o,l)};return m}const zD=()=>"",Yn=e=>zt(e);function $D(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=e,[l,u]=Hy(...t),c=bt(u.missingWarn)?u.missingWarn:e.missingWarn,f=bt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=bt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,v=Te(u.default)||bt(u.default)?bt(u.default)?i?l:()=>l:u.default:r?i?l:()=>l:null,g=r||v!=null&&(Te(v)||zt(v)),m=Ry(e,u);d&&c6(u);let[y,_,b]=p?[l,m,s[m]||Ot()]:HD(e,l,m,o,f,c),S=y,x=l;if(!p&&!(Te(S)||Wn(S)||Yn(S))&&g&&(S=v,x=S),!p&&(!(Te(S)||Wn(S)||Yn(S))||!Te(_)))return a?rp:l;if(process.env.NODE_ENV!=="production"&&Te(S)&&e.messageCompiler==null)return Za(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let w=!1;const C=()=>{w=!0},T=Yn(S)?S:GD(e,l,_,S,x,C);if(w)return S;const D=p6(e,_,b,u),E=u6(D),A=f6(e,T,E);let L=n?n(A,l):A;if(d&&Te(L)&&(L=P$(L)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const N={timestamp:Date.now(),key:Te(l)?l:Yn(S)?S.key:"",locale:_||(Yn(S)?S.locale:""),format:Te(S)?S:Yn(S)?S.source:"",message:L};N.meta=mr({},e.__meta,J8()||{}),M8(N)}return L}function c6(e){jt(e.list)?e.list=e.list.map(t=>Te(t)?eD(t):t):gt(e.named)&&Object.keys(e.named).forEach(t=>{Te(e.named[t])&&(e.named[t]=eD(e.named[t]))})}function HD(e,t,r,n,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f=Ot(),d,p=null,v=r,g=null;const m="translate";for(let y=0;y<c.length;y++){if(d=g=c[y],process.env.NODE_ENV!=="production"&&r!==d&&!ND(r,d)&&ap(a,t)&&s(xs(yn.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&r!==d){const x=e.__v_emitter;x&&x.emit("fallback",{type:m,key:t,from:v,to:g,groupId:`${m}:${t}`})}f=o[d]||Ot();let _=null,b,S;if(process.env.NODE_ENV!=="production"&&xa&&(_=window.performance.now(),b="intlify-message-resolve-start",S="intlify-message-resolve-end",In&&In(b)),(p=l(f,t))===null&&(p=f[t]),process.env.NODE_ENV!=="production"&&xa){const x=window.performance.now(),w=e.__v_emitter;w&&_&&p&&w.emit("message-resolve",{type:"message-resolve",key:t,message:p,time:x-_,groupId:`${m}:${t}`}),b&&S&&In&&Ss&&(In(S),Ss("intlify message resolve",b,S))}if(Te(p)||Wn(p)||Yn(p))break;if(!t6(d,c)){const x=Fy(e,t,d,i,m);x!==t&&(p=x)}v=g}return[p,d,f]}function GD(e,t,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Yn(n)){const d=n;return d.locale=d.locale||r,d.key=d.key||t,d}if(o==null){const d=()=>n;return d.locale=r,d.key=t,d}let l=null,u,c;process.env.NODE_ENV!=="production"&&xa&&(l=window.performance.now(),u="intlify-message-compilation-start",c="intlify-message-compilation-end",In&&In(u));const f=o(n,h6(e,r,a,n,s,i));if(process.env.NODE_ENV!=="production"&&xa){const d=window.performance.now(),p=e.__v_emitter;p&&l&&p.emit("message-compilation",{type:"message-compilation",message:n,time:d-l,groupId:`translate:${t}`}),u&&c&&In&&Ss&&(In(c),Ss("intlify message compilation",u,c))}return f.locale=r,f.key=t,f.source=n,f}function f6(e,t,r){let n=null,a,i;process.env.NODE_ENV!=="production"&&xa&&(n=window.performance.now(),a="intlify-message-evaluation-start",i="intlify-message-evaluation-end",In&&In(a));const o=t(r);if(process.env.NODE_ENV!=="production"&&xa){const s=window.performance.now(),l=e.__v_emitter;l&&n&&l.emit("message-evaluation",{type:"message-evaluation",value:o,time:s-n,groupId:`translate:${t.key}`}),a&&i&&In&&Ss&&(In(i),Ss("intlify message evaluation",a,i))}return o}function Hy(...e){const[t,r,n]=e,a=Ot();if(!Te(t)&&!cr(t)&&!Yn(t)&&!Wn(t))throw Ri(zr.INVALID_ARGUMENT);const i=cr(t)?String(t):(Yn(t),t);return cr(r)?a.plural=r:Te(r)?a.default=r:ut(r)&&!qd(r)?a.named=r:jt(r)&&(a.list=r),cr(n)?a.plural=n:Te(n)?a.default=n:ut(n)&&mr(a,n),[i,a]}function h6(e,t,r,n,a,i){return{locale:t,key:r,warnHtmlMessage:a,onError:o=>{if(i&&i(o),process.env.NODE_ENV!=="production"){const s=d6(n),l=`Message compilation error: ${o.message}`,u=o.location&&s&&B$(s,o.location.start.offset,o.location.end.offset),c=e.__v_emitter;c&&s&&c.emit("compile-error",{message:s,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${r}`}),console.error(u?`${l}
22
+ ${u}`:l)}else throw o},onCacheKey:o=>N$(t,r,o)}}function d6(e){if(Te(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function p6(e,t,r,n){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:a,pluralRules:i,messages:(p,v)=>{let g=o(r,p);if(g==null&&(c||v)){const[,,m]=HD(c||e,p,t,s,l,u);g=o(m,p)}if(Te(g)||Wn(g)){let m=!1;const _=GD(e,p,t,g,p,()=>{m=!0});return m?zD:_}else return Yn(g)?g:zD}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),cr(n.plural)&&(d.pluralIndex=n.plural),d}p8();function v6(){return UD().__VUE_DEVTOOLS_GLOBAL_HOOK__}function UD(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const g6=typeof Proxy=="function",m6="devtools-plugin:setup",y6="plugin:settings:set";let iu,Gy;function _6(){var e;return iu!==void 0||(typeof window<"u"&&window.performance?(iu=!0,Gy=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(iu=!0,Gy=globalThis.perf_hooks.performance):iu=!1),iu}function b6(){return _6()?Gy.now():Date.now()}class S6{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const o in t.settings){const s=t.settings[o];n[o]=s.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},n);try{const o=localStorage.getItem(a),s=JSON.parse(o);Object.assign(i,s)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(a,JSON.stringify(o))}catch{}i=o},now(){return b6()}},r&&r.on(y6,(o,s)=>{o===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(o,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function w6(e,t){const r=e,n=UD(),a=v6(),i=g6&&r.enableEarlyProxy;if(a&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))a.emit(m6,e,t);else{const o=i?new S6(r,a):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
23
+ * vue-i18n v11.1.12
24
+ * (c) 2025 kazuya kawaguchi
25
+ * Released under the MIT License.
26
+ */const x6="11.1.12";function C6(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ws().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ws().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ws().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ws().__INTLIFY_PROD_DEVTOOLS__=!1)}const $t={UNEXPECTED_RETURN_TYPE:I8,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function _n(e,...t){return ru(e,null,process.env.NODE_ENV!=="production"?{messages:T6,args:t}:void 0)}const T6={[$t.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[$t.INVALID_ARGUMENT]:"Invalid argument",[$t.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[$t.NOT_INSTALLED]:"Need to install with `app.use` function",[$t.UNEXPECTED_ERROR]:"Unexpected error",[$t.REQUIRED_VALUE]:"Required in value: {0}",[$t.INVALID_VALUE]:"Invalid value",[$t.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[$t.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[$t.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[$t.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Uy=qa("__translateVNode"),Wy=qa("__datetimeParts"),Yy=qa("__numberParts"),Cs=qa("__enableEmitter"),ef=qa("__disableEmitter"),WD=qa("__setPluralRules"),YD=qa("__injectWithOption"),Xy=qa("__dispose"),Xn={FALLBACK_TO_ROOT:U8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},D6={[Xn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Xn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Xn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Xn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
27
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Xn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Xn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function ou(e,...t){return Zd(D6[e],...t)}function tf(e){if(!gt(e)||Wn(e))return e;for(const t in e)if(Ca(e,t))if(!t.includes("."))gt(e[t])&&tf(e[t]);else{const r=t.split("."),n=r.length-1;let a=e,i=!1;for(let o=0;o<n;o++){if(r[o]==="__proto__")throw new Error(`unsafe key: ${r[o]}`);if(r[o]in a||(a[r[o]]=Ot()),!gt(a[r[o]])){process.env.NODE_ENV!=="production"&&Za(ou(Xn.IGNORE_OBJ_FLATTEN,{key:r[o]})),i=!0;break}a=a[r[o]]}if(i||(Wn(a)?vD.includes(r[n])||delete e[t]:(a[r[n]]=e[t],delete e[t])),!Wn(a)){const o=a[r[n]];gt(o)&&tf(o)}}return e}function Ky(e,t){const{messages:r,__i18n:n,messageResolver:a,flatJson:i}=t,o=ut(r)?r:jt(n)?Ot():{[e]:Ot()};if(jt(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||Ot(),Qd(u,o[l])):Qd(u,o)}else Te(s)&&Qd(JSON.parse(s),o)}),a==null&&i)for(const s in o)Ca(o,s)&&tf(o[s]);return o}function XD(e){return e.type}function KD(e,t,r){let n=gt(t.messages)?t.messages:Ot();"__i18nGlobal"in r&&(n=Ky(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,n[i])});{if(gt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(gt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function jD(e){return h.createVNode(h.Text,null,e,0)}const ZD="__INTLIFY_META__",qD=()=>[],E6=()=>!1;let JD=0;function QD(e){return(t,r,n,a)=>e(r,n,h.getCurrentInstance()||void 0,a)}const A6=()=>{const e=h.getCurrentInstance();let t=null;return e&&(t=XD(e)[ZD])?{[ZD]:t}:null};function jy(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,a=e.flatJson,i=xa?h.ref:h.shallowRef;let o=bt(e.inheritLocale)?e.inheritLocale:!0;const s=i(t&&o?t.locale.value:Te(e.locale)?e.locale:Jc),l=i(t&&o?t.fallbackLocale.value:Te(e.fallbackLocale)||jt(e.fallbackLocale)||ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(Ky(s.value,e)),c=i(ut(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=i(ut(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:bt(e.missingWarn)||tu(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:bt(e.fallbackWarn)||tu(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:bt(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,m=zt(e.missing)?e.missing:null,y=zt(e.missing)?QD(e.missing):null,_=zt(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:bt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const x=t?t.modifiers:ut(e.modifiers)?e.modifiers:{};let w=e.pluralRules||t&&t.pluralRules,C;C=(()=>{n&&ED(null);const K={version:x6,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:x,pluralRules:w,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:b,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=c.value,K.numberFormats=f.value,K.__datetimeFormatters=ut(C)?C.__datetimeFormatters:void 0,K.__numberFormatters=ut(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=ut(C)?C.__v_emitter:void 0);const ce=e6(K);return n&&ED(ce),ce})(),Qc(C,s.value,l.value);function D(){return[s.value,l.value,u.value,c.value,f.value]}const E=h.computed({get:()=>s.value,set:K=>{C.locale=K,s.value=K}}),A=h.computed({get:()=>l.value,set:K=>{C.fallbackLocale=K,l.value=K,Qc(C,s.value,K)}}),L=h.computed(()=>u.value),N=h.computed(()=>c.value),I=h.computed(()=>f.value);function k(){return zt(_)?_:null}function P(K){_=K,C.postTranslation=K}function V(){return m}function B(K){K!==null&&(y=QD(K)),m=K,C.missing=y}function G(K,ce){return K!=="translate"||!ce.resolvedMessage}const U=(K,ce,ht,Bt,rn,mo)=>{D();let Ii;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(C.fallbackContext=t?Q8():void 0),Ii=K(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,n||(C.fallbackContext=void 0)}if(ht!=="translate exists"&&cr(Ii)&&Ii===rp||ht==="translate exists"&&!Ii){const[Ya,ne]=ce();if(process.env.NODE_ENV!=="production"&&t&&Te(Ya)&&G(ht,ne)&&(v&&(ap(p,Ya)||MD(d,Ya))&&Za(ou(Xn.FALLBACK_TO_ROOT,{key:Ya,type:ht})),process.env.NODE_ENV!=="production")){const{__v_emitter:ie}=C;ie&&v&&ie.emit("fallback",{type:ht,key:Ya,to:"global",groupId:`${ht}:${Ya}`})}return t&&v?Bt(t):rn(Ya)}else{if(mo(Ii))return Ii;throw _n($t.UNEXPECTED_RETURN_TYPE)}};function W(...K){return U(ce=>Reflect.apply($D,null,[ce,...K]),()=>Hy(...K),"translate",ce=>Reflect.apply(ce.t,ce,[...K]),ce=>ce,ce=>Te(ce))}function re(...K){const[ce,ht,Bt]=K;if(Bt&&!gt(Bt))throw _n($t.INVALID_ARGUMENT);return W(ce,ht,mr({resolvedMessage:!0},Bt||{}))}function le(...K){return U(ce=>Reflect.apply(kD,null,[ce,...K]),()=>zy(...K),"datetime format",ce=>Reflect.apply(ce.d,ce,[...K]),()=>np,ce=>Te(ce)||jt(ce))}function Y(...K){return U(ce=>Reflect.apply(RD,null,[ce,...K]),()=>$y(...K),"number format",ce=>Reflect.apply(ce.n,ce,[...K]),()=>np,ce=>Te(ce)||jt(ce))}function X(K){return K.map(ce=>Te(ce)||cr(ce)||bt(ce)?jD(String(ce)):ce)}const we={normalize:X,interpolate:K=>K,type:"vnode"};function de(...K){return U(ce=>{let ht;const Bt=ce;try{Bt.processor=we,ht=Reflect.apply($D,null,[Bt,...K])}finally{Bt.processor=null}return ht},()=>Hy(...K),"translate",ce=>ce[Uy](...K),ce=>[jD(ce)],ce=>jt(ce))}function pe(...K){return U(ce=>Reflect.apply(RD,null,[ce,...K]),()=>$y(...K),"number format",ce=>ce[Yy](...K),qD,ce=>Te(ce)||jt(ce))}function Ae(...K){return U(ce=>Reflect.apply(kD,null,[ce,...K]),()=>zy(...K),"datetime format",ce=>ce[Wy](...K),qD,ce=>Te(ce)||jt(ce))}function me(K){w=K,C.pluralRules=w}function Ce(K,ce){return U(()=>{if(!K)return!1;const ht=Te(ce)?ce:s.value,Bt=Ye(ht),rn=C.messageResolver(Bt,K);return Wn(rn)||Yn(rn)||Te(rn)},()=>[K],"translate exists",ht=>Reflect.apply(ht.te,ht,[K,ce]),E6,ht=>bt(ht))}function Qe(K){let ce=null;const ht=yD(C,l.value,s.value);for(let Bt=0;Bt<ht.length;Bt++){const rn=u.value[ht[Bt]]||{},mo=C.messageResolver(rn,K);if(mo!=null){ce=mo;break}}return ce}function Ke(K){const ce=Qe(K);return ce??(t?t.tm(K)||{}:{})}function Ye(K){return u.value[K]||{}}function lt(K,ce){if(a){const ht={[K]:ce};for(const Bt in ht)Ca(ht,Bt)&&tf(ht[Bt]);ce=ht[K]}u.value[K]=ce,C.messages=u.value}function _t(K,ce){u.value[K]=u.value[K]||{};const ht={[K]:ce};if(a)for(const Bt in ht)Ca(ht,Bt)&&tf(ht[Bt]);ce=ht[K],Qd(ce,u.value[K]),C.messages=u.value}function O(K){return c.value[K]||{}}function z(K,ce){c.value[K]=ce,C.datetimeFormats=c.value,OD(C,K,ce)}function oe(K,ce){c.value[K]=mr(c.value[K]||{},ce),C.datetimeFormats=c.value,OD(C,K,ce)}function be(K){return f.value[K]||{}}function St(K,ce){f.value[K]=ce,C.numberFormats=f.value,BD(C,K,ce)}function At(K,ce){f.value[K]=mr(f.value[K]||{},ce),C.numberFormats=f.value,BD(C,K,ce)}JD++,t&&xa&&(h.watch(t.locale,K=>{o&&(s.value=K,C.locale=K,Qc(C,s.value,l.value))}),h.watch(t.fallbackLocale,K=>{o&&(l.value=K,C.fallbackLocale=K,Qc(C,s.value,l.value))}));const ae={id:JD,locale:E,fallbackLocale:A,get inheritLocale(){return o},set inheritLocale(K){o=K,K&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Qc(C,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:L,get modifiers(){return x},get pluralRules(){return w||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(K){d=K,C.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(K){p=K,C.fallbackWarn=p},get fallbackRoot(){return v},set fallbackRoot(K){v=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,C.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(K){b=K,C.warnHtmlMessage=K},get escapeParameter(){return S},set escapeParameter(K){S=K,C.escapeParameter=K},t:W,getLocaleMessage:Ye,setLocaleMessage:lt,mergeLocaleMessage:_t,getPostTranslationHandler:k,setPostTranslationHandler:P,getMissingHandler:V,setMissingHandler:B,[WD]:me};return ae.datetimeFormats=N,ae.numberFormats=I,ae.rt=re,ae.te=Ce,ae.tm=Ke,ae.d=le,ae.n=Y,ae.getDateTimeFormat=O,ae.setDateTimeFormat=z,ae.mergeDateTimeFormat=oe,ae.getNumberFormat=be,ae.setNumberFormat=St,ae.mergeNumberFormat=At,ae[YD]=r,ae[Uy]=de,ae[Wy]=Ae,ae[Yy]=pe,process.env.NODE_ENV!=="production"&&(ae[Cs]=K=>{C.__v_emitter=K},ae[ef]=()=>{C.__v_emitter=void 0}),ae}const eE="vue-i18n: composer properties",Zy={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},M6={"vue-i18n-resource-inspector":"Search for scopes ..."},N6={"vue-i18n-timeline":16764185};let qy;async function I6(e,t){return new Promise((r,n)=>{try{w6({id:"vue-devtools-plugin-vue-i18n",label:Zy["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[eE],app:e},a=>{qy=a,a.on.visitComponentTree(({componentInstance:o,treeNode:s})=>{L6(o,s,t)}),a.on.inspectComponent(({componentInstance:o,instanceData:s})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&rE(s,o.vnode.el.__VUE_I18N__):rE(s,o.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Zy["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:M6["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&V6(o,t)});const i=new Map;a.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),F6(o,t),o.nodeId==="global"){if(!i.has(o.app)){const[s]=await a.getComponentInstances(o.app);i.set(o.app,s)}a.highlightElement(i.get(o.app))}else{const s=B6(o.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&$6(o,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Zy["vue-i18n-timeline"],color:N6["vue-i18n-timeline"]}),r(!0)})}catch(a){console.error(a),n(!1)}})}function tE(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function L6(e,t,r){const n=r.mode==="composition"?r.global:r.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==n){const a={label:`i18n (${tE(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function rE(e,t){const r=eE;e.state.push({type:r,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:r,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:r,key:"messages",editable:!1,value:Jy(t.messages.value)}),e.state.push({type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:r,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Jy(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];zt(n)&&"source"in n?t[r]=R6(n):Wn(n)&&n.loc&&n.loc.source?t[r]=n.loc.source:gt(n)?t[r]=Jy(n):t[r]=n}),t}const k6={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function P6(e){return e.replace(/[<>"&]/g,O6)}function O6(e){return k6[e]||e}function R6(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${P6(e.source)}")`:"(?)"}`}}}function V6(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const r=t.mode==="composition"?t.global:t.global.__composer;for(const[n,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;r!==i&&e.rootNodes.push({id:i.id.toString(),label:`${tE(n)} Scope`})}}function B6(e,t){let r=null;if(e!=="global"){for(const[n,a]of t.__instances.entries())if(a.id.toString()===e){r=n;break}}return r}function nE(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const r=Array.from(t.__instances.values()).find(n=>n.id.toString()===e);return r?t.mode==="composition"?r:r.__composer:null}}function F6(e,t){const r=nE(e.nodeId,t);return r&&(e.state=z6(r)),null}function z6(e){const t={},r="Locale related info",n=[{type:r,key:"locale",editable:!0,value:e.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:e.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[r]=n;const a="Locale messages info",i=[{type:a,key:"messages",editable:!1,value:Jy(e.messages.value)}];t[a]=i;{const o="Datetime formats info",s=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=s;const l="Datetime formats info",u=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=u}return t}function rf(e,t){if(qy){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),qy.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:r,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function $6(e,t){const r=nE(e.nodeId,t);if(r){const[n]=e.path;n==="locale"&&Te(e.state.value)?r.locale.value=e.state.value:n==="fallbackLocale"&&(Te(e.state.value)||jt(e.state.value)||gt(e.state.value))?r.fallbackLocale.value=e.state.value:n==="inheritLocale"&&bt(e.state.value)&&(r.inheritLocale=e.state.value)}}function H6(e){const t=Te(e.locale)?e.locale:Jc,r=Te(e.fallbackLocale)||jt(e.fallbackLocale)||ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=zt(e.missing)?e.missing:void 0,a=bt(e.silentTranslationWarn)||tu(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=bt(e.silentFallbackWarn)||tu(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=bt(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=ut(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=zt(e.postTranslation)?e.postTranslation:void 0,f=Te(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,p=bt(e.sync)?e.sync:!0;let v=e.messages;if(ut(e.sharedMessages)){const x=e.sharedMessages;v=Object.keys(x).reduce((C,T)=>{const D=C[T]||(C[T]={});return mr(D,x[T]),C},v||{})}const{__i18n:g,__root:m,__injectWithOption:y}=e,_=e.datetimeFormats,b=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:r,messages:v,flatJson:S,datetimeFormats:_,numberFormats:b,missing:n,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:p,__i18n:g,__root:m,__injectWithOption:y}}function Qy(e={}){const t=jy(H6(e)),{__extender:r}=e,n={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return bt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=bt(a)?!a:a},get silentFallbackWarn(){return bt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=bt(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,i){return t.te(a,i)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,i){t.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){t.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,i){t.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){t.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,i){t.setNumberFormat(a,i)},mergeNumberFormat(a,i){t.mergeNumberFormat(a,i)}};return n.__extender=r,process.env.NODE_ENV!=="production"&&(n.__enableEmitter=a=>{const i=t;i[Cs]&&i[Cs](a)},n.__disableEmitter=()=>{const a=t;a[ef]&&a[ef]()}),n}function G6(e,t,r){return{beforeCreate(){const n=h.getCurrentInstance();if(!n)throw _n($t.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;if(a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root)this.$i18n=aE(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=Qy(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=aE(e,a);else{this.$i18n=Qy({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&KD(t,a,a),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(n,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const n=this.$i18n;this.$el.__VUE_I18N__=n.__composer;const a=this.__v_emitter=Ny();n.__enableEmitter&&n.__enableEmitter(a),a.on("*",rf)}},unmounted(){const n=h.getCurrentInstance();if(!n)throw _n($t.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",rf),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),r.__deleteInstance(n),delete this.$i18n}}}function aE(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[WD](t.pluralizationRules||e.pluralizationRules);const r=Ky(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const e0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function U6({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,a)=>[...n,...a.type===h.Fragment?a.children:[a]],[]):t.reduce((r,n)=>{const a=e[n];return a&&(r[n]=a()),r},Ot())}function iE(){return h.Fragment}const oE=h.defineComponent({name:"i18n-t",props:mr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>cr(e)||!isNaN(e)}},e0),setup(e,t){const{slots:r,attrs:n}=t,a=e.i18n||t0({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(f=>f[0]!=="_"),o=Ot();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Te(e.plural)?+e.plural:e.plural);const s=U6(t,i),l=a[Uy](e.keypath,s,o),u=mr(Ot(),n),c=Te(e.tag)||gt(e.tag)?e.tag:iE();return h.h(c,u,l)}}});function W6(e){return jt(e)&&!Te(e[0])}function sE(e,t,r,n){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s=Ot();e.locale&&(o.locale=e.locale),Te(e.format)?o.key=e.format:gt(e.format)&&(Te(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,p)=>r.includes(p)?mr(Ot(),d,{[p]:e.format[p]}):d,Ot()));const l=n(e.value,o,s);let u=[o.key];jt(l)?u=l.map((d,p)=>{const v=a[d.type],g=v?v({[d.type]:d.value,index:p,parts:l}):[d.value];return W6(g)&&(g[0].key=`${d.type}-${p}`),g}):Te(l)&&(u=[l]);const c=mr(Ot(),i),f=Te(e.tag)||gt(e.tag)?e.tag:iE();return h.h(f,c,u)}}const lE=h.defineComponent({name:"i18n-n",props:mr({value:{type:Number,required:!0},format:{type:[String,Object]}},e0),setup(e,t){const r=e.i18n||t0({useScope:e.scope,__useComponent:!0});return sE(e,t,VD,(...n)=>r[Yy](...n))}});function Y6(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function X6(e){const t=o=>{process.env.NODE_ENV!=="production"&&Ey(ou(Xn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:l}=o;if(!s||!s.$)throw _n($t.UNEXPECTED_ERROR);const u=Y6(e,s.$),c=uE(l);return[Reflect.apply(u.t,u,[...cE(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);xa&&e.global===u&&(o.__i18nWatcher=h.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{xa&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=uE(s);o.textContent=Reflect.apply(l.t,l,[...cE(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function uE(e){if(Te(e))return{path:e};if(ut(e)){if(!("path"in e))throw _n($t.REQUIRED_VALUE,"path");return e}else throw _n($t.INVALID_VALUE)}function cE(e){const{path:t,locale:r,args:n,choice:a,plural:i}=e,o={},s=n||{};return Te(r)&&(o.locale=r),cr(a)&&(o.plural=a),cr(i)&&(o.plural=i),[t,s,o]}function K6(e,t,...r){const n=ut(r[0])?r[0]:{};(bt(n.globalInstall)?n.globalInstall:!0)&&([oE.name,"I18nT"].forEach(i=>e.component(i,oE)),[lE.name,"I18nN"].forEach(i=>e.component(i,lE)),[hE.name,"I18nD"].forEach(i=>e.component(i,hE))),e.directive("t",X6(t))}const j6=qa("global-vue-i18n");function Z6(e={}){const t=__VUE_I18N_LEGACY_API__&&bt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Ey(ou(Xn.DEPRECATE_LEGACY_MODE));const r=bt(e.globalInjection)?e.globalInjection:!0,n=new Map,[a,i]=q6(e,t),o=qa(process.env.NODE_ENV!=="production"?"vue-i18n":"");function s(f){return n.get(f)||null}function l(f,d){n.set(f,d)}function u(f){n.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=c),f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),ut(d[0])){const g=d[0];c.__composerExtend=g.__composerExtend,c.__vueI18nExtend=g.__vueI18nExtend}let p=null;!t&&r&&(p=iH(f,c.global)),__VUE_I18N_FULL_INSTALL__&&K6(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(G6(i,i.__composer,c));const v=f.unmount;if(f.unmount=()=>{p&&p(),c.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await I6(f,c))throw _n($t.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=Ny();if(t){const y=i;y.__enableEmitter&&y.__enableEmitter(m)}else{const y=i;y[Cs]&&y[Cs](m)}m.on("*",rf)}},get global(){return i},dispose(){a.stop()},__instances:n,__getInstance:s,__setInstance:l,__deleteInstance:u};return c}function t0(e={}){const t=h.getCurrentInstance();if(t==null)throw _n($t.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw _n($t.NOT_INSTALLED);const r=J6(t),n=eH(r),a=XD(t),i=Q6(e,a);if(i==="global")return KD(n,e,a),n;if(i==="parent"){let l=tH(r,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&Za(ou(Xn.NOT_FOUND_PARENT_SCOPE)),l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=mr({},e);"__i18n"in a&&(l.__i18n=a.__i18n),n&&(l.__root=n),s=jy(l),o.__composerExtend&&(s[Xy]=o.__composerExtend(s)),nH(o,t,s),o.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&i==="local"&&Za(ou(Xn.DUPLICATE_USE_I18N_CALLING));return s}function q6(e,t){const r=h.effectScope(),n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Qy(e)):r.run(()=>jy(e));if(n==null)throw _n($t.UNEXPECTED_ERROR);return[r,n]}function J6(e){const t=h.inject(e.isCE?j6:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw _n(e.isCE?$t.NOT_INSTALLED_WITH_PROVIDE:$t.UNEXPECTED_ERROR);return t}function Q6(e,t){return qd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function eH(e){return e.mode==="composition"?e.global:e.global.__composer}function tH(e,t,r=!1){let n=null;const a=t.root;let i=rH(t,r);for(;i!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[YD]&&(n=null))}if(n!=null||a===i)break;i=i.parent}return n}function rH(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function nH(e,t,r){let n=null;h.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=r,n=Ny();const a=r;a[Cs]&&a[Cs](n),n.on("*",rf)}},t),h.onUnmounted(()=>{const a=r;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(n&&n.off("*",rf),a[ef]&&a[ef](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const i=a[Xy];i&&(i(),delete a[Xy])},t)}const aH=["locale","fallbackLocale","availableLocales"],fE=["t","rt","d","n","tm","te"];function iH(e,t){const r=Object.create(null);return aH.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw _n($t.UNEXPECTED_ERROR);const o=h.isRef(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,a,o)}),e.config.globalProperties.$i18n=r,fE.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw _n($t.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,fE.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const hE=h.defineComponent({name:"i18n-d",props:mr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},e0),setup(e,t){const r=e.i18n||t0({useScope:e.scope,__useComponent:!0});return sE(e,t,PD,(...n)=>r[Wy](...n))}});if(C6(),K8(D8),j8(G8),Z8(yD),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ws();e.__INTLIFY__=!0,E8(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const oH={搜索:"搜索",重置:"重置",请输入:"请输入",请选择日期:"请选择日期",等于:"等于",模糊:"模糊",大于:"大于",大于等于:"大于等于",小于:"小于",小于等于:"小于等于",取消:"取消",确定:"确定",图片预览:"图片预览",预览图:"预览图",选择文件:"选择文件","支持 jpg/png/gif/webp/doc/docx/pdf 格式":"支持 jpg/png/gif/webp/doc/docx/pdf 格式",类别:"类别",请输入类别:"请输入类别",文件上传:"文件上传",通用:"通用","不支持的文件格式,请上传 jpg/png/gif/webp/doc/docx/pdf 格式的文件":"不支持的文件格式,请上传 jpg/png/gif/webp/doc/docx/pdf 格式的文件",文件大小不能超过:"文件大小不能超过",文件:"文件",上传成功:"上传成功",上传失败:"上传失败",确定要删除文件:"确定要删除文件",删除确认:"删除确认",文件删除成功:"文件删除成功",最多只能上传:"最多只能上传",个文件:"个文件",无法获取图片链接:"无法获取图片链接",无法获取PDF链接:"无法获取PDF链接",无法获取文档链接:"无法获取文档链接",不支持预览此类型的文件:"不支持预览此类型的文件",请先选择并上传文件:"请先选择并上传文件","显示/隐藏筛选条件":"显示/隐藏筛选条件",自定义条件展示:"自定义条件展示",'1.可点击"向上"/"向下"调整顺序':'1.可点击"向上"/"向下"调整顺序',默认显示列数:"默认显示列数",默认显示行数:"默认显示行数",序号:"序号",列表项:"列表项",是否显示:"是否显示",显示:"显示",隐藏:"隐藏",操作:"操作","向上↑":"向上↑","向下↓":"向下↓",确认:"确认",其他信息:"其他信息",编辑:"编辑",保存:"保存",基础信息:"基础信息",保存成功:"保存成功",单据详情:"单据详情",请选择数据:"请选择数据",暂无数据:"暂无数据",自定义列展示:"自定义列展示",当前页导出Excel:"当前页导出Excel",保存列宽:"保存列宽",自定义列:"自定义列","1.点击按钮即可重置":"1.点击按钮即可重置","2.选中后可上下拖拽调整顺序":"2.选中后可上下拖拽调整顺序",以此列排序:"以此列排序",无:"无",正序:"正序",倒序:"倒序",是否固定:"是否固定",否:"否",左侧:"左侧",右侧:"右侧",自定义序列:"自定义序列",调整序列:"调整序列",调整序列至:"调整序列至",导出当前excel:"导出当前excel",全部导出:"全部导出",自定义导出:"自定义导出",全选:"全选",请输入excel文件名:"请输入excel文件名",是否导出:"是否导出",导出:"导出",Cancel:"Cancel",Confirm:"Confirm",合计:"合计","此操作将恢复初始状态,是否确定?":"此操作将恢复初始状态,是否确定?",已取消操作:"已取消操作",操作成功:"操作成功",单据信息:"单据信息",BOM单号:"BOM单号",款号编码:"款号编码",款号名称:"款号名称",颜色:"颜色",查看:"查看",缩略图:"缩略图",BOM号:"BOM号",日期:"日期",行状态:"行状态",正常:"正常",已取消:"已取消",已采购:"已采购",明细信息:"明细信息",添加明细:"添加明细",编辑全部:"编辑全部",批量删除:"批量删除",批量取消启用:"批量取消启用",批量保存:"批量保存",批量取消:"批量取消",查看大图:"查看大图",数据:"数据","调整序列至:":"调整序列至:",请先保存数据:"请先保存数据",sMainKey错误:"sMainKey错误","此操作将删除, 是否继续?":"此操作将删除, 是否继续?","此操作将取消启用, 是否继续?":"此操作将取消启用, 是否继续?",请先保存表头:"请先保存表头","[1]是必须的":"[1]是必须的",请先选择数据:"请先选择数据","数据读取错误,请检查分页代码":"数据读取错误,请检查分页代码"},sH={搜索:"Search",重置:"Reset",请输入:"Please enter",请选择日期:"Please select date",等于:"Equal",模糊:"Fuzzy",大于:"Greater than",大于等于:"Greater than or equal",小于:"Less than",小于等于:"Less than or equal",取消:"Cancel",确定:"Confirm",图片预览:"Image Preview",预览图:"Preview Image",选择文件:"Select File","支持 jpg/png/gif/webp/doc/docx/pdf 格式":"Supports jpg/png/gif/webp/doc/docx/pdf formats",类别:"Category",请输入类别:"Please enter category",文件上传:"File Upload",通用:"General","不支持的文件格式,请上传 jpg/png/gif/webp/doc/docx/pdf 格式的文件":"Unsupported file format, please upload jpg/png/gif/webp/doc/docx/pdf format files",文件大小不能超过:"File size cannot exceed",文件:"File",上传成功:"Upload successful",上传失败:"Upload failed",确定要删除文件:"Are you sure to delete file",删除确认:"Delete Confirmation",文件删除成功:"File deleted successfully",最多只能上传:"Maximum upload",个文件:"files",无法获取图片链接:"Unable to get image link",无法获取PDF链接:"Unable to get PDF link",无法获取文档链接:"Unable to get document link",不支持预览此类型的文件:"Preview not supported for this file type",请先选择并上传文件:"Please select and upload files first","显示/隐藏筛选条件":"Show/Hide Filter Conditions",自定义条件展示:"Custom Condition Display",'1.可点击"向上"/"向下"调整顺序':'1. Click "Up"/"Down" to adjust order',默认显示列数:"Default Display Columns",默认显示行数:"Default Display Rows",序号:"Serial Number",列表项:"List Item",是否显示:"Show/Hide",显示:"Show",隐藏:"Hide",操作:"Operation","向上↑":"Up↑","向下↓":"Down↓",确认:"Confirm",其他信息:"Other Information",编辑:"Edit",保存:"Save",基础信息:"Basic Information",保存成功:"Save successful",单据详情:"Document Details",请选择数据:"Please select data",暂无数据:"No data",自定义列展示:"Custom Column Display",当前页导出Excel:"Export Current Page to Excel",保存列宽:"Save Column Width",自定义列:"Custom Column","1.点击按钮即可重置":"1. Click button to reset","2.选中后可上下拖拽调整顺序":"2. Select and drag up/down to adjust order",以此列排序:"Sort by this column",无:"None",正序:"Ascending",倒序:"Descending",是否固定:"Fixed",否:"No",左侧:"Left",右侧:"Right",自定义序列:"Custom Sequence",调整序列:"Adjust Sequence",调整序列至:"Adjust sequence to",导出当前excel:"Export current excel",全部导出:"Export All",自定义导出:"Custom Export",全选:"Select All",请输入excel文件名:"Please enter excel file name",是否导出:"Export",导出:"Export",Cancel:"Cancel",Confirm:"Confirm",合计:"Total","此操作将恢复初始状态,是否确定?":"This operation will restore the initial state, are you sure?",已取消操作:"Operation cancelled",操作成功:"Operation successful",单据信息:"Document Information",BOM单号:"BOM Number",款号编码:"Model Code",款号名称:"Model Name",颜色:"Color",查看:"View",缩略图:"Thumbnail",BOM号:"BOM Number",日期:"Date",行状态:"Row Status",正常:"Normal",已取消:"Cancelled",已采购:"Purchased",明细信息:"Detail Information",添加明细:"Add Details",编辑全部:"Edit All",批量删除:"Batch Delete",批量取消启用:"Batch Disable",批量保存:"Batch Save",批量取消:"Batch Cancel",查看大图:"View Large Image",数据:"Data","调整序列至:":"Adjust sequence to:",请先保存数据:"Please save data first",sMainKey错误:"sMainKey Error","此操作将删除, 是否继续?":"This operation will delete, continue?","此操作将取消启用, 是否继续?":"This operation will disable, continue?",请先保存表头:"Please save header first","[1]是必须的":"[1] is required",请先选择数据:"Please select data first","数据读取错误,请检查分页代码":"Data read error, please check pagination code"},lH=localStorage.getItem("language")||"zh-CN",dE=Z6({legacy:!1,locale:lH,fallbackLocale:"zh-CN",messages:{"zh-CN":oH,"en-US":sH},silentTranslationWarn:!0,silentFallbackWarn:!0});function pE(e){dE.global.locale.value=e}let $={customUrl:"/hf_pub_api/pbCommon/customDisplayApi",cmExportUrl:"",cmExportHisUrl:"",cmSlDataKey:"",sMainKey:"guid",sDtlToHdrKey:"hdr_guid",bShowCsColumn:!0,iCmTablePageSize:null,$ntt:function(e,t){return e},setLocale:function(e){pE(e)},createComponentTranslator:function(){return function(e){try{const t=dE.global.t(e);return t===e?e:t}catch{return e}}},sAppCode:"",request:{Cookie:"",sign:""},requestToken:"bearer ZGE4NmQwNzctMzQxOS00ZjRkLWJjNTktMzI1NWYyMTE2ZDRh",csResKey:"result.content.0.format",noneBigImg:null,theme:"dark"};const vE=Symbol(),ip="el",uH="is-",Ts=(e,t,r,n,a)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},gE=Symbol("namespaceContextKey"),mE=e=>{const t=e||(h.getCurrentInstance()?h.inject(gE,h.ref(ip)):h.ref(ip));return h.computed(()=>h.unref(t)||ip)},Nr=(e,t)=>{const r=mE(t);return{namespace:r,b:(g="")=>Ts(r.value,e,g,"",""),e:g=>g?Ts(r.value,e,"",g,""):"",m:g=>g?Ts(r.value,e,"","",g):"",be:(g,m)=>g&&m?Ts(r.value,e,g,m,""):"",em:(g,m)=>g&&m?Ts(r.value,e,"",g,m):"",bm:(g,m)=>g&&m?Ts(r.value,e,g,"",m):"",bem:(g,m,y)=>g&&m&&y?Ts(r.value,e,g,m,y):"",is:(g,...m)=>{const y=m.length>=1?m[0]:!0;return g&&y?`${uH}${g}`:""},cssVar:g=>{const m={};for(const y in g)g[y]&&(m[`--${r.value}-${y}`]=g[y]);return m},cssVarName:g=>`--${r.value}-${g}`,cssVarBlock:g=>{const m={};for(const y in g)g[y]&&(m[`--${r.value}-${e}-${y}`]=g[y]);return m},cssVarBlockName:g=>`--${r.value}-${e}-${g}`}};/**
28
+ * @vue/shared v3.5.17
29
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
30
+ * @license MIT
31
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const nf=()=>{},cH=Object.prototype.hasOwnProperty,op=(e,t)=>cH.call(e,t),r0=Array.isArray,ei=e=>typeof e=="function",fr=e=>typeof e=="string",Vi=e=>e!==null&&typeof e=="object",n0=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},fH=/-(\w)/g,hH=n0(e=>e.replace(fH,(t,r)=>r?r.toUpperCase():"")),dH=/\B([A-Z])/g,pH=n0(e=>e.replace(dH,"-$1").toLowerCase()),vH=n0(e=>e.charAt(0).toUpperCase()+e.slice(1));var gH=typeof global=="object"&&global&&global.Object===Object&&global,mH=typeof self=="object"&&self&&self.Object===Object&&self,a0=gH||mH||Function("return this")(),So=a0.Symbol,yE=Object.prototype,yH=yE.hasOwnProperty,_H=yE.toString,af=So?So.toStringTag:void 0;function bH(e){var t=yH.call(e,af),r=e[af];try{e[af]=void 0;var n=!0}catch{}var a=_H.call(e);return n&&(t?e[af]=r:delete e[af]),a}var SH=Object.prototype,wH=SH.toString;function xH(e){return wH.call(e)}var CH="[object Null]",TH="[object Undefined]",_E=So?So.toStringTag:void 0;function i0(e){return e==null?e===void 0?TH:CH:_E&&_E in Object(e)?bH(e):xH(e)}function o0(e){return e!=null&&typeof e=="object"}var DH="[object Symbol]";function s0(e){return typeof e=="symbol"||o0(e)&&i0(e)==DH}function EH(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var of=Array.isArray,bE=So?So.prototype:void 0,SE=bE?bE.toString:void 0;function wE(e){if(typeof e=="string")return e;if(of(e))return EH(e,wE)+"";if(s0(e))return SE?SE.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function sp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function AH(e){return e}var MH="[object AsyncFunction]",NH="[object Function]",IH="[object GeneratorFunction]",LH="[object Proxy]";function kH(e){if(!sp(e))return!1;var t=i0(e);return t==NH||t==IH||t==MH||t==LH}var l0=a0["__core-js_shared__"],xE=function(){var e=/[^.]+$/.exec(l0&&l0.keys&&l0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PH(e){return!!xE&&xE in e}var OH=Function.prototype,RH=OH.toString;function VH(e){if(e!=null){try{return RH.call(e)}catch{}try{return e+""}catch{}}return""}var BH=/[\\^$.*+?()[\]{}|]/g,FH=/^\[object .+?Constructor\]$/,zH=Function.prototype,$H=Object.prototype,HH=zH.toString,GH=$H.hasOwnProperty,UH=RegExp("^"+HH.call(GH).replace(BH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WH(e){if(!sp(e)||PH(e))return!1;var t=kH(e)?UH:FH;return t.test(VH(e))}function YH(e,t){return e==null?void 0:e[t]}function u0(e,t){var r=YH(e,t);return WH(r)?r:void 0}function XH(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var KH=800,jH=16,ZH=Date.now;function qH(e){var t=0,r=0;return function(){var n=ZH(),a=jH-(n-r);if(r=n,a>0){if(++t>=KH)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function JH(e){return function(){return e}}var lp=function(){try{var e=u0(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QH=lp?function(e,t){return lp(e,"toString",{configurable:!0,enumerable:!1,value:JH(t),writable:!0})}:AH,eG=qH(QH),tG=9007199254740991,rG=/^(?:0|[1-9]\d*)$/;function CE(e,t){var r=typeof e;return t=t??tG,!!t&&(r=="number"||r!="symbol"&&rG.test(e))&&e>-1&&e%1==0&&e<t}function nG(e,t,r){t=="__proto__"&&lp?lp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function TE(e,t){return e===t||e!==e&&t!==t}var aG=Object.prototype,iG=aG.hasOwnProperty;function oG(e,t,r){var n=e[t];(!(iG.call(e,t)&&TE(n,r))||r===void 0&&!(t in e))&&nG(e,t,r)}var DE=Math.max;function sG(e,t,r){return t=DE(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=DE(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),XH(e,this,s)}}var lG=9007199254740991;function uG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lG}var cG="[object Arguments]";function EE(e){return o0(e)&&i0(e)==cG}var AE=Object.prototype,fG=AE.hasOwnProperty,hG=AE.propertyIsEnumerable,ME=EE(function(){return arguments}())?EE:function(e){return o0(e)&&fG.call(e,"callee")&&!hG.call(e,"callee")},dG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pG=/^\w*$/;function vG(e,t){if(of(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||s0(e)?!0:pG.test(e)||!dG.test(e)||t!=null&&e in Object(t)}var sf=u0(Object,"create");function gG(){this.__data__=sf?sf(null):{},this.size=0}function mG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yG="__lodash_hash_undefined__",_G=Object.prototype,bG=_G.hasOwnProperty;function SG(e){var t=this.__data__;if(sf){var r=t[e];return r===yG?void 0:r}return bG.call(t,e)?t[e]:void 0}var wG=Object.prototype,xG=wG.hasOwnProperty;function CG(e){var t=this.__data__;return sf?t[e]!==void 0:xG.call(t,e)}var TG="__lodash_hash_undefined__";function DG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=sf&&t===void 0?TG:t,this}function Ds(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ds.prototype.clear=gG,Ds.prototype.delete=mG,Ds.prototype.get=SG,Ds.prototype.has=CG,Ds.prototype.set=DG;function EG(){this.__data__=[],this.size=0}function up(e,t){for(var r=e.length;r--;)if(TE(e[r][0],t))return r;return-1}var AG=Array.prototype,MG=AG.splice;function NG(e){var t=this.__data__,r=up(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():MG.call(t,r,1),--this.size,!0}function IG(e){var t=this.__data__,r=up(t,e);return r<0?void 0:t[r][1]}function LG(e){return up(this.__data__,e)>-1}function kG(e,t){var r=this.__data__,n=up(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function su(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}su.prototype.clear=EG,su.prototype.delete=NG,su.prototype.get=IG,su.prototype.has=LG,su.prototype.set=kG;var PG=u0(a0,"Map");function OG(){this.size=0,this.__data__={hash:new Ds,map:new(PG||su),string:new Ds}}function RG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cp(e,t){var r=e.__data__;return RG(t)?r[typeof t=="string"?"string":"hash"]:r.map}function VG(e){var t=cp(this,e).delete(e);return this.size-=t?1:0,t}function BG(e){return cp(this,e).get(e)}function FG(e){return cp(this,e).has(e)}function zG(e,t){var r=cp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Es(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Es.prototype.clear=OG,Es.prototype.delete=VG,Es.prototype.get=BG,Es.prototype.has=FG,Es.prototype.set=zG;var $G="Expected a function";function c0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($G);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(c0.Cache||Es),r}c0.Cache=Es;var HG=500;function GG(e){var t=c0(e,function(n){return r.size===HG&&r.clear(),n}),r=t.cache;return t}var UG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WG=/\\(\\)?/g,YG=GG(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UG,function(r,n,a,i){t.push(a?i.replace(WG,"$1"):n||r)}),t});function XG(e){return e==null?"":wE(e)}function fp(e,t){return of(e)?e:vG(e,t)?[e]:YG(XG(e))}function f0(e){if(typeof e=="string"||s0(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function NE(e,t){t=fp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[f0(t[r++])];return r&&r==n?e:void 0}function KG(e,t,r){var n=e==null?void 0:NE(e,t);return n===void 0?r:n}function jG(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var IE=So?So.isConcatSpreadable:void 0;function ZG(e){return of(e)||ME(e)||!!(IE&&e&&e[IE])}function qG(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=ZG),a||(a=[]);++i<o;){var s=e[i];r(s)?jG(a,s):a[a.length]=s}return a}function JG(e){var t=e==null?0:e.length;return t?qG(e):[]}function QG(e){return eG(sG(e,void 0,JG),e+"")}function eU(e,t){return e!=null&&t in Object(e)}function tU(e,t,r){t=fp(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=f0(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&uG(a)&&CE(o,a)&&(of(e)||ME(e)))}function rU(e,t){return e!=null&&tU(e,t,eU)}function LE(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n}function kE(e){return e==null}function nU(e,t,r,n){if(!sp(e))return e;t=fp(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=f0(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=void 0,u===void 0&&(u=sp(c)?c:CE(t[a+1])?[]:{})}oG(s,l,u),s=s[l]}return e}function aU(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var o=t[n],s=NE(e,o);r(s,o)&&nU(i,fp(o,e),s)}return i}function iU(e,t){return aU(e,t,function(r,n){return rU(e,n)})}var oU=QG(function(e,t){return e==null?{}:iU(e,t)});const lf=e=>e===void 0,h0=e=>typeof e=="boolean",ti=e=>typeof e=="number",wo=e=>typeof Element>"u"?!1:e instanceof Element,sU=e=>fr(e)?!Number.isNaN(Number(e)):!1;var lU=Object.defineProperty,uU=Object.defineProperties,cU=Object.getOwnPropertyDescriptors,PE=Object.getOwnPropertySymbols,fU=Object.prototype.hasOwnProperty,hU=Object.prototype.propertyIsEnumerable,OE=(e,t,r)=>t in e?lU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dU=(e,t)=>{for(var r in t||(t={}))fU.call(t,r)&&OE(e,r,t[r]);if(PE)for(var r of PE(t))hU.call(t,r)&&OE(e,r,t[r]);return e},pU=(e,t)=>uU(e,cU(t));function d0(e,t){var r;const n=h.shallowRef();return h.watchEffect(()=>{n.value=e()},pU(dU({},t),{flush:(r=void 0)!=null?r:"sync"})),h.readonly(n)}var RE;const Dr=typeof window<"u",vU=e=>typeof e=="string",gU=()=>{};Dr&&((RE=window==null?void 0:window.navigator)!=null&&RE.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function p0(e){return typeof e=="function"?e():h.unref(e)}function mU(e){return e}function v0(e){return h.getCurrentScope()?(h.onScopeDispose(e),!0):!1}function yU(e,t=!0){h.getCurrentInstance()?h.onMounted(e):t?e():h.nextTick(e)}function VE(e,t,r={}){const{immediate:n=!0}=r,a=h.ref(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},p0(t))}return n&&(a.value=!0,Dr&&l()),v0(s),{isPending:h.readonly(a),start:l,stop:s}}function uf(e){var t;const r=p0(e);return(t=r==null?void 0:r.$el)!=null?t:r}const hp=Dr?window:void 0,_U=Dr?window.document:void 0;function ri(...e){let t,r,n,a;if(vU(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=hp):[t,r,n,a]=e,!t)return gU;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[uf(t),p0(a)],([c,f])=>{o(),c&&i.push(...r.flatMap(d=>n.map(p=>s(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return v0(u),u}function bU(e,t=!1){const r=h.ref(),n=()=>r.value=!!e();return n(),yU(n,t),r}const BE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},FE="__vueuse_ssr_handlers__";BE[FE]=BE[FE]||{};function SU({document:e=_U}={}){if(!e)return h.ref("visible");const t=h.ref(e.visibilityState);return ri(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var zE=Object.getOwnPropertySymbols,wU=Object.prototype.hasOwnProperty,xU=Object.prototype.propertyIsEnumerable,CU=(e,t)=>{var r={};for(var n in e)wU.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zE)for(var n of zE(e))t.indexOf(n)<0&&xU.call(e,n)&&(r[n]=e[n]);return r};function lu(e,t,r={}){const n=r,{window:a=hp}=n,i=CU(n,["window"]);let o;const s=bU(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=h.watch(()=>uf(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return v0(c),{isSupported:s,stop:c}}function TU(e,t={width:0,height:0},r={}){const{window:n=hp,box:a="content-box"}=r,i=h.computed(()=>{var l,u;return(u=(l=uf(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),o=h.ref(t.width),s=h.ref(t.height);return lu(e,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(n&&i.value){const c=uf(e);if(c){const f=n.getComputedStyle(c);o.value=parseFloat(f.width),s.value=parseFloat(f.height)}}else if(u){const c=Array.isArray(u)?u:[u];o.value=c.reduce((f,{inlineSize:d})=>f+d,0),s.value=c.reduce((f,{blockSize:d})=>f+d,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},r),h.watch(()=>uf(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}var $E;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})($E||($E={}));var DU=Object.defineProperty,HE=Object.getOwnPropertySymbols,EU=Object.prototype.hasOwnProperty,AU=Object.prototype.propertyIsEnumerable,GE=(e,t,r)=>t in e?DU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MU=(e,t)=>{for(var r in t||(t={}))EU.call(t,r)&&GE(e,r,t[r]);if(HE)for(var r of HE(t))AU.call(t,r)&&GE(e,r,t[r]);return e};MU({linear:mU},{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]});function NU({window:e=hp}={}){if(!e)return h.ref(!1);const t=h.ref(e.document.hasFocus());return ri(e,"blur",()=>{t.value=!1}),ri(e,"focus",()=>{t.value=!0}),t}class UE extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function cf(e,t){throw new UE(`[${e}] ${t}`)}function Kn(e,t){if(process.env.NODE_ENV!=="production"){const r=fr(e)?new UE(`[${e}] ${t}`):e;console.warn(r)}}const WE={current:0},YE=h.ref(0),XE=2e3,KE=Symbol("elZIndexContextKey"),jE=Symbol("zIndexContextKey"),IU=e=>{const t=h.getCurrentInstance()?h.inject(KE,WE):WE,r=e||(h.getCurrentInstance()?h.inject(jE,void 0):void 0),n=h.computed(()=>{const o=h.unref(r);return ti(o)?o:XE}),a=h.computed(()=>n.value+YE.value),i=()=>(t.current++,YE.value=t.current,a.value);return!Dr&&!h.inject(KE)&&Kn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
32
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:a,nextZIndex:i}};var LU={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.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},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 kU=e=>(t,r)=>PU(t,r,h.unref(e)),PU=(e,t,r)=>KG(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),OU=e=>{const t=h.computed(()=>h.unref(e).name),r=h.isRef(e)?e:h.ref(e);return{lang:t,locale:r,t:kU(e)}},ZE=Symbol("localeContextKey"),RU=e=>{const t=e||h.inject(ZE,h.ref());return OU(h.computed(()=>t.value||LU))},qE="__epPropKey",Zt=e=>e,VU=e=>Vi(e)&&!!e[qE],JE=(e,t)=>{if(!Vi(e)||VU(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,l={type:i,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),op(e,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");h.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[qE]:!0};return op(e,"default")&&(l.default=a),l},$r=e=>LE(Object.entries(e).map(([t,r])=>[t,JE(r,t)])),QE=["","default","small","large"],g0=JE({type:String,values:QE,required:!1}),eA=Symbol("size"),BU=()=>{const e=h.inject(eA,{});return h.computed(()=>h.unref(e.size)||"")},FU=Symbol("emptyValuesContextKey"),zU=$r({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>ei(e)?!e():!e}}),tA=e=>Object.keys(e),dp=h.ref();function m0(e,t=void 0){const r=h.getCurrentInstance()?h.inject(vE,dp):dp;return e?h.computed(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t}):r}function pp(e,t){const r=m0(),n=Nr(e,h.computed(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||ip})),a=RU(h.computed(()=>{var s;return(s=r.value)==null?void 0:s.locale})),i=IU(h.computed(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||XE})),o=h.computed(()=>{var s;return h.unref(t)||((s=r.value)==null?void 0:s.size)||""});return rA(h.computed(()=>h.unref(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const rA=(e,t,r=!1)=>{var n;const a=!!h.getCurrentInstance(),i=a?m0():void 0,o=(n=void 0)!=null?n:a?h.provide:void 0;if(!o){Kn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=h.computed(()=>{const l=h.unref(e);return i!=null&&i.value?$U(i.value,l):l});return o(vE,s),o(ZE,h.computed(()=>s.value.locale)),o(gE,h.computed(()=>s.value.namespace)),o(jE,h.computed(()=>s.value.zIndex)),o(eA,{size:h.computed(()=>s.value.size||"")}),o(FU,h.computed(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(r||!dp.value)&&(dp.value=s.value),s},$U=(e,t)=>{const r=[...new Set([...tA(e),...tA(t)])],n={};for(const a of r)n[a]=t[a]!==void 0?t[a]:e[a];return n},ff="update:modelValue",nA="change",aA="input";var bn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const HU="utils/dom/style",iA=(e="")=>e.split(" ").filter(t=>!!t.trim()),oA=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},y0=(e,t)=>{!e||!t.trim()||e.classList.add(...iA(t))},hf=(e,t)=>{!e||!t.trim()||e.classList.remove(...iA(t))},uu=(e,t)=>{var r;if(!Dr||!e||!t)return"";let n=hH(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch{return e.style[n]}};function df(e,t="px"){if(!e)return"";if(ti(e)||sU(e))return`${e}${t}`;if(fr(e))return e;Kn(HU,"binding value must be a string or number")}let vp;const GU=e=>{var t;if(!Dr)return 0;if(vp!==void 0)return vp;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",r.appendChild(a);const i=a.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),vp=n-i,vp},cu=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},sA=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),_0=e=>(e.install=nf,e),UU=$r({size:{type:Zt([Number,String])},color:{type:String}}),WU=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),YU=h.defineComponent({...WU,props:UU,setup(e){const t=e,r=Nr("icon"),n=h.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:lf(a)?void 0:df(a),"--color":i}});return(a,i)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(r).b(),style:h.unref(n)},a.$attrs),[h.renderSlot(a.$slots,"default")],16))}});var XU=bn(YU,[["__file","icon.vue"]]);const Er=cu(XU);/*! Element Plus Icons Vue v2.3.1 */var KU=h.defineComponent({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),lA=KU,jU=h.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),uA=jU,ZU=h.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),b0=ZU,qU=h.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),cA=qU,JU=h.defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),fA=JU,QU=h.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),eW=QU,tW=h.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"}),h.createElementVNode("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"})]))}}),rW=tW,nW=h.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),hA=nW,aW=h.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"}),h.createElementVNode("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"})]))}}),dA=aW,iW=h.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),S0=iW,oW=h.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),pA=oW,sW=h.defineComponent({name:"Document",__name:"document",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),lW=sW,uW=h.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"}),h.createElementVNode("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"})]))}}),cW=uW,fW=h.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),w0=fW,hW=h.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),gp=hW,dW=h.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),pW=dW,vW=h.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),vA=vW,gW=h.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),mW=gW,yW=h.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("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"})]))}}),gA=yW;const As=Zt([String,Object,Function]),mA={Close:S0,SuccessFilled:vA,InfoFilled:w0,WarningFilled:gA,CircleCloseFilled:hA},fu={primary:w0,success:vA,warning:gA,error:hA,info:w0},_W={validating:gp,success:rW,error:dA},bW=()=>Dr&&/firefox/i.test(window.navigator.userAgent);let Sn;const SW={height:"0",visibility:"hidden",overflow:bW()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},wW=["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 xW(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:wW.map(o=>[o,t.getPropertyValue(o)]),paddingSize:n,borderSize:a,boxSizing:r}}function yA(e,t=1,r){var n;Sn||(Sn=document.createElement("textarea"),document.body.appendChild(Sn));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=xW(e);s.forEach(([f,d])=>Sn==null?void 0:Sn.style.setProperty(f,d)),Object.entries(SW).forEach(([f,d])=>Sn==null?void 0:Sn.style.setProperty(f,d,"important")),Sn.value=e.value||e.placeholder||"";let l=Sn.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Sn.value="";const c=Sn.scrollHeight-a;if(ti(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ti(r)){let f=c*r;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(n=Sn.parentNode)==null||n.removeChild(Sn),Sn=void 0,u}const mp=e=>e,CW=$r({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),TW=e=>oU(CW,e),DW=$r({id:{type:String,default:void 0},size:g0,disabled:Boolean,modelValue:{type:Zt([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:Zt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:As},prefixIcon:{type:As},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Zt([Object,Array,String]),default:()=>mp({})},autofocus:Boolean,rows:{type:Number,default:2},...TW(["ariaLabel"])}),EW={[ff]:e=>fr(e),input:e=>fr(e),change:e=>fr(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},AW=["class","style"],MW=/^on[A-Z]/,NW=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=h.computed(()=>((r==null?void 0:r.value)||[]).concat(AW)),a=h.getCurrentInstance();return a?h.computed(()=>{var i;return LE(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!n.value.includes(o)&&!(t&&MW.test(o))))}):(Kn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),h.computed(()=>({})))},x0={prefix:Math.floor(Math.random()*1e4),current:0},IW=Symbol("elIdInjection"),LW=()=>h.getCurrentInstance()?h.inject(IW,x0):x0,C0=e=>{const t=LW();!Dr&&t===x0&&Kn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
33
+ usage: app.provide(ID_INJECTION_KEY, {
34
+ prefix: number,
35
+ current: number,
36
+ })`);const r=mE();return d0(()=>h.unref(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},T0=Symbol("formContextKey"),_A=Symbol("formItemContextKey"),bA=()=>{const e=h.inject(T0,void 0),t=h.inject(_A,void 0);return{form:e,formItem:t}},kW=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=h.ref(!1)),n||(n=h.ref(!1));const a=h.ref();let i;const o=h.computed(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return h.onMounted(()=>{i=h.watch([h.toRef(e,"id"),r],([s,l])=>{const u=s??(l?void 0:C0().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),h.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},SA=e=>{const t=h.getCurrentInstance();return h.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})},wA=(e,t={})=>{const r=h.ref(void 0),n=t.prop?r:SA("size"),a=t.global?r:BU(),i=t.form?{size:void 0}:h.inject(T0,void 0),o=t.formItem?{size:void 0}:h.inject(_A,void 0);return h.computed(()=>n.value||h.unref(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},yp=e=>{const t=SA("disabled"),r=h.inject(T0,void 0);return h.computed(()=>t.value||h.unref(e)||(r==null?void 0:r.disabled)||!1)},PW='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',OW=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,xA=e=>Array.from(e.querySelectorAll(PW)).filter(t=>D0(t)&&OW(t)),D0=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};function RW(e,{beforeFocus:t,afterFocus:r,beforeBlur:n,afterBlur:a}={}){const i=h.getCurrentInstance(),{emit:o}=i,s=h.shallowRef(),l=yp(),u=h.ref(!1),c=p=>{ei(t)&&t(p)||u.value||(u.value=!0,o("focus",p),r==null||r())},f=p=>{var v;ei(n)&&n(p)||p.relatedTarget&&((v=s.value)!=null&&v.contains(p.relatedTarget))||(u.value=!1,o("blur",p),a==null||a())},d=p=>{var v,g;(v=s.value)!=null&&v.contains(document.activeElement)&&s.value!==document.activeElement||D0(p.target)||l.value||(g=e.value)==null||g.focus()};return h.watch([s,l],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),ri(s,"focus",c,!0),ri(s,"blur",f,!0),ri(s,"click",d,!0),process.env.NODE_ENV==="test"&&h.onMounted(()=>{const p=wo(e.value)?e.value:document.querySelector("input,textarea");p&&(ri(p,"focus",c,!0),ri(p,"blur",f,!0))}),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:f}}const VW=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function BW({afterComposition:e,emit:t}){const r=h.ref(!1),n=s=>{t==null||t("compositionstart",s),r.value=!0},a=s=>{var l;t==null||t("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,c=u[u.length-1]||"";r.value=!VW(c)},i=s=>{t==null||t("compositionend",s),r.value&&(r.value=!1,h.nextTick(()=>e(s)))};return{isComposing:r,handleComposition:s=>{s.type==="compositionend"?i(s):a(s)},handleCompositionStart:n,handleCompositionUpdate:a,handleCompositionEnd:i}}function FW(e){let t;function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function n(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[r,n]}const CA="ElInput",zW=h.defineComponent({name:CA,inheritAttrs:!1}),$W=h.defineComponent({...zW,props:DW,emits:EW,setup(e,{expose:t,emit:r}){const n=e,a=h.useAttrs(),i=NW(),o=h.useSlots(),s=h.computed(()=>[n.type==="textarea"?g.b():v.b(),v.m(d.value),v.is("disabled",p.value),v.is("exceed",re.value),{[v.b("group")]:o.prepend||o.append,[v.m("prefix")]:o.prefix||n.prefixIcon,[v.m("suffix")]:o.suffix||n.suffixIcon||n.clearable||n.showPassword,[v.bm("suffix","password-clear")]:B.value&&G.value,[v.b("hidden")]:n.type==="hidden"},a.class]),l=h.computed(()=>[v.e("wrapper"),v.is("focus",T.value)]),{form:u,formItem:c}=bA(),{inputId:f}=kW(n,{formItemContext:c}),d=wA(),p=yp(),v=Nr("input"),g=Nr("textarea"),m=h.shallowRef(),y=h.shallowRef(),_=h.ref(!1),b=h.ref(!1),S=h.ref(),x=h.shallowRef(n.inputStyle),w=h.computed(()=>m.value||y.value),{wrapperRef:C,isFocused:T,handleFocus:D,handleBlur:E}=RW(w,{beforeFocus(){return p.value},afterBlur(){var ae;n.validateEvent&&((ae=c==null?void 0:c.validate)==null||ae.call(c,"blur").catch(K=>Kn(K)))}}),A=h.computed(()=>{var ae;return(ae=u==null?void 0:u.statusIcon)!=null?ae:!1}),L=h.computed(()=>(c==null?void 0:c.validateState)||""),N=h.computed(()=>L.value&&_W[L.value]),I=h.computed(()=>b.value?mW:cW),k=h.computed(()=>[a.style]),P=h.computed(()=>[n.inputStyle,x.value,{resize:n.resize}]),V=h.computed(()=>kE(n.modelValue)?"":String(n.modelValue)),B=h.computed(()=>n.clearable&&!p.value&&!n.readonly&&!!V.value&&(T.value||_.value)),G=h.computed(()=>n.showPassword&&!p.value&&!!V.value),U=h.computed(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!p.value&&!n.readonly&&!n.showPassword),W=h.computed(()=>V.value.length),re=h.computed(()=>!!U.value&&W.value>Number(n.maxlength)),le=h.computed(()=>!!o.suffix||!!n.suffixIcon||B.value||n.showPassword||U.value||!!L.value&&A.value),[Y,X]=FW(m);lu(y,ae=>{if(de(),!U.value||n.resize!=="both")return;const K=ae[0],{width:ce}=K.contentRect;S.value={right:`calc(100% - ${ce+15+6}px)`}});const fe=()=>{const{type:ae,autosize:K}=n;if(!(!Dr||ae!=="textarea"||!y.value))if(K){const ce=Vi(K)?K.minRows:void 0,ht=Vi(K)?K.maxRows:void 0,Bt=yA(y.value,ce,ht);x.value={overflowY:"hidden",...Bt},h.nextTick(()=>{y.value.offsetHeight,x.value=Bt})}else x.value={minHeight:yA(y.value).minHeight}},de=(ae=>{let K=!1;return()=>{var ce;if(K||!n.autosize)return;((ce=y.value)==null?void 0:ce.offsetParent)===null||(ae(),K=!0)}})(fe),pe=()=>{const ae=w.value,K=n.formatter?n.formatter(V.value):V.value;!ae||ae.value===K||(ae.value=K)},Ae=async ae=>{Y();let{value:K}=ae.target;if(n.formatter&&n.parser&&(K=n.parser(K)),!Ce.value){if(K===V.value){pe();return}r(ff,K),r(aA,K),await h.nextTick(),pe(),X()}},me=ae=>{let{value:K}=ae.target;n.formatter&&n.parser&&(K=n.parser(K)),r(nA,K)},{isComposing:Ce,handleCompositionStart:Qe,handleCompositionUpdate:Ke,handleCompositionEnd:Ye}=BW({emit:r,afterComposition:Ae}),lt=()=>{Y(),b.value=!b.value,setTimeout(X)},_t=()=>{var ae;return(ae=w.value)==null?void 0:ae.focus()},O=()=>{var ae;return(ae=w.value)==null?void 0:ae.blur()},z=ae=>{_.value=!1,r("mouseleave",ae)},oe=ae=>{_.value=!0,r("mouseenter",ae)},be=ae=>{r("keydown",ae)},St=()=>{var ae;(ae=w.value)==null||ae.select()},At=()=>{r(ff,""),r(nA,""),r("clear"),r(aA,"")};return h.watch(()=>n.modelValue,()=>{var ae;h.nextTick(()=>fe()),n.validateEvent&&((ae=c==null?void 0:c.validate)==null||ae.call(c,"change").catch(K=>Kn(K)))}),h.watch(V,()=>pe()),h.watch(()=>n.type,async()=>{await h.nextTick(),pe(),fe()}),h.onMounted(()=>{!n.formatter&&n.parser&&Kn(CA,"If you set the parser, you also need to set the formatter."),pe(),h.nextTick(fe)}),t({input:m,textarea:y,ref:w,textareaStyle:P,autosize:h.toRef(n,"autosize"),isComposing:Ce,focus:_t,blur:O,select:St,clear:At,resizeTextarea:fe}),(ae,K)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([h.unref(s),{[h.unref(v).bm("group","append")]:ae.$slots.append,[h.unref(v).bm("group","prepend")]:ae.$slots.prepend}]),style:h.normalizeStyle(h.unref(k)),onMouseenter:oe,onMouseleave:z},[h.createCommentVNode(" input "),ae.type!=="textarea"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createCommentVNode(" prepend slot "),ae.$slots.prepend?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(v).be("group","prepend"))},[h.renderSlot(ae.$slots,"prepend")],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{ref_key:"wrapperRef",ref:C,class:h.normalizeClass(h.unref(l))},[h.createCommentVNode(" prefix slot "),ae.$slots.prefix||ae.prefixIcon?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(v).e("prefix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("prefix-inner"))},[h.renderSlot(ae.$slots,"prefix"),ae.prefixIcon?(h.openBlock(),h.createBlock(h.unref(Er),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(ae.prefixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("input",h.mergeProps({id:h.unref(f),ref_key:"input",ref:m,class:h.unref(v).e("inner")},h.unref(i),{minlength:ae.minlength,maxlength:ae.maxlength,type:ae.showPassword?b.value?"text":"password":ae.type,disabled:h.unref(p),readonly:ae.readonly,autocomplete:ae.autocomplete,tabindex:ae.tabindex,"aria-label":ae.ariaLabel,placeholder:ae.placeholder,style:ae.inputStyle,form:ae.form,autofocus:ae.autofocus,role:ae.containerRole,onCompositionstart:h.unref(Qe),onCompositionupdate:h.unref(Ke),onCompositionend:h.unref(Ye),onInput:Ae,onChange:me,onKeydown:be}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),h.createCommentVNode(" suffix slot "),h.unref(le)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(h.unref(v).e("suffix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("suffix-inner"))},[!h.unref(B)||!h.unref(G)||!h.unref(U)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.renderSlot(ae.$slots,"suffix"),ae.suffixIcon?(h.openBlock(),h.createBlock(h.unref(Er),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(ae.suffixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],64)):h.createCommentVNode("v-if",!0),h.unref(B)?(h.openBlock(),h.createBlock(h.unref(Er),{key:1,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("clear")]),onMousedown:h.withModifiers(h.unref(nf),["prevent"]),onClick:At},{default:h.withCtx(()=>[h.createVNode(h.unref(dA))]),_:1},8,["class","onMousedown"])):h.createCommentVNode("v-if",!0),h.unref(G)?(h.openBlock(),h.createBlock(h.unref(Er),{key:2,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("password")]),onClick:lt},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(I))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.unref(U)?(h.openBlock(),h.createElementBlock("span",{key:3,class:h.normalizeClass(h.unref(v).e("count"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("count-inner"))},h.toDisplayString(h.unref(W))+" / "+h.toDisplayString(ae.maxlength),3)],2)):h.createCommentVNode("v-if",!0),h.unref(L)&&h.unref(N)&&h.unref(A)?(h.openBlock(),h.createBlock(h.unref(Er),{key:4,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("validateIcon"),h.unref(v).is("loading",h.unref(L)==="validating")])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(N))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0)],2),h.createCommentVNode(" append slot "),ae.$slots.append?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(h.unref(v).be("group","append"))},[h.renderSlot(ae.$slots,"append")],2)):h.createCommentVNode("v-if",!0)],64)):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" textarea "),h.createElementVNode("textarea",h.mergeProps({id:h.unref(f),ref_key:"textarea",ref:y,class:[h.unref(g).e("inner"),h.unref(v).is("focus",h.unref(T))]},h.unref(i),{minlength:ae.minlength,maxlength:ae.maxlength,tabindex:ae.tabindex,disabled:h.unref(p),readonly:ae.readonly,autocomplete:ae.autocomplete,style:h.unref(P),"aria-label":ae.ariaLabel,placeholder:ae.placeholder,form:ae.form,autofocus:ae.autofocus,rows:ae.rows,role:ae.containerRole,onCompositionstart:h.unref(Qe),onCompositionupdate:h.unref(Ke),onCompositionend:h.unref(Ye),onInput:Ae,onFocus:h.unref(D),onBlur:h.unref(E),onChange:me,onKeydown:be}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),h.unref(U)?(h.openBlock(),h.createElementBlock("span",{key:0,style:h.normalizeStyle(S.value),class:h.normalizeClass(h.unref(v).e("count"))},h.toDisplayString(h.unref(W))+" / "+h.toDisplayString(ae.maxlength),7)):h.createCommentVNode("v-if",!0)],64))],38))}});var HW=bn($W,[["__file","input.vue"]]);const GW=cu(HW),E0="focus-trap.focus-after-trapped",A0="focus-trap.focus-after-released",UW="focus-trap.focusout-prevented",TA={cancelable:!0,bubbles:!1},WW={cancelable:!0,bubbles:!1},DA="focusAfterTrapped",EA="focusAfterReleased",YW=Symbol("elFocusTrap"),M0=h.ref(),_p=h.ref(0),N0=h.ref(0);let bp=0;const AA=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},MA=(e,t)=>{for(const r of e)if(!XW(r,t))return r},XW=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},KW=e=>{const t=AA(e),r=MA(t,e),n=MA(t.reverse(),e);return[r,n]},jW=e=>e instanceof HTMLInputElement&&"select"in e,xo=(e,t)=>{if(e&&e.focus){const r=document.activeElement;let n=!1;wo(e)&&!D0(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus({preventScroll:!0}),N0.value=window.performance.now(),e!==r&&jW(e)&&t&&e.select(),wo(e)&&n&&e.removeAttribute("tabindex")}};function NA(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const ZW=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=NA(e,n),e.unshift(n)},remove:n=>{var a,i;e=NA(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},qW=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(xo(n,t),document.activeElement!==r)return},IA=ZW(),JW=()=>_p.value>N0.value,Sp=()=>{M0.value="pointer",_p.value=window.performance.now()},LA=()=>{M0.value="keyboard",_p.value=window.performance.now()},QW=()=>(h.onMounted(()=>{bp===0&&(document.addEventListener("mousedown",Sp),document.addEventListener("touchstart",Sp),document.addEventListener("keydown",LA)),bp++}),h.onBeforeUnmount(()=>{bp--,bp<=0&&(document.removeEventListener("mousedown",Sp),document.removeEventListener("touchstart",Sp),document.removeEventListener("keydown",LA))}),{focusReason:M0,lastUserFocusTimestamp:_p,lastAutomatedFocusTimestamp:N0}),wp=e=>new CustomEvent(UW,{...WW,detail:e}),an={tab:"Tab",enter:"Enter",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter"};let hu=[];const kA=e=>{e.code===an.esc&&hu.forEach(t=>t(e))},e9=e=>{h.onMounted(()=>{hu.length===0&&document.addEventListener("keydown",kA),Dr&&hu.push(e)}),h.onBeforeUnmount(()=>{hu=hu.filter(t=>t!==e),hu.length===0&&Dr&&document.removeEventListener("keydown",kA)})},t9=h.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[DA,EA,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=h.ref();let n,a;const{focusReason:i}=QW();e9(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{code:g,altKey:m,ctrlKey:y,metaKey:_,currentTarget:b,shiftKey:S}=v,{loop:x}=e,w=g===an.tab&&!m&&!y&&!_,C=document.activeElement;if(w&&C){const T=b,[D,E]=KW(T);if(D&&E){if(!S&&C===E){const L=wp({focusReason:i.value});t("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),x&&xo(D,!0))}else if(S&&[D,T].includes(C)){const L=wp({focusReason:i.value});t("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),x&&xo(E,!0))}}else if(C===T){const L=wp({focusReason:i.value});t("focusout-prevented",L),L.defaultPrevented||v.preventDefault()}}};h.provide(YW,{focusTrapRef:r,onKeydown:s}),h.watch(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),h.watch([r],([v],[g])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",c),g.removeEventListener("focusout",f))});const l=v=>{t(DA,v)},u=v=>t(EA,v),c=v=>{const g=h.unref(r);if(!g)return;const m=v.target,y=v.relatedTarget,_=m&&g.contains(m);e.trapped||y&&g.contains(y)||(n=y),_&&t("focusin",v),!o.paused&&e.trapped&&(_?a=m:xo(a,!0))},f=v=>{const g=h.unref(r);if(!(o.paused||!g))if(e.trapped){const m=v.relatedTarget;!kE(m)&&!g.contains(m)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=wp({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||xo(a,!0)}},0)}else{const m=v.target;m&&g.contains(m)||t("focusout",v)}};async function d(){await h.nextTick();const v=h.unref(r);if(v){IA.push(o);const g=v.contains(document.activeElement)?n:document.activeElement;if(n=g,!v.contains(g)){const y=new Event(E0,TA);v.addEventListener(E0,l),v.dispatchEvent(y),y.defaultPrevented||h.nextTick(()=>{let _=e.focusStartEl;fr(_)||(xo(_),document.activeElement!==_&&(_="first")),_==="first"&&qW(AA(v),!0),(document.activeElement===g||_==="container")&&xo(v)})}}}function p(){const v=h.unref(r);if(v){v.removeEventListener(E0,l);const g=new CustomEvent(A0,{...TA,detail:{focusReason:i.value}});v.addEventListener(A0,u),v.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!JW()||v.contains(document.activeElement))&&xo(n??document.body),v.removeEventListener(A0,u),IA.remove(o)}}return h.onMounted(()=>{e.trapped&&d(),h.watch(()=>e.trapped,v=>{v?d():p()})}),h.onBeforeUnmount(()=>{e.trapped&&p(),r.value&&(r.value.removeEventListener("keydown",s),r.value.removeEventListener("focusin",c),r.value.removeEventListener("focusout",f),r.value=void 0)}),{onKeydown:s}}});function r9(e,t,r,n,a,i){return h.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var n9=bn(t9,[["render",r9],["__file","focus-trap.vue"]]);const a9=$r({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,badgeStyle:{type:Zt([String,Object,Array])},offset:{type:Zt(Array),default:[0,0]},badgeClass:{type:String}}),i9=h.defineComponent({name:"ElBadge"}),o9=h.defineComponent({...i9,props:a9,setup(e,{expose:t}){const r=e,n=Nr("badge"),a=h.computed(()=>r.isDot?"":ti(r.value)&&ti(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),i=h.computed(()=>{var o,s,l,u,c;return[{backgroundColor:r.color,marginRight:df(-((s=(o=r.offset)==null?void 0:o[0])!=null?s:0)),marginTop:df((u=(l=r.offset)==null?void 0:l[1])!=null?u:0)},(c=r.badgeStyle)!=null?c:{}]});return t({content:a}),(o,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(n).b())},[h.renderSlot(o.$slots,"default"),h.createVNode(h.Transition,{name:`${h.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("sup",{class:h.normalizeClass([h.unref(n).e("content"),h.unref(n).em("content",o.type),h.unref(n).is("fixed",!!o.$slots.default),h.unref(n).is("dot",o.isDot),h.unref(n).is("hide-zero",!o.showZero&&r.value===0),o.badgeClass]),style:h.normalizeStyle(h.unref(i))},[h.renderSlot(o.$slots,"content",{value:h.unref(a)},()=>[h.createTextVNode(h.toDisplayString(h.unref(a)),1)])],6),[[h.vShow,!o.hidden&&(h.unref(a)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var s9=bn(o9,[["__file","badge.vue"]]);const l9=cu(s9),PA=Symbol("buttonGroupContextKey"),u9=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{h.watch(()=>h.unref(o),s=>{s&&Kn(r,`[${i}] ${e} is about to be deprecated in version ${n}, please use ${t} instead.
37
+ For more detail, please visit: ${a}
38
+ `)},{immediate:!0})},c9=(e,t)=>{u9({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},h.computed(()=>e.type==="text"));const r=h.inject(PA,void 0),n=m0("button"),{form:a}=bA(),i=wA(h.computed(()=>r==null?void 0:r.size)),o=yp(),s=h.ref(),l=h.useSlots(),u=h.computed(()=>{var m;return e.type||(r==null?void 0:r.type)||((m=n.value)==null?void 0:m.type)||""}),c=h.computed(()=>{var m,y,_;return(_=(y=e.autoInsertSpace)!=null?y:(m=n.value)==null?void 0:m.autoInsertSpace)!=null?_:!1}),f=h.computed(()=>{var m,y,_;return(_=(y=e.plain)!=null?y:(m=n.value)==null?void 0:m.plain)!=null?_:!1}),d=h.computed(()=>{var m,y,_;return(_=(y=e.round)!=null?y:(m=n.value)==null?void 0:m.round)!=null?_:!1}),p=h.computed(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),v=h.computed(()=>{var m;const y=(m=l.default)==null?void 0:m.call(l);if(c.value&&(y==null?void 0:y.length)===1){const _=y[0];if((_==null?void 0:_.type)===h.Text){const b=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:p,_plain:f,_round:d,shouldAddSpace:v,handleClick:m=>{if(o.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",m)}}},I0=$r({size:g0,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:As},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:As,default:()=>gp},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Zt([String,Object]),default:"button"}}),f9={click:e=>e instanceof MouseEvent};function Ir(e,t){h9(e)&&(e="100%");var r=d9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function xp(e){return Math.min(1,Math.max(0,e))}function h9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function OA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ms(e){return e.length===1?"0"+e:String(e)}function p9(e,t,r){return{r:Ir(e,255)*255,g:Ir(t,255)*255,b:Ir(r,255)*255}}function RA(e,t,r){e=Ir(e,255),t=Ir(t,255),r=Ir(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function L0(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function v9(e,t,r){var n,a,i;if(e=Ir(e,360),t=Ir(t,100),r=Ir(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=L0(s,o,e+1/3),a=L0(s,o,e),i=L0(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function VA(e,t,r){e=Ir(e,255),t=Ir(t,255),r=Ir(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function g9(e,t,r){e=Ir(e,360)*6,t=Ir(t,100),r=Ir(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,o,i,i,s,r][l],c=[s,r,r,o,i,i][l],f=[i,i,s,r,r,o][l];return{r:u*255,g:c*255,b:f*255}}function BA(e,t,r,n){var a=[Ms(Math.round(e).toString(16)),Ms(Math.round(t).toString(16)),Ms(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function m9(e,t,r,n,a){var i=[Ms(Math.round(e).toString(16)),Ms(Math.round(t).toString(16)),Ms(Math.round(r).toString(16)),Ms(y9(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function y9(e){return Math.round(parseFloat(e)*255).toString(16)}function FA(e){return Ln(e)/255}function Ln(e){return parseInt(e,16)}function _9(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var k0={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 b9(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=x9(e)),typeof e=="object"&&(Bi(e.r)&&Bi(e.g)&&Bi(e.b)?(t=p9(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Bi(e.h)&&Bi(e.s)&&Bi(e.v)?(n=Cp(e.s),a=Cp(e.v),t=g9(e.h,n,a),o=!0,s="hsv"):Bi(e.h)&&Bi(e.s)&&Bi(e.l)&&(n=Cp(e.s),i=Cp(e.l),t=v9(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=OA(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var S9="[-\\+]?\\d+%?",w9="[-\\+]?\\d*\\.\\d+%?",Co="(?:".concat(w9,")|(?:").concat(S9,")"),P0="[\\s|\\(]+(".concat(Co,")[,|\\s]+(").concat(Co,")[,|\\s]+(").concat(Co,")\\s*\\)?"),O0="[\\s|\\(]+(".concat(Co,")[,|\\s]+(").concat(Co,")[,|\\s]+(").concat(Co,")[,|\\s]+(").concat(Co,")\\s*\\)?"),Ta={CSS_UNIT:new RegExp(Co),rgb:new RegExp("rgb"+P0),rgba:new RegExp("rgba"+O0),hsl:new RegExp("hsl"+P0),hsla:new RegExp("hsla"+O0),hsv:new RegExp("hsv"+P0),hsva:new RegExp("hsva"+O0),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 x9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(k0[e])e=k0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Ta.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Ta.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ta.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Ta.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ta.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Ta.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ta.hex8.exec(e),r?{r:Ln(r[1]),g:Ln(r[2]),b:Ln(r[3]),a:FA(r[4]),format:t?"name":"hex8"}:(r=Ta.hex6.exec(e),r?{r:Ln(r[1]),g:Ln(r[2]),b:Ln(r[3]),format:t?"name":"hex"}:(r=Ta.hex4.exec(e),r?{r:Ln(r[1]+r[1]),g:Ln(r[2]+r[2]),b:Ln(r[3]+r[3]),a:FA(r[4]+r[4]),format:t?"name":"hex8"}:(r=Ta.hex3.exec(e),r?{r:Ln(r[1]+r[1]),g:Ln(r[2]+r[2]),b:Ln(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Bi(e){return!!Ta.CSS_UNIT.exec(String(e))}var C9=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=_9(t)),this.originalInput=t;var a=b9(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=OA(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=VA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=VA(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=RA(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=RA(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),BA(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),m9(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ir(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ir(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+BA(this.r,this.g,this.b,!1),r=0,n=Object.entries(k0);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},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){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=xp(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=xp(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=xp(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=xp(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function To(e,t=20){return e.mix("#141414",t).toString()}function T9(e){const t=yp(),r=Nr("button");return h.computed(()=>{let n={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new C9(a),s=e.dark?o.tint(20).toString():To(o,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?To(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?To(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":s,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?To(o,90):o.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?To(o,50):o.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?To(o,80):o.tint(80).toString());else{const l=e.dark?To(o,30):o.tint(30).toString(),u=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":u,"border-color":a,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?To(o,50):o.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=c,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=c}}}return n})}const D9=h.defineComponent({name:"ElButton"}),E9=h.defineComponent({...D9,props:I0,emits:f9,setup(e,{expose:t,emit:r}){const n=e,a=T9(n),i=Nr("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,_plain:f,_round:d,shouldAddSpace:p,handleClick:v}=c9(n,r),g=h.computed(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",n.loading),i.is("plain",f.value),i.is("round",d.value),i.is("circle",n.circle),i.is("text",n.text),i.is("link",n.link),i.is("has-bg",n.bg)]);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:p}),(m,y)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.tag),h.mergeProps({ref_key:"_ref",ref:o},h.unref(c),{class:h.unref(g),style:h.unref(a),onClick:h.unref(v)}),{default:h.withCtx(()=>[m.loading?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[m.$slots.loading?h.renderSlot(m.$slots,"loading",{key:0}):(h.openBlock(),h.createBlock(h.unref(Er),{key:1,class:h.normalizeClass(h.unref(i).is("loading"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(h.openBlock(),h.createBlock(h.unref(Er),{key:1},{default:h.withCtx(()=>[m.icon?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.icon),{key:0})):h.renderSlot(m.$slots,"icon",{key:1})]),_:3})):h.createCommentVNode("v-if",!0),m.$slots.default?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass({[h.unref(i).em("text","expand")]:h.unref(p)})},[h.renderSlot(m.$slots,"default")],2)):h.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var A9=bn(E9,[["__file","button.vue"]]);const M9={size:I0.size,type:I0.type},N9=h.defineComponent({name:"ElButtonGroup"}),I9=h.defineComponent({...N9,props:M9,setup(e){const t=e;h.provide(PA,h.reactive({size:h.toRef(t,"size"),type:h.toRef(t,"type")}));const r=Nr("button");return(n,a)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(r).b("group"))},[h.renderSlot(n.$slots,"default")],2))}});var zA=bn(I9,[["__file","button-group.vue"]]);const R0=cu(A9,{ButtonGroup:zA}),L9=_0(zA);var Tp=(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))(Tp||{});const pf=e=>{const t=r0(e)?e:[e],r=[];return t.forEach(n=>{var a;r0(n)?r.push(...pf(n)):h.isVNode(n)&&((a=n.component)!=null&&a.subTree)?r.push(n,...pf(n.component.subTree)):h.isVNode(n)&&r0(n.children)?r.push(...pf(n.children)):h.isVNode(n)&&n.shapeFlag===2?r.push(...pf(n.type())):r.push(n)}),r},k9=(e,t,r)=>pf(e.subTree).filter(i=>{var o;return h.isVNode(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>r[i]).filter(i=>!!i),$A=(e,t)=>{const r={},n=h.shallowRef([]);return{children:n,addChild:o=>{r[o.uid]=o,n.value=k9(e,t,r)},removeChild:o=>{delete r[o],n.value=n.value.filter(s=>s.uid!==o)}}},Do=e=>vH(e),P9=$r({a11y:{type:Boolean,default:!0},locale:{type:Zt(Object)},size:g0,button:{type:Zt(Object)},link:{type:Zt(Object)},experimentalFeatures:{type:Zt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Zt(Object)},zIndex:Number,namespace:{type:String,default:"el"},...zU}),kn={};h.defineComponent({name:"ElConfigProvider",props:P9,setup(e,{slots:t}){const r=rA(e);return h.watch(()=>e.message,n=>{var a,i;Object.assign(kn,(i=(a=r==null?void 0:r.value)==null?void 0:a.message)!=null?i:{},n??{})},{immediate:!0,deep:!0}),()=>h.renderSlot(t,"default",{config:r==null?void 0:r.value})}});const HA=e=>{if(!e)return{onClick:nf,onMousedown:nf,onMouseup:nf};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}},O9=$r({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Zt([String,Array,Object])},zIndex:{type:Zt([String,Number])}}),R9={click:e=>e instanceof MouseEvent},V9="overlay";var B9=h.defineComponent({name:"ElOverlay",props:O9,emits:R9,setup(e,{slots:t,emit:r}){const n=Nr(V9),a=l=>{r("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=HA(e.customMaskEvent?void 0:a);return()=>e.mask?h.createVNode("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[h.renderSlot(t,"default")],Tp.STYLE|Tp.CLASS|Tp.PROPS,["onClick","onMouseup","onMousedown"]):h.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[h.renderSlot(t,"default")])}});const F9=B9,z9=(e,t,r,n)=>{const a={offsetX:0,offsetY:0},i=(f,d)=>{if(e.value){const{offsetX:p,offsetY:v}=a,g=e.value.getBoundingClientRect(),m=g.left,y=g.top,_=g.width,b=g.height,S=document.documentElement.clientWidth,x=document.documentElement.clientHeight,w=-m+p,C=-y+v,T=S-m-_+p,D=x-y-(b<x?b:0)+v;n!=null&&n.value||(f=Math.min(Math.max(f,w),T),d=Math.min(Math.max(d,C),D)),a.offsetX=f,a.offsetY=d,e.value.style.transform=`translate(${df(f)}, ${df(d)})`}},o=f=>{const d=f.clientX,p=f.clientY,{offsetX:v,offsetY:g}=a,m=_=>{const b=v+_.clientX-d,S=g+_.clientY-p;i(b,S)},y=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)},s=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",o),window.addEventListener("resize",c))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",o),window.removeEventListener("resize",c))},u=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},c=()=>{const{offsetX:f,offsetY:d}=a;i(f,d)};return h.onMounted(()=>{h.watchEffect(()=>{r.value?s():l()})}),h.onBeforeUnmount(()=>{l()}),{resetPosition:u,updatePosition:c}},$9=(e,t={})=>{h.isRef(e)||cf("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||Nr("popup"),n=h.computed(()=>r.bm("parent","hidden"));if(!Dr||oA(document.body,n.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=o,hf(document.body,n.value))},200)};h.watch(e,l=>{if(!l){s();return}i=!oA(document.body,n.value),i&&(o=document.body.style.width,y0(document.body,n.value)),a=GU(r.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=uu(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`)}),h.onScopeDispose(()=>s())},H9=e=>["",...QE].includes(e),Dp=Symbol("tabsRootContextKey"),G9=$r({tabs:{type:Zt(Array),default:()=>mp([])}}),GA="ElTabBar",U9=h.defineComponent({name:GA}),W9=h.defineComponent({...U9,props:G9,setup(e,{expose:t}){const r=e,n=h.getCurrentInstance(),a=h.inject(Dp);a||cf(GA,"<el-tabs><el-tab-bar /></el-tabs>");const i=Nr("tabs"),o=h.ref(),s=h.ref(),l=()=>{let p=0,v=0;const g=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=g==="width"?"x":"y",y=m==="x"?"left":"top";return r.tabs.every(_=>{var b,S;const x=(S=(b=n.parent)==null?void 0:b.refs)==null?void 0:S[`tab-${_.uid}`];if(!x)return!1;if(!_.active)return!0;p=x[`offset${Do(y)}`],v=x[`client${Do(g)}`];const w=window.getComputedStyle(x);return g==="width"&&(v-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight),p+=Number.parseFloat(w.paddingLeft)),!1}),{[g]:`${v}px`,transform:`translate${Do(m)}(${p}px)`}},u=()=>s.value=l(),c=[],f=()=>{var p;c.forEach(g=>g.stop()),c.length=0;const v=(p=n.parent)==null?void 0:p.refs;if(v){for(const g in v)if(g.startsWith("tab-")){const m=v[g];m&&c.push(lu(m,u))}}};h.watch(()=>r.tabs,async()=>{await h.nextTick(),u(),f()},{immediate:!0});const d=lu(o,()=>u());return h.onBeforeUnmount(()=>{c.forEach(p=>p.stop()),c.length=0,d.stop()}),t({ref:o,update:u}),(p,v)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"barRef",ref:o,class:h.normalizeClass([h.unref(i).e("active-bar"),h.unref(i).is(h.unref(a).props.tabPosition)]),style:h.normalizeStyle(s.value)},null,6))}});var Y9=bn(W9,[["__file","tab-bar.vue"]]);const X9=$r({panes:{type:Zt(Array),default:()=>mp([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),K9={tabClick:(e,t,r)=>r instanceof Event,tabRemove:(e,t)=>t instanceof Event},UA="ElTabNav",j9=h.defineComponent({name:UA,props:X9,emits:K9,setup(e,{expose:t,emit:r}){const n=h.inject(Dp);n||cf(UA,"<el-tabs><tab-nav /></el-tabs>");const a=Nr("tabs"),i=SU(),o=NU(),s=h.ref(),l=h.ref(),u=h.ref(),c=h.ref(),f=h.ref(!1),d=h.ref(0),p=h.ref(!1),v=h.ref(!0),g=h.computed(()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height"),m=h.computed(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${d.value}px)`})),y=()=>{if(!s.value)return;const T=s.value[`offset${Do(g.value)}`],D=d.value;if(!D)return;const E=D>T?D-T:0;d.value=E},_=()=>{if(!s.value||!l.value)return;const T=l.value[`offset${Do(g.value)}`],D=s.value[`offset${Do(g.value)}`],E=d.value;if(T-E<=D)return;const A=T-E>D*2?E+D:T-D;d.value=A},b=async()=>{const T=l.value;if(!f.value||!u.value||!s.value||!T)return;await h.nextTick();const D=u.value.querySelector(".is-active");if(!D)return;const E=s.value,A=["top","bottom"].includes(n.props.tabPosition),L=D.getBoundingClientRect(),N=E.getBoundingClientRect(),I=A?T.offsetWidth-N.width:T.offsetHeight-N.height,k=d.value;let P=k;A?(L.left<N.left&&(P=k-(N.left-L.left)),L.right>N.right&&(P=k+L.right-N.right)):(L.top<N.top&&(P=k-(N.top-L.top)),L.bottom>N.bottom&&(P=k+(L.bottom-N.bottom))),P=Math.max(P,0),d.value=Math.min(P,I)},S=()=>{var T;if(!l.value||!s.value)return;e.stretch&&((T=c.value)==null||T.update());const D=l.value[`offset${Do(g.value)}`],E=s.value[`offset${Do(g.value)}`],A=d.value;E<D?(f.value=f.value||{},f.value.prev=A,f.value.next=A+E<D,D-A<E&&(d.value=D-E)):(f.value=!1,A>0&&(d.value=0))},x=T=>{let D=0;switch(T.code){case an.left:case an.up:D=-1;break;case an.right:case an.down:D=1;break;default:return}const E=Array.from(T.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let L=E.indexOf(T.target)+D;L<0?L=E.length-1:L>=E.length&&(L=0),E[L].focus({preventScroll:!0}),E[L].click(),w()},w=()=>{v.value&&(p.value=!0)},C=()=>p.value=!1;return h.watch(i,T=>{T==="hidden"?v.value=!1:T==="visible"&&setTimeout(()=>v.value=!0,50)}),h.watch(o,T=>{T?setTimeout(()=>v.value=!0,50):v.value=!1}),lu(u,S),h.onMounted(()=>setTimeout(()=>b(),0)),h.onUpdated(()=>S()),t({scrollToActiveTab:b,removeFocus:C,tabListRef:l,tabBarRef:c}),()=>{const T=f.value?[h.createVNode("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:y},[h.createVNode(Er,null,{default:()=>[h.createVNode(b0,null,null)]})]),h.createVNode("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:_},[h.createVNode(Er,null,{default:()=>[h.createVNode(cA,null,null)]})])]:null,D=e.panes.map((E,A)=>{var L,N,I,k;const P=E.uid,V=E.props.disabled,B=(N=(L=E.props.name)!=null?L:E.index)!=null?N:`${A}`,G=!V&&(E.isClosable||e.editable);E.index=`${A}`;const U=G?h.createVNode(Er,{class:"is-icon-close",onClick:le=>r("tabRemove",E,le)},{default:()=>[h.createVNode(S0,null,null)]}):null,W=((k=(I=E.slots).label)==null?void 0:k.call(I))||E.props.label,re=!V&&E.active?0:-1;return h.createVNode("div",{ref:`tab-${P}`,class:[a.e("item"),a.is(n.props.tabPosition),a.is("active",E.active),a.is("disabled",V),a.is("closable",G),a.is("focus",p.value)],id:`tab-${B}`,key:`tab-${P}`,"aria-controls":`pane-${B}`,role:"tab","aria-selected":E.active,tabindex:re,onFocus:()=>w(),onBlur:()=>C(),onClick:le=>{C(),r("tabClick",E,B,le)},onKeydown:le=>{G&&(le.code===an.delete||le.code===an.backspace)&&r("tabRemove",E,le)}},[W,U])});return h.createVNode("div",{ref:u,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(n.props.tabPosition)]},[T,h.createVNode("div",{class:a.e("nav-scroll"),ref:s},[h.createVNode("div",{class:[a.e("nav"),a.is(n.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:l,style:m.value,role:"tablist",onKeydown:x},[e.type?null:h.createVNode(Y9,{ref:c,tabs:[...e.panes]},null),D])])])}}}),Z9=$r({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:Zt(Function),default:()=>!0},stretch:Boolean}),V0=e=>fr(e)||ti(e),q9={[ff]:e=>V0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>V0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>V0(e),tabAdd:()=>!0};var J9=h.defineComponent({name:"ElTabs",props:Z9,emits:q9,setup(e,{emit:t,slots:r,expose:n}){var a;const i=Nr("tabs"),o=h.computed(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u}=$A(h.getCurrentInstance(),"ElTabPane"),c=h.ref(),f=h.ref((a=e.modelValue)!=null?a:"0"),d=async(y,_=!1)=>{var b,S;if(!(f.value===y||lf(y)))try{let x;if(e.beforeLeave){const w=e.beforeLeave(y,f.value);x=w instanceof Promise?await w:w}else x=!0;x!==!1&&(f.value=y,_&&(t(ff,y),t("tabChange",y)),(S=(b=c.value)==null?void 0:b.removeFocus)==null||S.call(b))}catch{}},p=(y,_,b)=>{y.props.disabled||(t("tabClick",y,b),d(_,!0))},v=(y,_)=>{y.props.disabled||lf(y.props.name)||(_.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};h.watch(()=>e.modelValue,y=>d(y)),h.watch(f,async()=>{var y;await h.nextTick(),(y=c.value)==null||y.scrollToActiveTab()}),h.provide(Dp,{props:e,currentName:f,registerPane:y=>{s.value.push(y)},sortPane:l,unregisterPane:u}),n({currentName:f,tabNavRef:c});const m=({render:y})=>y();return()=>{const y=r["add-icon"],_=e.editable||e.addable?h.createVNode("div",{class:[i.e("new-tab"),o.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:g,onKeydown:x=>{[an.enter,an.numpadEnter].includes(x.code)&&g()}},[y?h.renderSlot(r,"add-icon"):h.createVNode(Er,{class:i.is("icon-plus")},{default:()=>[h.createVNode(pW,null,null)]})]):null,b=h.createVNode("div",{class:[i.e("header"),o.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[h.createVNode(m,{render:()=>{const x=s.value.some(w=>w.slots.label);return h.createVNode(j9,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:p,onTabRemove:v},{$stable:!x})}},null),_]),S=h.createVNode("div",{class:i.e("content")},[h.renderSlot(r,"default")]);return h.createVNode("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[S,b])}}});const Q9=$r({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),WA="ElTabPane",e7=h.defineComponent({name:WA}),t7=h.defineComponent({...e7,props:Q9,setup(e){const t=e,r=h.getCurrentInstance(),n=h.useSlots(),a=h.inject(Dp);a||cf(WA,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Nr("tab-pane"),o=h.ref(),s=h.computed(()=>t.closable||a.props.closable),l=d0(()=>{var p;return a.currentName.value===((p=t.name)!=null?p:o.value)}),u=h.ref(l.value),c=h.computed(()=>{var p;return(p=t.name)!=null?p:o.value}),f=d0(()=>!t.lazy||u.value||l.value);h.watch(l,p=>{p&&(u.value=!0)});const d=h.reactive({uid:r.uid,slots:n,props:t,paneName:c,active:l,index:o,isClosable:s});return a.registerPane(d),h.onMounted(()=>{a.sortPane(d)}),h.onUnmounted(()=>{a.unregisterPane(d.uid)}),(p,v)=>h.unref(f)?h.withDirectives((h.openBlock(),h.createElementBlock("div",{key:0,id:`pane-${h.unref(c)}`,class:h.normalizeClass(h.unref(i).b()),role:"tabpanel","aria-hidden":!h.unref(l),"aria-labelledby":`tab-${h.unref(c)}`},[h.renderSlot(p.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[h.vShow,h.unref(l)]]):h.createCommentVNode("v-if",!0)}});var YA=bn(t7,[["__file","tab-pane.vue"]]);const r7=cu(J9,{TabPane:YA}),n7=_0(YA),a7=$r({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]}}),XA=Symbol("splitterRootContextKey");function i7(e){const t=h.ref(),{width:r,height:n}=TU(t),a=h.computed(()=>e.value==="horizontal"?r.value:n.value);return{containerEl:t,containerSize:a}}function B0(e){return Number(e.slice(0,-1))/100}function F0(e){return Number(e.slice(0,-2))}function z0(e){return fr(e)&&e.endsWith("%")}function $0(e){return fr(e)&&e.endsWith("px")}function o7(e,t){const r=h.computed(()=>e.value.map(s=>s.size)),n=h.computed(()=>e.value.length),a=h.ref([]);h.watch([r,n,t],()=>{var s;let l=[],u=0;for(let f=0;f<n.value;f+=1){const d=(s=e.value[f])==null?void 0:s.size;if(z0(d))l[f]=B0(d);else if($0(d))l[f]=F0(d)/t.value;else if(d||d===0){const p=Number(d);Number.isNaN(p)||(l[f]=p/t.value)}else u+=1,l[f]=void 0}const c=l.reduce((f,d)=>f+(d||0),0);if(c>1||!u){const f=1/c;l=l.map(d=>d===void 0?0:d*f)}else{const f=(1-c)/u;l=l.map(d=>d===void 0?f:d)}a.value=l});const i=s=>s*t.value,o=h.computed(()=>a.value.map(i));return{percentSizes:a,pxSizes:o}}function s7(e,t,r){const n=p=>p*t.value||0;function a(p,v){return z0(p)?n(B0(p)):$0(p)?F0(p):p??v}const i=h.ref(null);let o=[];const s=h.computed(()=>e.value.map(p=>[p.min,p.max])),l=p=>{i.value={index:p,confirmed:!1},o=r.value},u=(p,v)=>{var g,m;let y=null;if((!i.value||!i.value.confirmed)&&v!==0){if(v>0)y=p,i.value={index:p,confirmed:!0};else for(let E=p;E>=0;E-=1)if(o[E]>0){y=E,i.value={index:E,confirmed:!0};break}}const _=(m=y??((g=i.value)==null?void 0:g.index))!=null?m:p,b=[...o],S=_+1,x=a(s.value[_][0],0),w=a(s.value[S][0],0),C=a(s.value[_][1],t.value||0),T=a(s.value[S][1],t.value||0);let D=v;b[_]+D<x&&(D=x-b[_]),b[S]-D<w&&(D=b[S]-w),b[_]+D>C&&(D=C-b[_]),b[S]-D>T&&(D=b[S]-T),b[_]+=D,b[S]-=D,e.value.forEach((E,A)=>{E.size=b[A]})},c=()=>{i.value=null,o=[]},f=[];return{onMoveStart:l,onMoving:u,onMoveEnd:c,movingIndex:i,onCollapse:(p,v)=>{const g=r.value,m=v==="start"?p:p+1,y=v==="start"?p+1:p,_=g[m],b=g[y];if(_!==0&&b!==0)g[m]=0,g[y]+=_,f[p]=_;else{const S=_+b,x=f[p],w=S-x;g[y]=x,g[m]=w}e.value.forEach((S,x)=>{S.size=g[x]})}}}const l7=h.defineComponent({name:"ElSplitter"}),u7=h.defineComponent({...l7,props:a7,emits:["resizeStart","resize","resizeEnd"],setup(e,{emit:t}){const r=e,n=Nr("splitter"),{containerEl:a,containerSize:i}=i7(h.toRef(r,"layout")),{removeChild:o,children:s,addChild:l}=$A(h.getCurrentInstance(),"ElSplitterPanel");h.watch(s,()=>{s.value.forEach((b,S)=>{b.setIndex(S)})});const{percentSizes:u,pxSizes:c}=o7(s,i),{onMoveStart:f,onMoving:d,onMoveEnd:p,onCollapse:v,movingIndex:g}=s7(s,i,c),m=b=>{f(b),t("resizeStart",b,c.value)},y=(b,S)=>{d(b,S),t("resize",b,c.value)},_=b=>{p(),t("resizeEnd",b,c.value)};return h.provide(XA,h.reactive({panels:s,percentSizes:u,pxSizes:c,layout:r.layout,movingIndex:g,containerSize:i,onMoveStart:m,onMoving:y,onMoveEnd:_,onCollapse:v,registerPanel:b=>{s.value.push(b)},sortPanel:l,unregisterPanel:o})),(b,S)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"containerEl",ref:a,class:h.normalizeClass([h.unref(n).b(),h.unref(n).e(b.layout)])},[h.renderSlot(b.$slots,"default"),h.createCommentVNode(" Prevent iframe touch events from breaking "),h.unref(g)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass([h.unref(n).e("mask"),h.unref(n).e(`mask-${b.layout}`)])},null,2)):h.createCommentVNode("v-if",!0)],2))}});var c7=bn(u7,[["__file","splitter.vue"]]);function f7(e){return e&&Vi(e)?e:{start:!!e,end:!!e}}function KA(e,t,r,n){return!!(e!=null&&e.collapsible.end&&t>0||r!=null&&r.collapsible.start&&n===0&&t>0)}const h7=h.defineComponent({name:"ElSplitterBar"}),d7=h.defineComponent({...h7,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},startCollapsible:{type:Boolean},endCollapsible:{type:Boolean}},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const r=e,n=Nr("splitter-bar"),a=h.computed(()=>r.layout==="horizontal"),i=h.computed(()=>a.value?{width:0}:{height:0}),o=h.computed(()=>({width:a.value?"16px":"100%",height:a.value?"100%":"16px",cursor:a.value?"col-resize":"row-resize",touchAction:"none"})),s=h.computed(()=>{const y=n.e("dragger");let _=a.value?`${y}-horizontal`:`${y}-vertical`;return l.value&&(_+=` ${y}-active`),_}),l=h.ref(null),u=y=>{r.resizable&&(l.value=[y.pageX,y.pageY],t("moveStart",r.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",f))},c=y=>{if(r.resizable&&y.touches.length===1){y.preventDefault();const _=y.touches[0];l.value=[_.pageX,_.pageY],t("moveStart",r.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",d)}},f=y=>{const{pageX:_,pageY:b}=y,S=_-l.value[0],x=b-l.value[1],w=a.value?S:x;t("moving",r.index,w)},d=y=>{if(y.touches.length===1){y.preventDefault();const _=y.touches[0],b=_.pageX-l.value[0],S=_.pageY-l.value[1],x=a.value?b:S;t("moving",r.index,x)}},p=()=>{l.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",f),t("moveEnd",r.index)},v=()=>{l.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",d),t("moveEnd",r.index)},g=h.computed(()=>a.value?b0:eW),m=h.computed(()=>a.value?cA:uA);return(y,_)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([h.unref(n).b()]),style:h.normalizeStyle(h.unref(i))},[e.startCollapsible?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass([h.unref(n).e("collapse-icon"),h.unref(n).e(`${e.layout}-collapse-icon-start`)]),onClick:b=>t("collapse",e.index,"start")},[h.renderSlot(y.$slots,"start-collapsible",{},()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass([h.unref(n).e("dragger"),h.unref(s),e.resizable?"":h.unref(n).e("disable")]),style:h.normalizeStyle(h.unref(o)),onMousedown:u,onTouchstart:c},null,38),e.endCollapsible?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass([h.unref(n).e("collapse-icon"),h.unref(n).e(`${e.layout}-collapse-icon-end`)]),onClick:b=>t("collapse",e.index,"end")},[h.renderSlot(y.$slots,"end-collapsible",{},()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(m)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):h.createCommentVNode("v-if",!0)],6))}});var p7=bn(d7,[["__file","split-bar.vue"]]);const v7=$r({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!1}}),jA="ElSplitterPanel",g7=h.defineComponent({name:jA}),m7=h.defineComponent({...g7,props:v7,emits:["update:size"],setup(e,{emit:t}){const r=e,n=Nr("splitter-panel"),a=h.inject(XA);a||cf(jA,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:o,containerSize:s,pxSizes:l}=h.toRefs(a),{registerPanel:u,sortPanel:c,unregisterPanel:f,onCollapse:d,onMoveEnd:p,onMoveStart:v,onMoving:g}=a,m=h.ref(),y=h.getCurrentInstance().uid,_=h.ref(0),b=h.computed(()=>i.value[_.value]),S=k=>{_.value=k},x=h.computed(()=>{var k;return b.value&&(k=l.value[_.value])!=null?k:0}),w=h.computed(()=>{var k;return b.value&&(k=l.value[_.value+1])!=null?k:0}),C=h.computed(()=>b.value?i.value[_.value+1]:null),T=h.computed(()=>{var k;return C.value?r.resizable&&((k=C.value)==null?void 0:k.resizable)&&(x.value!==0||!r.min)&&(w.value!==0||!C.value.min):!1}),D=h.computed(()=>b.value?_.value!==i.value.length-1:!1),E=h.computed(()=>KA(b.value,x.value,C.value,w.value)),A=h.computed(()=>KA(C.value,w.value,b.value,x.value));function L(k){return z0(k)?B0(k)*s.value||0:$0(k)?F0(k):k??0}let N=!1;h.watch(()=>r.size,()=>{if(b.value){const k=L(r.size),P=L(r.max),V=L(r.min),B=Math.min(Math.max(k,V||0),P||k);B!==k&&(N=!0,t("update:size",B)),b.value.size=B,h.nextTick(()=>N=!1)}}),h.watch(()=>{var k;return(k=b.value)==null?void 0:k.size},k=>{!N&&k!==r.size&&t("update:size",k)}),h.watch(()=>r.resizable,k=>{b.value&&(b.value.resizable=k)});const I=h.reactive({el:m.value,uid:y,setIndex:S,...r,collapsible:f7(r.collapsible)});return u(I),h.onMounted(()=>{c(I)}),h.onUnmounted(()=>f==null?void 0:f(y)),(k,P)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",h.mergeProps({ref_key:"panelEl",ref:m,class:[h.unref(n).b()],style:{flexBasis:`${h.unref(x)}px`}},k.$attrs),[h.renderSlot(k.$slots,"default")],16),h.unref(D)?(h.openBlock(),h.createBlock(p7,{key:0,index:_.value,layout:h.unref(o),resizable:h.unref(T),"start-collapsible":h.unref(E),"end-collapsible":h.unref(A),onMoveStart:h.unref(v),onMoving:h.unref(g),onMoveEnd:h.unref(p),onCollapse:h.unref(d)},{"start-collapsible":h.withCtx(()=>[h.renderSlot(k.$slots,"start-collapsible")]),"end-collapsible":h.withCtx(()=>[h.renderSlot(k.$slots,"end-collapsible")]),_:3},8,["index","layout","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):h.createCommentVNode("v-if",!0)],64))}});var ZA=bn(m7,[["__file","split-panel.vue"]]);const y7=cu(c7,{SplitPanel:ZA}),_7=_0(ZA);function b7(e,t){let r;const n=h.ref(!1),a=h.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(p){a.text=p}function o(){const p=a.parent,v=d.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(hf(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),hf(p,v.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,v;(v=(p=d.$el)==null?void 0:p.parentNode)==null||v.removeChild(d.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(r),r=setTimeout(u,400),a.visible=!1,(p=e.closed)==null||p.call(e))}function u(){if(!n.value)return;const p=a.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const c=h.defineComponent({name:"ElLoading",setup(p,{expose:v}){const{ns:g,zIndex:m}=pp("loading");return v({ns:g,zIndex:m}),()=>{const y=a.spinner||a.svg,_=h.h("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[h.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=a.text?h.h("p",{class:g.b("text")},[a.text]):void 0;return h.h(h.Transition,{name:g.b("fade"),onAfterLeave:u},{default:h.withCtx(()=>[h.withDirectives(h.createVNode("div",{style:{backgroundColor:a.background||""},class:[g.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[h.h("div",{class:g.b("spinner")},[_,b])]),[[h.vShow,a.visible]])])})}}}),f=h.createApp(c);Object.assign(f._context,t??{});const d=f.mount(document.createElement("div"));return{...h.toRefs(a),setText:i,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let Ep;const du=function(e={}){if(!Dr)return;const t=S7(e);if(t.fullscreen&&Ep)return Ep;const r=b7({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Ep=void 0)}},du._context);w7(t,t.parent,r),qA(t,t.parent,r),t.parent.vLoadingAddClassList=()=>qA(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),h.nextTick(()=>r.visible.value=t.visible),t.fullscreen&&(Ep=r),r},S7=e=>{var t,r,n,a;let i;return fr(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},w7=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=uu(document.body,"position"),r.originalOverflow.value=uu(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=uu(document.body,"position"),await h.nextTick();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(uu(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=uu(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},qA=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?hf(t,n.bm("parent","relative")):y0(t,n.bm("parent","relative")),e.fullscreen&&e.lock?y0(t,n.bm("parent","hidden")):hf(t,n.bm("parent","hidden"))};du._context=null;const Ap=Symbol("ElLoading"),JA=(e,t)=>{var r,n,a,i;const o=t.instance,s=p=>Vi(t.value)?t.value[p]:void 0,l=p=>{const v=fr(p)&&(o==null?void 0:o[p])||p;return v&&h.ref(v)},u=p=>l(s(p)||e.getAttribute(`element-loading-${pH(p)}`)),c=(r=s("fullscreen"))!=null?r:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(n=s("target"))!=null?n:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock},d=du(f);d._context=vf._context,e[Ap]={options:f,instance:d}},x7=(e,t)=>{for(const r of Object.keys(t))h.isRef(t[r])&&(t[r].value=e[r])},vf={mounted(e,t){t.value&&JA(e,t)},updated(e,t){const r=e[Ap];t.oldValue!==t.value&&(t.value&&!t.oldValue?JA(e,t):t.value&&t.oldValue?Vi(t.value)&&x7(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[Ap])==null||t.instance.close(),e[Ap]=null}};vf._context=null;const C7={install(e){du._context=e._context,vf._context=e._context,e.directive("loading",vf),e.config.globalProperties.$loading=du},directive:vf,service:du},QA=["primary","success","info","warning","error"],on=mp({customClass:"",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:Dr?document.body:void 0}),T7=$r({customClass:{type:String,default:on.customClass},dangerouslyUseHTMLString:{type:Boolean,default:on.dangerouslyUseHTMLString},duration:{type:Number,default:on.duration},icon:{type:As,default:on.icon},id:{type:String,default:on.id},message:{type:Zt([String,Object,Function]),default:on.message},onClose:{type:Zt(Function),default:on.onClose},showClose:{type:Boolean,default:on.showClose},type:{type:String,values:QA,default:on.type},plain:{type:Boolean,default:on.plain},offset:{type:Number,default:on.offset},zIndex:{type:Number,default:on.zIndex},grouping:{type:Boolean,default:on.grouping},repeatNum:{type:Number,default:on.repeatNum}}),D7={destroy:()=>!0},Da=h.shallowReactive([]),E7=e=>{const t=Da.findIndex(a=>a.id===e),r=Da[t];let n;return t>0&&(n=Da[t-1]),{current:r,prev:n}},A7=e=>{const{prev:t}=E7(e);return t?t.vm.exposed.bottom.value:0},M7=(e,t)=>Da.findIndex(n=>n.id===e)>0?16:t,N7=h.defineComponent({name:"ElMessage"}),I7=h.defineComponent({...N7,props:T7,emits:D7,setup(e,{expose:t,emit:r}){const n=e,{Close:a}=mA,i=h.ref(!1),{ns:o,zIndex:s}=pp("message"),{currentZIndex:l,nextZIndex:u}=s,c=h.ref(),f=h.ref(!1),d=h.ref(0);let p;const v=h.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=h.computed(()=>{const D=n.type;return{[o.bm("icon",D)]:D&&fu[D]}}),m=h.computed(()=>n.icon||fu[n.type]||""),y=h.computed(()=>A7(n.id)),_=h.computed(()=>M7(n.id,n.offset)+y.value),b=h.computed(()=>d.value+_.value),S=h.computed(()=>({top:`${_.value}px`,zIndex:l.value}));function x(){n.duration!==0&&({stop:p}=VE(()=>{C()},n.duration))}function w(){p==null||p()}function C(){f.value=!1,h.nextTick(()=>{var D;i.value||((D=n.onClose)==null||D.call(n),r("destroy"))})}function T({code:D}){D===an.esc&&C()}return h.onMounted(()=>{x(),u(),f.value=!0}),h.watch(()=>n.repeatNum,()=>{w(),x()}),ri(document,"keydown",T),lu(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:f,bottom:b,close:C}),(D,E)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(o).b("fade"),onBeforeEnter:A=>i.value=!0,onBeforeLeave:D.onClose,onAfterLeave:A=>D.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:D.id,ref_key:"messageRef",ref:c,class:h.normalizeClass([h.unref(o).b(),{[h.unref(o).m(D.type)]:D.type},h.unref(o).is("closable",D.showClose),h.unref(o).is("plain",D.plain),D.customClass]),style:h.normalizeStyle(h.unref(S)),role:"alert",onMouseenter:w,onMouseleave:x},[D.repeatNum>1?(h.openBlock(),h.createBlock(h.unref(l9),{key:0,value:D.repeatNum,type:h.unref(v),class:h.normalizeClass(h.unref(o).e("badge"))},null,8,["value","type","class"])):h.createCommentVNode("v-if",!0),h.unref(m)?(h.openBlock(),h.createBlock(h.unref(Er),{key:1,class:h.normalizeClass([h.unref(o).e("icon"),h.unref(g)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(m))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.renderSlot(D.$slots,"default",{},()=>[D.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{class:h.normalizeClass(h.unref(o).e("content")),innerHTML:D.message},null,10,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0,class:h.normalizeClass(h.unref(o).e("content"))},h.toDisplayString(D.message),3))]),D.showClose?(h.openBlock(),h.createBlock(h.unref(Er),{key:2,class:h.normalizeClass(h.unref(o).e("closeBtn")),onClick:h.withModifiers(C,["stop"])},{default:h.withCtx(()=>[h.createVNode(h.unref(a))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],46,["id"]),[[h.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var L7=bn(I7,[["__file","message.vue"]]);let k7=1;const eM=e=>{const t=!e||fr(e)||h.isVNode(e)||ei(e)?{message:e}:e,r={...on,...t};if(!r.appendTo)r.appendTo=document.body;else if(fr(r.appendTo)){let n=document.querySelector(r.appendTo);wo(n)||(Kn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body),r.appendTo=n}return h0(kn.grouping)&&!r.grouping&&(r.grouping=kn.grouping),ti(kn.duration)&&r.duration===3e3&&(r.duration=kn.duration),ti(kn.offset)&&r.offset===16&&(r.offset=kn.offset),h0(kn.showClose)&&!r.showClose&&(r.showClose=kn.showClose),h0(kn.plain)&&!r.plain&&(r.plain=kn.plain),r},P7=e=>{const t=Da.indexOf(e);if(t===-1)return;Da.splice(t,1);const{handler:r}=e;r.close()},O7=({appendTo:e,...t},r)=>{const n=`message_${k7++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:n,onClose:()=>{a==null||a(),P7(c)},onDestroy:()=>{h.render(null,i)}},s=h.createVNode(L7,o,ei(o.message)||h.isVNode(o.message)?{default:ei(o.message)?o.message:()=>o.message}:null);s.appContext=r||pu._context,h.render(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return c},pu=(e={},t)=>{if(!Dr)return{close:()=>{}};const r=eM(e);if(r.grouping&&Da.length){const a=Da.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===r.message});if(a)return a.props.repeatNum+=1,a.props.type=r.type,a.handler}if(ti(kn.max)&&Da.length>=kn.max)return{close:()=>{}};const n=O7(r,t);return Da.push(n),n.handler};QA.forEach(e=>{pu[e]=(t={},r)=>{const n=eM(t);return pu({...n,type:e},r)}});function R7(e){const t=[...Da];for(const r of t)(!e||e===r.props.type)&&r.handler.close()}pu.closeAll=R7,pu._context=null;const Hr=sA(pu,"$message"),H0="_trap-focus-children",Ns=[],tM=e=>{var t;if(Ns.length===0)return;const r=Ns[Ns.length-1][H0];if(r.length>0&&e.code===an.tab){if(r.length===1){e.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const n=e.shiftKey,a=e.target===r[0],i=e.target===r[r.length-1];if(a&&n&&(e.preventDefault(),r[r.length-1].focus()),i&&!n&&(e.preventDefault(),r[0].focus()),process.env.NODE_ENV==="test"){const o=r.indexOf(e.target);o!==-1&&((t=r[n?o-1:o+1])==null||t.focus())}}},V7={beforeMount(e){e[H0]=xA(e),Ns.push(e),Ns.length<=1&&document.addEventListener("keydown",tM)},updated(e){h.nextTick(()=>{e[H0]=xA(e)})},unmounted(){Ns.shift(),Ns.length===0&&document.removeEventListener("keydown",tM)}},B7=h.defineComponent({name:"ElMessageBox",directives:{TrapFocus:V7},components:{ElButton:R0,ElFocusTrap:n9,ElInput:GW,ElOverlay:F9,ElIcon:Er,...mA},inheritAttrs:!1,props:{buttonSize:{type:String,validator:H9},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:r,zIndex:n,ns:a,size:i}=pp("message-box",h.computed(()=>e.buttonSize)),{t:o}=r,{nextZIndex:s}=n,l=h.ref(!1),u=h.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:h.markRaw(gp),cancelButtonLoadingIcon:h.markRaw(gp),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=h.computed(()=>{const P=u.type;return{[a.bm("icon",P)]:P&&fu[P]}}),f=C0(),d=C0(),p=h.computed(()=>{const P=u.type;return u.icon||P&&fu[P]||""}),v=h.computed(()=>!!u.message),g=h.ref(),m=h.ref(),y=h.ref(),_=h.ref(),b=h.ref(),S=h.computed(()=>u.confirmButtonClass);h.watch(()=>u.inputValue,async P=>{await h.nextTick(),e.boxType==="prompt"&&P&&L()},{immediate:!0}),h.watch(()=>l.value,P=>{var V,B;P&&(e.boxType!=="prompt"&&(u.autofocus?y.value=(B=(V=b.value)==null?void 0:V.$el)!=null?B:g.value:y.value=g.value),u.zIndex=s()),e.boxType==="prompt"&&(P?h.nextTick().then(()=>{var G;_.value&&_.value.$el&&(u.autofocus?y.value=(G=N())!=null?G:g.value:y.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=h.computed(()=>e.draggable),w=h.computed(()=>e.overflow);z9(g,m,x,w),h.onMounted(async()=>{await h.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",C)}),h.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",C)});function C(){l.value&&(l.value=!1,h.nextTick(()=>{u.action&&t("action",u.action)}))}const T=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},D=HA(T),E=P=>{if(u.inputType!=="textarea")return P.preventDefault(),A("confirm")},A=P=>{var V;e.boxType==="prompt"&&P==="confirm"&&!L()||(u.action=P,u.beforeClose?(V=u.beforeClose)==null||V.call(u,P,u,C):C())},L=()=>{if(e.boxType==="prompt"){const P=u.inputPattern;if(P&&!P.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const V=u.inputValidator;if(ei(V)){const B=V(u.inputValue);if(B===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(fr(B))return u.editorErrorMessage=B,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},N=()=>{var P,V;const B=(P=_.value)==null?void 0:P.$refs;return(V=B==null?void 0:B.input)!=null?V:B==null?void 0:B.textarea},I=()=>{A("close")},k=()=>{e.closeOnPressEscape&&I()};return e.lockScroll&&$9(l),{...h.toRefs(u),ns:a,overlayEvent:D,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:p,confirmButtonClasses:S,rootRef:g,focusStartRef:y,headerRef:m,inputRef:_,confirmRef:b,doClose:C,handleClose:I,onCloseRequested:k,handleWrapperClick:T,handleInputEnter:E,handleAction:A,t:o}}});function F7(e,t,r,n,a,i){const o=h.resolveComponent("el-icon"),s=h.resolveComponent("el-input"),l=h.resolveComponent("el-button"),u=h.resolveComponent("el-focus-trap"),c=h.resolveComponent("el-overlay");return h.openBlock(),h.createBlock(h.Transition,{name:"fade-in-linear",onAfterLeave:f=>e.$emit("vanish"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:h.withCtx(()=>[h.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:h.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[h.createVNode(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:h.withCtx(()=>[h.createElementVNode("div",{ref:"rootRef",class:h.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:h.normalizeStyle(e.customStyle),tabindex:"-1",onClick:h.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(h.openBlock(),h.createElementBlock("div",{key:0,ref:"headerRef",class:h.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[h.createElementVNode("div",{class:h.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(h.openBlock(),h.createBlock(o,{key:0,class:h.normalizeClass([e.ns.e("status"),e.typeClass])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.createElementVNode("span",null,h.toDisplayString(e.title),1)],2),e.showClose?(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:h.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:h.withKeys(h.withModifiers(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[h.createVNode(o,{class:h.normalizeClass(e.ns.e("close"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):h.createCommentVNode("v-if",!0)],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{id:e.contentId,class:h.normalizeClass(e.ns.e("content"))},[h.createElementVNode("div",{class:h.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(h.openBlock(),h.createBlock(o,{key:0,class:h.normalizeClass([e.ns.e("status"),e.typeClass])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),e.hasMessage?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(e.ns.e("message"))},[h.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):h.createCommentVNode("v-if",!0)],2),h.withDirectives(h.createElementVNode("div",{class:h.normalizeClass(e.ns.e("input"))},[h.createVNode(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":f=>e.inputValue=f,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:h.normalizeClass({invalid:e.validateError}),onKeydown:h.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),h.createElementVNode("div",{class:h.normalizeClass(e.ns.e("errormsg")),style:h.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},h.toDisplayString(e.editorErrorMessage),7)],2),[[h.vShow,e.showInput]])],10,["id"]),h.createElementVNode("div",{class:h.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(h.openBlock(),h.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:h.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:f=>e.handleAction("cancel"),onKeydown:h.withKeys(h.withModifiers(f=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):h.createCommentVNode("v-if",!0),h.withDirectives(h.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:h.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:f=>e.handleAction("confirm"),onKeydown:h.withKeys(h.withModifiers(f=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[h.vShow,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[h.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var z7=bn(B7,[["render",F7],["__file","index.vue"]]);const gf=new Map,$7=e=>{let t=document.body;return e.appendTo&&(fr(e.appendTo)&&(t=document.querySelector(e.appendTo)),wo(e.appendTo)&&(t=e.appendTo),wo(t)||(Kn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},H7=(e,t,r=null)=>{const n=h.createVNode(z7,e,ei(e.message)||h.isVNode(e.message)?{default:ei(e.message)?e.message:()=>e.message}:null);return n.appContext=r,h.render(n,t),$7(e).appendChild(t.firstElementChild),n.component},G7=()=>document.createElement("div"),U7=(e,t)=>{const r=G7();e.onVanish=()=>{h.render(null,r),gf.delete(a)},e.onAction=i=>{const o=gf.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,n.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=H7(e,r,t),a=n.proxy;for(const i in e)op(e,i)&&!op(a.$props,i)&&(i==="closeIcon"&&Vi(e[i])?a[i]=h.markRaw(e[i]):a[i]=e[i]);return a.visible=!0,a};function vu(e,t=null){if(!Dr)return Promise.reject();let r;return fr(e)||h.isVNode(e)?e={message:e}:r=e.callback,new Promise((n,a)=>{const i=U7(e,t??vu._context);gf.set(i,{options:e,callback:r,resolve:n,reject:a})})}const W7=["alert","confirm","prompt"],Y7={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};W7.forEach(e=>{vu[e]=X7(e)});function X7(e){return(t,r,n,a)=>{let i="";return Vi(r)?(n=r,i=""):lf(r)?i="":i=r,vu(Object.assign({title:i,message:t,type:"",...Y7[e]},n,{boxType:e}),a)}}vu.close=()=>{gf.forEach((e,t)=>{t.doClose()}),gf.clear()},vu._context=null;const Eo=vu;Eo.install=e=>{Eo._context=e._context,e.config.globalProperties.$msgbox=Eo,e.config.globalProperties.$messageBox=Eo,e.config.globalProperties.$alert=Eo.alert,e.config.globalProperties.$confirm=Eo.confirm,e.config.globalProperties.$prompt=Eo.prompt};const rM=Eo,nM=["primary","success","info","warning","error"],K7=$r({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:As},id:{type:String,default:""},message:{type:Zt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Zt(Function),default:()=>{}},onClose:{type:Zt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...nM,""],default:""},zIndex:Number,closeIcon:{type:As,default:S0}}),j7={destroy:()=>!0},Z7=h.defineComponent({name:"ElNotification"}),q7=h.defineComponent({...Z7,props:K7,emits:j7,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=pp("notification"),{nextZIndex:i,currentZIndex:o}=a,s=h.ref(!1);let l;const u=h.computed(()=>{const _=r.type;return _&&fu[r.type]?n.m(_):""}),c=h.computed(()=>r.type&&fu[r.type]||r.icon),f=h.computed(()=>r.position.endsWith("right")?"right":"left"),d=h.computed(()=>r.position.startsWith("top")?"top":"bottom"),p=h.computed(()=>{var _;return{[d.value]:`${r.offset}px`,zIndex:(_=r.zIndex)!=null?_:o.value}});function v(){r.duration>0&&({stop:l}=VE(()=>{s.value&&m()},r.duration))}function g(){l==null||l()}function m(){s.value=!1}function y({code:_}){_===an.delete||_===an.backspace?g():_===an.esc?s.value&&m():v()}return h.onMounted(()=>{v(),i(),s.value=!0}),ri(document,"keydown",y),t({visible:s,close:m}),(_,b)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(n).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:S=>_.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:_.id,class:h.normalizeClass([h.unref(n).b(),_.customClass,h.unref(f)]),style:h.normalizeStyle(h.unref(p)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:_.onClick},[h.unref(c)?(h.openBlock(),h.createBlock(h.unref(Er),{key:0,class:h.normalizeClass([h.unref(n).e("icon"),h.unref(u)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(c))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(n).e("group"))},[h.createElementVNode("h2",{class:h.normalizeClass(h.unref(n).e("title")),textContent:h.toDisplayString(_.title)},null,10,["textContent"]),h.withDirectives(h.createElementVNode("div",{class:h.normalizeClass(h.unref(n).e("content")),style:h.normalizeStyle(_.title?void 0:{margin:0})},[h.renderSlot(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{innerHTML:_.message},null,8,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0},h.toDisplayString(_.message),1))])],6),[[h.vShow,_.message]]),_.showClose?(h.openBlock(),h.createBlock(h.unref(Er),{key:0,class:h.normalizeClass(h.unref(n).e("closeBtn")),onClick:h.withModifiers(m,["stop"])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(_.closeIcon)))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[h.vShow,s.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var J7=bn(q7,[["__file","notification.vue"]]);const Mp={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},G0=16;let Q7=1;const gu=function(e={},t){if(!Dr)return{close:()=>{}};(fr(e)||h.isVNode(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;Mp[r].forEach(({vm:c})=>{var f;n+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+G0}),n+=G0;const a=`notification_${Q7++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{eY(a,r,i)}};let s=document.body;wo(e.appendTo)?s=e.appendTo:fr(e.appendTo)&&(s=document.querySelector(e.appendTo)),wo(s)||(Kn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const l=document.createElement("div"),u=h.createVNode(J7,o,ei(o.message)?o.message:h.isVNode(o.message)?()=>o.message:null);return u.appContext=lf(t)?gu._context:t,u.props.onDestroy=()=>{h.render(null,l)},h.render(u,l),Mp[r].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};nM.forEach(e=>{gu[e]=(t={},r)=>((fr(t)||h.isVNode(t))&&(t={message:t}),gu({...t,type:e},r))});function eY(e,t,r){const n=Mp[t],a=n.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,s=t.split("-")[0];n.splice(a,1);const l=n.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=n[u].vm,d=Number.parseInt(c.style[s],10)-o-G0;f.props.offset=d}}function tY(){for(const e of Object.values(Mp))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}gu.closeAll=tY,gu._context=null;const rY=sA(gu,"$notify"),Ao={show:(e,t)=>{Hr({message:e,type:t||"info",duration:3e3,grouping:!0})},success:e=>{Hr.success({message:e,duration:2e3,grouping:!0})},warning:e=>{Hr.warning({message:e,duration:2e3,grouping:!0})},error:e=>{Hr.error({message:e,duration:5e3,grouping:!0})},confirm:(e,t=$.$ntt("提示","菜单"))=>rM.confirm(e,t,{confirmButtonText:$.$ntt("确定","菜单"),cancelButtonText:$.$ntt("取消","菜单"),type:"warning"}).then(()=>Promise.resolve()).catch(()=>(Hr({type:"info",message:$.$ntt("已取消操作","菜单")}),Promise.reject())),notification:(e,t)=>{rY({title:e,message:t,type:"warning"})}},nY={install(e){e.config.globalProperties.$message=Ao,e.provide("$message",Ao)}},aY={class:"col"},iY={class:"col-content"},oY={class:"text-name"},sY={key:0,style:{color:"#ff0000","margin-left":"2px"}},lY={key:0,class:"input"},uY={key:1,class:"text spHideScroll"},cY={key:0,class:"input"},fY={key:1,class:"text spHideScroll"},hY={key:2,class:"text-input"},dY={key:3,class:"text-input"},pY={key:4,class:"text-input"},vY={key:5,class:"text-input"},gY={key:6,class:"text-input"},mY={key:7,class:"text-input"},yY={name:"cmCol"},_Y=h.defineComponent({...yY,props:{slItem:{},baseData:{},bEditHdr:{type:Boolean},bSearch:{type:Boolean},size:{default:()=>"small"},bShowBottomLine:{type:Boolean,default:()=>!0}},emits:["successChangeSearchMode","valueChange"],setup(e,{emit:t}){let r=t,{proxy:n}=h.getCurrentInstance(),a=e,i=[{value:"EQ",label:$.$ntt("等于")},{value:"LIKE",label:$.$ntt("模糊")}],o=[{value:"GT",label:$.$ntt("大于")},{value:"GTE",label:$.$ntt("大于等于")},{value:"LT",label:$.$ntt("小于")},{value:"LTE",label:$.$ntt("小于等于")}],s=h.ref({}),l=h.computed(()=>!!(a.bEditHdr||a.bSearch));function u(_){if(_==="date")return"YYYY-MM-DD";if(_==="datetime"||_==="daterange")return"YYYY-MM-DD HH:mm:ss"}h.watch(()=>a.slItem,(_,b)=>{s.value=_,_.sType==="checkbox"&&!Array.isArray(_.sValue)&&(s.value.sValue=_.sValue?[_.sValue]:[])},{deep:!0,immediate:!0}),h.watch(()=>s.value.sValue,(_,b)=>{_!==b&&r("valueChange",{sKey:s.value.sKey,sValue:_})});function c(_){}function f(_){r("valueChange",{sKey:s.value.sKey,sValue:_.target.value})}function d(_,b){console.log(1111,_,b),r("valueChange",{sKey:s.value.sKey,sValue:_})}function p(_){if(!_.target.value)return Ao.warning(`${s.value.sCaption}输入的值应在【${s.value.min}】~【${s.value.max}】之间`)}function v(_){s.value.searchMode=_,r("successChangeSearchMode",s.value)}function g(_){s.value.sValue=_.sValue,r("valueChange",_)}function m(_){s.value.sValue=_||[],r("valueChange",{sKey:s.value.sKey,sValue:_||[]})}function y(_){s.value.sValue=_||"",r("valueChange",{sKey:s.value.sKey,sValue:_||""})}return(_,b)=>{const S=h.resolveComponent("cmSelectOption"),x=h.resolveComponent("el-input"),w=h.resolveComponent("el-text"),C=h.resolveComponent("el-input-number"),T=h.resolveComponent("cm-select"),D=h.resolveComponent("el-date-picker"),E=h.resolveComponent("el-switch"),A=h.resolveComponent("el-checkbox"),L=h.resolveComponent("el-checkbox-group"),N=h.resolveComponent("el-radio"),I=h.resolveComponent("el-radio-group"),k=h.resolveComponent("btn-render");return h.openBlock(),h.createElementBlock("div",aY,[h.createElementVNode("div",iY,[h.createElementVNode("div",oY,[h.createElementVNode("div",null,h.toDisplayString(h.unref(s).sCaption),1),h.unref(s).bRequired?(h.openBlock(),h.createElementBlock("div",sY," *")):h.createCommentVNode("",!0)]),h.unref(s).sType=="text"||h.unref(s).sType=="textarea"||h.unref(s).sType=="password"?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["text-input",h.unref(s).bEdit||_.bSearch?"":_.bShowBottomLine?"decoration":""])},[h.unref(s).bEdit||_.bSearch?(h.openBlock(),h.createElementBlock("div",lY,[_.bSearch?(h.openBlock(),h.createBlock(S,{key:0,value:h.unref(s).searchMode,"onUpdate:value":b[0]||(b[0]=P=>h.unref(s).searchMode=P),options:h.unref(i),size:_.size,width:"60",onChangeSearchMode:v},null,8,["value","options","size"])):h.createCommentVNode("",!0),h.createVNode(x,{clearable:"",type:h.unref(s).sType,size:_.size,disabled:!h.unref(l)||h.unref(s).disabled,"show-password":h.unref(s).sType=="password",modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[1]||(b[1]=P=>h.unref(s).sValue=P),rows:h.unref(s).rows,autosize:h.unref(s).autoSize,onInput:c,placeholder:h.unref(s).placeholder?h.unref(s).placeholder:h.unref($).$ntt("请输入"),onBlur:f},null,8,["type","size","disabled","show-password","modelValue","rows","autosize","placeholder"])])):(h.openBlock(),h.createElementBlock("div",uY,[h.createVNode(w,{class:"textSpan"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(s).sValue),1)]),_:1})]))],2)):h.createCommentVNode("",!0),h.unref(s).sType=="number"?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["text-input",h.unref(s).bEdit||_.bSearch?"":_.bShowBottomLine?"decoration":""])},[h.unref(s).bEdit||_.bSearch?(h.openBlock(),h.createElementBlock("div",cY,[_.bSearch?(h.openBlock(),h.createBlock(S,{key:0,value:h.unref(s).searchMode,"onUpdate:value":b[2]||(b[2]=P=>h.unref(s).searchMode=P),options:h.unref(i),size:_.size,width:"60",onChangeSearchMode:v},null,8,["value","options","size"])):h.createCommentVNode("",!0),h.createVNode(C,{modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[3]||(b[3]=P=>h.unref(s).sValue=P),placeholder:h.unref(s).placeholder?h.unref(s).placeholder:h.unref($).$ntt("请输入"),size:_.size,min:h.unref(s).min?h.unref(s).min:0,max:h.unref(s).max?h.unref(s).max:1e5,precision:h.unref(s).precision?h.unref(s).precision:0,step:h.unref(s).step?h.unref(s).step:1,"step-strictly":"","value-on-clear":"0",onChange:d,onBlur:p},null,8,["modelValue","placeholder","size","min","max","precision","step"])])):(h.openBlock(),h.createElementBlock("div",fY,[h.createVNode(w,{class:"textSpan"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(s).sValue),1)]),_:1})]))],2)):h.createCommentVNode("",!0),h.unref(s).sType=="select"||h.unref(s).sType=="manySelect"?(h.openBlock(),h.createElementBlock("div",hY,[h.createElementVNode("div",null,[_.bSearch?(h.openBlock(),h.createBlock(S,{key:0,disabled:h.unref(s).disabled,value:h.unref(s).searchMode,"onUpdate:value":b[4]||(b[4]=P=>h.unref(s).searchMode=P),options:h.unref(i),size:_.size,width:"60",onChangeSearchMode:v},null,8,["disabled","value","options","size"])):h.createCommentVNode("",!0),h.createVNode(T,{slItem:h.unref(s),sApiUrl:h.unref(s).sSelectApi,responseMode:h.unref(s).responseMode,disabled:!h.unref(l)||h.unref(s).disabled,"base-data":_.baseData,size:_.size,onValueChange:g},null,8,["slItem","sApiUrl","responseMode","disabled","base-data","size"])])])):h.createCommentVNode("",!0),h.unref(s).sType=="date"||h.unref(s).sType=="datetime"||h.unref(s).sType=="daterange"?(h.openBlock(),h.createElementBlock("div",dY,[h.createElementVNode("div",null,[_.bSearch?(h.openBlock(),h.createBlock(S,{key:0,value:h.unref(s).searchMode,"onUpdate:value":b[5]||(b[5]=P=>h.unref(s).searchMode=P),options:h.unref(o),size:_.size,width:"60",onChangeSearchMode:v},null,8,["value","options","size"])):h.createCommentVNode("",!0),h.createVNode(D,{size:_.size,style:{width:"100%"},modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[6]||(b[6]=P=>h.unref(s).sValue=P),"range-separator":h.unref($).$ntt("-"),disabled:!h.unref(l)||h.unref(s).disabled,type:h.unref(s).sType,placeholder:h.unref($).$ntt("请选择日期"),"start-placeholder":h.unref($).$ntt("请选择日期"),"end-placeholder":h.unref($).$ntt("请选择日期"),"value-format":u(h.unref(s).sType)},null,8,["size","modelValue","range-separator","disabled","type","placeholder","start-placeholder","end-placeholder","value-format"])])])):h.createCommentVNode("",!0),h.unref(s).sType=="switch"?(h.openBlock(),h.createElementBlock("div",pY,[h.createVNode(E,{size:_.size,modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[7]||(b[7]=P=>h.unref(s).sValue=P),disabled:!h.unref(l)||h.unref(s).disabled,"inline-prompt":"","active-text":h.unref(s).activeText,"inactive-text":h.unref(s).inactiveText},null,8,["size","modelValue","disabled","active-text","inactive-text"])])):h.createCommentVNode("",!0),h.unref(s).sType=="checkbox"?(h.openBlock(),h.createElementBlock("div",vY,[h.createVNode(L,{modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[8]||(b[8]=P=>h.unref(s).sValue=P),disabled:!h.unref(l)||h.unref(s).disabled,onChange:m},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s).sSelectItems,(P,V)=>(h.openBlock(),h.createBlock(A,{key:V,label:P[h.unref(s).sSelectKey||"sKey"],value:P[h.unref(s).sSelectKey||"sKey"]},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(P[h.unref(s).sSelectLabel||"label"]),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])])):h.createCommentVNode("",!0),h.unref(s).sType=="radio"?(h.openBlock(),h.createElementBlock("div",gY,[h.createVNode(I,{modelValue:h.unref(s).sValue,"onUpdate:modelValue":b[9]||(b[9]=P=>h.unref(s).sValue=P),disabled:!h.unref(l)||h.unref(s).disabled,onChange:y},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s).sSelectItems,(P,V)=>(h.openBlock(),h.createBlock(N,{key:V,label:P[h.unref(s).sSelectKey||"sKey"],value:P[h.unref(s).sSelectKey||"sKey"]},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(P[h.unref(s).sSelectLabel||"label"]),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])])):h.createCommentVNode("",!0),h.unref(s).sType=="render"?(h.openBlock(),h.createElementBlock("div",mY,[h.createVNode(k,{render:h.unref(s).render,params:{bShowEdit:"bShowEdit",item:h.unref(s)}},null,8,["render","params"])])):h.createCommentVNode("",!0)])])}}}),sn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},aM=sn(_Y,[["__scopeId","data-v-27d32365"]]),bY={key:0,style:{width:"100%"}},SY={key:1,style:{width:"100%"}},wY={name:"cmSelect"},xY=h.defineComponent({...wY,props:{baseData:{type:Object,required:!1},slItem:{type:Object,required:!0},disabled:{type:Boolean,required:!1},sApiUrl:{type:String,required:!1},responseMode:{type:String,required:!1,default(){return"data.data"}},bDisabled:{type:Boolean,required:!1},size:{type:String,required:!1,default:"small"},modelOther:{type:String,requierd:!1,default:""}},emits:["cmSelectRefresh","onSelectChange","valueChange"],setup(e,{emit:t}){let r=t,n=e,{proxy:a}=h.getCurrentInstance(),i=h.ref(n.slItem),o=h.ref(n.baseData);h.watch(()=>n.slItem,(p,v)=>{i.value=p},{deep:!0,immediate:!0}),h.watch(()=>n.baseData,(p,v)=>{p&&!i.value.sValue&&(i.value.sValue=a.$utils.getManyLevelData(p,i.value.sKey))});let s=h.ref([]);l();function l(){if(i.value.sSelectItems)return s.value=f(i.value.sSelectItems),"";n.sApiUrl&&c()}function u(){r("cmSelectRefresh",i.value,n.baseData),n.sApiUrl&&(i.value.disabled||n.bDisabled||c())}function c(){n.sApiUrl&&a.$api.getUrlData(n.sApiUrl).then(p=>{console.log(p,"res");let v=a.$utils.getManyLevelData(p,n.responseMode);console.log(v,"resData"),s.value=f(v),i.value.onGetedData&&i.value.onGetedData(v)})}function f(p){let v=[];return p.length?(p.forEach(g=>{let m={value:a.$utils.getManyLevelData(g,i.value.sSelectKey),label:a.$utils.getManyLevelData(g,i.value.sSelectLabel),...g};v.push(m)}),v):""}function d(p){console.log(p,"value",s.value);let v=null;s.value.forEach(g=>{g.value==p&&(v=g)}),r("onSelectChange",n.baseData,v),r("valueChange",{sKey:i.value.sKey,sValue:p})}return(p,v)=>{const g=h.resolveComponent("el-select-v2");return h.openBlock(),h.createElementBlock("div",{onDblclick:u,style:{width:"100%"}},[e.modelOther=="cmEditDtl"?(h.openBlock(),h.createElementBlock("div",bY,[h.createVNode(g,{modelValue:h.unref(o)[h.unref(i).sKey],"onUpdate:modelValue":v[0]||(v[0]=m=>h.unref(o)[h.unref(i).sKey]=m),placeholder:"Select",clearable:"",disabled:e.disabled||e.bDisabled,multiple:h.unref(i).sType=="manySelect",filterable:"",size:e.size,onChange:d,options:h.unref(s),"value-key":h.unref(i).sSelectKey},null,8,["modelValue","disabled","multiple","size","options","value-key"])])):(h.openBlock(),h.createElementBlock("div",SY,[h.createVNode(g,{modelValue:h.unref(i).sValue,"onUpdate:modelValue":v[1]||(v[1]=m=>h.unref(i).sValue=m),placeholder:"Select",clearable:"",disabled:e.disabled||e.bDisabled,multiple:h.unref(i).sType=="manySelect",filterable:"",size:e.size,onChange:d,options:h.unref(s),"value-key":h.unref(i).sSelectKey,style:{width:"100%"}},null,8,["modelValue","disabled","multiple","size","options","value-key"])]))],32)}}}),CY={class:"borderHdr"},TY={class:"custom-tabs-label"},DY={class:"titleContainer"},EY={class:"basicInfoDataContentTitle"},AY={class:"dynamic-layout"},MY={key:1,class:"dynamic-layout"},NY={class:"custom-tabs-label"},IY={class:"controlBtn"},LY={name:"cmEditHdr"},kY=h.defineComponent({...LY,props:{sFilterData:{default:()=>[]},baseData:{},sAnotherButton:{},bCanEdit:{type:Boolean,default:()=>!0},checkData:{},sApiUrl:{},hdrSpan:{default:()=>6},size:{default:()=>"small"},hdrName:{default:()=>$.$ntt("基础信息")},bShowBottomLine:{type:Boolean,default:()=>!0},colHeight:{default:()=>"100%"},beforeDeleteData:{},sDataDeleteUrl:{},sMainKey:{default:()=>"guid"},saveType:{default:()=>1},hdrAndDtlTogetherSave:{type:Boolean,default:()=>!1}},emits:["onSaveSuccess","onBtnClick","onDeleteBtnClick","onDeleteSuccess"],setup(e,{expose:t,emit:r}){const{proxy:n}=h.getCurrentInstance();let a=r;t({editData:x,saveDataFrom:L,setInitBaseData:b,clearBaseData:_,getFilterData:D,cancelData:T,showData:w,getMyBaseData:N,addData:S});const i=e;let o=h.ref([]),s=h.ref([]),l=h.ref(!1),u=h.ref(!1),c=h.ref({}),f=h.ref({});h.watch(()=>i.sFilterData,(I,k)=>{JSON.stringify(I)!==JSON.stringify(k)&&(s.value=[],o.value=[],p(I))},{deep:!0,immediate:!0}),h.watch(()=>i.baseData,(I,k)=>{JSON.stringify(I)!==JSON.stringify(k)&&(c.value=I,n.$utils.deepCopy(I),(o.value.length||s.value.length)&&v())},{deep:!0,immediate:!0});function d(I){let k={};for(let P=0;P<I.length;P++){let V=I[P].groupId;k.hasOwnProperty(V)||(k[V]={},k[V].name=I[P].groupName,k[V].list=[]),k[V].list.push(I[P])}f.value=k}function p(I){I.forEach(k=>{k.sType=="textarea"?s.value.push(k):o.value.push(k)}),v()}function v(){s.value.forEach(k=>{let P=n.$utils.getManyLevelData(c.value,k.sKey);k.sValue=P||"",k.rows=k.rows?k.rows:4});let I=n.$utils.deepCopy(o.value);I.forEach(k=>{let P=n.$utils.getManyLevelData(c.value,k.sKey);k.sValue=P??""}),o.value=I,o.value[0].hasOwnProperty("groupId")&&d(o.value)}let g=h.ref("basicInfo");function m(I,k){}h.onMounted(()=>{c.value=i.baseData,n.$utils.deepCopy(i.baseData)});function y(I){c.value[I.sKey]=I.sValue,console.log("值变化:",I.sKey,I.sValue,c.value)}function _(){c.value={},n.$utils.deepCopy(c.value),o.value.forEach(I=>{I.sValue=""}),s.value.forEach(I=>{I.sValue=""}),f.value&&Object.keys(f.value).length>0&&Object.keys(f.value).forEach(I=>{f.value[I].list.forEach(k=>{k.sValue=""})})}function b(I){let k=n.$utils.deepCopy(I);h.nextTick(()=>{Object.assign(c.value,k),n.$utils.deepCopy(c.value),v()})}function S(){l.value=!0,u.value=!1,c.value={},console.log("myBaseData",c.value),console.log("basicInfoData",o.value),console.log("otherInfoData",s.value),console.log("basicInfoDataObj",f.value)}function x(){l.value=!0,u.value=!0}function w(){h.nextTick(()=>{l.value=!1})}function C(){if(!n.$utils.checkValid(c.value,i.sFilterData))return!1;let I=!0;if(i.checkData&&(I=i.checkData(c.value)),!I||!i.sApiUrl)return;let k=null;i.saveType===1?k=[c.value]:k=c.value,n.$api.putUrlData(i.sApiUrl,k).then(P=>{n.$message.success($.$ntt("保存成功","菜单")),l.value=!1,i.saveType===2&&(c.value=P.data.data),a("onSaveSuccess",P),c.value.bNotSave=!1,A(1)})}function T(){l.value=!1,c.value={}}function D(){return i.sFilterData}function E(){let I=l.value?"正在编辑中,是否要删除?":$.$ntt("此操作将删除, 是否继续?","菜单");n.$utils.sureDelete(I).then(()=>{if(a("onDeleteBtnClick",[c.value]),i.beforeDeleteData&&!i.beforeDeleteData([c.value])||!i.sDataDeleteUrl)return;let k=c.value[i.sMainKey];n.$api.deleteUrlData(`${i.sDataDeleteUrl}/${k}`).then(P=>{n.$message.success($.$ntt("删除成功","菜单")),a("onDeleteSuccess")})})}function A(I){a("onBtnClick",I)}function L(I,k,P,V){if(!n.$utils.checkValid(I,k))return!1;let B=!0;V&&(B=V(c.value)),B&&P&&n.$api.postUrlData(P,[I]).then(G=>{n.$message.success($.$ntt("保存成功","菜单")),l.value=!1,a("onSaveSuccess",G,I),I.bNotSave=!1,A(2)})}function N(){return c.value}return(I,k)=>{const P=h.resolveComponent("cmCol"),V=h.resolveComponent("el-tab-pane"),B=h.resolveComponent("el-col"),G=h.resolveComponent("el-row"),U=h.resolveComponent("el-tabs"),W=h.resolveComponent("el-button"),re=h.resolveComponent("el-tooltip");return h.openBlock(),h.createElementBlock("div",CY,[h.createVNode(U,{modelValue:h.unref(g),"onUpdate:modelValue":k[0]||(k[0]=le=>h.isRef(g)?g.value=le:g=le),class:"tabsClass",onTabClick:m},{default:h.withCtx(()=>[h.createVNode(V,{label:"",name:"basicInfo"},{label:h.withCtx(()=>[h.createElementVNode("span",TY,[k[1]||(k[1]=h.createElementVNode("div",{class:"borderDiv"},null,-1)),h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt(I.hdrName,"菜单")),1)])]),default:h.withCtx(()=>[Object.keys(h.unref(f)).length&&Object.keys(h.unref(f)).length>1?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(h.unref(f),(le,Y)=>(h.openBlock(),h.createElementBlock("div",{class:"basicInfoDataContent",key:Y},[h.createElementVNode("div",DY,[k[2]||(k[2]=h.createElementVNode("div",{class:"verticalLine"},null,-1)),h.createElementVNode("span",EY,h.toDisplayString(le.name),1)]),h.createElementVNode("div",AY,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(le.list,(X,fe)=>(h.openBlock(),h.createElementBlock("div",{key:fe,class:h.normalizeClass(`col-${X.iSpan}`),style:h.normalizeStyle({height:I.colHeight})},[h.createVNode(P,{slItem:X,size:I.size,"base-data":h.unref(c),bEditHdr:h.unref(l),bShowBottomLine:I.bShowBottomLine,colHeight:I.colHeight,onValueChange:y},null,8,["slItem","size","base-data","bEditHdr","bShowBottomLine","colHeight"])],6))),128))])]))),128)):(h.openBlock(),h.createElementBlock("div",MY,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(o),(le,Y)=>(h.openBlock(),h.createElementBlock("div",{key:Y,class:h.normalizeClass(`col-${le.iSpan}`),style:h.normalizeStyle({height:I.colHeight})},[h.createVNode(P,{slItem:le,size:I.size,"base-data":h.unref(c),bEditHdr:h.unref(l),bShowBottomLine:I.bShowBottomLine,colHeight:I.colHeight,onValueChange:y},null,8,["slItem","size","base-data","bEditHdr","bShowBottomLine","colHeight"])],6))),128))]))]),_:1}),h.unref(s).length?(h.openBlock(),h.createBlock(V,{key:0,label:"",name:"otherInfo"},{label:h.withCtx(()=>[h.createElementVNode("span",NY,[k[3]||(k[3]=h.createElementVNode("div",{class:"borderDiv"},null,-1)),h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("其他信息","菜单")),1)])]),default:h.withCtx(()=>[h.createVNode(G,null,{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(s),(le,Y)=>(h.openBlock(),h.createBlock(B,{key:Y,span:24,style:h.normalizeStyle({height:I.colHeight})},{default:h.withCtx(()=>[h.createVNode(P,{slItem:le,size:I.size,"base-data":h.unref(c),bEditHdr:h.unref(l),bShowBottomLine:I.bShowBottomLine,colHeight:I.colHeight,onValueChange:y},null,8,["slItem","size","base-data","bEditHdr","bShowBottomLine","colHeight"])]),_:2},1032,["style"]))),128))]),_:1})]),_:1})):h.createCommentVNode("",!0)]),_:1},8,["modelValue"]),h.createElementVNode("div",IY,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(I.sAnotherButton,(le,Y)=>(h.openBlock(),h.createBlock(re,{key:Y,effect:"dark",content:le.sName,placement:"top-start"},{default:h.withCtx(()=>[le.bHide?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(W,{key:0,class:"myButtonClass",type:le.type,icon:le.icon,onClick:le.sClick},null,8,["type","icon","onClick"]))]),_:2},1032,["content"]))),128)),h.createVNode(re,{effect:"dark",content:h.unref($).$ntt("编辑","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(W,{class:"myButtonClass themeClass",type:"primary",icon:"Edit",onClick:x},null,512),[[h.vShow,!h.unref(l)&&I.bCanEdit]])]),_:1},8,["content"]),h.createVNode(re,{effect:"dark",content:h.unref($).$ntt("保存","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(W,{class:"myButtonClass themeClass",type:"primary",icon:"Select",onClick:C},null,512),[[h.vShow,h.unref(l)&&I.bCanEdit]])]),_:1},8,["content"]),h.createVNode(re,{effect:"dark",content:h.unref($).$ntt("取消","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(W,{class:"myButtonClass",type:"info",icon:"CloseBold",onClick:T},null,512),[[h.vShow,h.unref(l)&&I.bCanEdit&&!I.hdrAndDtlTogetherSave]])]),_:1},8,["content"]),h.createVNode(re,{effect:"dark",content:h.unref($).$ntt("删除","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.unref(u)&&I.bCanEdit&&I.sDataDeleteUrl?(h.openBlock(),h.createBlock(W,{key:0,type:"danger",icon:"Delete",size:"small",onClick:E})):h.createCommentVNode("",!0)]),_:1},8,["content"])])])}}}),PY=sn(kY,[["__scopeId","data-v-e109c51b"]]),OY={class:"moreHdrBtn"},RY={name:"cmMoreHdrBtn"},VY=h.defineComponent({...RY,props:{baseData:{type:Object,required:!0},refs:{type:Array,required:!0},checkData:{type:Function,required:!1},sApiUrl:{type:String,required:!0}},emits:["onSaveSuccess"],setup(e,{expose:t,emit:r}){let{proxy:n}=h.getCurrentInstance(),a=r;t({editData:s,saveData:l,cancelData:u});let i=e,o=h.ref(!1);function s(){h.nextTick(()=>{console.log(i.refs[0],"props.refs"),i.refs.forEach(c=>{c.editData()})}),o.value=!0}function l(){let c=i.refs;if(c.length==0)return;let f=!0;for(let d=0;d<c.length;d++){let v=c[d].getFilterData();if(!n.$utils.checkValid(i.baseData,v))return o.value=!1,""}if(i.checkData&&(f=i.checkData()),!f||!i.sApiUrl)return o.value=!1,"";n.$api.putUrlData(i.sApiUrl,[i.baseData]).then(d=>{n.$message.success($.$ntt("保存成功","菜单")),o.value=!1,a("onSaveSuccess",d)})}function u(){i.refs.forEach(c=>{c.cancelData()}),o.value=!1}return(c,f)=>{const d=h.resolveComponent("el-button"),p=h.resolveComponent("el-tooltip");return h.openBlock(),h.createElementBlock("div",OY,[h.createVNode(p,{effect:"dark",content:h.unref($).$ntt("编辑","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(d,{class:"myButtonClass themeClass",type:"primary",icon:"Edit",onClick:s},null,512),[[h.vShow,!h.unref(o)]])]),_:1},8,["content"]),h.createVNode(p,{effect:"dark",content:h.unref($).$ntt("保存","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(d,{class:"myButtonClass themeClass",type:"primary",icon:"Select",onClick:l},null,512),[[h.vShow,h.unref(o)]])]),_:1},8,["content"]),h.createVNode(p,{effect:"dark",content:h.unref($).$ntt("取消","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(d,{class:"myButtonClass",type:"info",icon:"CloseBold",onClick:u},null,512),[[h.vShow,h.unref(o)]])]),_:1},8,["content"])])}}}),BY=sn(VY,[["__scopeId","data-v-9f7966ac"]]);//! moment.js
39
+ //! version : 2.30.1
40
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
41
+ //! license : MIT
42
+ //! momentjs.com
43
+ var iM;function De(){return iM.apply(null,arguments)}function FY(e){iM=e}function Ea(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Is(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function U0(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ct(e,t))return!1;return!0}function wn(e){return e===void 0}function Fi(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function mf(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function oM(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function Mo(e,t){for(var r in t)Ct(t,r)&&(e[r]=t[r]);return Ct(t,"toString")&&(e.toString=t.toString),Ct(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ni(e,t,r,n){return kM(e,t,r,n,!0).utc()}function zY(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function it(e){return e._pf==null&&(e._pf=zY()),e._pf}var W0;Array.prototype.some?W0=Array.prototype.some:W0=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Y0(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=it(e),r=W0.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Np(e){var t=ni(NaN);return e!=null?Mo(it(t),e):it(t).userInvalidated=!0,t}var sM=De.momentProperties=[],X0=!1;function K0(e,t){var r,n,a,i=sM.length;if(wn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),wn(t._i)||(e._i=t._i),wn(t._f)||(e._f=t._f),wn(t._l)||(e._l=t._l),wn(t._strict)||(e._strict=t._strict),wn(t._tzm)||(e._tzm=t._tzm),wn(t._isUTC)||(e._isUTC=t._isUTC),wn(t._offset)||(e._offset=t._offset),wn(t._pf)||(e._pf=it(t)),wn(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=sM[r],a=t[n],wn(a)||(e[n]=a);return e}function yf(e){K0(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),X0===!1&&(X0=!0,De.updateOffset(this),X0=!1)}function Aa(e){return e instanceof yf||e!=null&&e._isAMomentObject!=null}function lM(e){De.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function jn(e,t){var r=!0;return Mo(function(){if(De.deprecationHandler!=null&&De.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
44
+ [`+i+"] ";for(o in arguments[0])Ct(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}lM(e+`
45
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
46
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var uM={};function cM(e,t){De.deprecationHandler!=null&&De.deprecationHandler(e,t),uM[e]||(lM(t),uM[e]=!0)}De.suppressDeprecationWarnings=!1,De.deprecationHandler=null;function ai(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function $Y(e){var t,r;for(r in e)Ct(e,r)&&(t=e[r],ai(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function j0(e,t){var r=Mo({},e),n;for(n in t)Ct(t,n)&&(Is(e[n])&&Is(t[n])?(r[n]={},Mo(r[n],e[n]),Mo(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Ct(e,n)&&!Ct(t,n)&&Is(e[n])&&(r[n]=Mo({},r[n]));return r}function Z0(e){e!=null&&this.set(e)}var q0;Object.keys?q0=Object.keys:q0=function(e){var t,r=[];for(t in e)Ct(e,t)&&r.push(t);return r};var HY={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function GY(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ai(n)?n.call(t,r):n}function ii(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var J0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ip=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Q0={},mu={};function ze(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(mu[e]=a),t&&(mu[t[0]]=function(){return ii(a.apply(this,arguments),t[1],t[2])}),r&&(mu[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function UY(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function WY(e){var t=e.match(J0),r,n;for(r=0,n=t.length;r<n;r++)mu[t[r]]?t[r]=mu[t[r]]:t[r]=UY(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=ai(t[o])?t[o].call(a,e):t[o];return i}}function Lp(e,t){return e.isValid()?(t=fM(t,e.localeData()),Q0[t]=Q0[t]||WY(t),Q0[t](e)):e.localeData().invalidDate()}function fM(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Ip.lastIndex=0;r>=0&&Ip.test(e);)e=e.replace(Ip,n),Ip.lastIndex=0,r-=1;return e}var YY={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function XY(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(J0).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var KY="Invalid date";function jY(){return this._invalidDate}var ZY="%d",qY=/\d{1,2}/;function JY(e){return this._ordinal.replace("%d",e)}var QY={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function eX(e,t,r,n){var a=this._relativeTime[r];return ai(a)?a(e,t,r,n):a.replace(/%d/i,e)}function tX(e,t){var r=this._relativeTime[e>0?"future":"past"];return ai(r)?r(t):r.replace(/%s/i,t)}var hM={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Zn(e){return typeof e=="string"?hM[e]||hM[e.toLowerCase()]:void 0}function e_(e){var t={},r,n;for(n in e)Ct(e,n)&&(r=Zn(n),r&&(t[r]=e[n]));return t}var rX={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nX(e){var t=[],r;for(r in e)Ct(e,r)&&t.push({unit:r,priority:rX[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var dM=/\d/,Pn=/\d\d/,pM=/\d{3}/,t_=/\d{4}/,kp=/[+-]?\d{6}/,Gt=/\d\d?/,vM=/\d\d\d\d?/,gM=/\d\d\d\d\d\d?/,Pp=/\d{1,3}/,r_=/\d{1,4}/,Op=/[+-]?\d{1,6}/,yu=/\d+/,Rp=/[+-]?\d+/,aX=/Z|[+-]\d\d:?\d\d/gi,Vp=/Z|[+-]\d\d(?::?\d\d)?/gi,iX=/[+-]?\d+(\.\d{1,3})?/,_f=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_u=/^[1-9]\d?/,n_=/^([1-9]\d|\d)/,Bp;Bp={};function Pe(e,t,r){Bp[e]=ai(t)?t:function(n,a){return n&&r?r:t}}function oX(e,t){return Ct(Bp,e)?Bp[e](t._strict,t._locale):new RegExp(sX(e))}function sX(e){return zi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function zi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function qn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function dt(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=qn(t)),r}var a_={};function Rt(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Fi(t)&&(n=function(i,o){o[t]=dt(i)}),a=e.length,r=0;r<a;r++)a_[e[r]]=n}function bf(e,t){Rt(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function lX(e,t,r){t!=null&&Ct(a_,e)&&a_[e](t,r._a,r,e)}function Fp(e){return e%4===0&&e%100!==0||e%400===0}var Gr=0,$i=1,oi=2,yr=3,Ma=4,Hi=5,Ls=6,uX=7,cX=8;ze("Y",0,0,function(){var e=this.year();return e<=9999?ii(e,4):"+"+e}),ze(0,["YY",2],0,function(){return this.year()%100}),ze(0,["YYYY",4],0,"year"),ze(0,["YYYYY",5],0,"year"),ze(0,["YYYYYY",6,!0],0,"year"),Pe("Y",Rp),Pe("YY",Gt,Pn),Pe("YYYY",r_,t_),Pe("YYYYY",Op,kp),Pe("YYYYYY",Op,kp),Rt(["YYYYY","YYYYYY"],Gr),Rt("YYYY",function(e,t){t[Gr]=e.length===2?De.parseTwoDigitYear(e):dt(e)}),Rt("YY",function(e,t){t[Gr]=De.parseTwoDigitYear(e)}),Rt("Y",function(e,t){t[Gr]=parseInt(e,10)});function Sf(e){return Fp(e)?366:365}De.parseTwoDigitYear=function(e){return dt(e)+(dt(e)>68?1900:2e3)};var mM=bu("FullYear",!0);function fX(){return Fp(this.year())}function bu(e,t){return function(r){return r!=null?(yM(this,e,r),De.updateOffset(this,t),this):wf(this,e)}}function wf(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function yM(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!Fp(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function hX(e){return e=Zn(e),ai(this[e])?this[e]():this}function dX(e,t){if(typeof e=="object"){e=e_(e);var r=nX(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=Zn(e),ai(this[e]))return this[e](t);return this}function pX(e,t){return(e%t+t)%t}var or;Array.prototype.indexOf?or=Array.prototype.indexOf:or=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function i_(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=pX(t,12);return e+=(t-r)/12,r===1?Fp(e)?29:28:31-r%7%2}ze("M",["MM",2],"Mo",function(){return this.month()+1}),ze("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ze("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Pe("M",Gt,_u),Pe("MM",Gt,Pn),Pe("MMM",function(e,t){return t.monthsShortRegex(e)}),Pe("MMMM",function(e,t){return t.monthsRegex(e)}),Rt(["M","MM"],function(e,t){t[$i]=dt(e)-1}),Rt(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[$i]=a:it(r).invalidMonth=e});var vX="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_M="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),bM=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gX=_f,mX=_f;function yX(e,t){return e?Ea(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||bM).test(t)?"format":"standalone"][e.month()]:Ea(this._months)?this._months:this._months.standalone}function _X(e,t){return e?Ea(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[bM.test(t)?"format":"standalone"][e.month()]:Ea(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bX(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=ni([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=or.call(this._shortMonthsParse,o),a!==-1?a:null):(a=or.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=or.call(this._shortMonthsParse,o),a!==-1?a:(a=or.call(this._longMonthsParse,o),a!==-1?a:null)):(a=or.call(this._longMonthsParse,o),a!==-1?a:(a=or.call(this._shortMonthsParse,o),a!==-1?a:null))}function SX(e,t,r){var n,a,i;if(this._monthsParseExact)return bX.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=ni([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function SM(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=dt(t);else if(t=e.localeData().monthsParse(t),!Fi(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,i_(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function wM(e){return e!=null?(SM(this,e),De.updateOffset(this,!0),this):wf(this,"Month")}function wX(){return i_(this.year(),this.month())}function xX(e){return this._monthsParseExact?(Ct(this,"_monthsRegex")||xM.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ct(this,"_monthsShortRegex")||(this._monthsShortRegex=gX),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function CX(e){return this._monthsParseExact?(Ct(this,"_monthsRegex")||xM.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ct(this,"_monthsRegex")||(this._monthsRegex=mX),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function xM(){function e(l,u){return u.length-l.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=ni([2e3,a]),o=zi(this.monthsShort(i,"")),s=zi(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TX(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function xf(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function zp(e,t,r){var n=7+t-r,a=(7+xf(e,0,n).getUTCDay()-t)%7;return-a+n-1}function CM(e,t,r,n,a){var i=(7+r-n)%7,o=zp(e,n,a),s=1+7*(t-1)+i+o,l,u;return s<=0?(l=e-1,u=Sf(l)+s):s>Sf(e)?(l=e+1,u=s-Sf(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Cf(e,t,r){var n=zp(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Gi(o,t,r)):a>Gi(e.year(),t,r)?(i=a-Gi(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Gi(e,t,r){var n=zp(e,t,r),a=zp(e+1,t,r);return(Sf(e)-n+a)/7}ze("w",["ww",2],"wo","week"),ze("W",["WW",2],"Wo","isoWeek"),Pe("w",Gt,_u),Pe("ww",Gt,Pn),Pe("W",Gt,_u),Pe("WW",Gt,Pn),bf(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=dt(e)});function DX(e){return Cf(e,this._week.dow,this._week.doy).week}var EX={dow:0,doy:6};function AX(){return this._week.dow}function MX(){return this._week.doy}function NX(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function IX(e){var t=Cf(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ze("d",0,"do","day"),ze("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ze("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ze("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ze("e",0,0,"weekday"),ze("E",0,0,"isoWeekday"),Pe("d",Gt),Pe("e",Gt),Pe("E",Gt),Pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),Pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Pe("dddd",function(e,t){return t.weekdaysRegex(e)}),bf(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:it(r).invalidWeekday=e}),bf(["d","e","E"],function(e,t,r,n){t[n]=dt(e)});function LX(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function kX(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function o_(e,t){return e.slice(t,7).concat(e.slice(0,t))}var PX="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),TM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),OX="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),RX=_f,VX=_f,BX=_f;function FX(e,t){var r=Ea(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?o_(r,this._week.dow):e?r[e.day()]:r}function zX(e){return e===!0?o_(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $X(e){return e===!0?o_(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function HX(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=ni([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=or.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=or.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=or.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=or.call(this._weekdaysParse,o),a!==-1||(a=or.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=or.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=or.call(this._shortWeekdaysParse,o),a!==-1||(a=or.call(this._weekdaysParse,o),a!==-1)?a:(a=or.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=or.call(this._minWeekdaysParse,o),a!==-1||(a=or.call(this._weekdaysParse,o),a!==-1)?a:(a=or.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function GX(e,t,r){var n,a,i;if(this._weekdaysParseExact)return HX.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=ni([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function UX(e){if(!this.isValid())return e!=null?this:NaN;var t=wf(this,"Day");return e!=null?(e=LX(e,this.localeData()),this.add(e-t,"d")):t}function WX(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function YX(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=kX(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function XX(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||s_.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ct(this,"_weekdaysRegex")||(this._weekdaysRegex=RX),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function KX(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||s_.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ct(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=VX),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jX(e){return this._weekdaysParseExact?(Ct(this,"_weekdaysRegex")||s_.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ct(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BX),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function s_(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=ni([2e3,1]).day(i),s=zi(this.weekdaysMin(o,"")),l=zi(this.weekdaysShort(o,"")),u=zi(this.weekdays(o,"")),t.push(s),r.push(l),n.push(u),a.push(s),a.push(l),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function l_(){return this.hours()%12||12}function ZX(){return this.hours()||24}ze("H",["HH",2],0,"hour"),ze("h",["hh",2],0,l_),ze("k",["kk",2],0,ZX),ze("hmm",0,0,function(){return""+l_.apply(this)+ii(this.minutes(),2)}),ze("hmmss",0,0,function(){return""+l_.apply(this)+ii(this.minutes(),2)+ii(this.seconds(),2)}),ze("Hmm",0,0,function(){return""+this.hours()+ii(this.minutes(),2)}),ze("Hmmss",0,0,function(){return""+this.hours()+ii(this.minutes(),2)+ii(this.seconds(),2)});function DM(e,t){ze(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}DM("a",!0),DM("A",!1);function EM(e,t){return t._meridiemParse}Pe("a",EM),Pe("A",EM),Pe("H",Gt,n_),Pe("h",Gt,_u),Pe("k",Gt,_u),Pe("HH",Gt,Pn),Pe("hh",Gt,Pn),Pe("kk",Gt,Pn),Pe("hmm",vM),Pe("hmmss",gM),Pe("Hmm",vM),Pe("Hmmss",gM),Rt(["H","HH"],yr),Rt(["k","kk"],function(e,t,r){var n=dt(e);t[yr]=n===24?0:n}),Rt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Rt(["h","hh"],function(e,t,r){t[yr]=dt(e),it(r).bigHour=!0}),Rt("hmm",function(e,t,r){var n=e.length-2;t[yr]=dt(e.substr(0,n)),t[Ma]=dt(e.substr(n)),it(r).bigHour=!0}),Rt("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yr]=dt(e.substr(0,n)),t[Ma]=dt(e.substr(n,2)),t[Hi]=dt(e.substr(a)),it(r).bigHour=!0}),Rt("Hmm",function(e,t,r){var n=e.length-2;t[yr]=dt(e.substr(0,n)),t[Ma]=dt(e.substr(n))}),Rt("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yr]=dt(e.substr(0,n)),t[Ma]=dt(e.substr(n,2)),t[Hi]=dt(e.substr(a))});function qX(e){return(e+"").toLowerCase().charAt(0)==="p"}var JX=/[ap]\.?m?\.?/i,QX=bu("Hours",!0);function eK(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var AM={calendar:HY,longDateFormat:YY,invalidDate:KY,ordinal:ZY,dayOfMonthOrdinalParse:qY,relativeTime:QY,months:vX,monthsShort:_M,week:EX,weekdays:PX,weekdaysMin:OX,weekdaysShort:TM,meridiemParse:JX},Xt={},Tf={},Df;function tK(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function MM(e){return e&&e.toLowerCase().replace("_","-")}function rK(e){for(var t=0,r,n,a,i;t<e.length;){for(i=MM(e[t]).split("-"),r=i.length,n=MM(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=$p(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&tK(i,n)>=r-1)break;r--}t++}return Df}function nK(e){return!!(e&&e.match("^[^/\\\\]*$"))}function $p(e){var t=null,r;if(Xt[e]===void 0&&typeof module<"u"&&module&&module.exports&&nK(e))try{t=Df._abbr,r=require,r("./locale/"+e),No(t)}catch{Xt[e]=null}return Xt[e]}function No(e,t){var r;return e&&(wn(t)?r=Ui(e):r=u_(e,t),r?Df=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Df._abbr}function u_(e,t){if(t!==null){var r,n=AM;if(t.abbr=e,Xt[e]!=null)cM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Xt[e]._config;else if(t.parentLocale!=null)if(Xt[t.parentLocale]!=null)n=Xt[t.parentLocale]._config;else if(r=$p(t.parentLocale),r!=null)n=r._config;else return Tf[t.parentLocale]||(Tf[t.parentLocale]=[]),Tf[t.parentLocale].push({name:e,config:t}),null;return Xt[e]=new Z0(j0(n,t)),Tf[e]&&Tf[e].forEach(function(a){u_(a.name,a.config)}),No(e),Xt[e]}else return delete Xt[e],null}function aK(e,t){if(t!=null){var r,n,a=AM;Xt[e]!=null&&Xt[e].parentLocale!=null?Xt[e].set(j0(Xt[e]._config,t)):(n=$p(e),n!=null&&(a=n._config),t=j0(a,t),n==null&&(t.abbr=e),r=new Z0(t),r.parentLocale=Xt[e],Xt[e]=r),No(e)}else Xt[e]!=null&&(Xt[e].parentLocale!=null?(Xt[e]=Xt[e].parentLocale,e===No()&&No(e)):Xt[e]!=null&&delete Xt[e]);return Xt[e]}function Ui(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Df;if(!Ea(e)){if(t=$p(e),t)return t;e=[e]}return rK(e)}function iK(){return q0(Xt)}function c_(e){var t,r=e._a;return r&&it(e).overflow===-2&&(t=r[$i]<0||r[$i]>11?$i:r[oi]<1||r[oi]>i_(r[Gr],r[$i])?oi:r[yr]<0||r[yr]>24||r[yr]===24&&(r[Ma]!==0||r[Hi]!==0||r[Ls]!==0)?yr:r[Ma]<0||r[Ma]>59?Ma:r[Hi]<0||r[Hi]>59?Hi:r[Ls]<0||r[Ls]>999?Ls:-1,it(e)._overflowDayOfYear&&(t<Gr||t>oi)&&(t=oi),it(e)._overflowWeeks&&t===-1&&(t=uX),it(e)._overflowWeekday&&t===-1&&(t=cX),it(e).overflow=t),e}var oK=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sK=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lK=/Z|[+-]\d\d(?::?\d\d)?/,Hp=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],f_=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uK=/^\/?Date\((-?\d+)/i,cK=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fK={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function NM(e){var t,r,n=e._i,a=oK.exec(n)||sK.exec(n),i,o,s,l,u=Hp.length,c=f_.length;if(a){for(it(e).iso=!0,t=0,r=u;t<r;t++)if(Hp[t][1].exec(a[1])){o=Hp[t][0],i=Hp[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=c;t<r;t++)if(f_[t][1].exec(a[3])){s=(a[2]||" ")+f_[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(lK.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(l||""),d_(e)}else e._isValid=!1}function hK(e,t,r,n,a,i){var o=[dK(e),_M.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function dK(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pK(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vK(e,t,r){if(e){var n=TM.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return it(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function gK(e,t,r){if(e)return fK[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function IM(e){var t=cK.exec(pK(e._i)),r;if(t){if(r=hK(t[4],t[3],t[2],t[5],t[6],t[7]),!vK(t[1],r,e))return;e._a=r,e._tzm=gK(t[8],t[9],t[10]),e._d=xf.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),it(e).rfc2822=!0}else e._isValid=!1}function mK(e){var t=uK.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(NM(e),e._isValid===!1)delete e._isValid;else return;if(IM(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:De.createFromInputFallback(e)}De.createFromInputFallback=jn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Su(e,t,r){return e??t??r}function yK(e){var t=new Date(De.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function h_(e){var t,r,n=[],a,i,o;if(!e._d){for(a=yK(e),e._w&&e._a[oi]==null&&e._a[$i]==null&&_K(e),e._dayOfYear!=null&&(o=Su(e._a[Gr],a[Gr]),(e._dayOfYear>Sf(o)||e._dayOfYear===0)&&(it(e)._overflowDayOfYear=!0),r=xf(o,0,e._dayOfYear),e._a[$i]=r.getUTCMonth(),e._a[oi]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yr]===24&&e._a[Ma]===0&&e._a[Hi]===0&&e._a[Ls]===0&&(e._nextDay=!0,e._a[yr]=0),e._d=(e._useUTC?xf:TX).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(it(e).weekdayMismatch=!0)}}function _K(e){var t,r,n,a,i,o,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=Su(t.GG,e._a[Gr],Cf(Ut(),1,4).year),n=Su(t.W,1),a=Su(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=Cf(Ut(),i,o),r=Su(t.gg,e._a[Gr],u.year),n=Su(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Gi(r,i,o)?it(e)._overflowWeeks=!0:l!=null?it(e)._overflowWeekday=!0:(s=CM(r,n,a,i,o),e._a[Gr]=s.year,e._dayOfYear=s.dayOfYear)}De.ISO_8601=function(){},De.RFC_2822=function(){};function d_(e){if(e._f===De.ISO_8601){NM(e);return}if(e._f===De.RFC_2822){IM(e);return}e._a=[],it(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,u,c;for(a=fM(e._f,e._locale).match(J0)||[],c=a.length,r=0;r<c;r++)i=a[r],n=(t.match(oX(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&it(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),mu[i]?(n?it(e).empty=!1:it(e).unusedTokens.push(i),lX(i,n,e)):e._strict&&!n&&it(e).unusedTokens.push(i);it(e).charsLeftOver=s-l,t.length>0&&it(e).unusedInput.push(t),e._a[yr]<=12&&it(e).bigHour===!0&&e._a[yr]>0&&(it(e).bigHour=void 0),it(e).parsedDateParts=e._a.slice(0),it(e).meridiem=e._meridiem,e._a[yr]=bK(e._locale,e._a[yr],e._meridiem),u=it(e).era,u!==null&&(e._a[Gr]=e._locale.erasConvertYear(u,e._a[Gr])),h_(e),c_(e)}function bK(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function SK(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){it(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=K0({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],d_(t),Y0(t)&&(o=!0),i+=it(t).charsLeftOver,i+=it(t).unusedTokens.length*10,it(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));Mo(e,r||t)}function wK(e){if(!e._d){var t=e_(e._i),r=t.day===void 0?t.date:t.day;e._a=oM([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),h_(e)}}function xK(e){var t=new yf(c_(LM(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function LM(e){var t=e._i,r=e._f;return e._locale=e._locale||Ui(e._l),t===null||r===void 0&&t===""?Np({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Aa(t)?new yf(c_(t)):(mf(t)?e._d=t:Ea(r)?SK(e):r?d_(e):CK(e),Y0(e)||(e._d=null),e))}function CK(e){var t=e._i;wn(t)?e._d=new Date(De.now()):mf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?mK(e):Ea(t)?(e._a=oM(t.slice(0),function(r){return parseInt(r,10)}),h_(e)):Is(t)?wK(e):Fi(t)?e._d=new Date(t):De.createFromInputFallback(e)}function kM(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Is(e)&&U0(e)||Ea(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,xK(i)}function Ut(e,t,r,n){return kM(e,t,r,n,!1)}var TK=jn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ut.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Np()}),DK=jn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ut.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Np()});function PM(e,t){var r,n;if(t.length===1&&Ea(t[0])&&(t=t[0]),!t.length)return Ut();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function EK(){var e=[].slice.call(arguments,0);return PM("isBefore",e)}function AK(){var e=[].slice.call(arguments,0);return PM("isAfter",e)}var MK=function(){return Date.now?Date.now():+new Date},Ef=["year","quarter","month","week","day","hour","minute","second","millisecond"];function NK(e){var t,r=!1,n,a=Ef.length;for(t in e)if(Ct(e,t)&&!(or.call(Ef,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[Ef[n]]){if(r)return!1;parseFloat(e[Ef[n]])!==dt(e[Ef[n]])&&(r=!0)}return!0}function IK(){return this._isValid}function LK(){return Na(NaN)}function Gp(e){var t=e_(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=NK(t),this._milliseconds=+c+u*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=Ui(),this._bubble()}function Up(e){return e instanceof Gp}function p_(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function kK(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)dt(e[o])!==dt(t[o])&&i++;return i+a}function OM(e,t){ze(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ii(~~(r/60),2)+t+ii(~~r%60,2)})}OM("Z",":"),OM("ZZ",""),Pe("Z",Vp),Pe("ZZ",Vp),Rt(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=v_(Vp,e)});var PK=/([\+\-]|\d\d)/gi;function v_(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(PK)||["-",0,0],i=+(a[1]*60)+dt(a[2]),i===0?0:a[0]==="+"?i:-i)}function g_(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Aa(e)||mf(e)?e.valueOf():Ut(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),De.updateOffset(r,!1),r):Ut(e).local()}function m_(e){return-Math.round(e._d.getTimezoneOffset())}De.updateOffset=function(){};function OK(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=v_(Vp,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=m_(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?FM(this,Na(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,De.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:m_(this)}function RK(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function VK(e){return this.utcOffset(0,e)}function BK(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(m_(this),"m")),this}function FK(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=v_(aX,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zK(e){return this.isValid()?(e=e?Ut(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function $K(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HK(){if(!wn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return K0(e,this),e=LM(e),e._a?(t=e._isUTC?ni(e._a):Ut(e._a),this._isDSTShifted=this.isValid()&&kK(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GK(){return this.isValid()?!this._isUTC:!1}function UK(){return this.isValid()?this._isUTC:!1}function RM(){return this.isValid()?this._isUTC&&this._offset===0:!1}var WK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Na(e,t){var r=e,n=null,a,i,o;return Up(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Fi(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=WK.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:dt(n[oi])*a,h:dt(n[yr])*a,m:dt(n[Ma])*a,s:dt(n[Hi])*a,ms:dt(p_(n[Ls]*1e3))*a}):(n=YK.exec(e))?(a=n[1]==="-"?-1:1,r={y:ks(n[2],a),M:ks(n[3],a),w:ks(n[4],a),d:ks(n[5],a),h:ks(n[6],a),m:ks(n[7],a),s:ks(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=XK(Ut(r.from),Ut(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Gp(r),Up(e)&&Ct(e,"_locale")&&(i._locale=e._locale),Up(e)&&Ct(e,"_isValid")&&(i._isValid=e._isValid),i}Na.fn=Gp.prototype,Na.invalid=LK;function ks(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function VM(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function XK(e,t){var r;return e.isValid()&&t.isValid()?(t=g_(t,e),e.isBefore(t)?r=VM(e,t):(r=VM(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function BM(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(cM(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=Na(r,n),FM(this,a,e),this}}function FM(e,t,r,n){var a=t._milliseconds,i=p_(t._days),o=p_(t._months);e.isValid()&&(n=n??!0,o&&SM(e,wf(e,"Month")+o*r),i&&yM(e,"Date",wf(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&De.updateOffset(e,i||o))}var KK=BM(1,"add"),jK=BM(-1,"subtract");function zM(e){return typeof e=="string"||e instanceof String}function ZK(e){return Aa(e)||mf(e)||zM(e)||Fi(e)||JK(e)||qK(e)||e===null||e===void 0}function qK(e){var t=Is(e)&&!U0(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||Ct(e,i);return t&&r}function JK(e){var t=Ea(e),r=!1;return t&&(r=e.filter(function(n){return!Fi(n)&&zM(e)}).length===0),t&&r}function QK(e){var t=Is(e)&&!U0(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Ct(e,i);return t&&r}function ej(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function tj(e,t){arguments.length===1&&(arguments[0]?ZK(arguments[0])?(e=arguments[0],t=void 0):QK(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ut(),n=g_(r,this).startOf("day"),a=De.calendarFormat(this,n)||"sameElse",i=t&&(ai(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Ut(r)))}function rj(){return new yf(this)}function nj(e,t){var r=Aa(e)?e:Ut(e);return this.isValid()&&r.isValid()?(t=Zn(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function aj(e,t){var r=Aa(e)?e:Ut(e);return this.isValid()&&r.isValid()?(t=Zn(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function ij(e,t,r,n){var a=Aa(e)?e:Ut(e),i=Aa(t)?t:Ut(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function oj(e,t){var r=Aa(e)?e:Ut(e),n;return this.isValid()&&r.isValid()?(t=Zn(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function sj(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function lj(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uj(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=g_(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=Zn(t),t){case"year":i=Wp(this,n)/12;break;case"month":i=Wp(this,n);break;case"quarter":i=Wp(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:qn(i)}function Wp(e,t){if(e.date()<t.date())return-Wp(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}De.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",De.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cj(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fj(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Lp(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ai(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Lp(r,"Z")):Lp(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hj(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function dj(e){e||(e=this.isUtc()?De.defaultFormatUtc:De.defaultFormat);var t=Lp(this,e);return this.localeData().postformat(t)}function pj(e,t){return this.isValid()&&(Aa(e)&&e.isValid()||Ut(e).isValid())?Na({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vj(e){return this.from(Ut(),e)}function gj(e,t){return this.isValid()&&(Aa(e)&&e.isValid()||Ut(e).isValid())?Na({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mj(e){return this.to(Ut(),e)}function $M(e){var t;return e===void 0?this._locale._abbr:(t=Ui(e),t!=null&&(this._locale=t),this)}var HM=jn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function GM(){return this._locale}var Yp=1e3,wu=60*Yp,Xp=60*wu,UM=(365*400+97)*24*Xp;function xu(e,t){return(e%t+t)%t}function WM(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-UM:new Date(e,t,r).valueOf()}function YM(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-UM:Date.UTC(e,t,r)}function yj(e){var t,r;if(e=Zn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YM:WM,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=xu(t+(this._isUTC?0:this.utcOffset()*wu),Xp);break;case"minute":t=this._d.valueOf(),t-=xu(t,wu);break;case"second":t=this._d.valueOf(),t-=xu(t,Yp);break}return this._d.setTime(t),De.updateOffset(this,!0),this}function _j(e){var t,r;if(e=Zn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?YM:WM,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Xp-xu(t+(this._isUTC?0:this.utcOffset()*wu),Xp)-1;break;case"minute":t=this._d.valueOf(),t+=wu-xu(t,wu)-1;break;case"second":t=this._d.valueOf(),t+=Yp-xu(t,Yp)-1;break}return this._d.setTime(t),De.updateOffset(this,!0),this}function bj(){return this._d.valueOf()-(this._offset||0)*6e4}function Sj(){return Math.floor(this.valueOf()/1e3)}function wj(){return new Date(this.valueOf())}function xj(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cj(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tj(){return this.isValid()?this.toISOString():null}function Dj(){return Y0(this)}function Ej(){return Mo({},it(this))}function Aj(){return it(this).overflow}function Mj(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ze("N",0,0,"eraAbbr"),ze("NN",0,0,"eraAbbr"),ze("NNN",0,0,"eraAbbr"),ze("NNNN",0,0,"eraName"),ze("NNNNN",0,0,"eraNarrow"),ze("y",["y",1],"yo","eraYear"),ze("y",["yy",2],0,"eraYear"),ze("y",["yyy",3],0,"eraYear"),ze("y",["yyyy",4],0,"eraYear"),Pe("N",y_),Pe("NN",y_),Pe("NNN",y_),Pe("NNNN",zj),Pe("NNNNN",$j),Rt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?it(r).era=a:it(r).invalidEra=e}),Pe("y",yu),Pe("yy",yu),Pe("yyy",yu),Pe("yyyy",yu),Pe("yo",Hj),Rt(["y","yy","yyy","yyyy"],Gr),Rt(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Gr]=r._locale.eraYearOrdinalParse(e,a):t[Gr]=parseInt(e,10)});function Nj(e,t){var r,n,a,i=this._eras||Ui("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=De(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=De(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function Ij(e,t,r){var n,a,i=this.eras(),o,s,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([o,s,l].indexOf(e)>=0)return i[n]}function Lj(e,t){var r=e.since<=e.until?1:-1;return t===void 0?De(e.since).year():De(e.since).year()+(t-e.offset)*r}function kj(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function Pj(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function Oj(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Rj(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-De(a[e].since).year())*r+a[e].offset;return this.year()}function Vj(e){return Ct(this,"_erasNameRegex")||__.call(this),e?this._erasNameRegex:this._erasRegex}function Bj(e){return Ct(this,"_erasAbbrRegex")||__.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fj(e){return Ct(this,"_erasNarrowRegex")||__.call(this),e?this._erasNarrowRegex:this._erasRegex}function y_(e,t){return t.erasAbbrRegex(e)}function zj(e,t){return t.erasNameRegex(e)}function $j(e,t){return t.erasNarrowRegex(e)}function Hj(e,t){return t._eraYearOrdinalRegex||yu}function __(){var e=[],t=[],r=[],n=[],a,i,o,s,l,u=this.eras();for(a=0,i=u.length;a<i;++a)o=zi(u[a].name),s=zi(u[a].abbr),l=zi(u[a].narrow),t.push(o),e.push(s),r.push(l),n.push(o),n.push(s),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}ze(0,["gg",2],0,function(){return this.weekYear()%100}),ze(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kp(e,t){ze(0,[e,e.length],0,t)}Kp("gggg","weekYear"),Kp("ggggg","weekYear"),Kp("GGGG","isoWeekYear"),Kp("GGGGG","isoWeekYear"),Pe("G",Rp),Pe("g",Rp),Pe("GG",Gt,Pn),Pe("gg",Gt,Pn),Pe("GGGG",r_,t_),Pe("gggg",r_,t_),Pe("GGGGG",Op,kp),Pe("ggggg",Op,kp),bf(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=dt(e)}),bf(["gg","GG"],function(e,t,r,n){t[n]=De.parseTwoDigitYear(e)});function Gj(e){return XM.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Uj(e){return XM.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wj(){return Gi(this.year(),1,4)}function Yj(){return Gi(this.isoWeekYear(),1,4)}function Xj(){var e=this.localeData()._week;return Gi(this.year(),e.dow,e.doy)}function Kj(){var e=this.localeData()._week;return Gi(this.weekYear(),e.dow,e.doy)}function XM(e,t,r,n,a){var i;return e==null?Cf(this,n,a).year:(i=Gi(e,n,a),t>i&&(t=i),jj.call(this,e,t,r,n,a))}function jj(e,t,r,n,a){var i=CM(e,t,r,n,a),o=xf(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}ze("Q",0,"Qo","quarter"),Pe("Q",dM),Rt("Q",function(e,t){t[$i]=(dt(e)-1)*3});function Zj(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ze("D",["DD",2],"Do","date"),Pe("D",Gt,_u),Pe("DD",Gt,Pn),Pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Rt(["D","DD"],oi),Rt("Do",function(e,t){t[oi]=dt(e.match(Gt)[0])});var KM=bu("Date",!0);ze("DDD",["DDDD",3],"DDDo","dayOfYear"),Pe("DDD",Pp),Pe("DDDD",pM),Rt(["DDD","DDDD"],function(e,t,r){r._dayOfYear=dt(e)});function qj(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ze("m",["mm",2],0,"minute"),Pe("m",Gt,n_),Pe("mm",Gt,Pn),Rt(["m","mm"],Ma);var Jj=bu("Minutes",!1);ze("s",["ss",2],0,"second"),Pe("s",Gt,n_),Pe("ss",Gt,Pn),Rt(["s","ss"],Hi);var Qj=bu("Seconds",!1);ze("S",0,0,function(){return~~(this.millisecond()/100)}),ze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ze(0,["SSS",3],0,"millisecond"),ze(0,["SSSS",4],0,function(){return this.millisecond()*10}),ze(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ze(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ze(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ze(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ze(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Pe("S",Pp,dM),Pe("SS",Pp,Pn),Pe("SSS",Pp,pM);var Io,jM;for(Io="SSSS";Io.length<=9;Io+="S")Pe(Io,yu);function eZ(e,t){t[Ls]=dt(("0."+e)*1e3)}for(Io="S";Io.length<=9;Io+="S")Rt(Io,eZ);jM=bu("Milliseconds",!1),ze("z",0,0,"zoneAbbr"),ze("zz",0,0,"zoneName");function tZ(){return this._isUTC?"UTC":""}function rZ(){return this._isUTC?"Coordinated Universal Time":""}var ve=yf.prototype;ve.add=KK,ve.calendar=tj,ve.clone=rj,ve.diff=uj,ve.endOf=_j,ve.format=dj,ve.from=pj,ve.fromNow=vj,ve.to=gj,ve.toNow=mj,ve.get=hX,ve.invalidAt=Aj,ve.isAfter=nj,ve.isBefore=aj,ve.isBetween=ij,ve.isSame=oj,ve.isSameOrAfter=sj,ve.isSameOrBefore=lj,ve.isValid=Dj,ve.lang=HM,ve.locale=$M,ve.localeData=GM,ve.max=DK,ve.min=TK,ve.parsingFlags=Ej,ve.set=dX,ve.startOf=yj,ve.subtract=jK,ve.toArray=xj,ve.toObject=Cj,ve.toDate=wj,ve.toISOString=fj,ve.inspect=hj,typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ve.toJSON=Tj,ve.toString=cj,ve.unix=Sj,ve.valueOf=bj,ve.creationData=Mj,ve.eraName=kj,ve.eraNarrow=Pj,ve.eraAbbr=Oj,ve.eraYear=Rj,ve.year=mM,ve.isLeapYear=fX,ve.weekYear=Gj,ve.isoWeekYear=Uj,ve.quarter=ve.quarters=Zj,ve.month=wM,ve.daysInMonth=wX,ve.week=ve.weeks=NX,ve.isoWeek=ve.isoWeeks=IX,ve.weeksInYear=Xj,ve.weeksInWeekYear=Kj,ve.isoWeeksInYear=Wj,ve.isoWeeksInISOWeekYear=Yj,ve.date=KM,ve.day=ve.days=UX,ve.weekday=WX,ve.isoWeekday=YX,ve.dayOfYear=qj,ve.hour=ve.hours=QX,ve.minute=ve.minutes=Jj,ve.second=ve.seconds=Qj,ve.millisecond=ve.milliseconds=jM,ve.utcOffset=OK,ve.utc=VK,ve.local=BK,ve.parseZone=FK,ve.hasAlignedHourOffset=zK,ve.isDST=$K,ve.isLocal=GK,ve.isUtcOffset=UK,ve.isUtc=RM,ve.isUTC=RM,ve.zoneAbbr=tZ,ve.zoneName=rZ,ve.dates=jn("dates accessor is deprecated. Use date instead.",KM),ve.months=jn("months accessor is deprecated. Use month instead",wM),ve.years=jn("years accessor is deprecated. Use year instead",mM),ve.zone=jn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RK),ve.isDSTShifted=jn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HK);function nZ(e){return Ut(e*1e3)}function aZ(){return Ut.apply(null,arguments).parseZone()}function ZM(e){return e}var Tt=Z0.prototype;Tt.calendar=GY,Tt.longDateFormat=XY,Tt.invalidDate=jY,Tt.ordinal=JY,Tt.preparse=ZM,Tt.postformat=ZM,Tt.relativeTime=eX,Tt.pastFuture=tX,Tt.set=$Y,Tt.eras=Nj,Tt.erasParse=Ij,Tt.erasConvertYear=Lj,Tt.erasAbbrRegex=Bj,Tt.erasNameRegex=Vj,Tt.erasNarrowRegex=Fj,Tt.months=yX,Tt.monthsShort=_X,Tt.monthsParse=SX,Tt.monthsRegex=CX,Tt.monthsShortRegex=xX,Tt.week=DX,Tt.firstDayOfYear=MX,Tt.firstDayOfWeek=AX,Tt.weekdays=FX,Tt.weekdaysMin=$X,Tt.weekdaysShort=zX,Tt.weekdaysParse=GX,Tt.weekdaysRegex=XX,Tt.weekdaysShortRegex=KX,Tt.weekdaysMinRegex=jX,Tt.isPM=qX,Tt.meridiem=eK;function jp(e,t,r,n){var a=Ui(),i=ni().set(n,t);return a[r](i,e)}function qM(e,t,r){if(Fi(e)&&(t=e,e=void 0),e=e||"",t!=null)return jp(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=jp(e,n,r,"month");return a}function b_(e,t,r,n){typeof e=="boolean"?(Fi(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Fi(t)&&(r=t,t=void 0),t=t||"");var a=Ui(),i=e?a._week.dow:0,o,s=[];if(r!=null)return jp(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=jp(t,(o+i)%7,n,"day");return s}function iZ(e,t){return qM(e,t,"months")}function oZ(e,t){return qM(e,t,"monthsShort")}function sZ(e,t,r){return b_(e,t,r,"weekdays")}function lZ(e,t,r){return b_(e,t,r,"weekdaysShort")}function uZ(e,t,r){return b_(e,t,r,"weekdaysMin")}No("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=dt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),De.lang=jn("moment.lang is deprecated. Use moment.locale instead.",No),De.langData=jn("moment.langData is deprecated. Use moment.localeData instead.",Ui);var Wi=Math.abs;function cZ(){var e=this._data;return this._milliseconds=Wi(this._milliseconds),this._days=Wi(this._days),this._months=Wi(this._months),e.milliseconds=Wi(e.milliseconds),e.seconds=Wi(e.seconds),e.minutes=Wi(e.minutes),e.hours=Wi(e.hours),e.months=Wi(e.months),e.years=Wi(e.years),this}function JM(e,t,r,n){var a=Na(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function fZ(e,t){return JM(this,e,t,1)}function hZ(e,t){return JM(this,e,t,-1)}function QM(e){return e<0?Math.floor(e):Math.ceil(e)}function dZ(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=QM(S_(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=qn(e/1e3),n.seconds=a%60,i=qn(a/60),n.minutes=i%60,o=qn(i/60),n.hours=o%24,t+=qn(o/24),l=qn(e2(t)),r+=l,t-=QM(S_(l)),s=qn(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function e2(e){return e*4800/146097}function S_(e){return e*146097/4800}function pZ(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Zn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+e2(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(S_(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Yi(e){return function(){return this.as(e)}}var t2=Yi("ms"),vZ=Yi("s"),gZ=Yi("m"),mZ=Yi("h"),yZ=Yi("d"),_Z=Yi("w"),bZ=Yi("M"),SZ=Yi("Q"),wZ=Yi("y"),xZ=t2;function CZ(){return Na(this)}function TZ(e){return e=Zn(e),this.isValid()?this[e+"s"]():NaN}function Ps(e){return function(){return this.isValid()?this._data[e]:NaN}}var DZ=Ps("milliseconds"),EZ=Ps("seconds"),AZ=Ps("minutes"),MZ=Ps("hours"),NZ=Ps("days"),IZ=Ps("months"),LZ=Ps("years");function kZ(){return qn(this.days()/7)}var Xi=Math.round,Cu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PZ(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function OZ(e,t,r,n){var a=Na(e).abs(),i=Xi(a.as("s")),o=Xi(a.as("m")),s=Xi(a.as("h")),l=Xi(a.as("d")),u=Xi(a.as("M")),c=Xi(a.as("w")),f=Xi(a.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),d=d||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],d[2]=t,d[3]=+e>0,d[4]=n,PZ.apply(null,d)}function RZ(e){return e===void 0?Xi:typeof e=="function"?(Xi=e,!0):!1}function VZ(e,t){return Cu[e]===void 0?!1:t===void 0?Cu[e]:(Cu[e]=t,e==="s"&&(Cu.ss=t-1),!0)}function BZ(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Cu,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Cu,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=OZ(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var w_=Math.abs;function Tu(e){return(e>0)-(e<0)||+e}function Zp(){if(!this.isValid())return this.localeData().invalidDate();var e=w_(this._milliseconds)/1e3,t=w_(this._days),r=w_(this._months),n,a,i,o,s=this.asSeconds(),l,u,c,f;return s?(n=qn(e/60),a=qn(n/60),e%=60,n%=60,i=qn(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Tu(this._months)!==Tu(s)?"-":"",c=Tu(this._days)!==Tu(s)?"-":"",f=Tu(this._milliseconds)!==Tu(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")):"P0D"}var mt=Gp.prototype;mt.isValid=IK,mt.abs=cZ,mt.add=fZ,mt.subtract=hZ,mt.as=pZ,mt.asMilliseconds=t2,mt.asSeconds=vZ,mt.asMinutes=gZ,mt.asHours=mZ,mt.asDays=yZ,mt.asWeeks=_Z,mt.asMonths=bZ,mt.asQuarters=SZ,mt.asYears=wZ,mt.valueOf=xZ,mt._bubble=dZ,mt.clone=CZ,mt.get=TZ,mt.milliseconds=DZ,mt.seconds=EZ,mt.minutes=AZ,mt.hours=MZ,mt.days=NZ,mt.weeks=kZ,mt.months=IZ,mt.years=LZ,mt.humanize=BZ,mt.toISOString=Zp,mt.toString=Zp,mt.toJSON=Zp,mt.locale=$M,mt.localeData=GM,mt.toIsoString=jn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zp),mt.lang=HM,ze("X",0,0,"unix"),ze("x",0,0,"valueOf"),Pe("x",Rp),Pe("X",iX),Rt("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),Rt("x",function(e,t,r){r._d=new Date(dt(e))});//! moment.js
47
+ De.version="2.30.1",FY(Ut),De.fn=ve,De.min=EK,De.max=AK,De.now=MK,De.utc=ni,De.unix=nZ,De.months=iZ,De.isDate=mf,De.locale=No,De.invalid=Np,De.duration=Na,De.isMoment=Aa,De.weekdays=sZ,De.parseZone=aZ,De.localeData=Ui,De.isDuration=Up,De.monthsShort=oZ,De.weekdaysMin=uZ,De.defineLocale=u_,De.updateLocale=aK,De.locales=iK,De.weekdaysShort=lZ,De.normalizeUnits=Zn,De.relativeTimeRounding=RZ,De.relativeTimeThreshold=VZ,De.calendarFormat=ej,De.prototype=ve,De.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const FZ=e=>{let t=new Date(e);return(e===""||!e)&&(t=new Date),t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()},r2=(e,t)=>{e=new Date(e),t==null&&(t="yyyy-MM-dd HH:mm:ss"),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));let r={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(let n in r)if(new RegExp(`(${n})`).test(t)){let a=r[n]+"";t=t.replace(RegExp.$1,RegExp.$1.length===1?a:("00"+a).substr(a.length))}return t},zZ=Object.freeze(Object.defineProperty({__proto__:null,formatDate:FZ,formatDateTime:r2,getFormatDateStr:(e,t)=>{if(!e)return e;let r="",n=De(e);switch(t){case"date":r=n.format("YY-MM-DD");break;case"dates":r=n.format("MM-DD");break;case"dateTime":r=n.format("YY-MM-DD HH:mm");break;case"dateTimeSecond":r=n.format("YY-MM-DD HH:mm:ss");break}return r}},Symbol.toStringTag,{value:"Module"})),qp=e=>{if(!e)return e;let t=Array.isArray(e)?[]:{};try{t=e.constructor&&e.constructor===Array?[]:{}}catch{t=[]}if(typeof e!="object")return e;for(var r in e){if(!e[r]){t[r]=e[r];continue}e[r].constructor===RegExp||e[r].constructor===Date?t[r]=e[r]:typeof e[r]=="object"?t[r]=qp(e[r]):t[r]=e[r]}return t},$Z=(e,t)=>{for(var r=0;r<t.length;r++){var n=t[r];if(!(!n.bRequired||n.sType==="switch")&&(!e[n.sKey]&&e[n.sKey]!==0||e[n.sKey].length===0))return Ao.warning(`${n.sCaption}${$.$ntt("是必须的","菜单")}`),!1}return!0},HZ=(e,t)=>{const r=qp(t);Array.isArray(e)?e.splice(0,e.length,...r):(Object.keys(e).forEach(n=>delete e[n]),Object.assign(e,r))},Jp=(e,t)=>{if(!t||t.length===0||!e)return e;if(t.constructor!==Array)return x_(e,t);for(var r="",n=0;n<t.length;n++){var a=t[n];if(a&&(r=x_(e,a),!(!r||r==="")))break}return r},x_=(e,t)=>{if(!e)return"";if(!t)return e;if(t.indexOf(".")===-1)return e[t];var r=t.split(".");try{for(var n=qp(e),a=0;a<r.length;a++){var i=r[a];n=n[i]}return n}catch{return""}},GZ=(e,t)=>{var r="";for(var n in e){var a=e[n];if(a.sValue===null||a.sValue===void 0||a.sValue===""){a.bNotNull&&t&&t();continue}if(a.sType==="manySelect"||a.sType==="checkGroup"){if(a.sValue.length===0)continue;r+=a.sKey+"=";let s="";for(var i=0;i<a.sValue.length;i++)a.sValue[i]&&(s!==""&&(s+=","),s+=a.sSendFun?a.sSendFun(a.sValue[i]):C_(a.sValue[i]));r+=s+"&";continue}if(a.sType==="datetimerange"){if(!a.sValue||a.sValue===""||a.sValue.length===0)continue;var o=a.sKey.split(",");r+=o[0]+"="+(a.sSendFun?a.sSendFun(a.sValue[0]):Af(a.sValue[0]))+"&"+o[1]+"="+(a.sSendFun?a.sSendFun(a.sValue[1]):Af(a.sValue[1]))+"&";continue}if(a.sType==="datetime"){if(!a.sValue||a.sValue==="")continue;r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):r2(a.sValue))+"&";continue}if(a.sType==="date"){if(!a.sValue||a.sValue==="")continue;r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):Af(a.sValue))+"&";continue}r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):C_(a.sValue))+"&"}return r},UZ=e=>{if(!e||!e.length)return[];let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(n.sValue){const a=n.sKey.indexOf("@");let i=n.searchMode,s={key:n.sKey.substring(0,a),type:i,value:n.sValue};t.push(s)}}return t},C_=e=>encodeURIComponent(e),Af=e=>{if(!e||e===null)return"";var t=new Date(e);return t.getFullYear()+"-"+n2(t.getMonth()+1)+"-"+n2(t.getDate())};function n2(e){return e<10?"0"+e:e}const WZ=()=>{let e=new Date().getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(r==="x"?n:n&7|8).toString(16)})},YZ=e=>!e||e.indexOf("https")!==-1?e:e.indexOf("http")!==-1?`/hf_pub_api/loadFile?url=${e}`:"hf_pub_api"+e,XZ=(e,t)=>{for(var r=0;r<e.length-1;r++)for(var n=0;n<e.length-r-1;n++){var a=t?Jp(e[n],t):e[n],i=t?Jp(e[n+1],t):e[n+1];if(!(!a||!i)&&a>i){var o=e[n];e[n]=e[n+1],e[n+1]=o}}},KZ=(e,t)=>{if(!e)return e;t||(t=sessionStorage.getItem("nowUrl"));var r=localStorage.getItem("lang")||"cn",n=JSON.parse(sessionStorage.getItem("allLang")??"{}");if(n){if(n[t]){for(let a in n[t])if(n[t][a][r]===e)return a}if(n.all){for(let a in n.all)if(n.all[a][r]===e)return a}}return e},jZ=(e,t,r)=>{if(!r||r.length!=t.length)for(let n=0;n<t.length;n++)r.push("1");return e.sort(function(n,a){for(let i=0;i<t.length;i++){let o=t[i];if(r[i]=="1"){if(n[o]<a[o])return-1;if(n[o]>a[o])return 1}else{if(n[o]>a[o])return-1;if(n[o]<a[o])return 1}}return 0}),e},ZZ=(e,t)=>{if(!t)return;let r="";for(let n in t){let a=t[n];if(!a.sOrderType)continue;r&&(r+=",");let i=a.key;r+=`${i}@${a.sOrderType}`}localStorage.setItem(e+"_csOrder",r)},qZ=e=>{let t=e?e+"":$.$ntt("此操作将删除, 是否继续?");return Ao.confirm(t)},JZ=e=>{if(!e)return e;var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")},a2=function(){if(arguments.length===0)return;let e=arguments[0];return arguments.length===3?`${arguments[2]}的`+T_(e,arguments,!0):T_(e,arguments,!0)},T_=(e,t,r)=>{if(!e)return e;var n=e.match(/\[(\S*?)\]/g);if(!n)return e;for(var a=0;a<n.length;a++){var i=n[a],o=i.replace("[","").replace("]",""),s=Jp(t,o);!s&&r||(e=e.replace(i,s))}return e},D_=(e,t=300,r=!1)=>{let n=null;return function(...a){const i=this,o=()=>{n=null,r||e.apply(i,a)},s=r&&!n;n&&clearTimeout(n),n=setTimeout(o,t),s&&e.apply(i,a)}},QZ=(e,t=300)=>{let r=0;return function(...n){const a=Date.now();a-r>=t&&(e.apply(this,n),r=a)}};class i2{constructor(){az(this,"debounceMap",new Map)}getDebounced(t,r,n=300,a=!1){return this.debounceMap.has(t)||this.debounceMap.set(t,D_(r,n,a)),this.debounceMap.get(t)}clear(t){this.debounceMap.delete(t)}clearAll(){this.debounceMap.clear()}}const eq=new i2,tq=Object.freeze(Object.defineProperty({__proto__:null,DebounceManager:i2,arrayObjectSort:jZ,checkSaveData:(e,t,r)=>{if(!t||t.length===0)return;let n=!0;for(let a=0;a<t.length;a++){let i=t[a];for(let o in e){let s=e[o];if(s.sType==="date"&&(i[o]=Af(i[o])),!!s.bRequired&&typeof i[o]!="boolean"&&(!i[o]&&i[o]!==0||i[o].length===0))return Ao.error(a2($.$ntt("[1]是必须的","菜单"),s.sCaption,r)),n=!1,n}}return n},checkValid:$Z,debounce:D_,debounceManager:eq,deepCopy:qp,formatNumberRgx:JZ,generateUUID:WZ,getCmSearchFilter:GZ,getFilterObj:UZ,getImageSrc:YZ,getKeyByLang:KZ,getManyLevelData:Jp,getMoreLevelData:x_,getStringDate:Af,joinStr:a2,matchCaptionKey:T_,reassignment:HZ,setLocalOrderBy:ZZ,sortData:XZ,sureDelete:qZ,throttle:QZ,urlValueEncode:C_},Symbol.toStringTag,{value:"Module"})),rq={class:"searchClass"},nq=["title"],aq={style:{"margin-top":"-1px",border:"2px solid #f0f0f0",width:"130px","margin-left":"-80px","text-align":"center",background:"white"}},iq={key:1,class:"searchTab"},oq=["onClick"],sq={key:2,class:"unfold"},lq={ref:"searchCol",class:"searchCol"},uq={key:0,class:"fold"},cq=["title"],fq={style:{display:"flex","align-items":"center"}},hq={style:{"margin-left":"15px"}},dq={class:"dialog-footer"},pq={name:"cmSearch"},vq=h.defineComponent({...pq,props:{sFilterData:{},bShowSearch:{type:Boolean,default:()=>!0},isShowSwitch:{type:Boolean,default:()=>!0},name:{},size:{default:()=>"small"},iSpan:{default:()=>6},colHeight:{default:()=>"100%"},searchType:{default:()=>"POST"},bShowAnotherStyle:{type:Boolean,default:()=>!1}},emits:["searchClick","onShow","searchFold","getTabSearch"],setup(e,{emit:t}){let{proxy:r}=h.getCurrentInstance(),n=t,a=e,i=h.ref(""),o=h.ref(!1),s=h.ref(!0),l=h.ref(!1),u=h.ref(!1),c=h.ref(),f=h.ref({columnSpanNum:"6",rowNum:"3"}),d=h.ref({bCustom:!1,iSpan:6}),p=h.ref(12),v=[{value:"4",label:"6"},{value:"6",label:"4"},{value:"8",label:"3"},{value:"12",label:"2"},{value:"14",label:"1"}],g=h.ref({sKey:"",sSelectKey:"",sSelectLabel:"",sSelectItems:[],searchMode:"",searchKey:"",sValue:""}),m=h.ref(0),y=h.ref([]),_=h.ref([]);h.watch(()=>a.sFilterData,(Y,X)=>{y.value=Y,S(),b(Y),N()},{deep:!0,immediate:!0});function b(Y){let X=[];for(let fe=0;fe<Y.length;fe++){let we=Y[fe];if(we.sType=="Tab"){let de=we.sKey.indexOf("@");we.searchMode=we.sKey.substring(de+1),we.searchKey=we.sKey.substring(0,de),X.push(we);break}}if(X[0]){g.value=X[0];let fe=X[0].sSelectKey,we=X[0].sValue;X[0].sSelectItems.forEach((de,pe)=>{de[fe]==we&&(m.value=pe)})}}function S(){let Y=[];y.value.forEach(X=>{const fe=X.sKey.indexOf("@");X.searchMode=X.sKey.substring(fe+1),X.searchKey=X.sKey.substring(0,fe),X._checked&&X.sType!="Tab"&&Y.push(X)}),r.$utils.sortData(Y,"iOrder"),_.value=Y.slice(0,p.value)}let x=h.ref(!1);function w(){x.value=!x.value;let Y=[];y.value.forEach(X=>{X._checked&&X.sType!="Tab"&&Y.push(X)}),r.$utils.sortData(Y,"iOrder"),x.value?_.value=Y:_.value=Y.slice(0,p.value),n("searchFold")}let C=h.ref(!1);function T(Y){C.value=Y,Y?r.$refs.searchCol.style="height:0":r.$refs.searchCol.style="height:100%",n("searchFold",Y)}function D(Y=""){let X={};if(a.searchType=="GET"){let fe="";_.value.forEach(we=>{we.sValue&&(X[we.sKey]=we.sValue)}),Y?fe="&"+Y:fe=`&${g.value.sKey}=${item.sSelectKey}`,fe+="&"+r.$utils.getCmSearchFilter(_.value),n("searchClick",fe,X)}if(a.searchType=="POST"){let fe=[];_.value.forEach(we=>{if(we.sValue){let de={key:we.searchKey,type:we.searchMode,val:we.sValue};fe.push(de),X[we.sKey]=we.sValue}}),Y?fe.push(Y):fe.push({key:g.value.searchKey,type:g.value.searchKey,val:g.value.sValue}),n("searchClick",fe,X,_.value)}}const E=D_(Y=>{D(Y)},300);function A(){_.value.forEach(Y=>{Y.sValue=""})}function L(Y,X){n("getTabSearch",Y),m.value=X,g.value.sValue=Y[g.value.sSelectKey];let fe;a.searchType=="GET"&&(fe=`${g.value.sKey}=${g.value.sValue}`),a.searchType=="POST"&&(fe={key:g.value.searchKey,type:g.value.searchMode,val:g.value.sValue}),E(fe)}function N(){I()}function I(){k()}function k(){let Y=y.value,X=!0;if(c.value){for(let we in c.value)if(we!="columnSpanNum"&&we!="rowNum"){if(!c.value[we]._checked)continue;X=!1;break}P(c.value)}let fe=[];for(let we=0;we<Y.length;we++){let de=Y[we];de.bHide||fe.push(de)}for(let we=0;we<fe.length;we++){let de=fe[we];if(de.iOrder=we+1,X)de._checked=!0;else{let pe=c.value[de.sKey];pe&&(de._checked=pe._checked,de.iOrder=pe.iOrder)}}r.$utils.sortData(fe,"iOrder"),S()}function P(Y){let X=Y.columnSpanNum,fe=Y.rowNum,we=4;for(let de=0;de<v.length;de++){let pe=v[de];pe.value==X&&(we=pe.label)}p.value=fe*Number(we),d.value.bCustom=!0,d.value.iSpan=X,f.value.columnSpanNum=X,f.value.rowNum=fe}function V(Y){r.$utils.sureDelete($.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{u.value=!1,l.value=!1,Y==="filter"&&(c.value=null)})}function B(Y,X,fe){}function G(Y,X,fe){if(X===1){if(Y===0)return;let de=fe[Y-1];fe[Y-1]=fe[Y],fe[Y]=de,U(fe);return}if(Y===fe.length-1)return;let we=fe[Y+1];fe[Y+1]=fe[Y],fe[Y]=we,U(fe)}function U(Y){for(let X=0;X<Y.length;X++){let fe=Y[X];fe.iOrder=X+1}y.value=Y,S()}function W(){c.value={};for(var Y=y.value,X=0;X<Y.length;X++){var fe=Y[X];let we=fe.sKey,de={};de.sKey=fe.sKey,de._checked=fe._checked,de.iOrder=X+1,c.value[we]=de}c.value.columnSpanNum=f.value.columnSpanNum,c.value.rowNum=f.value.rowNum,JSON.stringify(c.value)}function re(Y){for(let X=0;X<_.value.length;X++)_.value[X].searchKey===Y.searchKey&&(_.value[X].sKey=`${Y.searchKey}@${Y.searchMode}`)}const le=h.computed(()=>{let Y={};return a.bShowAnotherStyle||(Y.display="flex",Y.flexDirection="column",Y.justifyContent="center",Y.marginTop="0px",Y.paddingLeft="8px"),Y});return h.onMounted(()=>{i.value=a.name+"_"+localStorage.getItem("lang")+"_"+$.sAppCode}),(Y,X)=>{const fe=h.resolveComponent("el-switch"),we=h.resolveComponent("el-icon"),de=h.resolveComponent("el-col"),pe=h.resolveComponent("el-row"),Ae=h.resolveComponent("el-button"),me=h.resolveComponent("el-button-group"),Ce=h.resolveComponent("el-option"),Qe=h.resolveComponent("el-select"),Ke=h.resolveComponent("el-input"),Ye=h.resolveComponent("el-table-column"),lt=h.resolveComponent("el-table"),_t=h.resolveComponent("el-dialog");return h.openBlock(),h.createElementBlock("div",rq,[Y.isShowSwitch?(h.openBlock(),h.createElementBlock("span",{key:0,style:{position:"absolute",opacity:"0.8","z-index":"998",right:"-10px",top:"-10px",display:"inline-block"},title:h.unref($).$ntt("显示/隐藏筛选条件","菜单"),onMouseover:X[2]||(X[2]=O=>h.isRef(o)?o.value=!0:o=!0),onMouseout:X[3]||(X[3]=O=>h.isRef(o)?o.value=!1:o=!1)},[h.createVNode(fe,{style:{"margin-right":"20px"},modelValue:h.unref(s),"onUpdate:modelValue":X[0]||(X[0]=O=>h.isRef(s)?s.value=O:s=O),"active-color":"var(--switchBgColor)"},null,8,["modelValue"]),h.withDirectives(h.createElementVNode("div",aq,[h.createElementVNode("div",{class:"closeAllItem",onClick:X[1]||(X[1]=O=>h.isRef(l)?l.value=!0:l=!0)},h.toDisplayString(h.unref($).$ntt("自定义条件展示","菜单")),1)],512),[[h.vShow,h.unref(o)&&h.unref(s)]])],40,nq)):h.createCommentVNode("",!0),h.unref(g).sSelectItems.length?(h.openBlock(),h.createElementBlock("div",iq,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(g).sSelectItems,(O,z)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([{"active-class":h.unref(m)==z},"searchBtn"]),key:z,onClick:oe=>L(O,z)},[h.createElementVNode("span",null,h.toDisplayString(O[h.unref(g).sSelectLabel]),1)],10,oq))),128))])):h.createCommentVNode("",!0),h.unref(C)&&h.unref(_).length?(h.openBlock(),h.createElementBlock("div",sq,[h.createVNode(we,null,{default:h.withCtx(()=>[h.createVNode(h.unref(lA),{onClick:X[4]||(X[4]=O=>T(!1))})]),_:1})])):h.createCommentVNode("",!0),h.createElementVNode("div",lq,[h.createVNode(pe,{gutter:16},{default:h.withCtx(()=>[h.createVNode(de,{span:20},{default:h.withCtx(()=>[h.createVNode(pe,{gutter:16},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(_),(O,z)=>(h.openBlock(),h.createBlock(de,{key:z,span:h.unref(d).bCustom?Number(h.unref(d).iSpan):Y.iSpan,colHeight:Y.colHeight,height:30},{default:h.withCtx(()=>[h.createVNode(aM,{slItem:O,size:Y.size,bSearch:!0,onSuccessChangeSearchMode:re},null,8,["slItem","size"])]),_:2},1032,["span","colHeight"]))),128))]),_:1})]),_:1}),Y.bShowAnotherStyle?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(de,{key:0,span:1},{default:h.withCtx(()=>X[12]||(X[12]=[h.createElementVNode("div",{class:"separateLine"},null,-1)])),_:1,__:[12]})),Y.sFilterData.length&&Y.bShowSearch?(h.openBlock(),h.createBlock(de,{key:1,span:3,style:h.normalizeStyle(le.value)},{default:h.withCtx(()=>[h.createVNode(me,{class:"ml-4"},{default:h.withCtx(()=>[h.createVNode(Ae,{size:"small",class:"btnClass",onClick:X[5]||(X[5]=O=>h.unref(E)())},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("搜索","菜单")),1)]),_:1}),h.unref(y).length>h.unref(p)&&h.unref(x)?(h.openBlock(),h.createBlock(Ae,{key:0,size:"small",class:"iconBtn",icon:h.unref(fA),onClick:w},null,8,["icon"])):h.createCommentVNode("",!0),h.unref(y).length>h.unref(p)&&!h.unref(x)?(h.openBlock(),h.createBlock(Ae,{key:1,size:"small",class:"iconBtn",icon:h.unref(lA),onClick:w},null,8,["icon"])):h.createCommentVNode("",!0)]),_:1}),h.createVNode(me,{class:"ml-4"},{default:h.withCtx(()=>[h.createVNode(Ae,{size:"small",class:"btnClass",onClick:A},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("重置","菜单")),1)]),_:1})]),_:1})]),_:1},8,["style"])):h.createCommentVNode("",!0)]),_:1}),!h.unref(C)&&h.unref(_).length?(h.openBlock(),h.createElementBlock("div",uq,[h.createVNode(we,null,{default:h.withCtx(()=>[h.createVNode(h.unref(fA),{onClick:X[6]||(X[6]=O=>T(!0))})]),_:1})])):h.createCommentVNode("",!0)],512),h.createVNode(_t,{width:"50%",modelValue:h.unref(l),"onUpdate:modelValue":X[11]||(X[11]=O=>h.isRef(l)?l.value=O:l=O),"z-index":1099},{footer:h.withCtx(()=>[h.createElementVNode("div",dq,[h.createVNode(Ae,{onClick:X[10]||(X[10]=O=>h.isRef(l)?l.value=!1:l=!1)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消","菜单")),1)]),_:1}),h.createVNode(Ae,{type:"primary",onClick:W},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确认","菜单")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",null,[h.createElementVNode("div",{title:h.unref($).$ntt("重置","菜单")},[h.createVNode(Ae,{circle:"",icon:"Refresh",onClick:V}),h.createElementVNode("span",null," PS: "+h.toDisplayString(h.unref($).$ntt("1.可点击“向上”/“向下”调整顺序","菜单")),1)],8,cq),X[13]||(X[13]=h.createElementVNode("div",{style:{padding:"10px"}},null,-1)),h.createElementVNode("div",fq,[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("默认显示列数","菜单")),1),h.createVNode(Qe,{modelValue:h.unref(f).columnSpanNum,"onUpdate:modelValue":X[7]||(X[7]=O=>h.unref(f).columnSpanNum=O),placeholder:"Select",style:{width:"240px","margin-left":"15px"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(v),O=>(h.openBlock(),h.createBlock(Ce,{key:O.value,label:O.label,value:O.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),h.createElementVNode("span",hq,h.toDisplayString(h.unref($).$ntt("默认显示行数","菜单")),1),h.createVNode(Ke,{modelValue:h.unref(f).rowNum,"onUpdate:modelValue":X[8]||(X[8]=O=>h.unref(f).rowNum=O),style:{width:"240px","margin-left":"15px"}},null,8,["modelValue"])]),X[14]||(X[14]=h.createElementVNode("div",{style:{padding:"10px"}},null,-1)),h.createVNode(lt,{border:"",size:"small",height:"300","header-row-class-name":"tbHeader",data:h.unref(y)},{default:h.withCtx(()=>[h.createVNode(Ye,{label:h.unref($).$ntt("序号","菜单"),width:"80"},{default:h.withCtx(O=>[h.createElementVNode("span",null,h.toDisplayString(O.$index+1),1)]),_:1},8,["label"]),h.createVNode(Ye,{label:h.unref($).$ntt("列表项","菜单")},{default:h.withCtx(O=>[h.createElementVNode("span",null,h.toDisplayString(O.row.sCaption),1)]),_:1},8,["label"]),h.createVNode(Ye,{label:h.unref($).$ntt("是否显示","菜单")},{default:h.withCtx(O=>[h.createElementVNode("div",null,[h.createVNode(fe,{modelValue:O.row._checked,"onUpdate:modelValue":z=>O.row._checked=z,size:"large",onChange:X[9]||(X[9]=z=>U(h.unref(y)))},{open:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("显示","菜单")),1)]),close:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Ye,{label:h.unref($).$ntt("操作","菜单")},{default:h.withCtx(O=>[h.createVNode(Ae,{size:"small",link:"",type:"primary",onClick:h.withModifiers(z=>G(O.$index,1,h.unref(y)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),h.createVNode(Ae,{size:"small",link:"",type:"primary",onClick:h.withModifiers(z=>G(O.$index,0,h.unref(y)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue"])])}}}),gq=sn(vq,[["__scopeId","data-v-c7db94b2"]]);var o2={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};let Qp=0,E_=null;function mq(){E_=C7.service({lock:!0,text:$.$ntt("加载中...","菜单"),spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.4)"})}function yq(){E_&&E_.close()}function _q(){Qp===0&&mq(),Qp++}function A_(){Qp--,Qp<=0&&yq()}const bq={response_error_del(e){const{response:t,code:r}=e,{status:n,statusText:a,data:i}=t||{};let o="错误信息",s="";if(!t&&!r)o="网络连接失败,请检查网络!",s="尝试关闭网站重新登陆!";else if(r==="ECONNABORTED")o="请求超时ECONNABORTED",s="Uncaught (in promise) Error: 请求超时 80000ms";else if(n===504)o="请求超时504",s=i;else if(n===404)o="404资源请求路径找不到",s=t.request.responseURL;else if(n===401&&a==="UNAUTHORIZED")self!==top&&parent.postMessage("login","*"),sessionStorage.removeItem("header"),s="UNAUTHORIZED-未授权401",o="身份验证失败,请重新登录!";else if(i.message)o=i.message;else if(i instanceof Blob){const l=new FileReader;l.readAsText(i),async function(){const c=await new Promise(function(f,d){l.onload=p=>{var g;const v=(g=p.target)==null?void 0:g.result;f(JSON.parse(v))}});o=c.error_title?c.error_title:"服务器异常",s=c.error_detail,Ao.notification(o,s)}();return}else Object.keys(i).length===4?(o=i.error_title?i.error_title:"服务器异常",s=i.error_detail):(o="服务器内部错误",s=i);Ao.notification(o,s)}},Mf=new Date;`${Mf.getFullYear()}`,Mf.getMonth()+1,`${Mf.getDate()}${Mf.getHours()}${Mf.getMinutes()}`;let M_=null;M_=ir.create({baseURL:"",timeout:8e4,headers:{"Content-Type":"application/json",authorization:$.requestToken??"111",Cookie:$.request.Cookie??"111",sign:$.request.sign??"111"}}),M_.interceptors.request.use(e=>(_q(),e),function(e){return A_(),Promise.reject(e)}),M_.interceptors.response.use(e=>{if(A_(),e.data instanceof Blob){const t=e.headers["content-disposition"];t&&t.split("=").length>1&&decodeURIComponent(t.split("=")[1])}return e.data.status&&(e.data.status===400||e.data.status===401)?Promise.reject(e):e.data.code&&e.data.code!==1?(e.data.code===2003&&sessionStorage.removeItem("header"),Promise.reject(e)):e},e=>(A_(),bq.response_error_del(e),Promise.reject(e)));const Sq={key:0,class:"demo-pagination-block positionPage"},wq={name:"cmTableList"},xq=h.defineComponent({...wq,props:{sFilterData:{},customFilterData:{default:()=>[]},searchTabList:{},sDataUrl:{},bAutoGetData:{type:Boolean,default:()=>!0},methodType:{default:()=>"POST"},name:{},sPageData:{default:()=>[]},bShowPage:{type:Boolean,default:()=>!0},iCurrentPage:{default:()=>1},iCurrentPageSize:{default:()=>20},getNowOtherDataUrl:{},beforeGetDataList:{},sMainKey:{default:()=>"guid"},itemList:{},sSumData:{},iAnotherHeight:{},bShowCustomColumn:{type:Boolean,default:()=>!0},bShowCustomWidth:{type:Boolean,default:()=>!0},isShowSwitch:{type:Boolean,default:()=>!0},size:{default:()=>"small"},initRowHeight:{default:()=>25},iSpan:{default:()=>4},ManualCurrentChange:{},ManualSizeChange:{},enableFilter:{type:Boolean,default:()=>!0}},emits:["sendGetUrl","getedData","handelRowClick","getTabSearch"],setup(e,{expose:t,emit:r}){let{proxy:n}=h.getCurrentInstance(),a=r;t({setDataList:y,setPageCount:_,getSelection:b,getDataList:v});let i=e,o=h.ref(1),s=h.ref(20),l=h.ref(0);u();function u(){o.value=i.iCurrentPage??1,s.value=i.iCurrentPageSize??20}function c(w){v(),i.ManualSizeChange&&i.ManualSizeChange(w)}function f(w){v(),i.ManualCurrentChange&&i.ManualCurrentChange(w)}function d(w,C,T,D){a("handelRowClick",w,C,T,D)}h.onMounted(()=>{i.name+""+localStorage.getItem("lang")+$.sAppCode}),h.watch(()=>i.sDataUrl,(w,C)=>{i.bAutoGetData&&v()},{deep:!0,immediate:!0});let p=h.ref([]);function v(){if(!i.sDataUrl)return;let w=!0,C=g(T=>{w=T});if(i.beforeGetDataList&&(w=i.beforeGetDataList(i.sFilterData)),!!w){if(i.methodType==="GET")a("sendGetUrl",C),n.$api.getUrlData(C).then(T=>{m(T)});else if(i.methodType==="POST"){let T={};if(i.customFilterData.length)T=n.$utils.getFilterObj(i.customFilterData);else if(T=n.$utils.getFilterObj(i.sFilterData),T.length&&!T[0].type){let E=i.sFilterData;E.forEach(A=>{const L=A.sKey.indexOf("@");A.searchMode=A.sKey.substring(L+1),A.searchKey=A.sKey.substring(0,L)}),T=n.$utils.getFilterObj(E)}let D={queryParams:T,pageNo:o.value,pageSize:s.value};n.$api.postUrlData(C,D).then(E=>{m(E)})}}}function g(w){if(i.methodType==="POST")return i.sDataUrl;if(i.getNowOtherDataUrl)return i.getNowOtherDataUrl(i.name,i.sFilterData,w);var C="";i.sPageData.length>0&&i.bShowPage&&(C+="&"+i.sPageData[0]+"="+o.value,C+="&"+i.sPageData[1]+"="+s.value);var T=!0;i.sFilterData&&(C+="&"+n.$utils.getCmSearchFilter(i.sFilterData,()=>{T=!1})),w&&w(T),i.sDataUrl.substring(i.sDataUrl.length-1,i.sDataUrl.length)==="/"&&(C=C.replace("&","?"));let D=i.sDataUrl+C,E=localStorage.getItem(i.name+"_csOrder");return E&&(D.indexOf("csOrderBy")!==-1?D=D.replace("csOrderBy=","csOrderBy="+E+","):D=D+"&csOrderBy="+E),D}function m(w){p.value=[],i.sPageData.length>0&&i.sPageData[3]&&i.sPageData[3]!==""?p.value=n.$utils.getManyLevelData(w.data,i.sPageData[3]):p.value=w.data,_(w.data),a("getedData",p,w)}function y(w,C){p.value=w,C&&(o.value=C)}function _(w,C){w.data.content.length&&!C?(n.sPageData[2],w.data.totalCount,l.value=w.data.totalCount):w.length&&C?l.value=C:l.value=0}function b(){return n.$refs.cmTableVxe.getSelection()}function S(){n.$refs.cmTableVxe.getTableHeight()}function x(w){a("getTabSearch",w)}return(w,C)=>{const T=h.resolveComponent("cmSearch"),D=h.resolveComponent("cmTableVxe"),E=h.resolveComponent("el-pagination"),A=h.resolveComponent("el-config-provider");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(T,{sFilterData:w.sFilterData,onSearchClick:v,name:w.name,isShowSwitch:w.isShowSwitch,size:w.size,iSpan:w.iSpan,onSearchFold:S,onGetTabSearch:x,searchType:"POST"},null,8,["sFilterData","name","isShowSwitch","size","iSpan"]),h.createVNode(D,{ref:"cmTableVxe",name:w.name,sDataList:h.unref(p),sMainKey:w.sMainKey,"item-list":w.itemList,"s-sum-data":w.sSumData,enableFilter:w.enableFilter,iAnotherHeight:w.iAnotherHeight,bShowCustomColumn:w.bShowCustomColumn,bShowCustomWidth:w.bShowCustomWidth,size:w.size,initRowHeight:w.initRowHeight,onRowClick:d},null,8,["name","sDataList","sMainKey","item-list","s-sum-data","enableFilter","iAnotherHeight","bShowCustomColumn","bShowCustomWidth","size","initRowHeight"]),w.sPageData.length&&w.bShowPage?(h.openBlock(),h.createElementBlock("div",Sq,[h.createVNode(A,{locale:h.unref(o2)},{default:h.withCtx(()=>[h.createVNode(E,{class:"paginations",background:"",style:{"--el-color-primary":"var(--btnBgColor)"},"current-page":h.unref(o),"onUpdate:currentPage":C[0]||(C[0]=L=>h.isRef(o)?o.value=L:o=L),"page-size":h.unref(s),"onUpdate:pageSize":C[1]||(C[1]=L=>h.isRef(s)?s.value=L:s=L),"page-sizes":[20,50,100,500,1e3,5e3,1e4],size:"small",layout:"total, sizes, prev, pager, next, jumper",total:h.unref(l),onSizeChange:c,onCurrentChange:f},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])):h.createCommentVNode("",!0)])}}}),Cq=sn(xq,[["__scopeId","data-v-f6a58d7d"]]),Tq={class:"imgShow"},Dq={key:0,class:"img-box"},Eq=["src","imgurl","preview"],Aq={key:1},Mq={class:"img-box"},Nq=["src","imgurl","preview"],s2=sn(h.defineComponent({__name:"index",props:{sData:{type:Object,required:!0},sUrlKey:{type:String,required:!0}},setup(e){let{proxy:t}=h.getCurrentInstance(),r=e,n=h.computed(()=>$.noneBigImg),a=h.computed(()=>t.$utils.getManyLevelData(r.sData,r.sUrlKey));function i(o){return t.$utils.getImageSrc(o)}return(o,s)=>{const l=h.resolveComponent("el-carousel-item"),u=h.resolveComponent("el-carousel");return h.openBlock(),h.createElementBlock("div",Tq,[!h.unref(a)||!h.unref(a).includes(",")?(h.openBlock(),h.createElementBlock("div",Dq,[h.createElementVNode("img",{src:i(h.unref(a))||h.unref(n),imgurl:i(h.unref(a))||"none",style:{"max-height":"100%","max-width":"100%",cursor:"pointer"},preview:i(h.unref(a))||h.unref(n)},null,8,Eq)])):(h.openBlock(),h.createElementBlock("div",Aq,[h.createVNode(u,{class:"img-box-carousel",interval:5e3,arrow:"always",autoplay:!1,style:{width:"100%"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(a).split(","),c=>(h.openBlock(),h.createBlock(l,{key:c,autoplay:!1},{default:h.withCtx(()=>[h.createElementVNode("div",Mq,[h.createElementVNode("img",{src:i(c)||h.unref(n),imgurl:i(c)||"none",style:{"max-height":"100%","max-width":"100%",cursor:"pointer"},preview:i(c)||h.unref(n)},null,8,Nq)])]),_:2},1024))),128))]),_:1})]))])}}}),[["__scopeId","data-v-b0acb6e7"]]);var Iq=20,Lq=1,Os=1e6,l2=1e6,kq=-7,Pq=21,Oq=!1,Nf="[big.js] ",Rs=Nf+"Invalid ",ev=Rs+"decimal places",Rq=Rs+"rounding mode",u2=Nf+"Division by zero",Lt={},si=void 0,Vq=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function c2(){function e(t){var r=this;if(!(r instanceof e))return t===si?c2():new e(t);if(t instanceof e)r.s=t.s,r.e=t.e,r.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(Rs+"value");t=t===0&&1/t<0?"-0":String(t)}Bq(r,t)}r.constructor=e}return e.prototype=Lt,e.DP=Iq,e.RM=Lq,e.NE=kq,e.PE=Pq,e.strict=Oq,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Bq(e,t){var r,n,a;if(!Vq.test(t))throw Error(Rs+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),a=t.length,n=0;n<a&&t.charAt(n)=="0";)++n;if(n==a)e.c=[e.e=0];else{for(;a>0&&t.charAt(--a)=="0";);for(e.e=r-n-1,e.c=[],r=0;n<=a;)e.c[r++]=+t.charAt(n++)}return e}function Vs(e,t,r,n){var a=e.c;if(r===si&&(r=e.constructor.RM),r!==0&&r!==1&&r!==2&&r!==3)throw Error(Rq);if(t<1)n=r===3&&(n||!!a[0])||t===0&&(r===1&&a[0]>=5||r===2&&(a[0]>5||a[0]===5&&(n||a[1]!==si))),a.length=1,n?(e.e=e.e-t+1,a[0]=1):a[0]=e.e=0;else if(t<a.length){if(n=r===1&&a[t]>=5||r===2&&(a[t]>5||a[t]===5&&(n||a[t+1]!==si||a[t-1]&1))||r===3&&(n||!!a[0]),a.length=t,n){for(;++a[--t]>9;)if(a[t]=0,t===0){++e.e,a.unshift(1);break}}for(t=a.length;!a[--t];)a.pop()}return e}function Bs(e,t,r){var n=e.e,a=e.c.join(""),i=a.length;if(t)a=a.charAt(0)+(i>1?"."+a.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)a="0"+a;a="0."+a}else if(n>0)if(++n>i)for(n-=i;n--;)a+="0";else n<i&&(a=a.slice(0,n)+"."+a.slice(n));else i>1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&r?"-"+a:a}Lt.abs=function(){var e=new this.constructor(this);return e.s=1,e},Lt.cmp=function(e){var t,r=this,n=r.c,a=(e=new r.constructor(e)).c,i=r.s,o=e.s,s=r.e,l=e.e;if(!n[0]||!a[0])return n[0]?i:a[0]?-o:0;if(i!=o)return i;if(t=i<0,s!=l)return s>l^t?1:-1;for(o=(s=n.length)<(l=a.length)?s:l,i=-1;++i<o;)if(n[i]!=a[i])return n[i]>a[i]^t?1:-1;return s==l?0:s>l^t?1:-1},Lt.div=function(e){var t=this,r=t.constructor,n=t.c,a=(e=new r(e)).c,i=t.s==e.s?1:-1,o=r.DP;if(o!==~~o||o<0||o>Os)throw Error(ev);if(!a[0])throw Error(u2);if(!n[0])return e.s=i,e.c=[e.e=0],e;var s,l,u,c,f,d=a.slice(),p=s=a.length,v=n.length,g=n.slice(0,s),m=g.length,y=e,_=y.c=[],b=0,S=o+(y.e=t.e-e.e)+1;for(y.s=i,i=S<0?0:S,d.unshift(0);m++<s;)g.push(0);do{for(u=0;u<10;u++){if(s!=(m=g.length))c=s>m?1:-1;else for(f=-1,c=0;++f<s;)if(a[f]!=g[f]){c=a[f]>g[f]?1:-1;break}if(c<0){for(l=m==s?a:d;m;){if(g[--m]<l[m]){for(f=m;f&&!g[--f];)g[f]=9;--g[f],g[m]+=10}g[m]-=l[m]}for(;!g[0];)g.shift()}else break}_[b++]=c?u:++u,g[0]&&c?g[m]=n[p]||0:g=[n[p]]}while((p++<v||g[0]!==si)&&i--);return!_[0]&&b!=1&&(_.shift(),y.e--,S--),b>S&&Vs(y,S,r.RM,g[0]!==si),y},Lt.eq=function(e){return this.cmp(e)===0},Lt.gt=function(e){return this.cmp(e)>0},Lt.gte=function(e){return this.cmp(e)>-1},Lt.lt=function(e){return this.cmp(e)<0},Lt.lte=function(e){return this.cmp(e)<1},Lt.minus=Lt.sub=function(e){var t,r,n,a,i=this,o=i.constructor,s=i.s,l=(e=new o(e)).s;if(s!=l)return e.s=-l,i.plus(e);var u=i.c.slice(),c=i.e,f=e.c,d=e.e;if(!u[0]||!f[0])return f[0]?e.s=-l:u[0]?e=new o(i):e.s=1,e;if(s=c-d){for((a=s<0)?(s=-s,n=u):(d=c,n=f),n.reverse(),l=s;l--;)n.push(0);n.reverse()}else for(r=((a=u.length<f.length)?u:f).length,s=l=0;l<r;l++)if(u[l]!=f[l]){a=u[l]<f[l];break}if(a&&(n=u,u=f,f=n,e.s=-e.s),(l=(r=f.length)-(t=u.length))>0)for(;l--;)u[t++]=0;for(l=t;r>s;){if(u[--r]<f[r]){for(t=r;t&&!u[--t];)u[t]=9;--u[t],u[r]+=10}u[r]-=f[r]}for(;u[--l]===0;)u.pop();for(;u[0]===0;)u.shift(),--d;return u[0]||(e.s=1,u=[d=0]),e.c=u,e.e=d,e},Lt.mod=function(e){var t,r=this,n=r.constructor,a=r.s,i=(e=new n(e)).s;if(!e.c[0])throw Error(u2);return r.s=e.s=1,t=e.cmp(r)==1,r.s=a,e.s=i,t?new n(r):(a=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=a,n.RM=i,this.minus(r.times(e)))},Lt.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},Lt.plus=Lt.add=function(e){var t,r,n,a=this,i=a.constructor;if(e=new i(e),a.s!=e.s)return e.s=-e.s,a.minus(e);var o=a.e,s=a.c,l=e.e,u=e.c;if(!s[0]||!u[0])return u[0]||(s[0]?e=new i(a):e.s=a.s),e;if(s=s.slice(),t=o-l){for(t>0?(l=o,n=u):(t=-t,n=s),n.reverse();t--;)n.push(0);n.reverse()}for(s.length-u.length<0&&(n=u,u=s,s=n),t=u.length,r=0;t;s[t]%=10)r=(s[--t]=s[t]+u[t]+r)/10|0;for(r&&(s.unshift(r),++l),t=s.length;s[--t]===0;)s.pop();return e.c=s,e.e=l,e},Lt.pow=function(e){var t=this,r=new t.constructor("1"),n=r,a=e<0;if(e!==~~e||e<-l2||e>l2)throw Error(Rs+"exponent");for(a&&(e=-e);e&1&&(n=n.times(t)),e>>=1,!!e;)t=t.times(t);return a?r.div(n):n},Lt.prec=function(e,t){if(e!==~~e||e<1||e>Os)throw Error(Rs+"precision");return Vs(new this.constructor(this),e,t)},Lt.round=function(e,t){if(e===si)e=0;else if(e!==~~e||e<-Os||e>Os)throw Error(ev);return Vs(new this.constructor(this),e+this.e+1,t)},Lt.sqrt=function(){var e,t,r,n=this,a=n.constructor,i=n.s,o=n.e,s=new a("0.5");if(!n.c[0])return new a(n);if(i<0)throw Error(Nf+"No square root");i=Math.sqrt(+Bs(n,!0,!0)),i===0||i===1/0?(t=n.c.join(""),t.length+o&1||(t+="0"),i=Math.sqrt(t),o=((o+1)/2|0)-(o<0||o&1),e=new a((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+o)):e=new a(i+""),o=e.e+(a.DP+=4);do r=e,e=s.times(r.plus(n.div(r)));while(r.c.slice(0,o).join("")!==e.c.slice(0,o).join(""));return Vs(e,(a.DP-=4)+e.e+1,a.RM)},Lt.times=Lt.mul=function(e){var t,r=this,n=r.constructor,a=r.c,i=(e=new n(e)).c,o=a.length,s=i.length,l=r.e,u=e.e;if(e.s=r.s==e.s?1:-1,!a[0]||!i[0])return e.c=[e.e=0],e;for(e.e=l+u,o<s&&(t=a,a=i,i=t,u=o,o=s,s=u),t=new Array(u=o+s);u--;)t[u]=0;for(l=s;l--;){for(s=0,u=o+l;u>l;)s=t[u]+i[l]*a[u-l-1]+s,t[u--]=s%10,s=s/10|0;t[u]=s}for(s?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},Lt.toExponential=function(e,t){var r=this,n=r.c[0];if(e!==si){if(e!==~~e||e<0||e>Os)throw Error(ev);for(r=Vs(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return Bs(r,!0,!!n)},Lt.toFixed=function(e,t){var r=this,n=r.c[0];if(e!==si){if(e!==~~e||e<0||e>Os)throw Error(ev);for(r=Vs(new r.constructor(r),e+r.e+1,t),e=e+r.e+1;r.c.length<e;)r.c.push(0)}return Bs(r,!1,!!n)},Lt[Symbol.for("nodejs.util.inspect.custom")]=Lt.toJSON=Lt.toString=function(){var e=this,t=e.constructor;return Bs(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},Lt.toNumber=function(){var e=+Bs(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Nf+"Imprecise conversion");return e},Lt.toPrecision=function(e,t){var r=this,n=r.constructor,a=r.c[0];if(e!==si){if(e!==~~e||e<1||e>Os)throw Error(Rs+"precision");for(r=Vs(new n(r),e,t);r.c.length<e;)r.c.push(0)}return Bs(r,e<=r.e||r.e<=n.NE||r.e>=n.PE,!!a)},Lt.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Nf+"valueOf disallowed");return Bs(e,e.e<=t.NE||e.e>=t.PE,!0)};var Fq=c2();const zq=()=>{let e=window.navigator.userAgent;if(e.indexOf("MSIE")>=0)return"ie";if(e.indexOf("Firefox")>=0)return"Firefox";if(e.indexOf("Chrome")>=0)return"Chrome";if(e.indexOf("Opera")>=0)return"Opera";if(e.indexOf("Safari")>=0)return"Safari"},$q=(e,t)=>{zq()=="ie"||Hq(e,t)},Hq=function(){const e="data:application/vnd.ms-excel;base64,",t='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta charset="UTF-8"><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',r=function(a){return window.btoa(unescape(encodeURIComponent(a)))},n=(a,i)=>a.replace(/{(\w+)}/g,(o,s)=>i[s]);return(a,i)=>{const s=e+r(n(t,{worksheet:i,table:a}));if(navigator.userAgent.indexOf("Firefox")>-1)window.location.href=s;else{const l=document.createElement("a");l.href=s,l.download=i||"";let u;window.MouseEvent?u=new MouseEvent("click"):(u=document.createEvent("MouseEvents"),u.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null)),l.dispatchEvent(u)}}}(),Gq=(e,t,r)=>{const n={image:c,text:s,date:l,number:u};let a=e.reduce((f,d)=>(f+=`<th>${d.title}</th>`,f),"");a=`<thead><tr>${a}</tr></thead>`;let i=t.reduce((f,d)=>{const p=e.reduce((v,g)=>(v+=n[g.type||"text"](d[g.key],g),v),"");return f+=`<tr>${p}</tr>`,f},"");i=`<tbody>${i}</tbody>`;const o=a+i;$q(o,r);function s(f){return f||(f=""),`<td style="text-align: center;white-space: pre-wrap; vnd.ms-excel.numberformat:@">${f}</td>`}function l(f){return f||(f=""),`<td style="text-align: center;vnd.ms-excel.numberformat:yyyy/mm/dd">${f}</td>`}function u(f){f||(f="");let d=String(f).indexOf(".")+1,p=String(f).length-d;if(d===0)return`<td style="text-align: center;vnd.ms-excel.numberformat:#,##0">${f}</td>`;{let v="",g=0;for(;g<p;)v+="0",g++;return`<td style="text-align: center;vnd.ms-excel.numberformat:#,##0.${v}">${f}</td>`}}function c(f,d){if(!f)return'<td style="text-align: center"></td>';let p=Uq(f);return d=Object.assign({width:70,height:70},d),`<td style="width: ${d.width}px; height: ${d.height}px; text-align: center; vertical-align: middle"><img src="${p}" width=${d.width} height=${d.height}></td>`}};function Uq(e){if(!e)return e;let t=window.location.origin;return e.indexOf("https")!==-1?e:e.indexOf("http")!==-1?`${t}/hf_pub_api/loadFile?url=${e}`:`${t}/hf_pub_api`+e}const Wq={class:"vxeTableClass"},Yq={style:{position:"absolute","z-index":"9",right:"5px",top:"-20px",opacity:"0.8"}},Xq={class:"el-dropdown-link"},Kq=["title"],jq=["title"],Zq={style:{margin:"0 5px"}},qq={slot:"open"},Jq={slot:"close"},Qq={class:"dialog-footer"},eJ={style:{display:"flex"}},tJ={style:{width:"24%"}},rJ={class:"dialog-footer"},nJ={key:0},aJ={slot:"open"},iJ={slot:"close"},oJ={class:"dialog-footer"},sJ={name:"cmTableVxe"},lJ=h.defineComponent({...sJ,props:{name:{},sMainKey:{},sDataList:{},itemList:{},sSumData:{},iAnotherHeight:{},cellStyle:{},rowClassName:{},sAnotherOP:{},exportType:{default:()=>"1"},initRowHeight:{default:()=>30},bShowCustomColumn:{type:Boolean,default:()=>!0},bShowCustomWidth:{type:Boolean,default:()=>!0},align:{default:()=>"center"},enableFilter:{type:Boolean,default:()=>!0}},emits:["selectChange","refreshData","rowClick"],setup(e,{expose:t,emit:r}){let{proxy:n}=h.getCurrentInstance(),a=r;t({getSelection:Qe,setDataList:Ke,getTableHeight:P});let i=e,o=h.ref([]),s=h.ref([]),l=h.ref(!1),u="",c=[],f=h.ref([]),d=[],p=h.ref(30),v={},g=h.ref([]),m={},y=h.ref(400),_=h.ref(!1),b=h.ref([]),S=h.ref(!1),x=h.ref([]),w=h.ref(!1),C=h.ref(),T=h.ref([]),D=h.ref(0),E=h.ref([]),A=h.ref(""),L=h.ref(!1),N=h.ref(""),I=h.ref(!1);h.watch(()=>i.initRowHeight,(ne,ie)=>{ne&&(p.value=i.initRowHeight)},{deep:!0,immediate:!0}),h.watch(()=>i.sDataList,(ne,ie)=>{l.value=!0,setTimeout(()=>{o.value=ne,l.value=!1,Y()},10),s=n.$utils.deepCopy(ne)},{immediate:!0}),h.watch(()=>i.itemList,(ne,ie)=>{V();let se=n.$utils.deepCopy(ne);B(se)},{immediate:!0});let k=h.ref(null);h.onMounted(()=>{P()});function P(){h.nextTick(()=>{y.value=n.$utils.getTbHeight(k.value)+(i.iAnotherHeight??0)})}function V(){var ie;let ne=((ie=localStorage.getItem("lang"))==null?void 0:ie.replace(/"/g,""))??"";u=i.name+"_"+ne+"_"+$.sAppCode}function B(ne){f.value=[],c=[];for(let ie=0;ie<ne.length;ie++){let se=ne[ie];(se.bHide===void 0||se.bHide===null)&&(se.bHide=!0),(se.sortable===void 0||se.sortable===null)&&(se.sortable=!0),se.sKey||(se.sKey=n.$utils.generateUUID()),se._checked=!0,se.type==="selection"&&(se.type="checkbox",se.width=70),se.sType==="sSerialNo"&&(se.type="seq",se.sKey="serialNo_"+n.name,se.width=70),G(se),c.push(se)}d=n.$utils.deepCopy(c),U()}function G(ne){if(ne.render)return ne;switch(ne.sType){case"date":case"dateTime":ne.sValueFormat=(ie,se)=>{let xe=n.$utils.getManyLevelData(ie,ne.sKey);return n.$utils.getFormatDateStr(xe,ne.sType)};break;case"dateTimeSecond":ne.sValueFormat=(ie,se)=>{let xe=n.$utils.getManyLevelData(ie,ne.sKey);return n.$utils.getFormatDateStr(xe,ne.sType)};break;case"sPicture":p.value=60,ne.render=(ie,se)=>ie(s2,{sData:se.row,sUrlKey:ne.sKey});break;case"number":ne.render=(ie,se)=>{let xe=n.$utils.getManyLevelData(se.row,ne.sKey);return xe=n.$utils.formatNumberRgx(xe),ie("div",{style:{textAlign:"right"}},xe)};break}ne.sValueFormat&&(ne.render=(ie,se)=>{let xe="";return ne.sType==="number"&&(xe="right"),ie("div",{style:{textAlign:xe}},ne.sValueFormat(se.row,se.index))})}function U(){W()}function W(){return v=null,re(),""}function re(){if(v&&Object.keys(v).length)for(let ne=0;ne<c.length;ne++){let ie=c[ne],se=ie.title;if(v[se]){let xe=v[se];xe.width&&(ie.width=xe.width),xe.iOrder&&(ie.iOrder=xe.iOrder),xe.fixed&&(xe.fixed==="0"?delete ie.fixed:ie.fixed=xe.fixed),xe.sOrderType&&(ie.sOrderType=xe.sOrderType??"0"),(xe._checked===!1||xe._checked===!0)&&(ie._checked=xe._checked)}}else c=n.$utils.deepCopy(d);le()}function le(){let ne=n.$utils.deepCopy(c);n.$utils.sortData(ne,"iOrder"),ne&&(c=n.$utils.deepCopy(ne)),g.value=[];for(let ie=0;ie<c.length;ie++){let se=c[ie];if(se.sOrderType){let xe={field:se.sKey,order:se.sOrderType};g.value.push(xe),G(se)}}f.value=n.$utils.deepCopy(c),f.value.forEach(ie=>{m[`${ie.sKey}`]||(m[`${ie.sKey}`]=[])}),Y()}function Y(){if(!o.value.length)return"";for(let ne=0;ne<f.value.length;ne++){let se=f.value[ne].sKey;m[se]=[];for(let xe=0;xe<o.value.length;xe++){let wt=o.value[xe],Ht=n.$utils.getManyLevelData(wt,se),pr={label:Ht,value:Ht,checked:!1};m[se].push(pr)}m[se]=X(m[se],"value")}}function X(ne,ie){let se={},xe=[];for(let wt=0;wt<ne.length;wt++){let Ht=ne[wt];se[Ht[ie]]||(se[Ht[ie]]=!0,xe.push(Ht))}return xe}function fe({value:ne,row:ie},se){return n.$utils.getManyLevelData(ie,se.sKey)===ne}function we({columns:ne,data:ie}){let se=i.sSumData.sSumColumn,xe=Object.keys(se);return[ne.map((Ht,pr)=>pr===0?"合计":xe.includes(Ht.field)?de(ie,Ht.field):null)]}function de(ne,ie){let se="";return ne.forEach(xe=>{se=new Fq(Number(se)).plus(Number(n.$utils.getManyLevelData(xe,ie)?n.$utils.getManyLevelData(xe,ie):0)).toString()}),se}function pe(ne){let ie=ne.column;v||(v={});let se=n.$utils.getKeyByLang(ie.title);se||(se="noTitle");let xe=v[se];xe||(xe={}),xe.width=ie.resizeWidth,v[se]=xe,_.value=!0,re()}function Ae({row:ne,column:ie,rowIndex:se,columnIndex:xe}){a("rowClick",ne,ie,se,xe)}function me({row:ne,rowIndex:ie}){if(i.rowClassName)return i.rowClassName(ne,ie)}function Ce({checked:ne,row:ie,rowIndex:se}){let xe=n.$utils.deepCopy(n.$refs[i.name+"_ref"].getCheckboxRecords());b.value=xe,a("selectChange",xe,ne,ie,se)}function Qe(){return n.$refs[i.name+"_ref"].getCheckboxRecords()}function Ke(ne){o.value=ne}function Ye({sortList:ne}){let ie=[],se=[],xe=n.$utils.deepCopy(o.value);if(ne.length)for(let Ht=0;Ht<ne.length;Ht++){let pr=ne[Ht];pr.order==="asc"?(se.push(pr.field),ie.push("1")):pr.order==="desc"&&(se.push(pr.field),ie.push("0"))}else xe=n.$utils.deepCopy(s);let wt=n.$utils.deepCopy(n.$utils.arrayObjectSort(xe,se,ie));o.value=wt}function lt(){S.value=!0,x.value=n.$utils.deepCopy(f.value)}function _t(){let ne=Object.keys(v).length?JSON.stringify(v):JSON.stringify(JSON.parse(v));n.$api.postUrlData($.customUrl+"/?name="+u+"&type=table",{data:ne}).then(()=>{n.$utils.setLocalOrderBy(u,v),a("refreshData"),localStorage.setItem(`${u}_table`,JSON.stringify(v)),re(),n.$message.success("操作成功"),_.value=!1,S.value=!1})}function O(){A.value=i.exportType;let ne=n.$utils.deepCopy(f.value);z(ne),ae(),L.value=!0}function z(ne){let ie=ne.filter(xe=>xe.type!=="checkbox"&&xe.sKey!=="action"),se=[];for(let xe=0;xe<ie.length;xe++)ie[xe]._bChecked=!0,se.push(ie[xe]);E.value=se}function oe(){St(),L.value=!1}function be(){L.value=!1,A.value="1"}function St(){const ne=i.itemList;let ie=n.$utils.deepCopy(o.value);for(let se=0;se<ne.length;se++){let xe=ne[se];if(xe.sType=="date"){let wt=xe.sKey;for(let Ht=0;Ht<ie.length;Ht++){let pr=ie[Ht];pr[wt]&&(pr[wt]=n.$utils.formatDate(pr[wt]))}}}At(ie)}function At(ne){if(!ne)return;let ie=N.value?N.value:i.name;if(!E.value.length){let vr=n.$utils.deepCopy(f.value);z(vr)}let se=h.markRaw(E.value),xe=[];for(let vr=0;vr<se.length;vr++)se[vr]._bChecked&&xe.push(se[vr]);let wt=xe;var Ht=[];for(let vr=0;vr<wt.length;vr++){let Tr=wt[vr];if(!Tr.sChild&&Tr.sKey){let Li=Tr.sType==="sPicture"?"image":Tr.sType==="number"?"number":Tr.sType==="date"?"date":"text",Xa={title:Tr.title,key:Tr.sKey,type:Li};Tr.imgWidth&&(Xa.width=Tr.imgWidth),Tr.imgHeight&&(Xa.height=Tr.imgHeight),Ht.push(Xa);continue}}var pr=[];for(let vr=0;vr<ne.length;vr++){let Tr=ne[vr],Li={};for(let Xa=0;Xa<wt.length;Xa++){let Vr=wt[Xa];if(!Vr.sChild){let yo=Vr.sKey;if(yo==="serialNo_"+i.name){Li[yo]=vr+1;continue}if(Vr.sValueFormat){Li[yo]=Vr.sValueFormat(Tr,vr);continue}Li[yo]=n.$utils.getManyLevelData(Tr,Vr.sKey)}}pr.push(Li)}Gq(Ht,pr,ie),A.value="1"}function ae(){I.value=!0}function K(){E.value.forEach(ne=>{I.value?ne._bChecked=!0:ne._bChecked=!1})}function ce(){let ne=!0;for(let ie=0;ie<E.value.length;ie++)E.value[ie]._bChecked||(ne=!1);I.value=ne}function ht(){v||(v={});for(var ne=x.value,ie=0;ie<ne.length;ie++){var se=ne[ie];let xe=n.$utils.getKeyByLang(se.title),wt=v[xe];if(wt){let Ht=wt.width;wt=se,wt.width=Ht}else wt=se;wt.iOrder=ie+1,v[xe]=wt}_t()}function Bt(){n.$message.confirm($.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{S.value=!1,v={},_t()}).catch(()=>{n.$message.show($.$ntt("已取消操作","菜单"))})}function rn(ne){for(let ie=0;ie<ne.length;ie++){let se=ne[ie];se.iOrder=ie+1}x.value[0]=ne[0]}function mo(ne,ie,se){if(ie===1){if(ne===0)return;let wt=se[ne-1];se[ne-1]=se[ne],se[ne]=wt,rn(se);return}if(ne===se.length-1)return;let xe=se[ne+1];se[ne+1]=se[ne],se[ne]=xe,rn(se)}function Ii(ne,ie){D.value=ne,T.value=ie,C.value="",w.value=!0}function Ya(){if(Number(C.value)<1||Number(C.value)>T.value.length)return n.$message.warning(`当前可输入范围为:1 ~ ${T.value.length}`),"";let ne=T.value[D.value];x.value.splice(D.value,1),x.value.splice(Number(C.value)-1,0,ne)}return(ne,ie)=>{const se=h.resolveComponent("el-button"),xe=h.resolveComponent("el-text"),wt=h.resolveComponent("el-dropdown-item"),Ht=h.resolveComponent("el-dropdown-menu"),pr=h.resolveComponent("el-dropdown"),vr=h.resolveComponent("el-badge"),Tr=h.resolveComponent("btn-render"),Li=h.resolveComponent("vxe-column"),Xa=h.resolveComponent("vxe-table"),Vr=h.resolveComponent("el-table-column"),yo=h.resolveComponent("el-switch"),ki=h.resolveComponent("el-radio"),Od=h.resolveComponent("el-radio-group"),hy=h.resolveComponent("el-table"),Rd=h.resolveComponent("el-dialog"),dy=h.resolveComponent("el-input"),py=h.resolveComponent("el-checkbox");return h.openBlock(),h.createElementBlock("div",Wq,[h.createElementVNode("div",{ref_key:"dvTbMainTable",ref:k,class:"data_list"},[h.createElementVNode("div",Yq,[h.createVNode(pr,{placement:"bottom-start"},{dropdown:h.withCtx(()=>[h.createVNode(Ht,{slot:"dropdown"},{default:h.withCtx(()=>[h.createVNode(wt,{onClick:lt},{default:h.withCtx(()=>[h.createVNode(xe,{size:"small"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("自定义列展示","菜单")),1)]),_:1})]),_:1}),h.createVNode(wt,{onClick:O},{default:h.withCtx(()=>[h.createVNode(xe,{size:"small"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("当前页导出Excel","菜单")),1)]),_:1})]),_:1}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ne.sAnotherOP,(Le,nr)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:nr},[Le.bHide?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(wt,{key:0,onClick:Le.sClick},{default:h.withCtx(()=>[h.createVNode(xe,{size:"small"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(Le.sCaption),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:h.withCtx(()=>[h.createElementVNode("span",Xq,[ne.bShowCustomColumn?(h.openBlock(),h.createBlock(se,{key:0,icon:"Operation",circle:""})):h.createCommentVNode("",!0)])]),_:1})]),h.unref(_)&&ne.bShowCustomWidth?(h.openBlock(),h.createElementBlock("span",{key:0,style:{position:"absolute","z-index":"9",right:"45px",opacity:"0.8",top:"-12px"},title:h.unref($).$ntt("保存列宽","菜单")},[h.createVNode(vr,null,{default:h.withCtx(()=>[h.createVNode(se,{icon:"Check",onClick:_t,circle:""})]),_:1})],8,Kq)):h.createCommentVNode("",!0),h.createElementVNode("div",{style:h.normalizeStyle({height:`${h.unref(y)}px`}),class:"vxe-table-wrapper"},[h.createVNode(Xa,{ref:ne.name+"_ref",border:"",size:"mini",height:"100%","show-overflow":"","auto-resize":"",data:h.unref(o),"empty-text":h.unref($).$ntt("暂无数据"),"column-config":{resizable:!0},loading:h.unref(l),"scroll-y":{enabled:!0},"scroll-x":{enabled:!0},stripe:"",align:ne.align,"row-config":{useKey:!0,isHover:!0,keyField:"guid"},"cell-config":{height:h.unref(p)},onResizableChange:pe,"cell-style":ne.cellStyle,"max-height":1e3,"show-footer":!!(ne.sSumData&&ne.sSumData.sSumColumn),"footer-method":we,"row-class-name":me,"checkbox-config":{checkField:"_checked",checkRowKeys:h.unref(b)},"sort-config":{defaultSort:h.unref(g),trigger:"cell",remote:!0},onSortChange:Ye,onCheckboxAll:Ce,onCheckboxChange:Ce,onCellClick:Ae},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(f),(Le,nr)=>(h.openBlock(),h.createBlock(Li,{key:Le.sKey+"_"+nr,type:Le.type,field:Le.sKey,title:Le.title,fixed:Le.fixed,width:Le.width,"min-width":Le.minWidth,sortable:Le.sortable,visible:Le._checked&&Le.bHide,filters:ne.enableFilter?h.unref(m)[Le.sKey]:null,"filter-method":ne.enableFilter?({value:Ka,row:Vd})=>fe({value:Ka,row:Vd},Le):()=>!0},h.createSlots({_:2},[Le.render?{name:"default",fn:h.withCtx(({row:Ka,rowIndex:Vd,$rowIndex:hT})=>[h.createVNode(Tr,{render:Le.render,params:{row:Ka,index:hT,col:Le,colIndex:nr}},null,8,["render","params"])]),key:"0"}:void 0]),1032,["type","field","title","fixed","width","min-width","sortable","visible","filters","filter-method"]))),128))]),_:1},8,["data","empty-text","loading","align","cell-config","cell-style","show-footer","checkbox-config","sort-config"])],4)],512),h.createVNode(Rd,{modelValue:h.unref(S),"onUpdate:modelValue":ie[2]||(ie[2]=Le=>h.isRef(S)?S.value=Le:S=Le),title:h.unref($).$ntt("自定义列","菜单"),width:"60%"},{footer:h.withCtx(()=>[h.createElementVNode("div",Qq,[h.createVNode(se,{onClick:ie[1]||(ie[1]=Le=>h.isRef(S)?S.value=!1:S=!1)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消","菜单")),1)]),_:1}),h.createVNode(se,{type:"primary",onClick:ht},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确认","菜单")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"jc",style:{"margin-bottom":"5px"},title:h.unref($).$ntt("重置","菜单")},[h.createVNode(se,{circle:"",icon:"Refresh",onClick:Bt}),h.createElementVNode("span",Zq,h.toDisplayString(h.unref($).$ntt("1.点击按钮即可重置","菜单")),1),h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("2.选中后可上下拖拽调整顺序","菜单")),1)],8,jq),h.createVNode(hy,{border:"","header-row-class-name":"tbHeader",width:"100%",size:"small",data:h.unref(x)},{default:h.withCtx(()=>[h.createVNode(Vr,{label:h.unref($).$ntt("序号","菜单"),width:"60"},{default:h.withCtx(Le=>[h.createElementVNode("span",null,h.toDisplayString(Le.$index+1),1)]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("列表项","菜单"),"min-width":"120"},{default:h.withCtx(Le=>[h.createElementVNode("span",null,h.toDisplayString(Le.row.title),1)]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("是否显示","菜单"),width:"80"},{default:h.withCtx(Le=>[h.createElementVNode("div",null,[h.createVNode(yo,{modelValue:Le.row._checked,"onUpdate:modelValue":nr=>Le.row._checked=nr,onOnChange:ie[0]||(ie[0]=nr=>rn(h.unref(x)))},{default:h.withCtx(()=>[h.createElementVNode("span",qq,h.toDisplayString(h.unref($).$ntt("显示","菜单")),1),h.createElementVNode("span",Jq,h.toDisplayString(h.unref($).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("以此列排序","菜单"),width:"180"},{default:h.withCtx(Le=>[h.createElementVNode("div",null,[h.createVNode(Od,{modelValue:Le.row.sOrderType,"onUpdate:modelValue":nr=>Le.row.sOrderType=nr,size:"small"},{default:h.withCtx(()=>[h.createVNode(ki,{value:"0"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("无","菜单")),1)]),_:1}),h.createVNode(ki,{value:"asc"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("正序","菜单")),1)]),_:1}),h.createVNode(ki,{value:"desc"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("倒序","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("是否固定","菜单"),width:"180"},{default:h.withCtx(Le=>[h.createElementVNode("div",null,[h.createVNode(Od,{modelValue:Le.row.fixed,"onUpdate:modelValue":nr=>Le.row.fixed=nr,size:"small"},{default:h.withCtx(()=>[h.createVNode(ki,{value:"0"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("否","菜单")),1)]),_:1}),h.createVNode(ki,{value:"left"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("左侧","菜单")),1)]),_:1}),h.createVNode(ki,{value:"right"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("右侧","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("操作","菜单"),width:"220"},{default:h.withCtx(Le=>[h.createVNode(se,{size:"small",link:"",type:"primary",onClick:h.withModifiers(nr=>mo(Le.$index,1,h.unref(x)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),h.createVNode(se,{size:"small",link:"",type:"primary",onClick:h.withModifiers(nr=>mo(Le.$index,0,h.unref(x)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"]),h.createVNode(se,{size:"small",link:"",type:"primary",onClick:h.withModifiers(nr=>Ii(Le.$index,h.unref(x)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("自定义序列","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue","title"]),h.createVNode(Rd,{modelValue:h.unref(w),"onUpdate:modelValue":ie[5]||(ie[5]=Le=>h.isRef(w)?w.value=Le:w=Le),title:h.unref($).$ntt("调整序列","菜单"),width:"500",draggable:""},{footer:h.withCtx(()=>[h.createElementVNode("div",rJ,[h.createVNode(se,{onClick:ie[4]||(ie[4]=Le=>h.isRef(w)?w.value=!1:w=!1)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消","菜单")),1)]),_:1}),h.createVNode(se,{type:"primary",onClick:Ya},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确认","菜单")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",eJ,[h.createElementVNode("p",tJ,h.toDisplayString(h.unref($).$ntt("调整序列至:","菜单")),1),h.createVNode(dy,{size:"small",modelValue:h.unref(C),"onUpdate:modelValue":ie[3]||(ie[3]=Le=>h.isRef(C)?C.value=Le:C=Le)},null,8,["modelValue"])])]),_:1},8,["modelValue","title"]),h.createVNode(Rd,{modelValue:h.unref(L),"onUpdate:modelValue":ie[9]||(ie[9]=Le=>h.isRef(L)?L.value=Le:L=Le),title:h.unref($).$ntt("导出当前excel","菜单"),width:"500",draggable:""},{footer:h.withCtx(()=>[h.createElementVNode("div",oJ,[h.createVNode(se,{onClick:be},{default:h.withCtx(()=>ie[10]||(ie[10]=[h.createTextVNode("Cancel")])),_:1,__:[10]}),h.createVNode(se,{type:"primary",onClick:oe},{default:h.withCtx(()=>ie[11]||(ie[11]=[h.createTextVNode(" Confirm ")])),_:1,__:[11]})])]),default:h.withCtx(()=>[h.createElementVNode("div",null,[h.createVNode(Od,{modelValue:h.unref(A),"onUpdate:modelValue":ie[7]||(ie[7]=Le=>h.isRef(A)?A.value=Le:A=Le)},{default:h.withCtx(()=>[h.createVNode(ki,{value:"1"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("全部导出","菜单")),1)]),_:1}),h.createVNode(ki,{value:"2"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("自定义导出","菜单")),1)]),_:1}),h.unref(A)==="2"?(h.openBlock(),h.createBlock(py,{key:0,modelValue:h.unref(I),"onUpdate:modelValue":ie[6]||(ie[6]=Le=>h.isRef(I)?I.value=Le:I=Le),onChange:K},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("全选","菜单")),1)]),_:1},8,["modelValue"])):h.createCommentVNode("",!0)]),_:1},8,["modelValue"]),h.createVNode(dy,{type:"text",modelValue:h.unref(N),"onUpdate:modelValue":ie[8]||(ie[8]=Le=>h.isRef(N)?N.value=Le:N=Le),style:{"margin-top":"5px"},placeholder:h.unref($).$ntt("请输入excel文件名")},null,8,["modelValue","placeholder"]),h.unref(A)==2?(h.openBlock(),h.createBlock(hy,{key:0,style:{"margin-top":"5px"},border:"","header-row-class-name":"tbHeader",width:"70","max-height":"600",data:h.unref(E)},{default:h.withCtx(()=>[h.createVNode(Vr,{label:h.unref($).$ntt("序号","菜单")},{default:h.withCtx(Le=>[h.createElementVNode("span",null,h.toDisplayString(Le.$index+1),1)]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("列表项","菜单")},{default:h.withCtx(Le=>[Le.row.type!=="checkbox"?(h.openBlock(),h.createElementBlock("span",nJ,h.toDisplayString(Le.row.title),1)):h.createCommentVNode("",!0)]),_:1},8,["label"]),h.createVNode(Vr,{label:h.unref($).$ntt("是否导出","菜单")},{default:h.withCtx(Le=>[h.createElementVNode("div",null,[h.createVNode(yo,{modelValue:Le.row._bChecked,"onUpdate:modelValue":nr=>Le.row._bChecked=nr,onChange:ce},{default:h.withCtx(()=>[h.createElementVNode("span",aJ,h.toDisplayString(h.unref($).$ntt("导出","菜单")),1),h.createElementVNode("span",iJ,h.toDisplayString(h.unref($).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"])]),_:1},8,["data"])):h.createCommentVNode("",!0)])]),_:1},8,["modelValue","title"])])}}}),uJ=sn(lJ,[["__scopeId","data-v-69839e89"]]),cJ={class:"btnAll"},fJ={key:0,style:{display:"flex","justify-content":"space-around","align-items":"center","margin-right":"10px"}},hJ={key:1},dJ={key:2},pJ={key:1},vJ={key:1},gJ={key:3},mJ={class:h.normalizeClass("titleClass")},yJ={class:"el-dropdown-link"},_J=["title"],bJ=["id"],SJ={key:0},wJ={key:1},xJ={key:0},CJ={key:1},TJ={key:2},DJ={key:3},EJ={key:4,style:{width:"50px",height:"50px",border:"1px dashed #dddddd",display:"flex",alignItems:"center",justifyContent:"center"}},AJ=["onClick","src"],MJ={key:5},NJ={key:6},IJ={key:7},LJ={key:8,class:"showMore"},kJ={style:{display:"flex","align-items":"center"},class:"actionBtn"},PJ={key:0},OJ={key:1},RJ={key:2,style:{display:"flex","align-items":"center"}},VJ={key:0,class:"pageDiv"},BJ=["src"],FJ={class:"customerColumn"},zJ=["title"],$J={style:{margin:"0 5px"}},HJ={slot:"open"},GJ={slot:"close"},UJ={class:"dialog-footer"},WJ={style:{display:"flex"}},YJ={style:{width:"24%"}},XJ={class:"dialog-footer"},KJ={name:"cmEditDtl"},jJ=h.defineComponent({...KJ,props:{name:{},sMainKey:{default:()=>"guid"},iAnotherHeight:{default:()=>0},tableMaxHeight:{default:()=>1e3},allAlign:{default:()=>"left"},bShowSum:{type:Boolean,default:()=>!0},sumColumn:{default:()=>({})},sDefaultPageSize:{default:()=>20},sDataCaption:{},sDataUrl:{},methodType:{default:()=>"POST"},sFilterData:{default:()=>[]},otherParams:{default:()=>[]},sDataSaveUrl:{},sDataDeleteUrl:{},bFirstTimeCallDefinedTitle:{type:Boolean,default:()=>!0},bShowChecked:{type:Boolean,default:()=>!1},cellStyle:{},leftFixed:{default:()=>"left"},rightFixed:{default:()=>"right"},rowOtherData:{default:()=>({})},bShowActionColumn:{type:Boolean,default:()=>!0},bCanEdit:{type:Boolean,default:()=>!0},bDeleteModel:{type:Boolean,default:()=>!0},bShowDeleteBtn:{type:Boolean,default:()=>!0},bCopyRow:{type:Boolean,default:()=>!1},sAnotherRowActionBtns:{},AnotherActionWidth:{default:()=>150},beforeDeleteData:{},sPageData:{default:()=>["pageIndex","pageSize","result.totalElements","result.content"]},bShowPage:{type:Boolean,default:()=>!0},beforeCopyItem:{},copyPushIndex:{},hdrData:{},beforeSaveData:{},showMoreBtnInfo:{},bShowAddBtn:{type:Boolean,default:()=>!0},bShowEditAll:{type:Boolean,default:()=>!0},bCanEditAll:{type:Boolean,default:()=>!0},iAddType:{default:()=>1},sAnotherAddKey:{},beforeAddItem:{},bMaxHeight:{type:Boolean,default:()=>!0},bHeightByData:{type:Boolean,default:()=>!0},rowHeight:{default:()=>28},sAnotherOP:{},hdrAndDtlTogetherSave:{type:Boolean,default:()=>!1}},emits:["onSelectionChange","refreshData","cellClick","toggleExpandChangeEvent","onIpFoucs","onIpBlur","onIpKeyDown","cmSelectRefresh","beforeEditItem","onDeleteBtnClick","onSaveSuccess","onGetedData","onSaveBtnClick","onAddDtlBtnClick","beforeEditAll","onCancelEdit","onDeleteAllBtnClick","onDeleteSuccess","onPageSizeChange","onPageIndexChange"],setup(e,{expose:t,emit:r}){let n=r;t({getDataList:Ka,setDataList:py,setDataForIndex:Le,getShowData:Vr});let{proxy:a}=h.getCurrentInstance(),i=e,o=h.ref(""),s=h.ref(300),l=h.ref(300),u=[5,10,20,50,100,500,2e3,1e4],c=h.ref(1),f=h.ref(20),d=h.ref(0),p=h.ref([]),v=h.ref([]),g=h.ref([]),m=h.ref([]),y=h.ref([]),_=h.ref([]),b=h.ref(!1),S=h.ref({}),x=h.ref(!1),w=h.ref([]),C=h.ref(!1),T=h.ref(""),D=h.ref(0),E=h.ref([]),A=h.ref([]),L=h.ref(0),N=h.ref(0),I={checkMethod:({row:R})=>R.hasOwnProperty("bCanSelectCheckBox")?R.bCanSelectCheckBox:!0},k=h.ref(!1),P=h.ref(""),V=h.ref([]),B=h.computed(()=>{let R=!1;for(let F=0;F<p.value.length;F++)if(p.value[F].bEditItem){R=!0;break}return R}),G=h.computed(()=>{let R=0;for(let F=0;F<p.value.length&&!(p.value[F].bEditItem&&(R+=1,R>=2));F++);return R>=2});h.watch(()=>i.name,(R,F)=>{U()},{immediate:!0,deep:!0}),h.watch(()=>i.sDefaultPageSize,(R,F)=>{u.includes(R)&&(f.value=R)},{immediate:!0}),h.watch(()=>i.sDataCaption,(R,F)=>{me(R)},{immediate:!0,deep:!0}),h.watch(()=>i.sDataUrl,(R,F)=>{Ka()},{immediate:!0,deep:!0}),h.watch(()=>v.value,(R,F)=>{},{immediate:!0,deep:!0});function U(){let F=(localStorage.getItem("lang")??"").replace(/"/g,"");o.value=i.name+"_"+F+"_"+$.sAppCode}let W=h.ref(null);h.onMounted(()=>{let R=a.$utils.getTbHeight(W.value);R=R<200?200:R,i.bMaxHeight?l.value=R:l.value=300,s.value=l.value});function re(R){let F=[];for(let Z in R){let te=R[Z],Ie=le(Z,te);X(Ie),F.push(Ie)}new Promise((Z,te)=>{Y(F).then(()=>{Z(F)})}).then(Z=>{y.value=Z,_.value=a.$utils.deepCopy(Z)})}function le(R,F){let Z={sKey:R,sValue:F!=null&&F.sValue?F.sValue:"",sType:F.sType,responseMode:F.responseMode,sCaption:F.sCaption,sFixed:F.sFixed,fixed:F.sFixed,minWidth:F.minWidth,width:F.iWidth||F.width,iWidth:F.iWidth||F.width,bEdit:F.bEdit?F.bEdit:!1,disabled:F.disabled,bRequired:F.bRequired,render:F.render,hdrRender:F.hdrRender,sResKey:F.sResKey,sSelectApi:F.sSelectApi,sSelectItems:F.sSelectItems??[],sSelectKey:F.sSelectKey,sSelectLabel:F.sSelectLabel,sShowKey:F.sShowKey,clearable:F.clearable,bVirtualRender:!0,sOnChange:F.sOnChange,sValueFormat:F.sValueFormat,onCreate:F.onCreate,bAllowCreate:F.bAllowCreate,_checked:F._checked,bHide:!1,sortable:!0};return(F.bVirtualRender===!1||F.bVirtualRender===!0)&&(Z.bVirtualRender=F.bVirtualRender),(F.bHide===!1||F.bHide===!0)&&(Z.bHide=F.bHide),(F.sortable===!1||F.sortable===!0)&&(F.sortable=F.sortable),Z}function Y(R){const F=[];for(let Z=0;Z<R.length;Z++){let te=R[Z];if(te.sSelectApi){let Ie=a.$api.getUrlData(te.sSelectApi).then(rt=>{te.sSelectItems=a.$utils.getManyLevelData(rt,te.responseMode??"data.data.content")});F.push(Ie)}else te.sSelectItems=te.sSelectItems??[]}return Promise.all(F)}function X(R){if(R.render)return R;switch(R.sType){case"date":case"dateTime":R.sValueFormat=(F,Z)=>{let te=a.$utils.getManyLevelData(F,R.sKey);return a.$utils.getFormatDateStr(te,R.sType)};break;case"number":R.render=(F,Z)=>{let te=a.$utils.getManyLevelData(Z.row,R.sKey);return te=a.$utils.formatNumberRgx(te),F("div",{style:{textAlign:"right"}},te)};break}R.sValueFormat&&(R.render=(F,Z)=>{var Ie,rt;let te="";return R.sType==="number"&&(te="right"),F("el-tooltip",{props:{content:`${$.$ntt(((Ie=R.sValueFormat)==null?void 0:Ie.call(R,Z.row,Z.index))??"")}`,placement:"top"}},[F("div",{class:"showMore",style:{textAlign:te}},((rt=R.sValueFormat)==null?void 0:rt.call(R,Z.row,Z.index))??"")])})}function fe(R){p.value.forEach(F=>{F.bChecked=R.checked}),de()}function we(R){p.value[R.$rowIndex].bChecked=R.checked,de()}function de(){let R=pe();n("onSelectionChange",R)}function pe(){return a.$refs.cmEditDtl.getCheckboxRecords()}function Ae(R){const{columns:F,data:Z}=R,te=[];return F.forEach((Ie,rt)=>{if(rt===0)te[rt]=$.$ntt("合计","菜单");else{const Je=Z.map(It=>Number(a.$utils.getManyLevelData(It,Ie.property)));if(Je.every(It=>isNaN(It)))te[rt]="";else{let It=!0;if(Object.keys(i.sumColumn).length&&(i.sumColumn[Ie.property]?It=!0:It=!1),!It){te[rt]="";return}let ar=i.sumColumn[Ie.property];te[rt]=Je.reduce((gr,Pi)=>{const Jl=Number(Pi);return isNaN(Jl)?gr:gr+Pi},0),ar.iFixedCount?(te[rt]=parseFloat(te[rt].toFixed(ar.iFixedCount)),te[rt]=te[rt].toLocaleString(void 0,{minimumFractionDigits:ar.iFixedCount})):te[rt]=te[rt].toLocaleString()}}}),[te]}function me(R){for(let F in R)R[F]._checked=!0;re(R)}function Ce(R){let F=a.$utils.deepCopy(R);a.$utils.sortData(F,"iOrder"),F&&(R=a.$utils.deepCopy(F)),A.value=[];for(let te=0;te<R.length;te++){let Ie=R[te];if(Ie.sOrderType){let rt={field:Ie.sKey,order:Ie.sOrderType};A.value.push(rt),X(Ie)}}let Z={};R.forEach(te=>{Z[te.sKey]||(Z[te.sKey]=te)}),re(Z)}function Qe(){}function Ke(R,F){R||(R=i.sDataCaption);let Z=[];if(S.value&&Object.keys(S.value).length)for(let te in R){let Ie=R[te];Ie.sKey=te,Ie._checked=!0;let rt=Ie.sCaption;if(S.value[rt]){let Je=S.value[rt];Je.iWidth=Ie.iWidth,Je.iOrder&&(Ie.iOrder=Je.iOrder),Je.fixed&&(Je.fixed==="0"?delete Ie.sFixed:Ie.sFixed=Je.fixed),Je.sOrderType&&(Ie.sOrderType=Je.sOrderType),(Je._checked===!1||Je._checked===!0)&&(Ie._checked=Je._checked)}Z.push(Ie)}else{let te={};for(let Ie in R){let rt=R[Ie];rt.sKey=Ie,rt._checked=!0,Z.push(rt),te[rt.sCaption]=rt}S.value=te}Ce(Z)}function Ye(){x.value=!0,w.value=a.$utils.deepCopy(_.value)}function lt(){a.$utils.sureDelete($.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{x.value=!1,S.value={}})}function _t(R,F,Z){if(F===1){if(R===0)return;let Ie=Z[R-1];Z[R-1]=Z[R],Z[R]=Ie,be(Z);return}if(R===Z.length-1)return;let te=Z[R+1];Z[R+1]=Z[R],Z[R]=te,be(Z)}function O(R,F){D.value=R,E.value=F,T.value="",C.value=!0}function z(){if(Number(T.value)<1||T.value>E.value.length)return a.$message.warning(`当前可输入范围为:1 ~ ${E.value.length}`),"";let R=E.value[D.value];w.value.splice(D.value,1),w.value.splice(Number(T.value)-1,0,R)}function oe(){S.value||(S.value={});for(var R=w.value,F=0;F<R.length;F++){var Z=R[F];let te=a.$utils.getKeyByLang(Z.sCaption),Ie=S.value[te];if(Ie){let rt=Ie.iWidth;Ie=Z,Ie.width=rt}else Ie=Z;Ie.iOrder=F+1,S.value[te]=Ie}}function be(R){for(let F=0;F<R.length;F++){let Z=R[F];Z.iOrder=F+1}w.value=R}function St(R){try{let F=null,Z=R.$event.clipboardData||window.Clipboard;Z||(Z=R.originalEvent.clipboardData),F=Z.getData("Text"),F&&!F.includes(`\r
48
+ `)&&(F=F+`\r
49
+ `);let te=F.split(`\r
50
+ `),Ie=[];for(let Je=0;Je<te.length;Je++){let It=[],ar=te[Je].split(" ");for(let gr=0;gr<ar.length;gr++)ar[gr]&&It.push(ar[gr]);It.length&&Ie.push(It)}if(Ie.length===1&&Ie[0].length===1)return"";R.preventDefault(),R.stopPropagation();let rt=[];_.value.forEach(Je=>{if(Je._checked&&!Je.bHide){let It={key:Je.sKey,value:void 0},ar=Je.sKey;Je.sType==="text"&&Je.bEdit&&!Je.disabled&&(ar=`${Je.sKey}_bCanEidt_`,It.key=ar),rt.push(It)}});for(let Je=0;Je<Ie.length&&!(L.value+Je>p.value.length-1);Je++){let It={};if(It=JSON.parse(JSON.stringify(p.value[L.value+Je])),!It.bEditItem)continue;let ar=0,gr=1;i.bShowChecked&&(gr=2);for(let Pi=0;Pi<rt.length;Pi++){let Jl=rt[Pi].key;if(!Ie[Je][ar]){ar=ar+1;continue}let dT=new RegExp("_bCanEidt_"),pT=Jl.replace(dT,"");N.value<=gr&&(Jl.indexOf("_bCanEidt_")!=-1&&(It[pT]=Ie[Je][ar]),ar=ar+1),gr=gr+1}p.value[L.value+Je]=It}}catch{a.$message.error("请选择粘贴位置")}}function At(R){L.value=R.$rowIndex,N.value=R.$columnIndex,n("cellClick",R)}function ae({row:R,expanded:F}){n("toggleExpandChangeEvent",R,F)}function K({sortList:R}){let F=!0;if(F=ce(),!F)return a.$message.error($.$ntt("请先保存数据")),a.$refs.cmEditDtl.clearSort(),"";let Z=[],te=[],Ie=a.$utils.deepCopy(p.value);if(R.length)for(let rt=0;rt<R.length;rt++){let Je=R[rt];Je.order==="asc"?(te.push(Je.field),Z.push("1")):Je.order==="desc"&&(te.push(Je.field),Z.push("0"))}else Ie=a.$utils.deepCopy(g.value);py(a.$utils.arrayObjectSort(Ie,te,Z))}function ce(){for(let R=0;R<p.value.length;R++)if(p.value[R].bEditItem)return!1;return!0}function ht({$rowIndex:R,column:F,columnIndex:Z,$columnIndex:te,$event:Ie}){for(let It=0;It<_.value.length;It++)if(a.$utils.getManyLevelData(_.value[It],"sKey")===a.$utils.getManyLevelData(F,"property")){_.value[It].iWidth=F.renderWidth;break}b.value=!0;let rt={},Je=a.$utils.deepCopy(_.value);for(let It=0;It<Je.length;It++){let ar=Je[It],gr=ar.sKey;rt[gr]=ar}Ke(rt)}function Bt(){p.value=a.$refs.cmEditDtl.getTableData().fullData}function rn(R,F,Z,te){R.sOnChange&&R.sOnChange(F,Z,R,te),(R.sType==="text"||R.sType==="number")&&i.sumColumn&&h.nextTick(()=>{a.$refs.cmEditDtl.updateFooter()})}function mo(R,F,Z,te){n("onIpFoucs",R,F,Z,te)}function Ii(R,F,Z,te){n("onIpBlur",R,F,Z,te)}function Ya(R){n("onIpKeyDown",R.$event)}function ne(R){if(R==="date")return"YYYY-MM-DD";if(R==="datetime"||R==="daterange")return"YYYY-MM-DD HH:mm:ss"}function ie(R){R&&(R=a.$utils.getImageSrc(R),P.value=R,k.value=!0)}function se(R,F){n("cmSelectRefresh",R,F)}function xe(R,F,Z){if(F.sValueFormat)return F.sValueFormat(R);let te=a.$utils.getManyLevelData(R,F.sShowKey?F.sShowKey:Z);return te&&F.sType==="text"?te.toString():te&&F.sType==="number"?a.$utils.formatNumberRgx(te):te&&F.sType==="date"?a.$utils.getFormatDateStr(te,"date"):te&&F.sType==="dateTime"?a.$utils.getFormatDateStr(te,"dateTime"):te}function wt(R,F){R.bCannotEdit||(n("beforeEditItem",R),R.bEditItem=!0,nr())}function Ht(R,F){if(!R.bCannotDelete){if(!R[i.sMainKey]){a.$message.error($.$ntt("sMainKey错误","菜单"));return}if(i.bDeleteModel&&i.hdrAndDtlTogetherSave)R.usable=!1,V.value.push(R),p.value.splice(F,1);else{let Z=i.bDeleteModel?$.$ntt("此操作将删除, 是否继续?","菜单"):$.$ntt("此操作将取消启用, 是否继续?","菜单");a.$utils.sureDelete(Z).then(()=>{if(n("onDeleteBtnClick",[R]),i.beforeDeleteData&&!i.beforeDeleteData([R])||!i.sDataDeleteUrl)return;let te=[R[i.sMainKey]];a.$api.deleteUrlData(i.sDataDeleteUrl,te).then(Ie=>{a.$message.success($.$ntt("操作成功","菜单")),i.bDeleteModel?p.value.splice(F,1):Ka(!0),n("onSaveSuccess")})})}}}function pr(R,F){let Z=R;if(i.beforeCopyItem&&(Z=i.beforeCopyItem(R,F)),!Z)return"";let te=a.$utils.deepCopy(Z);delete te[i.sMainKey],delete te._X_ROW_KEY,te.bEditItem=!0,te.bNowAdd=!0,i.copyPushIndex?p.value.splice(i.copyPushIndex(F),0,te):p.value.push(te)}function vr(R,F){Tr([R])}function Tr(R){if(i.hdrData&&i.hdrData.bNotSave){a.$message.error($.$ntt("请先保存表头","菜单"));return}if(!(!R||R.length===0)){for(let F=0;F<R.length;F++){let Z=R[F];for(let te in i.sDataCaption){let Ie=i.sDataCaption[te];if(Ie.sType==="date"&&(Z[te]=a.$utils.getStringDate(Z[te])),!!Ie.bRequired&&typeof Z[te]!="boolean"&&(!Z[te]&&Z[te]!==0||Z[te].length===0)){a.$message.error(a.$utils.joinStr($.$ntt("[1]是必须的","菜单"),Ie.sCaption));return}}}n("onSaveBtnClick",R),!(i.beforeSaveData&&!i.beforeSaveData(R))&&i.sDataSaveUrl&&a.$api.putUrlData(i.sDataSaveUrl,R).then(F=>{a.$message.success($.$ntt("保存成功","菜单")),Ka(),n("onSaveSuccess",F)})}}function Li(R,F){console.log(F,R,"index----------"),R.bNowAdd?p.value.splice(F,1):p.value[F]=a.$utils.deepCopy(m.value[R.sourceIndex]),nr()}function Xa(R){if(i.iAddType===1){let F={};if(i.sAnotherAddKey)for(let te in i.sAnotherAddKey)F[te]=i.sAnotherAddKey[te];F.guid="",F.bNowAdd=!0,F.bEditItem=!0;for(let te in i.sDataCaption){let Ie=i.sDataCaption[te];Ie!=null&&Ie.sValue&&(F[te]=Ie.sValue)}if(i.beforeAddItem&&!i.beforeAddItem(F))return;let Z=a.$utils.deepCopy(F);p.value.push(Z),console.log(p.value),n("onAddDtlBtnClick",Z);return}n("onAddDtlBtnClick")}function Vr(){return i.hdrAndDtlTogetherSave?[...p.value,...V.value]:p.value}function yo(){n("beforeEditAll");for(let R=0;R<p.value.length;R++){let F=p.value[R];F.bCannotEdit||(F.bEditItem=!0)}nr()}function ki(){let R=p.value.length-1;for(let F=R;F>=0;F--){let Z=p.value[F];Z.bEditItem&&(!Z[i.sMainKey]||Z.bNowAdd?p.value.splice(F,1):(p.value[F]=a.$utils.deepCopy(m.value[Z.sourceIndex]),nr()))}n("onCancelEdit",p.value)}function Od(){let R=[],F=a.$utils.deepCopy(p.value);for(let Z=0;Z<F.length;Z++)F[Z].bEditItem&&R.push(F[Z]);Tr(R)}function hy(){let R=pe();if(!R.length)return a.$message.error($.$ntt("请先选择数据","菜单")),"";if(i.bDeleteModel&&i.hdrAndDtlTogetherSave){for(let te=0;te<R.length;te++)R[te].usable=!1;V.value.push(...R);const F=new Set(R.map(te=>te.guid)),Z=p.value.filter(te=>!F.has(te.guid));p.value=Z}else a.$utils.sureDelete().then(()=>{let F=[];for(let te=0;te<p.value.length;te++){let Ie=p.value[te];if(Ie.bChecked){if(Ie.bNowAdd){p.value.splice(te,1),te--;continue}F.push(Ie)}}if(F.length===0)return;if(i.beforeDeleteData&&!i.beforeDeleteData(F)){n("onDeleteAllBtnClick",F);return}if(!i.sDataDeleteUrl)return;let Z=F.reduce((te,Ie)=>(te.push(Ie[i.sMainKey]),te),[]);a.$api.deleteUrlData(i.sDataDeleteUrl,Z).then(()=>{a.$message.success($.$ntt("操作成功","菜单")),Ka(!0),n("onDeleteSuccess")})})}function Rd(R){f.value=R,n("onPageSizeChange",f.value,c.value),Ka(!0)}function dy(R){c.value=R,n("onPageIndexChange",f.value,c.value),Ka(!0)}function py(R){V.value=[];let F=[];R.forEach((Z,te)=>{Z.bNowAdd||(Z.sourceIndex=te,Z.bEditItem=Z.bEditItem?Z.bEditItem:!1,F.push(JSON.parse(JSON.stringify(Z))))}),F.forEach(Z=>{Z.bEditItem=!1}),p.value=a.$utils.deepCopy(R),v.value=a.$utils.deepCopy(R),m.value=a.$utils.deepCopy(F),g.value=a.$utils.deepCopy(R)}function Le(R,F){p.value.splice(R,1,F),nr()}function nr(){let R=[];for(let F=0;F<p.value.length;F++)R.push(p.value[F]);p.value=R}function Ka(R){if(V.value=[],p.value=[],g.value=[],v.value=[],m.value=[],!i.sDataUrl)return"";if(R||(c.value=1),i.methodType=="GET"){let F="";i.sPageData.length>0&&i.bShowPage&&(F+="&"+i.sPageData[0]+"="+c.value,F+="&"+i.sPageData[1]+"="+(i.bShowPage?f.value:1e4)),i.sFilterData.length&&(F+="&"+a.$utils.getCmSearchFilter(i.sFilterData,()=>{})),i.sDataUrl.indexOf("?")===-1&&(F=F.replace("&","?")),a.$api.getUrlData(i.sDataUrl+F).then(Z=>{Vd(Z)})}else if(i.methodType=="POST"){let Z={queryParams:[...a.$utils.getFilterObj(i.sFilterData),...i.otherParams],pageNo:c.value,pageSize:f.value};a.$api.postUrlData(i.sDataUrl,Z).then(te=>{Vd(te)})}}function Vd(R){let F=[];if(i.sPageData[3]!==""){F=a.$utils.getManyLevelData(R.data,i.sPageData[3]);let Z=a.$utils.getManyLevelData(R.data,i.sPageData[2]);d.value=Z===""?0:parseInt(Z)}if(!F)return a.$message.error($.$ntt("数据读取错误,请检查分页代码","菜单")),"";F.forEach((Z,te)=>{Z.bChecked=!1,Z.sourceIndex=te,Z.bEditItem=!1}),p.value=F,v.value=F,g.value=F,m.value=a.$utils.deepCopy(F),i.bHeightByData&&hT(F),n("onGetedData",p.value,R)}function hT(R){let F=R.length*i.rowHeight;F<s.value?l.value=F+i.rowHeight+30:l.value=s.value}return(R,F)=>{const Z=h.resolveComponent("el-button"),te=h.resolveComponent("el-tooltip"),Ie=h.resolveComponent("el-text"),rt=h.resolveComponent("el-dropdown-item"),Je=h.resolveComponent("el-dropdown-menu"),It=h.resolveComponent("el-dropdown"),ar=h.resolveComponent("el-badge"),gr=h.resolveComponent("vxe-column"),Pi=h.resolveComponent("btn-render"),Jl=h.resolveComponent("el-input"),dT=h.resolveComponent("el-date-picker"),pT=h.resolveComponent("el-color-picker"),cbe=h.resolveComponent("cm-select"),tz=h.resolveComponent("el-switch"),fbe=h.resolveComponent("vxe-table"),hbe=h.resolveComponent("el-pagination"),dbe=h.resolveComponent("el-config-provider"),vT=h.resolveComponent("el-dialog"),Uc=h.resolveComponent("el-table-column"),Wc=h.resolveComponent("el-radio"),rz=h.resolveComponent("el-radio-group"),pbe=h.resolveComponent("el-table");return h.openBlock(),h.createElementBlock("div",{style:{"overflow-x":"auto",position:"relative","overflow-y":"hidden"},class:"fixed-scroll-error editCard",ref_key:"dvTbMain",ref:W},[h.createElementVNode("div",cJ,[R.showMoreBtnInfo&&R.showMoreBtnInfo.length?(h.openBlock(),h.createElementBlock("div",fJ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(R.showMoreBtnInfo,(q,Ft)=>(h.openBlock(),h.createElementBlock("div",{key:Ft},[h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt(q.tooltip,"菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{onClick:xt=>q.click(),type:"primary",icon:q.icon,style:{cursor:"pointer",height:"26px",width:"30px"}},null,8,["onClick","icon"])]),_:2},1032,["content"])]))),128))])):h.createCommentVNode("",!0),R.bShowAddBtn?(h.openBlock(),h.createElementBlock("div",hJ,[h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("添加明细","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{onClick:F[0]||(F[0]=q=>Xa()),type:"primary",icon:"CirclePlusFilled",style:{cursor:"pointer",height:"26px",width:"30px"}})]),_:1},8,["content"])])):h.createCommentVNode("",!0),!h.unref(B)&&R.bCanEditAll&&R.bCanEdit?(h.openBlock(),h.createElementBlock("div",dJ,[h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("编辑全部","菜单"),placement:"top-start"},{default:h.withCtx(()=>[R.bShowEditAll?(h.openBlock(),h.createBlock(Z,{key:0,onClick:F[1]||(F[1]=q=>yo()),type:"primary",icon:"Edit",style:{cursor:"pointer",height:"26px",width:"30px"}})):(h.openBlock(),h.createElementBlock("span",pJ))]),_:1},8,["content"]),h.createVNode(te,{class:"item",effect:"dark",content:R.bDeleteModel?h.unref($).$ntt("批量删除","菜单"):h.unref($).$ntt("批量取消启用","菜单"),placement:"top-start"},{default:h.withCtx(()=>[R.bShowChecked&&R.bShowDeleteBtn?(h.openBlock(),h.createBlock(Z,{key:0,onClick:F[2]||(F[2]=q=>hy()),type:"primary",icon:R.bDeleteModel?"Delete":"TurnOff",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}},null,8,["icon"])):(h.openBlock(),h.createElementBlock("span",vJ))]),_:1},8,["content"])])):h.unref(B)&&R.bCanEditAll&&R.bCanEdit?(h.openBlock(),h.createElementBlock("div",gJ,[h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("批量保存","菜单"),placement:"top-start"},{default:h.withCtx(()=>[R.hdrAndDtlTogetherSave?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Z,{key:0,onClick:F[3]||(F[3]=q=>Od()),type:"primary",icon:"Select",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}}))]),_:1},8,["content"]),h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("批量取消","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{onClick:F[4]||(F[4]=q=>ki()),type:"primary",icon:"CloseBold",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}})]),_:1},8,["content"])])):h.createCommentVNode("",!0)]),h.createElementVNode("div",mJ,[h.createVNode(It,null,{dropdown:h.withCtx(()=>[h.createVNode(Je,{slot:"dropdown"},{default:h.withCtx(()=>[h.createVNode(rt,{onClick:Ye},{default:h.withCtx(()=>[h.createVNode(Ie,{size:"small"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("自定义列展示","菜单")),1)]),_:1})]),_:1}),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(R.sAnotherOP,(q,Ft)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:Ft},[q.bHide?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(rt,{key:0,onClick:q.sClick},{default:h.withCtx(()=>[h.createVNode(Ie,{size:"small"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(q.sCaption),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:h.withCtx(()=>[h.createElementVNode("span",yJ,[h.createVNode(Z,{icon:"Operation",circle:""})])]),_:1})]),h.unref(b)?(h.openBlock(),h.createElementBlock("span",{key:0,style:{position:"absolute","z-index":"9",right:"250px",opacity:"0.8"},title:h.unref($).$ntt("保存列宽","菜单")},[h.createVNode(ar,null,{default:h.withCtx(()=>[h.createVNode(Z,{icon:"Check",onClick:Qe,circle:""})]),_:1})],8,_J)):h.createCommentVNode("",!0),h.createElementVNode("div",{style:{"margin-top":"5px"},id:R.name+"_iv_table"},[h.createVNode(fbe,{ref:"cmEditDtl",align:R.allAlign,size:"small",border:"","empty-text":h.unref($).$ntt("暂无数据"),"show-overflow":"",loading:!1,"scroll-y":{enabled:!0,gt:0},"column-config":{resizable:!0},"row-config":{useKey:!0,isHover:!0,drag:!0},"cell-config":{height:R.rowHeight},data:h.unref(p),onCheckboxAll:fe,onCheckboxChange:we,"show-footer":R.bShowSum,"footer-method":Ae,onPaste:F[5]||(F[5]=q=>St(q)),onCellClick:At,onToggleRowExpand:ae,"max-height":R.tableMaxHeight,"cell-style":R.cellStyle,"sort-config":{defaultSort:h.unref(A),trigger:"cell",remote:!0},onSortChange:K,onResizableChange:ht,"checkbox-config":h.unref(I),onRowDragend:Bt},{default:h.withCtx(()=>[h.createVNode(gr,{visible:R.bShowChecked,type:"checkbox",width:"60",fixed:R.leftFixed,"drag-sort":""},null,8,["visible","fixed"]),h.createVNode(gr,{type:"seq",title:h.unref($).$ntt("序号"),width:"60",fixed:R.leftFixed,"drag-sort":""},null,8,["title","fixed"]),h.createVNode(gr,{type:"expand",width:"80",fixed:R.leftFixed,visible:R.rowOtherData.hasOwnProperty("render")},{content:h.withCtx(({row:q,rowIndex:Ft,$rowIndex:xt,column:Mn,fixed:Un})=>[R.rowOtherData.hasOwnProperty("render")?(h.openBlock(),h.createElementBlock("div",SJ,[h.createVNode(Pi,{render:R.rowOtherData.render,params:{row:q,index:Ft,col:Mn,colIndex:Ft}},null,8,["render","params"])])):h.createCommentVNode("",!0)]),_:1},8,["fixed","visible"]),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(_),(q,Ft)=>(h.openBlock(),h.createBlock(gr,{visible:!!(q._checked&&!q.bHide),key:q.sKey+"_"+q.sCaption+"_"+Ft,field:q.sKey,title:q.sCaption,fixed:q.sFixed,width:q.width,"min-width":q.minWidth,sortable:q.sortable,"show-overflow":""},{header:h.withCtx(({column:xt,columnIndex:Mn,$rowIndex:Un})=>[q.hdrRender?(h.openBlock(),h.createBlock(Pi,{key:0,render:q.hdrRender,params:{row:xt,index:h.unref(L),col:q,colIndex:Ft}},null,8,["render","params"])):(h.openBlock(),h.createElementBlock("span",wJ,h.toDisplayString(q.sCaption),1)),h.withDirectives(h.createElementVNode("span",null," *",512),[[h.vShow,q.bRequired]])]),default:h.withCtx(({row:xt,rowIndex:Mn,$rowIndex:Un})=>[q.render&&q.sType!=="date"&&q.sType!=="dateTime"&&q.sType!=="number"&&q.sType!=="sPicture"?(h.openBlock(),h.createElementBlock("div",xJ,[h.createVNode(Pi,{render:q.render,params:{row:xt,index:Mn,col:q,colIndex:Ft}},null,8,["render","params"])])):(q.sType==="text"||q.sType==="number")&&xt.bEditItem&&q.bEdit?(h.openBlock(),h.createElementBlock("div",CJ,[h.createVNode(Jl,{modelValue:xt[q.sKey],"onUpdate:modelValue":nn=>xt[q.sKey]=nn,disabled:q.disabled||q.bEditRow,type:q.sType,placeholder:q.placeholder,onInput:nn=>rn(q,xt,Mn),onFocus:nn=>mo(q,xt,Mn,Ft),onBlur:nn=>Ii(q,xt,Mn,Ft),onKeydown:Ya,ref_for:!0,ref:`input_${Mn}_${Ft}`,size:"small"},null,8,["modelValue","onUpdate:modelValue","disabled","type","placeholder","onInput","onFocus","onBlur"])])):(q.sType==="date"||q.sType==="dateTime")&&xt.bEditItem&&q.bEdit?(h.openBlock(),h.createElementBlock("div",TJ,[h.createVNode(dT,{style:{width:"100%"},modelValue:xt[q.sKey],"onUpdate:modelValue":nn=>xt[q.sKey]=nn,type:q.sType=="dateTime"?"datetime":q.sType,placeholder:h.unref($).$ntt("选择日期","菜单"),format:"YYYY-MM-DD","value-format":ne(q.sType),size:"small",onChange:nn=>rn(q,xt,Mn)},null,8,["modelValue","onUpdate:modelValue","type","placeholder","value-format","onChange"])])):q.sType==="color"?(h.openBlock(),h.createElementBlock("div",DJ,[q.sType==="color"?(h.openBlock(),h.createBlock(pT,{key:0,disabled:!xt.bEditItem||q.disabled,modelValue:xt[q.sKey],"onUpdate:modelValue":nn=>xt[q.sKey]=nn},null,8,["disabled","modelValue","onUpdate:modelValue"])):h.createCommentVNode("",!0)])):q.sType==="sPicture"?(h.openBlock(),h.createElementBlock("div",EJ,[h.createElementVNode("img",{onClick:nn=>ie(h.unref(a).$utils.getManyLevelData(xt,q.sKey)),src:h.unref(a).$utils.getManyLevelData(xt,q.sKey)?h.unref(a).$utils.getManyLevelData(xt,q.sKey).indexOf("http")===-1?"hf_pub_api"+h.unref(a).$utils.getManyLevelData(xt,q.sKey):h.unref(a).$utils.getManyLevelData(xt,q.sKey):"",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,AJ)])):q.sType==="select"||q.sType==="manySelect"?(h.openBlock(),h.createElementBlock("div",MJ,[h.createVNode(cbe,{bDisabled:!xt.bEditItem||q.disabled,slItem:q,baseData:xt,sApiUrl:q.sSelectApi,responseMode:q.responseMode,onCmSelectRefresh:se,onOnSelectChange:(nn,nz)=>{rn(q,xt,Mn,nz)},modelOther:"cmEditDtl"},null,8,["bDisabled","slItem","baseData","sApiUrl","responseMode","onOnSelectChange"])])):q.sType==="switch"?(h.openBlock(),h.createElementBlock("div",NJ,[h.createVNode(tz,{disabled:!xt.bEditItem||q.disabled||!q.bEdit,modelValue:xt[q.sKey],"onUpdate:modelValue":nn=>xt[q.sKey]=nn,onOnChange:nn=>rn(q,xt,Mn)},null,8,["disabled","modelValue","onUpdate:modelValue","onOnChange"])])):q.sValueFormat&&q.sType==="text"?(h.openBlock(),h.createElementBlock("div",IJ,[h.createElementVNode("span",null,h.toDisplayString(q.sValueFormat(xt)),1)])):(h.openBlock(),h.createElementBlock("span",LJ,h.toDisplayString(xe(xt,q,q.sKey)),1))]),_:2},1032,["visible","field","title","fixed","width","min-width","sortable"]))),128)),h.createVNode(gr,{field:"action",visible:R.bShowActionColumn,title:h.unref($).$ntt("操作"),fixed:R.rightFixed,"min-width":R.AnotherActionWidth},{default:h.withCtx(({row:q,rowIndex:Ft,$rowIndex:xt})=>{var Mn;return[h.createElementVNode("div",kJ,[!q.bEditItem&&R.bCanEdit?(h.openBlock(),h.createElementBlock("div",PJ,[h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("编辑","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{class:h.normalizeClass(["rowIcon",q.bCannotEdit?"row-edit-btn-disabled":""]),icon:"Edit",onClick:Un=>wt(q)},null,8,["onClick","class"])]),_:2},1032,["content"]),h.createVNode(te,{class:"item",effect:"dark",content:R.bDeleteModel?h.unref($).$ntt("删除","菜单"):h.unref($).$ntt("取消启用","菜单"),placement:"top-start"},{default:h.withCtx(()=>[R.bShowDeleteBtn&&q.usable?(h.openBlock(),h.createBlock(Z,{key:0,class:h.normalizeClass(["rowIcon",q.bCannotDelete?"row-delete-btn-disabled":""]),icon:R.bDeleteModel?"Delete":"TurnOff",onClick:Un=>Ht(q,Ft),style:{color:"darkred"}},null,8,["icon","class","onClick"])):h.createCommentVNode("",!0)]),_:2},1032,["content"]),R.bCopyRow?(h.openBlock(),h.createBlock(te,{key:0,class:"item",effect:"dark",content:h.unref($).$ntt("复制","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{class:"rowIcon",icon:"CopyDocument",onClick:Un=>pr(q,Ft)},null,8,["onClick"])]),_:2},1032,["content"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),q.bEditItem?(h.openBlock(),h.createElementBlock("div",OJ,[!h.unref(G)&&!R.hdrAndDtlTogetherSave?(h.openBlock(),h.createBlock(te,{key:0,class:"item",effect:"dark",content:h.unref($).$ntt("保存","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{class:"rowIcon",icon:"Select",onClick:Un=>vr(q)},null,8,["onClick"])]),_:2},1032,["content"])):h.createCommentVNode("",!0),h.createVNode(te,{class:"item",effect:"dark",content:h.unref($).$ntt("取消","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createElementVNode("span",null,[h.createVNode(Z,{class:"rowIcon",icon:"CloseBold",onClick:Un=>Li(q,Ft),style:{color:"darkred"}},null,8,["onClick"])])]),_:2},1032,["content"]),R.bCopyRow?(h.openBlock(),h.createBlock(te,{key:1,class:"item",effect:"dark",content:h.unref($).$ntt("复制","菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{class:"rowIcon",icon:"CopyDocument",onClick:Un=>pr(q,Ft)},null,8,["onClick"])]),_:2},1032,["content"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),(Mn=R.sAnotherRowActionBtns)!=null&&Mn.length?(h.openBlock(),h.createElementBlock("div",RJ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(R.sAnotherRowActionBtns,(Un,nn)=>(h.openBlock(),h.createElementBlock("div",{key:nn},[Un.bShow?(h.openBlock(),h.createBlock(te,{key:0,class:"item",effect:"dark",content:h.unref($).$ntt(`${Un.sName}`,"菜单"),placement:"top-start"},{default:h.withCtx(()=>[h.createVNode(Z,{class:"rowIcon",icon:Un.icon,onClick:nz=>Un.sClick(q,Ft)},null,8,["icon","onClick"])]),_:2},1032,["content"])):h.createCommentVNode("",!0)]))),128))])):h.createCommentVNode("",!0)])]}),_:1},8,["visible","title","fixed","min-width"])]),_:1},8,["align","empty-text","cell-config","data","show-footer","max-height","cell-style","sort-config","checkbox-config"]),R.sPageData.length>0&&R.bShowPage?(h.openBlock(),h.createElementBlock("div",VJ,[h.createVNode(dbe,{locale:h.unref(o2)},{default:h.withCtx(()=>[h.createVNode(hbe,{total:h.unref(d),class:"paginations",size:"small",layout:"total, sizes, prev, pager, next, jumper","current-page":h.unref(c),"onUpdate:currentPage":F[6]||(F[6]=q=>h.isRef(c)?c.value=q:c=q),"page-size":h.unref(f),"onUpdate:pageSize":F[7]||(F[7]=q=>h.isRef(f)?f.value=q:f=q),"page-sizes":h.unref(u),onCurrentChange:dy,onSizeChange:Rd},null,8,["total","current-page","page-size","page-sizes"])]),_:1},8,["locale"])])):h.createCommentVNode("",!0)],8,bJ),h.createVNode(vT,{title:h.unref($).$ntt("查看大图","菜单"),modelValue:h.unref(k),"onUpdate:modelValue":F[8]||(F[8]=q=>h.isRef(k)?k.value=q:k=q)},{default:h.withCtx(()=>[h.createElementVNode("div",null,[h.unref(k)?(h.openBlock(),h.createElementBlock("img",{key:0,src:h.unref(P),style:{width:"100%"}},null,8,BJ)):h.createCommentVNode("",!0)])]),_:1},8,["title","modelValue"]),h.createVNode(vT,{modelValue:h.unref(x),"onUpdate:modelValue":F[10]||(F[10]=q=>h.isRef(x)?x.value=q:x=q),title:h.unref($).$ntt("自定义列","菜单"),width:"60%","align-center":""},{footer:h.withCtx(()=>[h.createElementVNode("div",UJ,[h.createVNode(Z,{onClick:F[9]||(F[9]=q=>h.isRef(x)?x.value=!1:x=!1)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消","菜单")),1)]),_:1}),h.createVNode(Z,{type:"primary",onClick:oe},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确定","菜单")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",FJ,[h.createElementVNode("div",{class:"jc",style:{"margin-bottom":"5px"},title:h.unref($).$ntt("重置","菜单")},[h.createVNode(Z,{circle:"",icon:"Refresh",onClick:lt}),h.createElementVNode("span",$J,h.toDisplayString(h.unref($).$ntt("1.点击按钮即可重置","菜单")),1),h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("2.选中后可上下拖拽调整顺序","菜单")),1)],8,zJ),h.createVNode(pbe,{border:"","header-row-class-name":"tbHeader",width:"100%",size:"small",data:h.unref(w)},{default:h.withCtx(()=>[h.createVNode(Uc,{label:h.unref($).$ntt("序号","菜单"),width:"60"},{default:h.withCtx(q=>[h.createElementVNode("span",null,h.toDisplayString(q.$index+1),1)]),_:1},8,["label"]),h.createVNode(Uc,{label:h.unref($).$ntt("列表项","菜单"),"min-width":"120"},{default:h.withCtx(q=>[h.createElementVNode("span",null,h.toDisplayString(q.row.sCaption),1)]),_:1},8,["label"]),h.createVNode(Uc,{label:h.unref($).$ntt("是否显示","菜单"),width:"80"},{default:h.withCtx(q=>[h.createElementVNode("div",null,[h.createVNode(tz,{modelValue:q.row._checked,"onUpdate:modelValue":Ft=>q.row._checked=Ft,size:"large"},{default:h.withCtx(()=>[h.createElementVNode("span",HJ,h.toDisplayString(h.unref($).$ntt("显示","菜单")),1),h.createElementVNode("span",GJ,h.toDisplayString(h.unref($).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Uc,{label:h.unref($).$ntt("以此列排序","菜单"),width:"180"},{default:h.withCtx(q=>[h.createElementVNode("div",null,[h.createVNode(rz,{modelValue:q.row.sOrderType,"onUpdate:modelValue":Ft=>q.row.sOrderType=Ft,size:"small"},{default:h.withCtx(()=>[h.createVNode(Wc,{value:"0"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("无","菜单")),1)]),_:1}),h.createVNode(Wc,{value:"asc"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("正序","菜单")),1)]),_:1}),h.createVNode(Wc,{value:"desc"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("倒序","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Uc,{label:h.unref($).$ntt("是否固定","菜单"),width:"180"},{default:h.withCtx(q=>[h.createElementVNode("div",null,[h.createVNode(rz,{modelValue:q.row.fixed,"onUpdate:modelValue":Ft=>q.row.fixed=Ft,size:"small"},{default:h.withCtx(()=>[h.createVNode(Wc,{value:"0"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("否","菜单")),1)]),_:1}),h.createVNode(Wc,{value:"left"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("左侧","菜单")),1)]),_:1}),h.createVNode(Wc,{value:"right"},{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt("右侧","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),h.createVNode(Uc,{label:h.unref($).$ntt("操作","菜单"),width:"300"},{default:h.withCtx(q=>[h.createVNode(Z,{size:"small",type:"text",onClick:h.withModifiers(Ft=>_t(q.$index,1,h.unref(w)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),h.createVNode(Z,{size:"small",type:"text",onClick:h.withModifiers(Ft=>_t(q.$index,0,h.unref(w)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"]),h.createVNode(Z,{size:"small",type:"text",onClick:h.withModifiers(Ft=>O(q.$index,h.unref(w)),["stop"])},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("自定义序列","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue","title"]),h.createVNode(vT,{title:h.unref($).$ntt("数据","菜单"),modelValue:h.unref(C),"onUpdate:modelValue":F[13]||(F[13]=q=>h.isRef(C)?C.value=q:C=q)},{footer:h.withCtx(()=>[h.createElementVNode("div",XJ,[h.createVNode(Z,{onClick:F[12]||(F[12]=q=>h.isRef(C)?C.value=!1:C=!1)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消","菜单")),1)]),_:1}),h.createVNode(Z,{type:"primary",onClick:z},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确定","菜单")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",WJ,[h.createElementVNode("p",YJ,h.toDisplayString(h.unref($).$ntt("调整序列至:","菜单")),1),h.createVNode(Jl,{size:"small",modelValue:h.unref(T),"onUpdate:modelValue":F[11]||(F[11]=q=>h.isRef(T)?T.value=q:T=q)},null,8,["modelValue"])])]),_:1},8,["title","modelValue"])],512)}}}),ZJ=sn(jJ,[["__scopeId","data-v-c2a59d0a"]]),qJ={class:"btnContain"},JJ={name:"cmButton"},QJ=h.defineComponent({...JJ,props:{btnList:{},size:{default:()=>"small"}},setup(e){let{proxy:t}=h.getCurrentInstance();return(r,n)=>{const a=h.resolveComponent("el-button");return h.openBlock(),h.createElementBlock("div",qJ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.btnList,(i,o)=>(h.openBlock(),h.createElementBlock("div",{class:"btnGroup",key:o},[h.createVNode(a,{class:"btnClass",size:r.size,onClick:s=>i.sClick(h.unref($))},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.sName),1)]),_:2},1032,["size","onClick"])]))),128))])}}}),eQ=sn(QJ,[["__scopeId","data-v-4c0f7463"]]),tQ={name:"selectDialog"},rQ=h.defineComponent({...tQ,props:{selectDialogSize:{default:()=>"100%"},title:{default:()=>$.$ntt("单据详情")},name:{},sMainKey:{},sPageData:{default:()=>["iPageIndex","iPageSize","result.totalElements","result.content"]},sFilterData:{},sDataUrl:{},methodType:{default:()=>"POST"},itemList:{},bShowPage:{type:Boolean,default:()=>!0},bShowSearch:{type:Boolean,default:()=>!0},beforeGetDataList:{},ManualCurrentChange:{},ManualSizeChange:{},isShowSwitch:{type:Boolean,default:()=>!1},iAnotherHeight:{default:()=>-30},beforeClose:{},iSpan:{default:()=>4},size:{default:()=>"small"},initRowHeight:{default:()=>30}},emits:["beforeClose","saveConfirmData"],setup(e,{expose:t,emit:r}){t({showDrawer:o,closeDrawer:u});let n=r,{proxy:a}=h.getCurrentInstance(),i=e;function o(){a.$refs.selectDialog.showDrawer()}function s(){return!(i.beforeClose&&!i.beforeClose())}function l(){let c=a.$refs.cmTable.getSelection();if(!c.length)return a.$message.warning($.$ntt("请选择数据")),!1;n("saveConfirmData",c)}function u(){a.$refs.selectDialog.closeDrawer()}return(c,f)=>{const d=h.resolveComponent("cmTableList"),p=h.resolveComponent("cmDialog");return h.openBlock(),h.createBlock(p,{ref:"selectDialog",title:c.title,beforeClose:s,onSaveConfirmData:l,size:c.selectDialogSize},{content:h.withCtx(()=>[h.createVNode(d,{sFilterData:c.sFilterData,sDataUrl:c.sDataUrl,sPageData:c.sPageData,itemList:c.itemList,bShowPage:c.bShowPage,sMainKey:c.sMainKey,bShowSearch:c.bShowSearch,bShowCustomColumn:!1,bShowCustomWidth:!1,ref:"cmTable","method-type":c.methodType,beforeGetDataList:c.beforeGetDataList,name:c.name,initRowHeight:30,size:"default",ManualSizeChange:c.ManualSizeChange,ManualCurrentChange:c.ManualSizeChange,isShowSwitch:c.isShowSwitch,iAnotherHeight:c.iAnotherHeight},null,8,["sFilterData","sDataUrl","sPageData","itemList","bShowPage","sMainKey","bShowSearch","method-type","beforeGetDataList","name","ManualSizeChange","ManualCurrentChange","isShowSwitch","iAnotherHeight"])]),_:1},8,["title","size"])}}}),nQ=sn(rQ,[["__scopeId","data-v-9b382971"]]),aQ={class:"my_drawer"},iQ={key:0,class:"footer"},oQ={class:"my_dialog"},sQ={key:0,class:"footer"},lQ={name:"cmDialog"},uQ=h.defineComponent({...lQ,props:{size:{default:"100%"},title:{default:$.$ntt("单据信息")},beforeClose:{},bShowFooter:{default:()=>!0}},emits:["saveConfirmData"],setup(e,{expose:t,emit:r}){t({showDrawer:l,closeDrawer:d});let n=r,a=e,i=h.ref(!1),o=h.ref(!1),s=[{sName:$.$ntt("取消"),sClick:()=>{c()}},{sName:$.$ntt("确认"),sClick:()=>{f()}}];function l(p){p==2?o.value=!0:i.value=!0}function u(){if(a.beforeClose&&!a.beforeClose())return!1;i.value=!1,o.value=!1}function c(){u()}function f(){n("saveConfirmData")}function d(){i.value=!1,o.value=!1}return(p,v)=>{const g=h.resolveComponent("cmButton"),m=h.resolveComponent("el-drawer"),y=h.resolveComponent("el-dialog");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",aQ,[h.createVNode(m,{modelValue:h.unref(i),"onUpdate:modelValue":v[0]||(v[0]=_=>h.isRef(i)?i.value=_:i=_),direction:"rtl","before-close":u,"append-to-body":!1,"show-close":!0,size:p.size},{header:h.withCtx(()=>[h.renderSlot(p.$slots,"header",{},()=>[h.createTextVNode(h.toDisplayString(h.unref(a).title),1)],!0)]),default:h.withCtx(()=>[h.renderSlot(p.$slots,"content",{},void 0,!0)]),footer:h.withCtx(()=>[h.renderSlot(p.$slots,"footer",{},void 0,!0),p.bShowFooter?(h.openBlock(),h.createElementBlock("div",iQ,[h.createVNode(g,{btnList:h.unref(s)},null,8,["btnList"])])):h.createCommentVNode("",!0)]),_:3},8,["modelValue","size"])]),h.createElementVNode("div",oQ,[h.createVNode(y,{modelValue:h.unref(o),"onUpdate:modelValue":v[1]||(v[1]=_=>h.isRef(o)?o.value=_:o=_),title:h.unref(a).title,width:p.size},{footer:h.withCtx(()=>[h.renderSlot(p.$slots,"footer",{},void 0,!0),p.bShowFooter?(h.openBlock(),h.createElementBlock("div",sQ,[h.createVNode(g,{btnList:h.unref(s)},null,8,["btnList"])])):h.createCommentVNode("",!0)]),default:h.withCtx(()=>[h.renderSlot(p.$slots,"content",{},void 0,!0)]),_:3},8,["modelValue","title","width"])])],64)}}}),cQ=sn(uQ,[["__scopeId","data-v-09ede3ad"]]),fQ={class:"borderHdr"},hQ={class:"custom-tabs-label"},dQ={name:"cmHdrBorder"},pQ=h.defineComponent({...dQ,props:{hdrName:{default:()=>$.$ntt("基础信息")}},setup(e){return(t,r)=>(h.openBlock(),h.createElementBlock("div",fQ,[h.createElementVNode("span",hQ,[r[0]||(r[0]=h.createElementVNode("div",{class:"borderDiv"},null,-1)),h.createElementVNode("span",null,h.toDisplayString(h.unref($).$ntt(t.hdrName,"菜单")),1)])]))}}),vQ=sn(pQ,[["__scopeId","data-v-716f9355"]]),gQ={name:"cmSelectOption"},mQ=h.defineComponent({...gQ,props:{value:{},options:{},size:{default:()=>"small"},disabled:{type:Boolean,default:()=>!1},width:{default:()=>240}},emits:["changeSearchMode","update:value"],setup(e,{emit:t}){let r=t,n=e,a=h.ref("");const i=o=>{r("changeSearchMode",o),r("update:value",o)};return h.watch(()=>n.value,(o,s)=>{o&&(a.value=o)},{deep:!0,immediate:!0}),(o,s)=>{const l=h.resolveComponent("el-option"),u=h.resolveComponent("el-select");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(u,{modelValue:h.unref(a),"onUpdate:modelValue":s[0]||(s[0]=c=>h.isRef(a)?a.value=c:a=c),placeholder:"Select",size:o.size,disabled:o.disabled,style:h.normalizeStyle(`width: ${Number(o.width)}px`),"collapse-tags-tooltip":!0,"collapse-tags":!0,onChange:i},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.options,c=>(h.openBlock(),h.createBlock(l,{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size","disabled","style"])])}}});/*! *****************************************************************************
51
+ Copyright (c) Microsoft Corporation.
52
+
53
+ Permission to use, copy, modify, and/or distribute this software for any
54
+ purpose with or without fee is hereby granted.
55
+
56
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
57
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
58
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
59
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
60
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
61
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
62
+ PERFORMANCE OF THIS SOFTWARE.
63
+ ***************************************************************************** */var N_=function(e,t){return N_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},N_(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");N_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var yQ=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),_Q=function(){function e(){this.browser=new yQ,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Xe=new _Q;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Xe.wxa=!0,Xe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Xe.worker=!0:!Xe.hasGlobalWindow||"Deno"in window?(Xe.node=!0,Xe.svgSupported=!0):bQ(navigator.userAgent,Xe);function bQ(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var I_=12,f2="sans-serif",Lo=I_+"px "+f2,SQ=20,wQ=100,xQ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function CQ(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-SQ)/wQ;t[n]=a}return t}var TQ=CQ(xQ),Ia={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=Ia.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Lo),e.measureText(r);r=r||"",n=n||Lo;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||I_,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=TQ[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function h2(e){for(var t in Ia)e[t]&&(Ia[t]=e[t])}var d2=Qn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),p2=Qn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Du=Object.prototype.toString,tv=Array.prototype,DQ=tv.forEach,EQ=tv.filter,L_=tv.slice,AQ=tv.map,v2=(function(){}).constructor,rv=v2?v2.prototype:null,k_="__proto__",MQ=2311;function P_(){return MQ++}function Jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ke(e){if(e==null||typeof e!="object")return e;var t=e,r=Du.call(e);if(r==="[object Array]"){if(!Eu(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ke(e[n])}}else if(p2[r]){if(!Eu(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!d2[r]&&!Eu(e)&&!ko(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==k_&&(t[o]=ke(e[o]))}return t}function Fe(e,t,r){if(!Ee(t)||!Ee(e))return r?ke(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==k_){var a=e[n],i=t[n];Ee(i)&&Ee(a)&&!J(i)&&!J(a)&&!ko(i)&&!ko(a)&&!R_(i)&&!R_(a)&&!Eu(i)&&!Eu(a)?Fe(a,i,r):(r||!(n in e))&&(e[n]=ke(t[n]))}return e}function nv(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=Fe(r,e[n],t);return r}function j(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==k_&&(e[r]=t[r]);return e}function Me(e,t,r){for(var n=qe(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var NQ=Ia.createCanvas;function Ge(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function O_(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function qt(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Me(e,t,r)}function Lr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function M(e,t,r){if(e&&t)if(e.forEach&&e.forEach===DQ)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function ee(e,t,r){if(!e)return[];if(!t)return av(e);if(e.map&&e.map===AQ)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Qn(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function ct(e,t,r){if(!e)return[];if(!t)return av(e);if(e.filter&&e.filter===EQ)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function g2(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function qe(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function IQ(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(L_.call(arguments)))}}var ge=rv&&Se(rv.bind)?rv.call.bind(rv.bind):IQ;function Be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(L_.call(arguments)))}}function J(e){return Array.isArray?Array.isArray(e):Du.call(e)==="[object Array]"}function Se(e){return typeof e=="function"}function he(e){return typeof e=="string"}function If(e){return Du.call(e)==="[object String]"}function ot(e){return typeof e=="number"}function Ee(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function R_(e){return!!d2[Du.call(e)]}function Ur(e){return!!p2[Du.call(e)]}function ko(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Lf(e){return e.colorStops!=null}function m2(e){return e.image!=null}function V_(e){return Du.call(e)==="[object RegExp]"}function Po(e){return e!==e}function Qt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Re(e,t){return e??t}function On(e,t,r){return e??t??r}function av(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return L_.apply(e,t)}function iv(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ne(e,t){if(!e)throw new Error(t)}function ea(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var y2="__ec_primitive__";function kf(e){e[y2]=!0}function Eu(e){return e[y2]}var LQ=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return qe(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),_2=typeof Map=="function";function kQ(){return _2?new Map:new LQ}var b2=function(){function e(t){var r=J(t);this.data=kQ();var n=this;t instanceof e?t.each(a):t&&M(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return _2?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function _e(e){return new b2(e)}function Au(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function Pf(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&j(r,t),r}function B_(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ye(e,t){return e.hasOwnProperty(t)}function Jt(){}var Of=180/Math.PI;const PQ=Object.freeze(Object.defineProperty({__proto__:null,HashMap:b2,RADIAN_TO_DEGREE:Of,assert:Ne,bind:ge,clone:ke,concatArray:Au,createCanvas:NQ,createHashMap:_e,createObject:Pf,curry:Be,defaults:Me,disableUserSelect:B_,each:M,eqNaN:Po,extend:j,filter:ct,find:g2,guid:P_,hasOwn:ye,indexOf:Ge,inherits:O_,isArray:J,isArrayLike:Lr,isBuiltInObject:R_,isDom:ko,isFunction:Se,isGradientObject:Lf,isImagePatternObject:m2,isNumber:ot,isObject:Ee,isPrimitive:Eu,isRegExp:V_,isString:he,isStringSafe:If,isTypedArray:Ur,keys:qe,logError:Jn,map:ee,merge:Fe,mergeAll:nv,mixin:qt,noop:Jt,normalizeCssArray:iv,reduce:Qn,retrieve:Qt,retrieve2:Re,retrieve3:On,setAsPrimitive:kf,slice:av,trim:ea},Symbol.toStringTag,{value:"Module"}));function Oo(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Wr(e,t){return e[0]=t[0],e[1]=t[1],e}function li(e){return[e[0],e[1]]}function S2(e,t,r){return e[0]=t,e[1]=r,e}function F_(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function ov(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Ro(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Rf(e){return Math.sqrt(z_(e))}var OQ=Rf;function z_(e){return e[0]*e[0]+e[1]*e[1]}var RQ=z_;function VQ(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function BQ(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function FQ(e,t){return e[0]*t[0]+e[1]*t[1]}function Vf(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Fs(e,t){var r=Rf(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function sv(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ki=sv;function w2(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Vo=w2;function zQ(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Bf(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Ar(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function ji(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Zi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const $Q=Object.freeze(Object.defineProperty({__proto__:null,add:F_,applyTransform:Ar,clone:li,copy:Wr,create:Oo,dist:Ki,distSquare:Vo,distance:sv,distanceSquare:w2,div:BQ,dot:FQ,len:Rf,lenSquare:z_,length:OQ,lengthSquare:RQ,lerp:Bf,max:Zi,min:ji,mul:VQ,negate:zQ,normalize:Fs,scale:Vf,scaleAndAdd:ov,set:S2,sub:Ro},Symbol.toStringTag,{value:"Module"}));var Mu=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),HQ=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Mu(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new Mu(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Mu(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Mu(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Mu(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Mu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),ta=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),GQ=Math.log(2);function $_(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/GQ);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var v=1<<d;v&a||(f+=(p%2?-1:1)*e[r][d]*$_(e,t-1,c,u,a|v,i),p++)}return i[o]=f,f}function x2(e,t){var r=[[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]]],n={},a=$_(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*$_(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var C2="___zrEVENTSAVED",H_=[];function UQ(e,t,r,n,a){return G_(H_,t,n,a,!0)&&G_(e,r,H_[0],H_[1])}function G_(e,t,r,n,a){if(t.getBoundingClientRect&&Xe.domSupported&&!T2(t)){var i=t[C2]||(t[C2]={}),o=WQ(t,i),s=YQ(o,i,a);if(s)return s(e,r,n),!0}return!1}function WQ(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function YQ(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;o.push(d,p),l=l&&i&&d===i[f]&&p===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?x2(s,o):x2(o,s))}function T2(e){return e.nodeName.toUpperCase()==="CANVAS"}var XQ=/([&<>"'])/g,KQ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Yr(e){return e==null?"":(e+"").replace(XQ,function(t,r){return KQ[r]})}var jQ=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,U_=[],ZQ=Xe.browser.firefox&&+Xe.browser.version.split(".")[0]<39;function W_(e,t,r,n){return r=r||{},n?D2(e,t,r):ZQ&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):D2(e,t,r),r}function D2(e,t,r){if(Xe.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(T2(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(G_(U_,e,n,a)){r.zrX=U_[0],r.zrY=U_[1];return}}r.zrX=r.zrY=0}function Y_(e){return e||window.event}function ra(e,t,r){if(t=Y_(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&W_(e,o,t,r)}else{W_(e,t,t,r);var i=qQ(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&jQ.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function qQ(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function X_(e,t,r,n){e.addEventListener(t,r,n)}function JQ(e,t,r,n){e.removeEventListener(t,r,n)}var qi=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function E2(e){return e.which===2||e.which===3}var QQ=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=W_(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in K_)if(K_.hasOwnProperty(r)){var n=K_[r](this._track,t);if(n)return n}},e}();function A2(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function eee(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var K_={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=A2(n)/A2(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=eee(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function xn(){return[1,0,0,1,0,0]}function Ff(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function lv(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 ui(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function La(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Bo(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function uv(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function zs(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function M2(e){var t=xn();return lv(t,e),t}const tee=Object.freeze(Object.defineProperty({__proto__:null,clone:M2,copy:lv,create:xn,identity:Ff,invert:zs,mul:ui,rotate:Bo,scale:uv,translate:La},Symbol.toStringTag,{value:"Module"}));var $e=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),cv=Math.min,fv=Math.max,$s=new $e,Hs=new $e,Gs=new $e,Us=new $e,zf=new $e,$f=new $e,He=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=cv(t.x,this.x),n=cv(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fv(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fv(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=xn();return La(i,i,[-r.x,-r.y]),uv(i,i,[n,a]),La(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(r){var p=1/0,v=0,g=Math.abs(i-l),m=Math.abs(u-a),y=Math.abs(s-c),_=Math.abs(f-o),b=Math.min(g,m),S=Math.min(y,_);i<l||u<a?b>v&&(v=b,g<m?$e.set($f,-g,0):$e.set($f,m,0)):b<p&&(p=b,g<m?$e.set(zf,g,0):$e.set(zf,-m,0)),s<c||f<o?S>v&&(v=S,y<_?$e.set($f,0,-y):$e.set($f,0,_)):b<p&&(p=b,y<_?$e.set(zf,0,y):$e.set(zf,0,-_))}return r&&$e.copy(r,d?zf:$f),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=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 this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}$s.x=Gs.x=r.x,$s.y=Us.y=r.y,Hs.x=Us.x=r.x+r.width,Hs.y=Gs.y=r.y+r.height,$s.transform(n),Us.transform(n),Hs.transform(n),Gs.transform(n),t.x=cv($s.x,Hs.x,Gs.x,Us.x),t.y=cv($s.y,Hs.y,Gs.y,Us.y);var l=fv($s.x,Hs.x,Gs.x,Us.x),u=fv($s.y,Hs.y,Gs.y,Us.y);t.width=l-t.x,t.height=u-t.y},e}(),N2="silent";function ree(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:nee}}function nee(){qi(this.event)}var aee=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ta),Hf=function(){function e(t,r){this.x=t,this.y=r}return e}(),iee=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],j_=new He(0,0,0,0),I2=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Hf(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new aee,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new HQ(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(iee,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=k2(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Hf(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Hf(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=ree(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Hf(r,n);if(L2(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new He(r-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(j_.copy(d.getBoundingRect()),d.transform&&j_.applyTransform(d.transform),j_.intersect(c)&&s.push(d))}if(s.length)for(var p=4,v=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=p)for(var y=0;y<g;y+=v){var _=r+m*Math.cos(y),b=n+m*Math.sin(y);if(L2(s,o,_,b,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new QQ);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Hf;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(ta);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){I2.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=k2(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ki(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function oee(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?N2:!0}return!1}function L2(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=oee(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==N2)){t.target=o;break}}}function k2(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var P2=32,Gf=7;function see(e){for(var t=0;e>=P2;)t|=e&1,e>>=1;return e+t}function O2(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;lee(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function lee(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function R2(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function Z_(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function q_(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function uee(e,t){var r=Gf,n,a,i=0,o=[];n=[],a=[];function s(p,v){n[i]=p,a[i]=v,i+=1}function l(){for(;i>1;){var p=i-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]<a[p+1]&&p--;else if(a[p]>a[p+1])break;c(p)}}function u(){for(;i>1;){var p=i-2;p>0&&a[p-1]<a[p+1]&&p--,c(p)}}function c(p){var v=n[p],g=a[p],m=n[p+1],y=a[p+1];a[p]=g+y,p===i-3&&(n[p+1]=n[p+2],a[p+1]=a[p+2]),i--;var _=q_(e[m],e,v,g,0,t);v+=_,g-=_,g!==0&&(y=Z_(e[v+g-1],e,m,y,y-1,t),y!==0&&(g<=y?f(v,g,m,y):d(v,g,m,y)))}function f(p,v,g,m){var y=0;for(y=0;y<v;y++)o[y]=e[p+y];var _=0,b=g,S=p;if(e[S++]=e[b++],--m===0){for(y=0;y<v;y++)e[S+y]=o[_+y];return}if(v===1){for(y=0;y<m;y++)e[S+y]=e[b+y];e[S+m]=o[_];return}for(var x=r,w,C,T;;){w=0,C=0,T=!1;do if(t(e[b],o[_])<0){if(e[S++]=e[b++],C++,w=0,--m===0){T=!0;break}}else if(e[S++]=o[_++],w++,C=0,--v===1){T=!0;break}while((w|C)<x);if(T)break;do{if(w=q_(e[b],o,_,v,0,t),w!==0){for(y=0;y<w;y++)e[S+y]=o[_+y];if(S+=w,_+=w,v-=w,v<=1){T=!0;break}}if(e[S++]=e[b++],--m===0){T=!0;break}if(C=Z_(o[_],e,b,m,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=e[b+y];if(S+=C,b+=C,m-=C,m===0){T=!0;break}}if(e[S++]=o[_++],--v===1){T=!0;break}x--}while(w>=Gf||C>=Gf);if(T)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(y=0;y<m;y++)e[S+y]=e[b+y];e[S+m]=o[_]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[S+y]=o[_+y]}}function d(p,v,g,m){var y=0;for(y=0;y<m;y++)o[y]=e[g+y];var _=p+v-1,b=m-1,S=g+m-1,x=0,w=0;if(e[S--]=e[_--],--v===0){for(x=S-(m-1),y=0;y<m;y++)e[x+y]=o[y];return}if(m===1){for(S-=v,_-=v,w=S+1,x=_+1,y=v-1;y>=0;y--)e[w+y]=e[x+y];e[S]=o[b];return}for(var C=r;;){var T=0,D=0,E=!1;do if(t(o[b],e[_])<0){if(e[S--]=e[_--],T++,D=0,--v===0){E=!0;break}}else if(e[S--]=o[b--],D++,T=0,--m===1){E=!0;break}while((T|D)<C);if(E)break;do{if(T=v-q_(o[b],e,p,v,v-1,t),T!==0){for(S-=T,_-=T,v-=T,w=S+1,x=_+1,y=T-1;y>=0;y--)e[w+y]=e[x+y];if(v===0){E=!0;break}}if(e[S--]=o[b--],--m===1){E=!0;break}if(D=m-Z_(e[_],o,0,m,m-1,t),D!==0){for(S-=D,b-=D,m-=D,w=S+1,x=b+1,y=0;y<D;y++)e[w+y]=o[x+y];if(m<=1){E=!0;break}}if(e[S--]=e[_--],--v===0){E=!0;break}C--}while(T>=Gf||D>=Gf);if(E)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(S-=v,_-=v,w=S+1,x=_+1,y=v-1;y>=0;y--)e[w+y]=e[x+y];e[S]=o[b]}else{if(m===0)throw new Error;for(x=S-(m-1),y=0;y<m;y++)e[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function hv(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<P2){i=O2(e,r,n,t),R2(e,r,n,r+i,t);return}var o=uee(e,t),s=see(a);do{if(i=O2(e,r,n,t),i<s){var l=a;l>s&&(l=s),R2(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Rn=1,Uf=2,Nu=4,V2=!1;function J_(){V2||(V2=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function B2(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var cee=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=B2}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,hv(n,B2)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Rn),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(J_(),c.z=0),isNaN(c.z2)&&(J_(),c.z2=0),isNaN(c.zlevel)&&(J_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=Ge(this._roots,t);a>=0&&this._roots.splice(a,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}(),dv;dv=Xe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Wf={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 e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Wf.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?Wf.bounceIn(e*2)*.5:Wf.bounceOut(e*2-1)*.5+.5}},pv=Math.pow,Fo=Math.sqrt,vv=1e-8,F2=1e-4,z2=Fo(3),gv=1/3,ci=Oo(),na=Oo(),Iu=Oo();function zo(e){return e>-vv&&e<vv}function $2(e){return e>vv||e<-vv}function _r(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function H2(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function mv(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,p=0;if(zo(c)&&zo(f))if(zo(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[p++]=v)}else{var g=f*f-4*c*d;if(zo(g)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(i[p++]=v),y>=0&&y<=1&&(i[p++]=y)}else if(g>0){var _=Fo(g),b=c*s+1.5*o*(-f+_),S=c*s+1.5*o*(-f-_);b<0?b=-pv(-b,gv):b=pv(b,gv),S<0?S=-pv(-S,gv):S=pv(S,gv);var v=(-s-(b+S))/(3*o);v>=0&&v<=1&&(i[p++]=v)}else{var x=(2*c*s-3*o*f)/(2*Fo(c*c*c)),w=Math.acos(x)/3,C=Fo(c),T=Math.cos(w),v=(-s-2*C*T)/(3*o),y=(-s+C*(T+z2*Math.sin(w)))/(3*o),D=(-s+C*(T-z2*Math.sin(w)))/(3*o);v>=0&&v<=1&&(i[p++]=v),y>=0&&y<=1&&(i[p++]=y),D>=0&&D<=1&&(i[p++]=D)}}return p}function G2(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(zo(o)){if($2(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(zo(c))a[0]=-i/(2*o);else if(c>0){var f=Fo(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function $o(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function U2(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,p=1/0,v,g,m,y;ci[0]=l,ci[1]=u;for(var _=0;_<1;_+=.05)na[0]=_r(e,r,a,o,_),na[1]=_r(t,n,i,s,_),m=Vo(ci,na),m<p&&(f=_,p=m);p=1/0;for(var b=0;b<32&&!(d<F2);b++)v=f-d,g=f+d,na[0]=_r(e,r,a,o,v),na[1]=_r(t,n,i,s,v),m=Vo(na,ci),v>=0&&m<p?(f=v,p=m):(Iu[0]=_r(e,r,a,o,g),Iu[1]=_r(t,n,i,s,g),y=Vo(Iu,ci),g<=1&&y<p?(f=g,p=y):d*=.5);return c&&(c[0]=_r(e,r,a,o,f),c[1]=_r(t,n,i,s,f)),Fo(p)}function fee(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,p=1;p<=l;p++){var v=p*d,g=_r(e,r,a,o,v),m=_r(t,n,i,s,v),y=g-u,_=m-c;f+=Math.sqrt(y*y+_*_),u=g,c=m}return f}function Mr(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function Q_(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function hee(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(zo(i)){if($2(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(zo(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Fo(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function W2(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Yf(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function Y2(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;ci[0]=o,ci[1]=s;for(var d=0;d<1;d+=.05){na[0]=Mr(e,r,a,d),na[1]=Mr(t,n,i,d);var p=Vo(ci,na);p<f&&(u=d,f=p)}f=1/0;for(var v=0;v<32&&!(c<F2);v++){var g=u-c,m=u+c;na[0]=Mr(e,r,a,g),na[1]=Mr(t,n,i,g);var p=Vo(na,ci);if(g>=0&&p<f)u=g,f=p;else{Iu[0]=Mr(e,r,a,m),Iu[1]=Mr(t,n,i,m);var y=Vo(Iu,ci);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Mr(e,r,a,u),l[1]=Mr(t,n,i,u)),Fo(f)}function dee(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,p=Mr(e,r,a,d),v=Mr(t,n,i,d),g=p-s,m=v-l;u+=Math.sqrt(g*g+m*m),s=p,l=v}return u}var pee=/cubic-bezier\(([0-9,\.e ]+)\)/;function e1(e){var t=e&&pee.exec(e);if(t){var r=t[1].split(","),n=+ea(r[0]),a=+ea(r[1]),i=+ea(r[2]),o=+ea(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:mv(0,n,i,1,l,s)&&_r(0,a,o,1,s[0])}}}var vee=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Jt,this.ondestroy=t.ondestroy||Jt,this.onrestart=t.onrestart||Jt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Se(t)?t:Wf[t]||e1(t)},e}(),X2=function(){function e(t){this.value=t}return e}(),gee=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new X2(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Xf=function(){function e(t){this._list=new gee,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new X2(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),K2={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 ka(e){return e=Math.round(e),e<0?0:e>255?255:e}function mee(e){return e=Math.round(e),e<0?0:e>360?360:e}function Kf(e){return e<0?0:e>1?1:e}function t1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ka(parseFloat(t)/100*255):ka(parseInt(t,10))}function Ws(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Kf(parseFloat(t)/100):Kf(parseFloat(t))}function r1(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ho(e,t,r){return e+(t-e)*r}function aa(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function n1(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var j2=new Xf(20),yv=null;function Lu(e,t){yv&&n1(yv,t),yv=j2.put(e,yv||t.slice())}function ln(e,t){if(e){t=t||[];var r=j2.get(e);if(r)return n1(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in K2)return n1(t,K2[n]),Lu(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){aa(t,0,0,0,1);return}return aa(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Lu(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){aa(t,0,0,0,1);return}return aa(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Lu(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?aa(t,+u[0],+u[1],+u[2],1):aa(t,0,0,0,1);c=Ws(u.pop());case"rgb":if(u.length>=3)return aa(t,t1(u[0]),t1(u[1]),t1(u[2]),u.length===3?c:Ws(u[3])),Lu(e,t),t;aa(t,0,0,0,1);return;case"hsla":if(u.length!==4){aa(t,0,0,0,1);return}return u[3]=Ws(u[3]),a1(u,t),Lu(e,t),t;case"hsl":if(u.length!==3){aa(t,0,0,0,1);return}return a1(u,t),Lu(e,t),t;default:return}}aa(t,0,0,0,1)}}function a1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Ws(e[1]),a=Ws(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],aa(t,ka(r1(o,i,r+1/3)*255),ka(r1(o,i,r)*255),ka(r1(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function yee(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o,d=((i-n)/6+o/2)/o;t===i?l=d-f:r===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return e[3]!=null&&p.push(e[3]),p}}function _v(e,t){var r=ln(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Pa(r,r.length===4?"rgba":"rgb")}}function _ee(e){var t=ln(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function jf(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=ka(Ho(o[0],s[0],l)),r[1]=ka(Ho(o[1],s[1],l)),r[2]=ka(Ho(o[2],s[2],l)),r[3]=Kf(Ho(o[3],s[3],l)),r}}var bee=jf;function i1(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=ln(t[a]),s=ln(t[i]),l=n-a,u=Pa([ka(Ho(o[0],s[0],l)),ka(Ho(o[1],s[1],l)),ka(Ho(o[2],s[2],l)),Kf(Ho(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var See=i1;function ku(e,t,r,n){var a=ln(e);if(e)return a=yee(a),t!=null&&(a[0]=mee(t)),r!=null&&(a[1]=Ws(r)),n!=null&&(a[2]=Ws(n)),Pa(a1(a),"rgba")}function Zf(e,t){var r=ln(e);if(r&&t!=null)return r[3]=Kf(t),Pa(r,"rgba")}function Pa(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function qf(e,t){var r=ln(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function wee(){return Pa([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Z2=new Xf(100);function bv(e){if(he(e)){var t=Z2.get(e);return t||(t=_v(e,-.1),Z2.put(e,t)),t}else if(Lf(e)){var r=j({},e);return r.colorStops=ee(e.colorStops,function(n){return{offset:n.offset,color:_v(n.color,-.1)}}),r}return e}const xee=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:jf,fastMapToColor:bee,lerp:i1,lift:_v,liftColor:bv,lum:qf,mapToColor:See,modifyAlpha:Zf,modifyHSL:ku,parse:ln,random:wee,stringify:Pa,toHex:_ee},Symbol.toStringTag,{value:"Module"}));var Sv=Math.round;function Jf(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ln(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var q2=1e-4;function Go(e){return e<q2&&e>-q2}function wv(e){return Sv(e*1e3)/1e3}function o1(e){return Sv(e*1e4)/1e4}function Cee(e){return"matrix("+wv(e[0])+","+wv(e[1])+","+wv(e[2])+","+wv(e[3])+","+o1(e[4])+","+o1(e[5])+")"}var Tee={left:"start",right:"end",center:"middle",middle:"middle"};function Dee(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Eee(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Aee(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function J2(e){return e&&!!e.image}function Mee(e){return e&&!!e.svgElement}function s1(e){return J2(e)||Mee(e)}function Q2(e){return e.type==="linear"}function eN(e){return e.type==="radial"}function tN(e){return e&&(e.type==="linear"||e.type==="radial")}function xv(e){return"url(#"+e+")"}function rN(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function nN(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Of,a=Re(e.scaleX,1),i=Re(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Sv(o*Of)+"deg, "+Sv(s*Of)+"deg)"),l.join(" ")}var Nee=function(){return Xe.hasGlobalWindow&&Se(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Jn("Base64 isn't natively supported in the current environment."),null}}(),l1=Array.prototype.slice;function Ji(e,t,r){return(t-e)*r+e}function u1(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Ji(t[i],r[i],n);return e}function Iee(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Ji(t[o][s],r[o][s],n)}return e}function Cv(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function aN(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Lee(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function kee(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:l1.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Qf(e){if(Lr(e)){var t=e.length;if(Lr(e[0])){for(var r=[],n=0;n<t;n++)r.push(l1.call(e[n]));return r}return l1.call(e)}return e}function Tv(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]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Pee(e){return Lr(e&&e[0])?2:1}var Dv=0,Ev=1,iN=2,eh=3,c1=4,f1=5,oN=6;function sN(e){return e===c1||e===f1}function Av(e){return e===Ev||e===iN}var th=[0,0,0,0],Oee=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=oN,l=r;if(Lr(r)){var u=Pee(r);s=u,(u===1&&!ot(r[0])||u===2&&!ot(r[0][0]))&&(o=!0)}else if(ot(r)&&!Po(r))s=Dv;else if(he(r))if(!isNaN(+r))s=Dv;else{var c=ln(r);c&&(l=c,s=eh)}else if(Lf(r)){var f=j({},l);f.colorStops=ee(r.colorStops,function(p){return{offset:p.offset,color:ln(p.color)}}),Q2(r)?s=c1:eN(r)&&(s=f1),l=f}i===0?this.valType=s:(s!==this.valType||s===oN)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Se(n)?n:Wf[n]||e1(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Av(a),u=sN(a),c=0;c<i;c++){var f=n[c],d=f.value,p=o.value;f.percent=f.time/t,s||(l&&c!==i-1?kee(d,p,a):u&&Lee(d.colorStops,p.colorStops))}if(!s&&a!==f1&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<i;c++)a===Dv?n[c].additiveValue=n[c].value-v:a===eh?n[c].additiveValue=Cv([],n[c].value,v,-1):Av(a)&&(n[c].additiveValue=a===Ev?Cv([],n[c].value,v,-1):aN([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===eh,c,f=this._lastFr,d=Math.min,p,v;if(s===1)p=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=d(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],p=o[c]}if(p&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-p.percent,y=m===0?1:d((r-p.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var _=n?this._additiveValue:u?th:t[l];if((Av(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=y<1?p.rawValue:v.rawValue;else if(Av(i))i===Ev?u1(_,p[a],v[a],y):Iee(_,p[a],v[a],y);else if(sN(i)){var b=p[a],S=v[a],x=i===c1;t[l]={type:x?"linear":"radial",x:Ji(b.x,S.x,y),y:Ji(b.y,S.y,y),colorStops:ee(b.colorStops,function(C,T){var D=S.colorStops[T];return{offset:Ji(C.offset,D.offset,y),color:Tv(u1([],C.color,D.color,y))}}),global:S.global},x?(t[l].x2=Ji(b.x2,S.x2,y),t[l].y2=Ji(b.y2,S.y2,y)):t[l].r=Ji(b.r,S.r,y)}else if(u)u1(_,p[a],v[a],y),n||(t[l]=Tv(_));else{var w=Ji(p[a],v[a],y);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Dv?t[n]=t[n]+a:r===eh?(ln(t[n],th),Cv(th,th,a,1),t[n]=Tv(th)):r===Ev?Cv(t[n],t[n],a,1):r===iN&&aN(t[n],t[n],a,1)},e}(),h1=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Jn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,qe(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Oee(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===eh&&u&&(u=Tv(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Qf(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Qf(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new vee({life:a,loop:this._loop,delay:this._delay||0,onframe:function(p){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,m=0;m<v.length;m++)if(v[m]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,p);var y=r._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](r._target,p)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return ee(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Qf(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||qe(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Pu(){return new Date().getTime()}var Ree=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Pu()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(dv(n),!r._paused&&r.update())}dv(n)},t.prototype.start=function(){this._running||(this._time=Pu(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pu(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pu()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new h1(r,n.loop);return this.addAnimator(a),a},t}(ta),Vee=300,d1=Xe.domSupported,p1=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ee(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),lN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},uN=!1;function v1(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Bee(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function g1(e){e&&(e.zrByTouch=!0)}function Fee(e,t){return ra(e.dom,new zee(e,t),!0)}function cN(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var zee=function(){function e(t,r){this.stopPropagation=Jt,this.stopImmediatePropagation=Jt,this.preventDefault=Jt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Oa={mousedown:function(e){e=ra(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ra(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=ra(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ra(this.dom,e);var t=e.toElement||e.relatedTarget;cN(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){uN=!0,e=ra(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){uN||(e=ra(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ra(this.dom,e),g1(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Oa.mousemove.call(this,e),Oa.mousedown.call(this,e)},touchmove:function(e){e=ra(this.dom,e),g1(e),this.handler.processGesture(e,"change"),Oa.mousemove.call(this,e)},touchend:function(e){e=ra(this.dom,e),g1(e),this.handler.processGesture(e,"end"),Oa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Vee&&Oa.click.call(this,e)},pointerdown:function(e){Oa.mousedown.call(this,e)},pointermove:function(e){v1(e)||Oa.mousemove.call(this,e)},pointerup:function(e){Oa.mouseup.call(this,e)},pointerout:function(e){v1(e)||Oa.mouseout.call(this,e)}};M(["click","dblclick","contextmenu"],function(e){Oa[e]=function(t){t=ra(this.dom,t),this.trigger(e,t)}});var m1={pointermove:function(e){v1(e)||m1.mousemove.call(this,e)},pointerup:function(e){m1.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 $ee(e,t){var r=t.domHandlers;Xe.pointerEventsSupported?M(p1.pointer,function(n){Mv(t,n,function(a){r[n].call(e,a)})}):(Xe.touchEventsSupported&&M(p1.touch,function(n){Mv(t,n,function(a){r[n].call(e,a),Bee(t)})}),M(p1.mouse,function(n){Mv(t,n,function(a){a=Y_(a),t.touching||r[n].call(e,a)})}))}function Hee(e,t){Xe.pointerEventsSupported?M(lN.pointer,r):Xe.touchEventsSupported||M(lN.mouse,r);function r(n){function a(i){i=Y_(i),cN(e,i.target)||(i=Fee(e,i),t.domHandlers[n].call(e,i))}Mv(t,n,a,{capture:!0})}}function Mv(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,X_(e.domTarget,t,r,n)}function y1(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&JQ(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var fN=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Gee=function(e){H(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new fN(r,Oa),d1&&(a._globalHandlerScope=new fN(document,m1)),$ee(a,a._localHandlerScope),a}return t.prototype.dispose=function(){y1(this._localHandlerScope),d1&&y1(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,d1&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Hee(this,n):y1(n)}},t}(ta),hN=1;Xe.hasGlobalWindow&&(hN=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Nv=hN,_1=.4,b1="#333",S1="#ccc",Uee="#eee",dN=Ff,pN=5e-5;function Ys(e){return e>pN||e<-pN}var Xs=[],Ou=[],w1=xn(),x1=Math.abs,Qi=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ys(this.rotation)||Ys(this.x)||Ys(this.y)||Ys(this.scaleX-1)||Ys(this.scaleY-1)||Ys(this.skewX)||Ys(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dN(n),this.invTransform=null);return}n=n||xn(),r?this.getLocalTransform(n):dN(n),t&&(r?ui(n,t,n):lv(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Xs);var n=Xs[0]<0?-1:1,a=Xs[1]<0?-1:1,i=((Xs[0]-n)*r+n)/Xs[0]||0,o=((Xs[1]-a)*r+a)/Xs[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||xn(),zs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||xn(),ui(Ou,t.invTransform,r),r=Ou);var n=this.originX,a=this.originY;(n||a)&&(w1[4]=n,w1[5]=a,ui(Ou,r,w1),Ou[4]-=n,Ou[5]-=a,r=Ou),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Ar(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Ar(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&x1(t[0]-1)>1e-10&&x1(t[3]-1)>1e-10?Math.sqrt(x1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){vN(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,g=a+l;r[4]=-v*i-d*g*o,r[5]=-g*o-p*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=p*i,r[2]=d*o,u&&Bo(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),fi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vN(e,t){for(var r=0;r<fi.length;r++){var n=fi[r];e[n]=t[n]}}var gN={};function Vn(e,t){t=t||Lo;var r=gN[t];r||(r=gN[t]=new Xf(500));var n=r.get(e);return n==null&&(n=Ia.measureText(e,t).width,r.put(e,n)),n}function mN(e,t,r,n){var a=Vn(e,t),i=Iv(t),o=nh(0,a,r),s=Ru(0,i,n),l=new He(o,s,a,i);return l}function rh(e,t,r,n){var a=((e||"")+"").split(`
64
+ `),i=a.length;if(i===1)return mN(a[0],t,r,n);for(var o=new He(0,0,0,0),s=0;s<a.length;s++){var l=mN(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function nh(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ru(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Iv(e){return Vn("国",e)}function Ra(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Lv(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Ra(n[0],r.width),u+=Ra(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var C1="__zr_normal__",T1=fi.concat(["ignore"]),Wee=Qn(fi,function(e,t){return e[t]=!0,e},{ignore:!1}),Vu={},Yee=new He(0,0,0,0),kv=function(){function e(t){this.id=P_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=Yee;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Vu,n,c):Lv(Vu,n,c),i.x=Vu.x,i.y=Vu.y,o=Vu.align,s=Vu.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=Ra(f[0],c.width),p=Ra(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+p+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,_=void 0,b=void 0;g&&this.canBeInsideText()?(y=n.insideFill,_=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(y),b=!0)):(y=n.outsideFill,_=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||_!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=_,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Rn,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?S1:b1},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ln(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Pa(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},j(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ee(t))for(var n=t,a=qe(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==C1)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,T1)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(C1,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===C1,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ge(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Jn("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Rn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,r,d),m&&m.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Rn)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Ge(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=Ge(a,t),o=Ge(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];j(r,i),i.textConfig&&(n=n||{},j(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=j({},a?this.textConfig:n.textConfig),j(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<T1.length;c++){var f=T1[c],d=i&&Wee[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],v=p.targetName;p.getLoop()||p.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Qi,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),j(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Rn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){Jn('Property "'+t+'" is not existed in element '+this.id);return}var i=new h1(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Ge(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){D1(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){D1(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=D1(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Rn;var r={};function n(i,o,s){r[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(t,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();qt(kv,ta),qt(kv,Qi);function D1(e,t,r,n,a){r=r||{};var i=[];yN(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(v,g){r.during(g)});for(var d=0;d<i.length;d++){var p=i[d];c&&p.done(c),f&&p.aborted(f),r.force&&p.duration(r.duration),p.start(r.easing)}return i}function E1(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Xee(e){return Lr(e[0])}function Kee(e,t,r){if(Lr(t[r]))if(Lr(e[r])||(e[r]=[]),Ur(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),E1(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(Xee(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?E1(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else E1(i,a,o);i.length=a.length}else e[r]=t[r]}function jee(e,t){return e===t||Lr(e)&&Lr(t)&&Zee(e,t)}function Zee(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function yN(e,t,r,n,a,i,o,s){for(var l=qe(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,p=!Ee(i),v=e.animators,g=[],m=0;m<l.length;m++){var y=l[m],_=n[y];if(_!=null&&r[y]!=null&&(p||i[y]))if(Ee(_)&&!Lr(_)&&!Lf(_)){if(t){s||(r[y]=_,e.updateDuringAnimation(t));continue}yN(e,y,r[y],_,a,i&&i[y],o,s)}else g.push(y);else s||(r[y]=_,e.updateDuringAnimation(t),g.push(y))}var b=g.length;if(!f&&b)for(var S=0;S<v.length;S++){var x=v[S];if(x.targetName===t){var w=x.stopTracks(g);if(w){var C=Ge(v,x);v.splice(C,1)}}}if(a.force||(g=ct(g,function(A){return!jee(n[A],r[A])}),b=g.length),b>0||a.force&&!o.length){var T=void 0,D=void 0,E=void 0;if(s){D={},d&&(T={});for(var S=0;S<b;S++){var y=g[S];D[y]=r[y],d?T[y]=n[y]:r[y]=n[y]}}else if(d){E={};for(var S=0;S<b;S++){var y=g[S];E[y]=Qf(r[y]),Kee(r,n,y)}}var x=new h1(r,!1,!1,f?ct(v,function(L){return L.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&T&&x.whenWithKeys(0,T,g),E&&x.whenWithKeys(0,E,g),x.whenWithKeys(u??500,s?D:n,g).delay(c||0),e.addAnimator(x,t),o.push(x)}}var Oe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=Ge(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Ge(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new He(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(He.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(kv);Oe.prototype.type="group";/*!
65
+ * ZRender, a high performance 2d drawing library.
66
+ *
67
+ * Copyright (c) 2013, Baidu Inc.
68
+ * All rights reserved.
69
+ *
70
+ * LICENSE
71
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
72
+ */var ah={},Ks={};function qee(e){delete Ks[e]}function Jee(e){if(!e)return!1;if(typeof e=="string")return qf(e,1)<_1;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=qf(t[a].color,1);return r/=n,r<_1}return!1}var Qee=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new cee,o=n.renderer||"canvas";if(ah[o]||(o=qe(ah)[0]),process.env.NODE_ENV!=="production"&&!ah[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ah[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Xe.node&&!Xe.worker&&!l?new Gee(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Xe.touchEventsSupported:!!c,d=44,p;f&&(p=Re(n.pointerSize,d)),this.handler=new I2(i,s,u,s.root,p),this.animation=new Ree({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Jee(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||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(t){var r,n=Pu();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Pu();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Oe&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,qee(this.id))},e}();function A1(e,t){var r=new Qee(P_(),e,t);return Ks[r.id]=r,r}function ete(e){e.dispose()}function tte(){for(var e in Ks)Ks.hasOwnProperty(e)&&Ks[e].dispose();Ks={}}function rte(e){return Ks[e]}function _N(e,t){ah[e]=t}var M1;function bN(e){if(typeof M1=="function")return M1(e)}function SN(e){M1=e}var nte="5.6.1";const ate=Object.freeze(Object.defineProperty({__proto__:null,dispose:ete,disposeAll:tte,getElementSSRData:bN,getInstance:rte,init:A1,registerPainter:_N,registerSSRDataGetter:SN,version:nte},Symbol.toStringTag,{value:"Module"}));var wN=1e-4,xN=20;function ite(e){return e.replace(/^\s+|\s+$/g,"")}function pt(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function ue(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return he(e)?ite(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Kt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),xN),e=(+e).toFixed(t),r?e:+e}function Bn(e){return e.sort(function(t,r){return t-r}),e}function Va(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Pv(e)}function Pv(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function N1(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function ote(e,t,r){if(!e[t])return 0;var n=CN(e,r);return n[t]||0}function CN(e,t){var r=Qn(e,function(p,v){return p+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=ee(e,function(p){return(isNaN(p)?0:p)/r*n*100}),i=n*100,o=ee(a,function(p){return Math.floor(p)}),s=Qn(o,function(p,v){return p+v},0),l=ee(a,function(p,v){return p-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ee(o,function(p){return p/n})}function ste(e,t){var r=Math.max(Va(e),Va(t)),n=e+t;return r>xN?n:Kt(n,r)}var I1=9007199254740991;function L1(e){var t=Math.PI*2;return(e%t+t)%t}function Bu(e){return e>-wN&&e<wN}var lte=/^(?:(\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 Fn(e){if(e instanceof Date)return e;if(he(e)){var t=lte.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else 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)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function TN(e){return Math.pow(10,ih(e))}function ih(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function k1(e,t){var r=ih(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Ov(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function P1(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function hi(e){var t=parseFloat(e);return t==e&&(t!==0||!he(e)||e.indexOf("x")<=0)?t:NaN}function Rv(e){return!isNaN(hi(e))}function DN(){return Math.round(Math.random()*9)}function EN(e,t){return t===0?e:EN(t,e%t)}function AN(e,t){return e==null?t:t==null?e:e*t/EN(e,t)}var ute="[ECharts] ",MN={},cte=typeof console<"u"&&console.warn&&console.log;function Vv(e,t,r){if(cte){if(r){if(MN[t])return;MN[t]=!0}console[e](ute+t)}}function fte(e,t){Vv("log",e,t)}function Wt(e,t){Vv("warn",e,t)}function kr(e,t){Vv("error",e,t)}function ia(e){process.env.NODE_ENV!=="production"&&Vv("warn","DEPRECATED: "+e,!0)}function er(e,t,r){process.env.NODE_ENV!=="production"&&ia((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function un(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Po(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":Se(a)?"function () { ... }":V_(a)?a+"":null};r=ee(e,function(a){if(he(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function vt(e){throw new Error(e)}function NN(e,t,r){return(t-e)*r+e}var IN="series\0",LN="\0_ec_\0";function Dt(e){return e instanceof Array?e:e==null?[]:[e]}function js(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var kN=["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 Fu(e){return Ee(e)&&!J(e)&&!(e instanceof Date)?e.value:e}function hte(e){return Ee(e)&&!(e instanceof Array)}function PN(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=_e();M(t,function(l,u){if(!Ee(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!VN(l.id)&&RN(l.id),l.name!=null&&!VN(l.name)&&RN(l.name))});var s=dte(e,o,r);return(n||a)&&pte(s,e,o,t),n&&vte(s,t),n||a?gte(s,t,a):i&&mte(s,t),yte(s),s}function dte(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||zu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function pte(e,t,r,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=oh(a.id),s=r.get(o);if(s!=null){var l=e[s];Ne(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function vte(e,t){M(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!zu(r)&&!zu(i)&&ON("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function gte(e,t,r){M(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||zu(a.existing)||a.existing&&n.id!=null&&!ON("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function mte(e,t){M(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function yte(e){var t=_e();M(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),M(e,function(r){var n=r.newOption;Ne(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(Ee(i)){if(o.name=i.name!=null?oh(i.name):a?a.name:IN+n,a)o.id=oh(a.id);else if(i.id!=null)o.id=oh(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function ON(e,t,r){var n=hr(t[e],null),a=hr(r[e],null);return n!=null&&a!=null&&n===a}function oh(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return hr(e,"")}function hr(e,t){return e==null?t:he(e)?e:ot(e)||If(e)?e+"":t}function RN(e){process.env.NODE_ENV!=="production"&&Wt("`"+e+"` is invalid id or name. Must be a string or number.")}function VN(e){return If(e)||Rv(e)}function O1(e){var t=e.name;return!!(t&&t.indexOf(IN))}function zu(e){return e&&e.id!=null&&oh(e.id).indexOf(LN)===0}function _te(e){return LN+e}function bte(e,t,r){M(e,function(n){var a=n.newOption;Ee(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Ste(t,a,n.existing,r))})}function Ste(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function wte(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=hr(o[u].seriesId,null);if(f==null)return;for(var d=Dt(o[u].dataIndex),p=l&&l[f],v=0,g=d.length;v<g;v++){var m=d[v];p&&p[m]?p[m]=null:(s[f]||(s[f]={}))[m]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Zs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return J(t.dataIndex)?ee(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return J(t.name)?ee(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function at(){var e="__ec_inner_"+xte++;return function(t){return t[e]||(t[e]={})}}var xte=DN();function sh(e,t,r){var n=R1(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=lh(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function R1(e,t){var r;if(he(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=_e(),i={},o=!1;return M(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Ge(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var sr={useDefault:!0,enableAll:!1,enableNone:!1},Cte={useDefault:!1,enableAll:!0,enableNone:!0};function lh(e,t,r,n){n=n||sr;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Ne(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ne(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function BN(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Tte(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Dte(e){return e==="auto"?Xe.domSupported?"html":"richText":e||"html"}function V1(e,t){var r=_e(),n=[];return M(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function FN(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(ot(n)){var o=NN(r||0,n,a);return Kt(o,i?Math.max(Va(r||0),Va(n)):t)}else{if(he(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var p=l&&l[f]?l[f]:0,v=u[f],o=NN(p,v,a);s[f]=Kt(o,i?Math.max(Va(p),Va(v)):t)}}return s}}var Ete=".",qs="___EC__COMPONENT__CONTAINER___",zN="___EC__EXTENDED_CLASS___";function di(e){var t={main:"",sub:""};if(e){var r=e.split(Ete);t.main=r[0]||"",t.sub=r[1]||""}return t}function Ate(e){Ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Mte(e){return!!(e&&e[zN])}function B1(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&M(t,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return Nte(n)?a=function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},O_(a,this)),j(a.prototype,r),a[zN]=!0,a.extend=this.extend,a.superCall=kte,a.superApply=Pte,a.superClass=n,a}}function Nte(e){return Se(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function $N(e,t){e.extend=t.extend}var Ite=Math.round(Math.random()*10);function Lte(e){var t=["__\0is_clz",Ite++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&Ne(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function kte(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Pte(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Bv(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Ate(a),n.prototype.type=a;var i=di(a);if(!i.sub)process.env.NODE_ENV!=="production"&&t[i.main]&&console.warn(i.main+" exists."),t[i.main]=n;else if(i.sub!==qs){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[qs]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=di(n),i=[],o=t[a.main];return o&&o[qs]?M(o,function(s,l){l!==qs&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=di(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=di(n),i=t[a.main];return i&&i[qs]};function r(n){var a=t[n.main];return(!a||!a[qs])&&(a=t[n.main]={},a[qs]=!0),a}}function Js(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&Ge(a,l)>=0||i&&Ge(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Ote=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Rte=Js(Ote),Vte=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Rte(this,t,r)},e}(),F1=new Xf(50);function Bte(e){if(typeof e=="string"){var t=F1.get(e);return t&&t.image}else return e}function z1(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=F1.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!Fv(t)&&i.pending.push(o)):(t=Ia.loadImage(e,HN,HN),t.__zrImageSrc=e,F1.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function HN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Fv(e){return e&&e.width&&e.height}var $1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fte(e,t,r,n,a){var i={};return GN(i,e,t,r,n,a),i.text}function GN(e,t,r,n,a,i){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
73
+ `);i=UN(r,n,a,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)WN(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
74
+ `),e.isTruncated=s}function UN(e,t,r,n){n=n||{};var a=j({},n);a.font=t,r=Re(r,"..."),a.maxIterations=Re(n.maxIterations,2);var i=a.minChar=Re(n.minChar,0);a.cnCharWidth=Vn("国",t);var o=a.ascCharWidth=Vn("a",t);a.placeholder=Re(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Vn(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function WN(e,t,r){var n=r.containerWidth,a=r.font,i=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=Vn(t,a);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?zte(t,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=Vn(t,a)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function zte(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function $te(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=Iv(a),s=Re(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(r==="break"||r==="breakAll")?d=e?XN(e,t.font,f,r==="breakAll",0).lines:[]:d=e?e.split(`
75
+ `):[];var p=d.length*s,v=Re(t.height,p);if(p>v&&u){var g=Math.floor(v/s);c=c||d.length>g,d=d.slice(0,g)}if(e&&i&&f!=null)for(var m=UN(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},_=0;_<d.length;_++)WN(y,d[_],m),d[_]=y.textLine,c=c||y.isTruncated;for(var b=v,S=0,_=0;_<d.length;_++)S=Math.max(Vn(d[_],a),S);f==null&&(f=S);var x=S;return n&&(b+=n[0]+n[2],x+=n[1]+n[3],f+=n[1]+n[3]),l&&(x=f),{lines:d,height:v,outerWidth:x,outerHeight:b,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:p,width:f,isTruncated:c}}var Hte=function(){function e(){}return e}(),YN=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Gte=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Ute(e,t){var r=new Gte;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=$1.lastIndex=0,l;(l=$1.exec(e))!=null;){var u=l.index;u>s&&H1(r,e.substring(s,u),t,o),H1(r,l[2],t,o,l[1]),s=$1.lastIndex}s<e.length&&H1(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,p=t.padding,v=i==="truncate",g=t.lineOverflow==="truncate",m={};function y(U,W,re){U.width=W,U.lineHeight=re,f+=re,d=Math.max(d,W)}e:for(var _=0;_<r.lines.length;_++){for(var b=r.lines[_],S=0,x=0,w=0;w<b.tokens.length;w++){var C=b.tokens[w],T=C.styleName&&t.rich[C.styleName]||{},D=C.textPadding=T.padding,E=D?D[1]+D[3]:0,A=C.font=T.font||t.font;C.contentHeight=Iv(A);var L=Re(T.height,C.contentHeight);if(C.innerHeight=L,D&&(L+=D[0]+D[2]),C.height=L,C.lineHeight=On(T.lineHeight,t.lineHeight,L),C.align=T&&T.align||t.align,C.verticalAlign=T&&T.verticalAlign||"middle",g&&a!=null&&f+C.lineHeight>a){var N=r.lines.length;w>0?(b.tokens=b.tokens.slice(0,w),y(b,x,S),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<N;break e}var I=T.width,k=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")C.percentWidth=I,c.push(C),C.contentWidth=Vn(C.text,A);else{if(k){var P=T.backgroundColor,V=P&&P.image;V&&(V=Bte(V),Fv(V)&&(C.width=Math.max(C.width,V.width*L/V.height)))}var B=v&&n!=null?n-x:null;B!=null&&B<C.width?!k||B<E?(C.text="",C.width=C.contentWidth=0):(GN(m,C.text,B-E,A,t.ellipsis,{minChar:t.truncateMinChar}),C.text=m.text,r.isTruncated=r.isTruncated||m.isTruncated,C.width=C.contentWidth=Vn(C.text,A)):C.contentWidth=Vn(C.text,A)}C.width+=E,x+=C.width,T&&(S=Math.max(S,C.lineHeight))}y(b,x,S)}r.outerWidth=r.width=Re(n,d),r.outerHeight=r.height=Re(a,f),r.contentHeight=f,r.contentWidth=d,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var _=0;_<c.length;_++){var C=c[_],G=C.percentWidth;C.width=parseInt(G,10)/100*r.width}return r}function H1(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Ra(o.width,n.width)+p;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
76
+ `),u=!0),n.accumWidth=v}else{var g=XN(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,f=g.linesWidths,c=g.lines}}else c=t.split(`
77
+ `);for(var m=0;m<c.length;m++){var y=c[m],_=new Hte;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:Vn(y,l),!m&&!u){var b=(s[s.length-1]||(s[0]=new YN)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||i)&&b.push(_)}else s.push(new YN([_]))}}function Wte(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yte=Qn(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Xte(e){return Wte(e)?!!Yte[e]:!0}function XN(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
78
+ `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=Vn(d,t),v=n?!1:!Xte(d);if(i.length?c+p>r:a+c+p>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=p)):v?(i.push(l),o.push(u),l=d,u=p):(i.push(d),o.push(p));continue}c+=p,v?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var G1="__zr_style_"+Math.round(Math.random()*10),Qs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qs[G1]=!0;var KN=["z","z2","invisible"],Kte=["invisible"],oa=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=qe(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[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(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&jte(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new He(0,0,0,0)),n?He.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new He(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:j(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Uf,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Uf)},t.prototype.styleUpdated=function(){this.__dirty&=~Uf},t.prototype.createStyle=function(r){return Pf(Qs,r)},t.prototype.useStyle=function(r){r[G1]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[G1]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,KN)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=qe(c),d=0;d<f.length;d++){var p=f[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var v=qe(u),d=0;d<v.length;d++){var p=v[d];this.style[p]=this.style[p]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?Kte:KN,d=0;d<g.length;d++){var p=g[d];n&&n[p]!=null?this[p]=n[p]:l&&a[p]!=null&&(this[p]=a[p])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return j(r,n),r},t.prototype.getAnimationStyleProps=function(){return zv},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Rn|Uf}(),t}(kv),U1=new He(0,0,0,0),W1=new He(0,0,0,0);function jte(e,t,r){return U1.copy(e.getBoundingRect()),e.transform&&U1.applyTransform(e.transform),W1.width=t,W1.height=r,!U1.intersect(W1)}var Cn=Math.min,Tn=Math.max,Y1=Math.sin,X1=Math.cos,el=Math.PI*2,$v=Oo(),Hv=Oo(),Gv=Oo();function Uv(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=Cn(a,n[0]),i=Tn(i,n[0]),o=Cn(o,n[1]),s=Tn(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function jN(e,t,r,n,a,i){a[0]=Cn(e,r),a[1]=Cn(t,n),i[0]=Tn(e,r),i[1]=Tn(t,n)}var ZN=[],qN=[];function Zte(e,t,r,n,a,i,o,s,l,u){var c=G2,f=_r,d=c(e,r,a,o,ZN);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var v=f(e,r,a,o,ZN[p]);l[0]=Cn(v,l[0]),u[0]=Tn(v,u[0])}d=c(t,n,i,s,qN);for(var p=0;p<d;p++){var g=f(t,n,i,s,qN[p]);l[1]=Cn(g,l[1]),u[1]=Tn(g,u[1])}l[0]=Cn(e,l[0]),u[0]=Tn(e,u[0]),l[0]=Cn(o,l[0]),u[0]=Tn(o,u[0]),l[1]=Cn(t,l[1]),u[1]=Tn(t,u[1]),l[1]=Cn(s,l[1]),u[1]=Tn(s,u[1])}function qte(e,t,r,n,a,i,o,s){var l=W2,u=Mr,c=Tn(Cn(l(e,r,a),1),0),f=Tn(Cn(l(t,n,i),1),0),d=u(e,r,a,c),p=u(t,n,i,f);o[0]=Cn(e,a,d),o[1]=Cn(t,i,p),s[0]=Tn(e,a,d),s[1]=Tn(t,i,p)}function Jte(e,t,r,n,a,i,o,s,l){var u=ji,c=Zi,f=Math.abs(a-i);if(f%el<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if($v[0]=X1(a)*r+e,$v[1]=Y1(a)*n+t,Hv[0]=X1(i)*r+e,Hv[1]=Y1(i)*n+t,u(s,$v,Hv),c(l,$v,Hv),a=a%el,a<0&&(a=a+el),i=i%el,i<0&&(i=i+el),a>i&&!o?i+=el:a<i&&o&&(a+=el),o){var d=i;i=a,a=d}for(var p=0;p<i;p+=Math.PI/2)p>a&&(Gv[0]=X1(p)*r+e,Gv[1]=Y1(p)*n+t,u(s,Gv,s),c(l,Gv,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],pi=[],Uo=[],vi=[],gi=[],K1=Math.min,j1=Math.max,nl=Math.cos,al=Math.sin,eo=Math.abs,Z1=Math.PI,Wo=Z1*2,q1=typeof Float32Array<"u",uh=[];function J1(e){var t=Math.round(e/Z1*1e8)/1e8;return t%2*Z1}function Q1(e,t){var r=J1(e[0]);r<0&&(r+=Wo);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Wo?a=r+Wo:t&&r-a>=Wo?a=r-Wo:!t&&r>a?a=r+(Wo-J1(r-a)):t&&r<a&&(a=r-(Wo-J1(a-r))),e[0]=r,e[1]=a}var mi=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=eo(n/Nv/t)||0,this._uy=eo(n/Nv/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,r){return this._drawPendingPt(),this.addData(Mt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=eo(t-this._xi),a=eo(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Mt.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(Mt.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(Mt.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),uh[0]=a,uh[1]=i,Q1(uh,o),a=uh[0],i=uh[1];var s=i-a;return this.addData(Mt.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=nl(i)*n+t,this._yi=al(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(Mt.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&q1&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();q1&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,q1&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){pi[0]=pi[1]=vi[0]=vi[1]=Number.MAX_VALUE,Uo[0]=Uo[1]=gi[0]=gi[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case Mt.M:r=a=t[o++],n=i=t[o++],vi[0]=a,vi[1]=i,gi[0]=a,gi[1]=i;break;case Mt.L:jN(r,n,t[o],t[o+1],vi,gi),r=t[o++],n=t[o++];break;case Mt.C:Zte(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],vi,gi),r=t[o++],n=t[o++];break;case Mt.Q:qte(r,n,t[o++],t[o++],t[o],t[o+1],vi,gi),r=t[o++],n=t[o++];break;case Mt.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],p=t[o++],v=t[o++]+p;o+=1;var g=!t[o++];l&&(a=nl(p)*f+u,i=al(p)*d+c),Jte(u,c,f,d,p,v,g,vi,gi),r=nl(v)*f+u,n=al(v)*d+c;break;case Mt.R:a=r=t[o++],i=n=t[o++];var m=t[o++],y=t[o++];jN(a,i,a+m,i+y,vi,gi);break;case Mt.Z:r=a,n=i;break}ji(pi,pi,vi),Zi(Uo,Uo,gi)}return o===0&&(pi[0]=pi[1]=Uo[0]=Uo[1]=0),new He(pi[0],pi[1],Uo[0]-pi[0],Uo[1]-pi[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var p=t[d++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var g=-1;switch(p){case Mt.M:i=s=t[d++],o=l=t[d++];break;case Mt.L:{var m=t[d++],y=t[d++],_=m-i,b=y-o;(eo(_)>n||eo(b)>a||d===r-1)&&(g=Math.sqrt(_*_+b*b),i=m,o=y);break}case Mt.C:{var S=t[d++],x=t[d++],m=t[d++],y=t[d++],w=t[d++],C=t[d++];g=fee(i,o,S,x,m,y,w,C,10),i=w,o=C;break}case Mt.Q:{var S=t[d++],x=t[d++],m=t[d++],y=t[d++];g=dee(i,o,S,x,m,y,10),i=m,o=y;break}case Mt.A:var T=t[d++],D=t[d++],E=t[d++],A=t[d++],L=t[d++],N=t[d++],I=N+L;d+=1,v&&(s=nl(L)*E+T,l=al(L)*A+D),g=j1(E,A)*K1(Wo,Math.abs(N)),i=nl(I)*E+T,o=al(I)*A+D;break;case Mt.R:{s=i=t[d++],l=o=t[d++];var k=t[d++],P=t[d++];g=k*2+P*2;break}case Mt.Z:{var _=s-i,b=l-o;g=Math.sqrt(_*_+b*b),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,p=r<1,v,g,m=0,y=0,_,b=0,S,x;if(!(p&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,_=r*g,!_)))e:for(var w=0;w<o;){var C=n[w++],T=w===1;switch(T&&(u=n[w],c=n[w+1],s=u,l=c),C!==Mt.L&&b>0&&(t.lineTo(S,x),b=0),C){case Mt.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case Mt.L:{f=n[w++],d=n[w++];var D=eo(f-u),E=eo(d-c);if(D>a||E>i){if(p){var A=v[y++];if(m+A>_){var L=(_-m)/A;t.lineTo(u*(1-L)+f*L,c*(1-L)+d*L);break e}m+=A}t.lineTo(f,d),u=f,c=d,b=0}else{var N=D*D+E*E;N>b&&(S=f,x=d,b=N)}break}case Mt.C:{var I=n[w++],k=n[w++],P=n[w++],V=n[w++],B=n[w++],G=n[w++];if(p){var A=v[y++];if(m+A>_){var L=(_-m)/A;$o(u,I,P,B,L,tl),$o(c,k,V,G,L,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}m+=A}t.bezierCurveTo(I,k,P,V,B,G),u=B,c=G;break}case Mt.Q:{var I=n[w++],k=n[w++],P=n[w++],V=n[w++];if(p){var A=v[y++];if(m+A>_){var L=(_-m)/A;Yf(u,I,P,L,tl),Yf(c,k,V,L,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}m+=A}t.quadraticCurveTo(I,k,P,V),u=P,c=V;break}case Mt.A:var U=n[w++],W=n[w++],re=n[w++],le=n[w++],Y=n[w++],X=n[w++],fe=n[w++],we=!n[w++],de=re>le?re:le,pe=eo(re-le)>.001,Ae=Y+X,me=!1;if(p){var A=v[y++];m+A>_&&(Ae=Y+X*(_-m)/A,me=!0),m+=A}if(pe&&t.ellipse?t.ellipse(U,W,re,le,fe,Y,Ae,we):t.arc(U,W,de,Y,Ae,we),me)break e;T&&(s=nl(Y)*re+U,l=al(Y)*le+W),u=nl(Ae)*re+U,c=al(Ae)*le+W;break;case Mt.R:s=u=n[w],l=c=n[w+1],f=n[w++],d=n[w++];var Ce=n[w++],Qe=n[w++];if(p){var A=v[y++];if(m+A>_){var Ke=_-m;t.moveTo(f,d),t.lineTo(f+K1(Ke,Ce),d),Ke-=Ce,Ke>0&&t.lineTo(f+Ce,d+K1(Ke,Qe)),Ke-=Qe,Ke>0&&t.lineTo(f+j1(Ce-Ke,0),d+Qe),Ke-=Ce,Ke>0&&t.lineTo(f,d+j1(Qe-Ke,0));break e}m+=A}t.rect(f,d,Ce,Qe);break;case Mt.Z:if(p){var A=v[y++];if(m+A>_){var L=(_-m)/A;t.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}m+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Yo(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Qte(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>i+f&&c>s+f||c<t-f&&c<n-f&&c<i-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>o+f||u<e-f&&u<r-f&&u<a-f&&u<o-f)return!1;var d=U2(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function JN(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=Y2(e,t,r,n,a,i,s,l,null);return c<=u/2}var QN=Math.PI*2;function zn(e){return e%=QN,e<0&&(e+=QN),e}var ch=Math.PI*2;function ere(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%ch<1e-4)return!0;if(i){var f=n;n=zn(a),a=zn(f)}else n=zn(n),a=zn(a);n>a&&(a+=ch);var d=Math.atan2(l,s);return d<0&&(d+=ch),d>=n&&d<=a||d+ch>=n&&d+ch<=a}function to(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Xo=mi.CMD,il=Math.PI*2,tre=1e-4;function rre(e,t){return Math.abs(e-t)<tre}var cn=[-1,-1,-1],sa=[-1,-1];function nre(){var e=sa[0];sa[0]=sa[1],sa[1]=e}function are(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=mv(t,n,i,s,u,cn);if(c===0)return 0;for(var f=0,d=-1,p=void 0,v=void 0,g=0;g<c;g++){var m=cn[g],y=m===0||m===1?.5:1,_=_r(e,r,a,o,m);_<l||(d<0&&(d=G2(t,n,i,s,sa),sa[1]<sa[0]&&d>1&&nre(),p=_r(t,n,i,s,sa[0]),d>1&&(v=_r(t,n,i,s,sa[1]))),d===2?m<sa[0]?f+=p<t?y:-y:m<sa[1]?f+=v<p?y:-y:f+=s<v?y:-y:m<sa[0]?f+=p<t?y:-y:f+=s<p?y:-y)}return f}function ire(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=hee(t,n,i,s,cn);if(l===0)return 0;var u=W2(t,n,i);if(u>=0&&u<=1){for(var c=0,f=Mr(t,n,i,u),d=0;d<l;d++){var p=cn[d]===0||cn[d]===1?.5:1,v=Mr(e,r,a,cn[d]);v<o||(cn[d]<u?c+=f<t?p:-p:c+=i<f?p:-p)}return c}else{var p=cn[0]===0||cn[0]===1?.5:1,v=Mr(e,r,a,cn[0]);return v<o?0:i<t?p:-p}}function ore(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);cn[0]=-l,cn[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=il-1e-4){n=0,a=il;var c=i?1:-1;return o>=cn[0]+e&&o<=cn[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=il,a+=il);for(var d=0,p=0;p<2;p++){var v=cn[p];if(v+e>o){var g=Math.atan2(s,v),c=i?1:-1;g<0&&(g=il+g),(g>=n&&g<=a||g+il>=n&&g+il<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function eI(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,p,v=0;v<o;){var g=i[v++],m=v===1;switch(g===Xo.M&&v>1&&(r||(s+=to(l,u,c,f,n,a))),m&&(l=i[v],u=i[v+1],c=l,f=u),g){case Xo.M:c=i[v++],f=i[v++],l=c,u=f;break;case Xo.L:if(r){if(Yo(l,u,i[v],i[v+1],t,n,a))return!0}else s+=to(l,u,i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Xo.C:if(r){if(Qte(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=are(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Xo.Q:if(r){if(JN(l,u,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=ire(l,u,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Xo.A:var y=i[v++],_=i[v++],b=i[v++],S=i[v++],x=i[v++],w=i[v++];v+=1;var C=!!(1-i[v++]);d=Math.cos(x)*b+y,p=Math.sin(x)*S+_,m?(c=d,f=p):s+=to(l,u,d,p,n,a);var T=(n-y)*S/b+y;if(r){if(ere(y,_,S,x,x+w,C,t,T,a))return!0}else s+=ore(y,_,S,x,x+w,C,T,a);l=Math.cos(x+w)*b+y,u=Math.sin(x+w)*S+_;break;case Xo.R:c=l=i[v++],f=u=i[v++];var D=i[v++],E=i[v++];if(d=c+D,p=f+E,r){if(Yo(c,f,d,f,t,n,a)||Yo(d,f,d,p,t,n,a)||Yo(d,p,c,p,t,n,a)||Yo(c,p,c,f,t,n,a))return!0}else s+=to(d,f,d,p,n,a),s+=to(c,p,c,f,n,a);break;case Xo.Z:if(r){if(Yo(l,u,c,f,t,n,a))return!0}else s+=to(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!rre(u,f)&&(s+=to(l,u,c,f,n,a)||0),s!==0}function sre(e,t,r){return eI(e,0,!1,t,r)}function lre(e,t,r,n){return eI(e,t,!0,r,n)}var Wv=Me({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qs),ure={style:Me({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zv.style)},eb=fi.concat(["invisible","culling","z","z2","zlevel","parent"]),Ze=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<eb.length;++s)a[eb[s]]=this[eb[s]];a.__dirty|=Rn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=qe(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?j(this.style,s):this.useStyle(s):o==="shape"?j(this.shape,s):e.prototype.attrKV.call(this,o,s)}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 r=this.style.fill;if(r!=="none"){if(he(r)){var n=qf(r,0);return n>.5?b1:n>.2?Uee:S1}else if(r)return S1}return b1},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(he(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=qf(r,0)<_1;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Nu},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new mi(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Nu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),lre(s,l/u,r,n)))return!0}if(this.hasFill())return sre(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Nu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:j(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Nu)},t.prototype.createStyle=function(r){return Pf(Wv,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=j({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=j({},a.shape),j(u,n.shape)):(u=j({},i?this.shape:a.shape),j(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=j({},this.shape);for(var c={},f=qe(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return ure},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){H(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ke(r.style)},o.prototype.getDefaultShape=function(){return ke(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Rn|Uf|Nu}(),t}(oa),cre=Me({strokeFirst:!0,font:Lo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Wv),$u=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Pf(cre,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=rh(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(oa);$u.prototype.type="tspan";var fre=Me({x:0,y:0},Qs),hre={style:Me({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zv.style)};function dre(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var br=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Pf(fre,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=dre(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hre},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new He(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oa);br.prototype.type="image";function pre(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Hu=Math.round;function tI(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Hu(n*2)===Hu(a*2)&&(e.x1=e.x2=ol(n,s,!0)),Hu(i*2)===Hu(o*2)&&(e.y1=e.y2=ol(i,s,!0))),e}}function rI(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=ol(n,s,!0),e.y=ol(a,s,!0),e.width=Math.max(ol(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(ol(a+o,s,!1)-e.y,o===0?0:1)),e}}function ol(e,t,r){if(!t)return e;var n=Hu(e*2);return(n+Hu(t))%2===0?n/2:(n+(r?1:-1))/2}var vre=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),gre={},et=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vre},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=rI(gre,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?pre(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ze);et.prototype.type="rect";var nI={fill:"#000"},aI=2,mre={style:Me({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},zv.style)},tt=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=nI,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,bre(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new He(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||nI},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return j(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=qe(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},j(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return mre},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Lo,a=r.padding,i=dI(r),o=$te(i,r),s=tb(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,p=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=r.x||0,m=r.y||0,y=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",b=g,S=Ru(m,o.contentHeight,_);if(s||a){var x=nh(g,c,y),w=Ru(m,u,_);s&&this._renderBackground(r,r,x,w,c,u)}S+=p/2,a&&(b=hI(g,y,a),_==="top"?S+=a[0]:_==="bottom"&&(S-=a[2]));for(var C=0,T=!1,D=fI("fill"in r?r.fill:(T=!0,v.fill)),E=cI("stroke"in r?r.stroke:!l&&(!v.autoStroke||T)?(C=aI,v.stroke):null),A=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),N=o.calculatedLineHeight,I=0;I<d.length;I++){var k=this._getOrCreateChild($u),P=k.createStyle();k.useStyle(P),P.text=d[I],P.x=b,P.y=S,P.textAlign=y,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=E,P.fill=D,E&&(P.lineWidth=r.lineWidth||C,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,sI(P,r),S+=p,L&&k.setBoundingRect(new He(nh(P.x,f,P.textAlign),Ru(P.y,N,P.textBaseline),f,N))}},t.prototype._updateRichTexts=function(){var r=this.style,n=dI(r),a=Ute(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,p=r.verticalAlign||f.verticalAlign;this.isTruncated=!!a.isTruncated;var v=nh(u,o,d),g=Ru(c,s,p),m=v,y=g;l&&(m+=l[3],y+=l[0]);var _=m+i;tb(r)&&this._renderBackground(r,r,v,g,o,s);for(var b=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],w=x.tokens,C=w.length,T=x.lineHeight,D=x.width,E=0,A=m,L=_,N=C-1,I=void 0;E<C&&(I=w[E],!I.align||I.align==="left");)this._placeToken(I,r,T,y,A,"left",b),D-=I.width,A+=I.width,E++;for(;N>=0&&(I=w[N],I.align==="right");)this._placeToken(I,r,T,y,L,"right",b),D-=I.width,L-=I.width,N--;for(A+=(i-(A-m)-(_-L)-D)/2;E<=N;)I=w[E],this._placeToken(I,r,T,y,A+I.width/2,"center",b),A+=I.width,E++;y+=T}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var d=!r.isLineHolder&&tb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var p=!!u.backgroundColor,v=r.textPadding;v&&(o=hI(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild($u),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,_=!1,b=0,S=fI("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,y.fill)),x=cI("stroke"in u?u.stroke:"stroke"in n?n.stroke:!p&&!l&&(!y.autoStroke||_)?(b=aI,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,w&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Lo,m.opacity=On(u.opacity,n.opacity,1),sI(m,u),x&&(m.lineWidth=On(u.lineWidth,n.lineWidth,b),m.lineDash=Re(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=x),S&&(m.fill=S);var C=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new He(nh(m.x,C,m.textAlign),Ru(m.y,T,m.textBaseline),C,T))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,p=r.borderRadius,v=this,g,m;if(d||r.lineHeight||u&&c){g=this._getOrCreateChild(et),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=p,g.dirtyShape()}if(d){var _=g.style;_.fill=l||null,_.fillOpacity=Re(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(br),m.onload=function(){v.dirtyStyle()};var b=m.style;b.image=l.image,b.x=a,b.y=i,b.width=o,b.height=s}if(u&&c){var _=g.style;_.lineWidth=u,_.stroke=c,_.strokeOpacity=Re(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=On(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return lI(r)&&(n=[r.fontStyle,r.fontWeight,oI(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ea(n)||r.textFont||r.font},t}(oa),yre={left:!0,right:1,center:1},_re={top:1,bottom:1,middle:1},iI=["fontStyle","fontWeight","fontSize","fontFamily"];function oI(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?I_+"px":e+"px"}function sI(e,t){for(var r=0;r<iI.length;r++){var n=iI[r],a=t[n];a!=null&&(e[n]=a)}}function lI(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function bre(e){return uI(e),M(e.rich,uI),e}function uI(e){if(e){e.font=tt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||yre[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||_re[r]?r:"top";var n=e.padding;n&&(e.padding=iv(e.padding))}}function cI(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function fI(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function hI(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function dI(e){var t=e.text;return t!=null&&(t+=""),t}function tb(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ve=at(),rb=function(e,t,r,n){if(n){var a=Ve(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Ve(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},pI=1,vI={},gI=at(),nb=at(),ab=0,fh=1,Yv=2,fn=["emphasis","blur","select"],hh=["normal","emphasis","blur","select"],Gu=10,Sre=9,sl="highlight",Xv="downplay",dh="select",Kv="unselect",ph="toggleSelect";function Uu(e){return e!=null&&e!=="none"}function jv(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function mI(e){jv(e,"emphasis",Yv)}function yI(e){e.hoverState===Yv&&jv(e,"normal",ab)}function ib(e){jv(e,"blur",fh)}function _I(e){e.hoverState===fh&&jv(e,"normal",ab)}function wre(e){e.selected=!0}function xre(e){e.selected=!1}function bI(e,t,r){t(e,r)}function ro(e,t,r){bI(e,t,r),e.isGroup&&e.traverse(function(n){bI(n,t,r)})}function Zv(e,t){switch(t){case"emphasis":e.hoverState=Yv;break;case"normal":e.hoverState=ab;break;case"blur":e.hoverState=fh;break;case"select":e.selected=!0}}function Cre(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Tre(e,t,r,n){var a=r&&Ge(r,"select")>=0,i=!1;if(e instanceof Ze){var o=gI(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Uu(s)||Uu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=j({},n),u=j({},u),u.fill=s):!Uu(u.fill)&&Uu(s)?(i=!0,n=j({},n),u=j({},u),u.fill=bv(s)):!Uu(u.stroke)&&Uu(l)&&(i||(n=j({},n),u=j({},u)),u.stroke=bv(l)),n.style=u}}if(n&&n.z2==null){i||(n=j({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Gu)}return n}function Dre(e,t,r){if(r&&r.z2==null){r=j({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Sre)}return r}function Ere(e,t,r){var n=Ge(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Cre(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=j({},r),o=j({opacity:n?a:i.opacity*.1},o),r.style=o),r}function ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Tre(this,e,t,r);if(e==="blur")return Ere(this,e,r);if(e==="select")return Dre(this,e,r)}return r}function ll(e){e.stateProxy=ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=ob),r&&(r.stateProxy=ob)}function SI(e,t){!DI(e,t)&&!e.__highByOuter&&ro(e,mI)}function wI(e,t){!DI(e,t)&&!e.__highByOuter&&ro(e,yI)}function no(e,t){e.__highByOuter|=1<<(t||0),ro(e,mI)}function ao(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ro(e,yI)}function xI(e){ro(e,ib)}function sb(e){ro(e,_I)}function CI(e){ro(e,wre)}function TI(e){ro(e,xre)}function DI(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function EI(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=nb(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){_I(u)}),s&&r.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function lb(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&sb(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var p=n.getViewOfSeriesModel(u);if(p.group.traverse(function(m){m.__highByOuter&&c&&t==="self"||ib(m)}),Lr(t))i(u.getData(),t);else if(Ee(t))for(var v=qe(t),g=0;g<v.length;g++)i(u.getData(v[g]),t[v[g]]);l.push(u),nb(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function ub(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){nb(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){ib(i)})}}}function Are(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&kr("Unknown dataType "+t.dataType);return}var i=Zs(a,t);i=(J(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Ve(o);lb(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&lb(n,c,f,r)}}function cb(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!jo(s[u])&&kr("param should be highDownDispatcher"),Ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Mre(e,t,r){process.env.NODE_ENV!=="production"&&!jo(e)&&kr("param should be highDownDispatcher");var n=Ve(e),a=cb(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&ub(n.componentMainType,n.componentIndex,r),M(i,function(s){return SI(s,t)})):(lb(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ub(n.componentMainType,n.componentIndex,r),SI(e,t))}function Nre(e,t,r){process.env.NODE_ENV!=="production"&&!jo(e)&&kr("param should be highDownDispatcher"),EI(r);var n=Ve(e),a=cb(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?M(a,function(i){return wI(i,t)}):wI(e,t)}function Ire(e,t,r){if(hb(t)){var n=t.dataType,a=e.getData(n),i=Zs(a,t);J(i)||(i=[i]),e[t.type===ph?"toggleSelect":t.type===dh?"select":"unselect"](i,n)}}function AI(e){var t=e.getAllData();M(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?CI(i):TI(i)})})}function Lre(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();M(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ko(e,t,r){ul(e,!0),ro(e,ll),fb(e,t,r)}function kre(e){ul(e,!1)}function Yt(e,t,r,n){n?kre(e):Ko(e,t,r)}function fb(e,t,r){var n=Ve(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var MI=["emphasis","blur","select"],Pre={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pr(e,t,r,n){r=r||"itemStyle";for(var a=0;a<MI.length;a++){var i=MI[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[Pre[r]]()}}function ul(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function jo(e){return!!(e&&e.__highDownDispatcher)}function Ore(e,t,r){var n=Ve(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function Rre(e){var t=vI[e];return t==null&&pI<=32&&(t=vI[e]=pI++),t}function hb(e){var t=e.type;return t===dh||t===Kv||t===ph}function NI(e){var t=e.type;return t===sl||t===Xv}function Vre(e){var t=gI(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Wu=mi.CMD,Bre=[[],[],[]],II=Math.sqrt,Fre=Math.atan2;function LI(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=Wu.M,f=Wu.C,d=Wu.L,p=Wu.R,v=Wu.A,g=Wu.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case g:i=2;break;case v:var m=t[4],y=t[5],_=II(t[0]*t[0]+t[1]*t[1]),b=II(t[2]*t[2]+t[3]*t[3]),S=Fre(-t[1]/b,t[0]/_);r[o]*=_,r[o++]+=m,r[o]*=b,r[o++]+=y,r[o++]*=_,r[o++]*=b,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case p:u[0]=r[o++],u[1]=r[o++],Ar(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ar(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var x=Bre[l];x[0]=r[o++],x[1]=r[o++],Ar(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var db=Math.sqrt,qv=Math.sin,Jv=Math.cos,vh=Math.PI;function kI(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function pb(e,t){return(e[0]*t[0]+e[1]*t[1])/(kI(e)*kI(t))}function PI(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(pb(e,t))}function OI(e,t,r,n,a,i,o,s,l,u,c){var f=l*(vh/180),d=Jv(f)*(e-r)/2+qv(f)*(t-n)/2,p=-1*qv(f)*(e-r)/2+Jv(f)*(t-n)/2,v=d*d/(o*o)+p*p/(s*s);v>1&&(o*=db(v),s*=db(v));var g=(a===i?-1:1)*db((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,m=g*o*p/s,y=g*-s*d/o,_=(e+r)/2+Jv(f)*m-qv(f)*y,b=(t+n)/2+qv(f)*m+Jv(f)*y,S=PI([1,0],[(d-m)/o,(p-y)/s]),x=[(d-m)/o,(p-y)/s],w=[(-1*d-m)/o,(-1*p-y)/s],C=PI(x,w);if(pb(x,w)<=-1&&(C=vh),pb(x,w)>=1&&(C=0),C<0){var T=Math.round(C/vh*1e6)/1e6;C=vh*2+T%2*vh}c.addData(u,_,b,o,s,S,C,f,i)}var zre=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$re=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hre(e){var t=new mi;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=mi.CMD,l=e.match(zre);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match($re)||[],v=p.length,g=0;g<v;g++)p[g]=parseFloat(p[g]);for(var m=0;m<v;){var y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,C=void 0,T=r,D=n,E=void 0,A=void 0;switch(f){case"l":r+=p[m++],n+=p[m++],d=s.L,t.addData(d,r,n);break;case"L":r=p[m++],n=p[m++],d=s.L,t.addData(d,r,n);break;case"m":r+=p[m++],n+=p[m++],d=s.M,t.addData(d,r,n),a=r,i=n,f="l";break;case"M":r=p[m++],n=p[m++],d=s.M,t.addData(d,r,n),a=r,i=n,f="L";break;case"h":r+=p[m++],d=s.L,t.addData(d,r,n);break;case"H":r=p[m++],d=s.L,t.addData(d,r,n);break;case"v":n+=p[m++],d=s.L,t.addData(d,r,n);break;case"V":n=p[m++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],n=p[m-1];break;case"c":d=s.C,t.addData(d,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n),r+=p[m-2],n+=p[m-1];break;case"S":y=r,_=n,E=t.len(),A=t.data,o===s.C&&(y+=r-A[E-4],_+=n-A[E-3]),d=s.C,T=p[m++],D=p[m++],r=p[m++],n=p[m++],t.addData(d,y,_,T,D,r,n);break;case"s":y=r,_=n,E=t.len(),A=t.data,o===s.C&&(y+=r-A[E-4],_+=n-A[E-3]),d=s.C,T=r+p[m++],D=n+p[m++],r+=p[m++],n+=p[m++],t.addData(d,y,_,T,D,r,n);break;case"Q":T=p[m++],D=p[m++],r=p[m++],n=p[m++],d=s.Q,t.addData(d,T,D,r,n);break;case"q":T=p[m++]+r,D=p[m++]+n,r+=p[m++],n+=p[m++],d=s.Q,t.addData(d,T,D,r,n);break;case"T":y=r,_=n,E=t.len(),A=t.data,o===s.Q&&(y+=r-A[E-4],_+=n-A[E-3]),r=p[m++],n=p[m++],d=s.Q,t.addData(d,y,_,r,n);break;case"t":y=r,_=n,E=t.len(),A=t.data,o===s.Q&&(y+=r-A[E-4],_+=n-A[E-3]),r+=p[m++],n+=p[m++],d=s.Q,t.addData(d,y,_,r,n);break;case"A":b=p[m++],S=p[m++],x=p[m++],w=p[m++],C=p[m++],T=r,D=n,r=p[m++],n=p[m++],d=s.A,OI(T,D,r,n,w,C,b,S,x,d,t);break;case"a":b=p[m++],S=p[m++],x=p[m++],w=p[m++],C=p[m++],T=r,D=n,r+=p[m++],n+=p[m++],d=s.A,OI(T,D,r,n,w,C,b,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=i),o=d}return t.toStatic(),t}var RI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Ze);function VI(e){return e.setData!=null}function BI(e,t){var r=Hre(e),n=j({},t);return n.buildPath=function(a){if(VI(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){LI(r,a),this.dirtyShape()},n}function FI(e,t){return new RI(BI(e,t))}function Gre(e,t){var r=BI(e,t),n=function(a){H(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(RI);return n}function Ure(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Ze(t);return o.createPathProxy(),o.buildPath=function(s){if(VI(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function vb(e,t){t=t||{};var r=new Ze;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?LI(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Wre=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),yi=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Wre},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Ze);yi.prototype.type="circle";var Yre=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),gh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Yre},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(Ze);gh.prototype.type="ellipse";var zI=Math.PI,gb=zI*2,cl=Math.sin,Yu=Math.cos,Xre=Math.acos,Xr=Math.atan2,$I=Math.abs,mh=Math.sqrt,yh=Math.max,_i=Math.min,Ba=1e-4;function Kre(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Ba))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function Qv(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/mh(s*s+l*l),c=u*l,f=-u*s,d=e+c,p=t+f,v=r+c,g=n+f,m=(d+v)/2,y=(p+g)/2,_=v-d,b=g-p,S=_*_+b*b,x=a-i,w=d*g-v*p,C=(b<0?-1:1)*mh(yh(0,x*x*S-w*w)),T=(w*b-_*C)/S,D=(-w*_-b*C)/S,E=(w*b+_*C)/S,A=(-w*_+b*C)/S,L=T-m,N=D-y,I=E-m,k=A-y;return L*L+N*N>I*I+k*k&&(T=E,D=A),{cx:T,cy:D,x0:-c,y0:-f,x1:T*(a/x-1),y1:D*(a/x-1)}}function jre(e){var t;if(J(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Zre(e,t){var r,n=yh(t.r,0),a=yh(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,p=$I(u-l),v=p>gb&&p%gb;if(v>Ba&&(p=v),!(n>Ba))e.moveTo(c,f);else if(p>gb-Ba)e.moveTo(c+n*Yu(l),f+n*cl(l)),e.arc(c,f,n,l,u,!d),a>Ba&&(e.moveTo(c+a*Yu(u),f+a*cl(u)),e.arc(c,f,a,u,l,d));else{var g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,C=void 0,T=void 0,D=void 0,E=void 0,A=void 0,L=void 0,N=void 0,I=void 0,k=n*Yu(l),P=n*cl(l),V=a*Yu(u),B=a*cl(u),G=p>Ba;if(G){var U=t.cornerRadius;U&&(r=jre(U),g=r[0],m=r[1],y=r[2],_=r[3]);var W=$I(n-a)/2;if(b=_i(W,y),S=_i(W,_),x=_i(W,g),w=_i(W,m),D=C=yh(b,S),E=T=yh(x,w),(C>Ba||T>Ba)&&(A=n*Yu(u),L=n*cl(u),N=a*Yu(l),I=a*cl(l),p<zI)){var re=Kre(k,P,N,I,A,L,V,B);if(re){var le=k-re[0],Y=P-re[1],X=A-re[0],fe=L-re[1],we=1/cl(Xre((le*X+Y*fe)/(mh(le*le+Y*Y)*mh(X*X+fe*fe)))/2),de=mh(re[0]*re[0]+re[1]*re[1]);D=_i(C,(n-de)/(we+1)),E=_i(T,(a-de)/(we-1))}}}if(!G)e.moveTo(c+k,f+P);else if(D>Ba){var pe=_i(y,D),Ae=_i(_,D),me=Qv(N,I,k,P,n,pe,d),Ce=Qv(A,L,V,B,n,Ae,d);e.moveTo(c+me.cx+me.x0,f+me.cy+me.y0),D<C&&pe===Ae?e.arc(c+me.cx,f+me.cy,D,Xr(me.y0,me.x0),Xr(Ce.y0,Ce.x0),!d):(pe>0&&e.arc(c+me.cx,f+me.cy,pe,Xr(me.y0,me.x0),Xr(me.y1,me.x1),!d),e.arc(c,f,n,Xr(me.cy+me.y1,me.cx+me.x1),Xr(Ce.cy+Ce.y1,Ce.cx+Ce.x1),!d),Ae>0&&e.arc(c+Ce.cx,f+Ce.cy,Ae,Xr(Ce.y1,Ce.x1),Xr(Ce.y0,Ce.x0),!d))}else e.moveTo(c+k,f+P),e.arc(c,f,n,l,u,!d);if(!(a>Ba)||!G)e.lineTo(c+V,f+B);else if(E>Ba){var pe=_i(g,E),Ae=_i(m,E),me=Qv(V,B,A,L,a,-Ae,d),Ce=Qv(k,P,N,I,a,-pe,d);e.lineTo(c+me.cx+me.x0,f+me.cy+me.y0),E<T&&pe===Ae?e.arc(c+me.cx,f+me.cy,E,Xr(me.y0,me.x0),Xr(Ce.y0,Ce.x0),!d):(Ae>0&&e.arc(c+me.cx,f+me.cy,Ae,Xr(me.y0,me.x0),Xr(me.y1,me.x1),!d),e.arc(c,f,a,Xr(me.cy+me.y1,me.cx+me.x1),Xr(Ce.cy+Ce.y1,Ce.cx+Ce.x1),d),pe>0&&e.arc(c+Ce.cx,f+Ce.cy,pe,Xr(Ce.y1,Ce.x1),Xr(Ce.y0,Ce.x0),!d))}else e.lineTo(c+V,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var qre=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Kr=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qre},t.prototype.buildPath=function(r,n){Zre(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ze);Kr.prototype.type="sector";var Jre=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Xu=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Jre},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(Ze);Xu.prototype.type="ring";function Qre(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)ji(c,c,e[d]),Zi(f,f,e[d]);ji(c,c,n[0]),Zi(f,f,n[1])}for(var d=0,p=e.length;d<p;d++){var v=e[d];if(r)l=e[d?d-1:p-1],u=e[(d+1)%p];else if(d===0||d===p-1){a.push(li(e[d]));continue}else l=e[d-1],u=e[d+1];Ro(i,u,l),Vf(i,i,t);var g=sv(v,l),m=sv(v,u),y=g+m;y!==0&&(g/=y,m/=y),Vf(o,i,-g),Vf(s,i,m);var _=F_([],v,o),b=F_([],v,s);n&&(Zi(_,_,c),ji(_,_,f),Zi(b,b,c),ji(b,b,f)),a.push(_),a.push(b)}return r&&a.push(a.shift()),a}function HI(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=Qre(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var ene=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),jr=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ene},t.prototype.buildPath=function(r,n){HI(r,n,!0)},t}(Ze);jr.prototype.type="polygon";var tne=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Zr=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tne},t.prototype.buildPath=function(r,n){HI(r,n,!1)},t}(Ze);Zr.prototype.type="polyline";var rne={},nne=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),dr=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nne},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=tI(rne,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Ze);dr.prototype.type="line";var Dn=[],ane=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function GI(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?H2:_r)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?H2:_r)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Q_:Mr)(e.x1,e.cpx1,e.x2,t),(r?Q_:Mr)(e.y1,e.cpy1,e.y2,t)]}var Ku=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ane},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,i),c==null||f==null?(d<1&&(Yf(a,l,o,d,Dn),l=Dn[1],o=Dn[2],Yf(i,u,s,d,Dn),u=Dn[1],s=Dn[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&($o(a,l,c,o,d,Dn),l=Dn[1],c=Dn[2],o=Dn[3],$o(i,u,f,s,d,Dn),u=Dn[1],f=Dn[2],s=Dn[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return GI(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=GI(this.shape,r,!0);return Fs(n,n)},t}(Ze);Ku.prototype.type="bezier-curve";var ine=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),_h=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ine},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+a,f*o+i),r.arc(a,i,o,s,l,!u)},t}(Ze);_h.prototype.type="arc";var eg=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ze.prototype.getBoundingRect.call(this)},t}(Ze),UI=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),ju=function(e){H(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(UI),mb=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(UI),fl=[0,0],hl=[0,0],tg=new $e,rg=new $e,ng=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $e;for(var n=0;n<2;n++)this._axes[n]=new $e;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);$e.sub(a[0],n[1],n[0]),$e.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return tg.set(1/0,1/0),rg.set(0,0),!this._intersectCheckOneSide(this,t,tg,rg,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,tg,rg,a,-1)&&(n=!1,a)||a||$e.copy(r,n?tg:rg),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,fl),this._getProjMinMaxOnAxis(l,r._corners,hl),fl[1]<hl[0]||fl[0]>hl[1]){if(s=!1,i)return s;var c=Math.abs(hl[0]-fl[1]),f=Math.abs(fl[0]-hl[1]);Math.min(c,f)>a.len()&&(c<f?$e.scale(a,u,-c*o):$e.scale(a,u,f*o))}else if(n){var c=Math.abs(hl[0]-fl[1]),f=Math.abs(fl[0]-hl[1]);Math.min(c,f)<n.len()&&(c<f?$e.scale(n,u,c*o):$e.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}(),one=[],WI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new He(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(one)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(oa),YI=at();function Zu(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Re(n.duration,200),c=Re(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Se(f)&&(f=f(r,a)),Se(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function yb(e,t,r,n,a,i,o){var s=!1,l;Se(a)?(o=i,i=a,a=null):Ee(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Zu(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,p=c.easing,v={duration:f,delay:d||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function st(e,t,r,n,a,i){yb("update",e,t,r,n,a,i)}function Vt(e,t,r,n,a,i){yb("enter",e,t,r,n,a,i)}function qu(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Zo(e,t,r,n,a,i){qu(e)||yb("leave",e,t,r,n,a,i)}function XI(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Zo(e,{style:{opacity:0}},t,r,n)}function bh(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||XI(a,t,r,n)}):XI(e,t,r,n)}function Fa(e){YI(e).oldStyle=e.style}function sne(e){return YI(e).oldStyle}var ag=Math.max,ig=Math.min,_b={};function KI(e){return Ze.extend(e)}var lne=Gre;function jI(e,t){return lne(e,t)}function la(e,t){_b[e]=t}function og(e){if(_b.hasOwnProperty(e))return _b[e]}function Sh(e,t,r,n){var a=FI(e,t);return r&&(n==="center"&&(r=ZI(r,a.getBoundingRect())),Sb(a,r)),a}function bb(e,t,r){var n=new br({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(ZI(t,i))}}});return n}function ZI(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var $n=Ure;function Sb(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Ju(e,t){return tI(e,e,{lineWidth:t}),e}function une(e){return rI(e.shape,e.shape,e.style),e}var sg=ol;function qo(e,t){for(var r=Ff([]);e&&e!==t;)ui(r,e.getLocalTransform(),r),e=e.parent;return r}function za(e,t,r){return t&&!Lr(t)&&(t=Qi.getLocalTransform(t)),r&&(t=zs([],t)),Ar([],e,t)}function lg(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=za(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function qI(e){return!e.isGroup}function cne(e){return e.shape!=null}function wh(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){qI(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cne(o)&&(s.shape=j({},o.shape)),s}var i=n(e);t.traverse(function(o){if(qI(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),st(o,l,r,Ve(o).dataIndex)}}})}function wb(e,t){return ee(e,function(r){var n=r[0];n=ag(n,t.x),n=ig(n,t.x+t.width);var a=r[1];return a=ag(a,t.y),a=ig(a,t.y+t.height),[n,a]})}function JI(e,t){var r=ag(e.x,t.x),n=ig(e.x+e.width,t.x+t.width),a=ag(e.y,t.y),i=ig(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Qu(e,t,r){var n=j({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Me(a,r),new br(n)):Sh(e.replace("path://",""),n,r,"center")}function xh(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(QI(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function QI(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=xb(c,f,l,u);if(fne(d))return!1;var p=e-a,v=t-i,g=xb(p,v,l,u)/d;if(g<0||g>1)return!1;var m=xb(p,v,c,f)/d;return!(m<0||m>1)}function xb(e,t,r,n){return e*n-r*t}function fne(e){return e<=1e-6&&e>=-1e-6}function dl(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=he(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&M(qe(l),function(c){ye(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ve(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Me({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function eL(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Jo(e,t){if(e)if(J(e))for(var r=0;r<e.length;r++)eL(e[r],t);else eL(e,t)}la("circle",yi),la("ellipse",gh),la("sector",Kr),la("ring",Xu),la("polygon",jr),la("polyline",Zr),la("rect",et),la("line",dr),la("bezierCurve",Ku),la("arc",_h);const pl=Object.freeze(Object.defineProperty({__proto__:null,Arc:_h,BezierCurve:Ku,BoundingRect:He,Circle:yi,CompoundPath:eg,Ellipse:gh,Group:Oe,Image:br,IncrementalDisplayable:WI,Line:dr,LinearGradient:ju,OrientedBoundingRect:ng,Path:Ze,Point:$e,Polygon:jr,Polyline:Zr,RadialGradient:mb,Rect:et,Ring:Xu,Sector:Kr,Text:tt,applyTransform:za,clipPointsByRect:wb,clipRectByRect:JI,createIcon:Qu,extendPath:jI,extendShape:KI,getShapeClass:og,getTransform:qo,groupTransition:wh,initProps:Vt,isElementRemoved:qu,lineLineIntersect:QI,linePolygonIntersect:xh,makeImage:bb,makePath:Sh,mergePath:$n,registerShape:la,removeElement:Zo,removeElementWithFadeOut:bh,resizePath:Sb,setTooltipConfig:dl,subPixelOptimize:sg,subPixelOptimizeLine:Ju,subPixelOptimizeRect:une,transformDirection:lg,traverseElements:Jo,updateProps:st},Symbol.toStringTag,{value:"Module"}));var ug={};function tL(e,t){for(var r=0;r<fn.length;r++){var n=fn[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Cb(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Se(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<fn.length;u++){var c=fn[u],f=t[c];l[c]=Re(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Or(e,t,r,n){r=r||ug;for(var a=e instanceof tt,i=!1,o=0;o<hh.length;o++){var s=t[hh[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new tt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Cb(r,t),c=t.normal,f=!!c.getShallow("show"),d=Nt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(cg(c,r,!1));for(var o=0;o<fn.length;o++){var p=fn[o],s=t[p];if(s){var v=l.ensureState(p),g=!!Re(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=Nt(s,n&&n[p],r,!0,!a),v.style.text=u[p],!a){var m=e.ensureState(p);m.textConfig=cg(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(ec(l).setLabelText=function(y){var _=Cb(r,t,y);tL(l,_)})}else l&&(l.ignore=!0);e.dirty()}function Sr(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var a=fn[n];r[a]=e.getModel([a,t])}return r}function Nt(e,t,r,n,a){var i={};return hne(i,e,r,n,a),t&&j(i,t),i}function cg(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=Re(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function hne(e,t,r,n,a){r=r||ug;var i=t.ecModel,o=i&&i.option.textStyle,s=dne(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);iL(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),iL(e,t,o,r,n,a,!0,!1)}function dne(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ug).rich;if(r){t=t||{};for(var n=qe(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var rL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],nL=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],aL=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function iL(e,t,r,n,a,i,o,s){r=!a&&r||ug;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Re(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&er("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&er("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Re(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=Re(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var v=Re(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<rL.length;g++){var m=rL[g],y=Re(t.getShallow(m),r[m]);y!=null&&(e[m]=y)}for(var g=0;g<nL.length;g++){var m=nL[g],y=t.getShallow(m);y!=null&&(e[m]=y)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!n.disableBox){for(var g=0;g<aL.length;g++){var m=aL[g],y=t.getShallow(m);y!=null&&(e[m]=y)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&er("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&er("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function Tb(e,t){var r=t&&t.getModel("textStyle");return ea([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ec=at();function oL(e,t,r,n){if(e){var a=ec(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function sL(e,t,r,n,a){var i=ec(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Re(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=FN(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=Cb({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);tL(e,d)}e.percent=0,(i.prevValue==null?Vt:st)(e,{percent:1},n,t,null,u)}var pne=["textStyle","color"],Db=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Eb=new tt,vne=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(pne):null)},e.prototype.getFont=function(){return Tb({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Db.length;n++)r[Db[n]]=this.getShallow(Db[n]);return Eb.useStyle(r),Eb.update(),Eb.getBoundingRect()},e}(),lL=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],gne=Js(lL),mne=function(){function e(){}return e.prototype.getLineStyle=function(t){return gne(this,t)},e}(),uL=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],yne=Js(uL),_ne=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return yne(this,t,r)},e}(),ft=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Fe(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ke(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Xe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();B1(ft),Lte(ft),qt(ft,mne),qt(ft,_ne),qt(ft,Vte),qt(ft,vne);var bne=Math.round(Math.random()*10);function tc(e){return[e||"",bne++].join("_")}function Sne(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=di(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=di(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function wne(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(M(i,function(_){d[_]=!0});f.length;){var p=f.pop(),v=c[p],g=!!d[p];g&&(s.call(l,p,v.originalDeps.slice()),delete d[p]),M(v.successor,g?y:m)}M(d,function(){var _="";throw process.env.NODE_ENV!=="production"&&(_=un("Circular dependency may exists: ",d,i,o)),new Error(_)});function m(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function y(_){d[_]=!0,m(_)}};function r(i){var o={},s=[];return M(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),M(f,function(d){Ge(u.predecessor,d)<0&&u.predecessor.push(d);var p=n(o,d);Ge(p.successor,d)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return M(i,function(l){Ge(o,l)>=0&&s.push(l)}),s}}function Qo(e,t){return Fe(Fe({},e,!0),t,!0)}const xne={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:". "}}}},Cne={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 fg="ZH",Ab="EN",rc=Ab,hg={},Mb={},cL=Xe.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rc).toUpperCase();return e.indexOf(fg)>-1?fg:rc}():rc;function Nb(e,t){e=e.toUpperCase(),Mb[e]=new ft(t),hg[e]=t}function Tne(e){if(he(e)){var t=hg[e.toUpperCase()]||{};return e===fg||e===Ab?ke(t):Fe(ke(t),ke(hg[rc]),!1)}else return Fe(ke(e),ke(hg[rc]),!1)}function Ib(e){return Mb[e]}function Dne(){return Mb[rc]}Nb(Ab,xne),Nb(fg,Cne);var Lb=1e3,kb=Lb*60,Ch=kb*60,ua=Ch*24,fL=ua*365,Th={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}"},dg="{yyyy}-{MM}-{dd}",hL={year:"{yyyy}",month:"{yyyy}-{MM}",day:dg,hour:dg+" "+Th.hour,minute:dg+" "+Th.minute,second:dg+" "+Th.second,millisecond:Th.none},Pb=["year","month","day","hour","minute","second","millisecond"],dL=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hn(e,t){return e+="","0000".substr(0,t-e.length)+e}function nc(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 Ene(e){return e===nc(e)}function Ane(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Dh(e,t,r,n){var a=Fn(e),i=a[Ob(r)](),o=a[ac(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[pg(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[Eh(r)](),f=(c-1)%12+1,d=a[vg(r)](),p=a[gg(r)](),v=a[mg(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof ft?n:Ib(n||cL)||Dne(),_=y.getModel("time"),b=_.get("month"),S=_.get("monthAbbr"),x=_.get("dayOfWeek"),w=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,hn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,hn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,hn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,hn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,hn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hn(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,hn(v,3)).replace(/{S}/g,v+"")}function Mne(e,t,r,n,a){var i=null;if(he(r))i=r;else if(Se(r))i=r(e.value,t,{level:e.level});else{var o=j({},Th);if(e.level>0)for(var s=0;s<Pb.length;++s)o[Pb[s]]="{primary|"+o[Pb[s]]+"}";var l=r?r.inherit===!1?r:Me(r,o):o,u=pL(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=dL.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(J(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return Dh(new Date(e.value),i,a,n)}function pL(e,t){var r=Fn(e),n=r[ac(t)]()+1,a=r[pg(t)](),i=r[Eh(t)](),o=r[vg(t)](),s=r[gg(t)](),l=r[mg(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,p=d&&a===1,v=p&&n===1;return v?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function vL(e,t,r){var n=ot(e)?Fn(e):e;switch(t=t||pL(e,r),t){case"year":return n[Ob(r)]();case"half-year":return n[ac(r)]()>=6?1:0;case"quarter":return Math.floor((n[ac(r)]()+1)/4);case"month":return n[ac(r)]();case"day":return n[pg(r)]();case"half-day":return n[Eh(r)]()/24;case"hour":return n[Eh(r)]();case"minute":return n[vg(r)]();case"second":return n[gg(r)]();case"millisecond":return n[mg(r)]()}}function Ob(e){return e?"getUTCFullYear":"getFullYear"}function ac(e){return e?"getUTCMonth":"getMonth"}function pg(e){return e?"getUTCDate":"getDate"}function Eh(e){return e?"getUTCHours":"getHours"}function vg(e){return e?"getUTCMinutes":"getMinutes"}function gg(e){return e?"getUTCSeconds":"getSeconds"}function mg(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Nne(e){return e?"setUTCFullYear":"setFullYear"}function gL(e){return e?"setUTCMonth":"setMonth"}function mL(e){return e?"setUTCDate":"setDate"}function yL(e){return e?"setUTCHours":"setHours"}function _L(e){return e?"setUTCMinutes":"setMinutes"}function bL(e){return e?"setUTCSeconds":"setSeconds"}function SL(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ine(e,t,r,n,a,i,o,s){var l=new tt({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Rb(e){if(!Rv(e))return he(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Vb(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var vl=iv;function Bb(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&ea(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Fn(e):e;if(isNaN(+l)){if(s)return"-"}else return Dh(l,n,r)}if(t==="ordinal")return If(e)?a(e):ot(e)&&i(e)?e+"":"-";var u=hi(e);return i(u)?Rb(u):If(e)?a(e):typeof e=="boolean"?e+"":"-"}var wL=["a","b","c","d","e","f","g"],Fb=function(e,t){return"{"+e+(t??"")+"}"};function zb(e,t,r){J(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=wL[i];e=e.replace(Fb(o),Fb(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(Fb(wL[l],s),r?Yr(u):u)}return e}function Lne(e,t,r){return M(t,function(n,a){e=e.replace("{"+a+"}",n)}),e}function xL(e,t){var r=he(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Yr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Yr(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function kne(e,t,r){process.env.NODE_ENV!=="production"&&er("echarts.format.formatTime","echarts.time.format"),(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
79
+ yyyy`);var n=Fn(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),c=n[a+"Seconds"](),f=n[a+"Milliseconds"]();return e=e.replace("MM",hn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",hn(i%100+"",2)).replace("dd",hn(s,2)).replace("d",s).replace("hh",hn(l,2)).replace("h",l).replace("mm",hn(u,2)).replace("m",u).replace("ss",hn(c,2)).replace("s",c).replace("SSS",hn(f,3)),e}function Pne(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function gl(e,t){return t=t||"transparent",he(e)?e:Ee(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function yg(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var _g=M,CL=["left","right","top","bottom","width","height"],ml=[["width","left","right"],["height","top","bottom"]];function $b(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),p,v;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);p=i+g,p>n||l.newline?(i=0,p=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);v=o+m,v>a||l.newline?(i+=s+r,o=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=p+r:o=v+r)})}var yl=$b;Be($b,"vertical"),Be($b,"horizontal");function One(e,t,r){var n=t.width,a=t.height,i=ue(e.left,n),o=ue(e.top,a),s=ue(e.right,n),l=ue(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),r=vl(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function lr(e,t,r){r=vl(r||0);var n=t.width,a=t.height,i=ue(e.left,n),o=ue(e.top,a),s=ue(e.right,n),l=ue(e.bottom,a),u=ue(e.width,n),c=ue(e.height,a),f=r[2]+r[0],d=r[1]+r[3],p=e.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new He(i+r[3],o+r[0],u,c);return v.margin=r,v}function bg(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new He(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=lr(Me({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=p):(i.x+=d,i.y+=p),i===e&&e.markRedraw(),!0}function Rne(e,t){return e[ml[t][0]]!=null||e[ml[t][1]]!=null&&e[ml[t][2]]!=null}function Ah(e){var t=e.layoutMode||e.constructor.layoutMode;return Ee(t)?t:t?{type:t}:null}function es(e,t,r){var n=r&&r.ignoreSize;!J(n)&&(n=[n,n]);var a=o(ml[0],0),i=o(ml[1],1);u(ml[0],e,a),u(ml[1],e,i);function o(c,f){var d={},p=0,v={},g=0,m=2;if(_g(c,function(b){v[b]=e[b]}),_g(c,function(b){s(t,b)&&(d[b]=v[b]=t[b]),l(d,b)&&p++,l(v,b)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===m||!p)return v;if(p>=m)return d;for(var y=0;y<c.length;y++){var _=c[y];if(!s(d,_)&&s(e,_)){d[_]=e[_];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){_g(c,function(p){f[p]=d[p]})}}function ic(e){return TL({},e)}function TL(e,t){return t&&e&&_g(CL,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Vne=at(),Ue=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=tc("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Ah(this),i=a?ic(r):{},o=n.getTheme();Fe(r,o.get(this.mainType)),Fe(r,this.getDefaultOption()),a&&es(r,i,a)},t.prototype.mergeOption=function(r,n){Fe(this.option,r,!0);var a=Ah(this);a&&es(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Mte(r))return r.defaultOption;var n=Vne(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Fe(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return lh(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(ft);$N(Ue,ft),Bv(Ue),Sne(Ue),wne(Ue,Bne);function Bne(e){var t=[];return M(Ue.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ee(t,function(r){return di(r).main}),e!=="dataset"&&Ge(t,"dataset")<=0&&t.unshift("dataset"),t}var DL="";typeof navigator<"u"&&(DL=navigator.platform||"");var oc="rgba(0, 0, 0, 0.2)";const Fne={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:oc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:oc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:oc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:oc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:oc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:oc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:DL.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 Hb=_e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ca="original",qr="arrayRows",fa="objectRows",bi="keyedColumns",io="typedArray",EL="unknown",Si="column",sc="row",Rr={Must:1,Might:2,Not:3},AL=at();function zne(e){AL(e).datasetMap=_e()}function ML(e,t,r){var n={},a=Ub(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=AL(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),M(e,function(g,m){var y=Ee(g)?g:e[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=v(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(e,function(g,m){var y=g.name,_=v(g);if(c==null){var b=d.valueWayDim;p(n[y],b,_),p(o,b,_),d.valueWayDim+=_}else if(c===m)p(n[y],0,_),p(i,0,_);else{var b=d.categoryWayDim;p(n[y],b,_),p(o,b,_),d.categoryWayDim+=_}});function p(g,m,y){for(var _=0;_<y;_++)g.push(m+_)}function v(g){var m=g.dimsDef;return m?m.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Gb(e,t,r){var n={},a=Ub(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===fa||i===bi)&&M(o,function(c,f){(Ee(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],p=0,v=Math.min(5,r);p<v;p++){var g=IL(t.data,i,t.seriesLayoutBy,o,t.startIndex,p);d.push(g);var m=g===Rr.Not;if(m&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!m&&d[c.n]===Rr.Not)&&(c.n=p),y(c)&&d[c.n]!==Rr.Not)return c;m||(g===Rr.Might&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v)&&(f.n=p))}function y(_){return _.v!=null&&_.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ub(e){var t=e.get("data",!0);if(!t)return lh(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},sr).models[0]}function $ne(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:lh(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},sr).models}function NL(e,t){return IL(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function IL(e,t,r,n,a,i){var o,s=5;if(Ur(e))return Rr.Not;var l,u;if(n){var c=n[i];Ee(c)?(l=c.name,u=c.type):he(c)&&(l=c)}if(u!=null)return u==="ordinal"?Rr.Must:Rr.Not;if(t===qr){var f=e;if(r===sc){for(var d=f[i],p=0;p<(d||[]).length&&p<s;p++)if((o=S(d[a+p]))!=null)return o}else for(var p=0;p<f.length&&p<s;p++){var v=f[a+p];if(v&&(o=S(v[i]))!=null)return o}}else if(t===fa){var g=e;if(!l)return Rr.Not;for(var p=0;p<g.length&&p<s;p++){var m=g[p];if(m&&(o=S(m[l]))!=null)return o}}else if(t===bi){var y=e;if(!l)return Rr.Not;var d=y[l];if(!d||Ur(d))return Rr.Not;for(var p=0;p<d.length&&p<s;p++)if((o=S(d[p]))!=null)return o}else if(t===ca)for(var _=e,p=0;p<_.length&&p<s;p++){var m=_[p],b=Fu(m);if(!J(b))return Rr.Not;if((o=S(b[i]))!=null)return o}function S(x){var w=he(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return w?Rr.Might:Rr.Not;if(w&&x!=="-")return Rr.Must}return Rr.Not}var Wb=_e();function Hne(e,t){Ne(Wb.get(e)==null&&t),Wb.set(e,t)}function Gne(e,t,r){var n=Wb.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)Ne(zu(a[i]));return r.concat(a)}var LL=at(),Une=at(),Yb=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Dt(this.get("color",!0)),i=this.get("colorLayer",!0);return kL(this,LL,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Yne(this,LL)},e}();function Xb(e,t,r,n){var a=Dt(e.get(["aria","decal","decals"]));return kL(e,Une,a,null,t,r,n)}function Wne(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function kL(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:Wne(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Yne(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sg,Mh,PL,Kb="\0_ec_inner",OL=1,Xne={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Kne={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},wg={};function jne(e){M(e,function(t,r){if(!Ue.hasClass(r)){var n=Xne[r];n&&!wg[n]&&(kr("Component "+r+` is used but not imported.
80
+ import { `+n+` } from 'echarts/components';
81
+ echarts.use([`+n+"]);"),wg[n]=!0)}})}var jb=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ft(i),this._locale=new ft(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(Ne(r!=null,"option is null/undefined"),Ne(r[Kb]!==OL,"please use chart.getOption()"));var i=BL(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,BL(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&jne(o),!this.option||r==="recreate"?PL(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=_e(),u=n&&n.replaceMergeMainTypeMap;zne(this),M(r,function(f,d){f!=null&&(Ue.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?ke(f):Fe(a[d],f,!0))}),u&&u.each(function(f,d){Ue.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Ue.topologicalTravel(s,Ue.getAllClassMainTypes(),c,this);function c(f){var d=Gne(this,f,Dt(r[f])),p=i.get(f),v=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=PN(p,d,v);bte(g,f,Ue),a[f]=null,i.set(f,null),o.set(f,0);var m=[],y=[],_=0,b,S;M(g,function(x,w){var C=x.existing,T=x.newOption;if(!T)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var D=f==="series",E=Ue.getClass(f,x.keyInfo.subType,!D);if(!E){if(process.env.NODE_ENV!=="production"){var A=x.keyInfo.subType,L=Kne[A];wg[A]||(wg[A]=!0,kr(L?"Series "+A+` is used but not imported.
82
+ import { `+L+` } from 'echarts/charts';
83
+ echarts.use([`+L+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(b){process.env.NODE_ENV!=="production"&&(S||(Wt("Currently only one tooltip component is allowed."),S=!0));return}b=!0}if(C&&C.constructor===E)C.name=x.keyInfo.name,C.mergeOption(T,this),C.optionUpdated(T,!1);else{var N=j({componentIndex:w},x.keyInfo);C=new E(T,this,this,N),j(C,N),x.brandNew&&(C.__requireNewView=!0),C.init(T,this,this),C.optionUpdated(null,!0)}}C?(m.push(C.option),y.push(C),_++):(m.push(void 0),y.push(void 0))},this),a[f]=m,i.set(f,y),o.set(f,_),f==="series"&&Sg(this)}this._seriesIndices||Sg(this)},t.prototype.getOption=function(){var r=ke(this.option);return M(r,function(n,a){if(Ue.hasClass(a)){for(var i=Dt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!zu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Kb],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(Dt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=RL("id",i,s):o!=null?l=RL("name",o,s):l=ct(s,function(u){return!!u}),VL(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):ct(this._componentsMap.get(a),function(u){return!!u});return l(VL(o,r));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?ct(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(Se(r)){var o=n,s=r;i.each(function(f,d){for(var p=0;f&&p<f.length;p++){var v=f[p];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=he(r)?i.get(r):Ee(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=hr(r,null);return ct(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return ct(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return ct(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Mh(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Mh(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return M(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Mh(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Mh(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=_e(a)},t.prototype.restoreData=function(r){Sg(this);var n=this._componentsMap,a=[];n.each(function(i,o){Ue.hasClass(o)&&a.push(o)}),Ue.topologicalTravel(a,Ue.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!Zne(o,r))&&o.restoreData()})})},t.internalField=function(){Sg=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=_e(n)},Mh=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},PL=function(r,n){r.option={},r.option[Kb]=OL,r._componentsMap=_e({series:[]}),r._componentsCount=_e();var a=n.aria;Ee(a)&&a.enabled==null&&(a.enabled=!0),qne(n,r._theme.option),Fe(n,Fne,!1),r._mergeOption(n,null)}}(),t}(ft);function Zne(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function qne(e,t){var r=e.color&&!e.colorLayer;M(t,function(n,a){a==="colorLayer"&&r||Ue.hasClass(a)||(typeof n=="object"?e[a]=e[a]?Fe(e[a],n,!1):ke(n):e[a]==null&&(e[a]=n))})}function RL(e,t,r){if(J(t)){var n=_e();return M(t,function(i){if(i!=null){var o=hr(i,null);o!=null&&n.set(i,!0)}}),ct(r,function(i){return i&&n.get(i[e])})}else{var a=hr(t,null);return ct(r,function(i){return i&&a!=null&&i[e]===a})}}function VL(e,t){return t.hasOwnProperty("subType")?ct(e,function(r){return r&&r.subType===t.subType}):e}function BL(e){var t=_e();return e&&M(Dt(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&Ne(Ue.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}qt(jb,Yb);var Jne=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],FL=function(){function e(t){M(Jne,function(r){this[r]=ge(t[r],t)},this)}return e}(),Zb={},_l=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];M(Zb,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){M(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Zb[t]=r},e.get=function(t){return Zb[t]},e}(),Qne=/^(min|max)?(.+)$/,eae=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(M(Dt(t.series),function(o){o&&o.data&&Ur(o.data)&&kf(o.data)}),M(Dt(t.dataset),function(o){o&&o.source&&Ur(o.source)&&kf(o.source)})),t=ke(t);var a=this._optionBackup,i=tae(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ke(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ke(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)rae(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!aae(o,this._currentMediaIndices)&&(s=ee(o,function(c){return ke(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function tae(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&(J(u)?M(u,function(p){process.env.NODE_ENV!=="production"&&p&&!p.option&&Ee(p.query)&&Ee(p.query.option)&&kr("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),p&&p.option&&(p.query?n.push(p):a||(a=p))}):process.env.NODE_ENV!=="production"&&kr("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(i),M(l,function(p){return d(p)}),M(n,function(p){return d(p.option)});function d(p){M(t,function(v){v(p,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function rae(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return M(e,function(i,o){var s=o.match(Qne);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();nae(n[u],i,l)||(a=!1)}}),a}function nae(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function aae(e,t){return e.join(",")===t.join(",")}var ha=M,Nh=Ee,zL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=zL.length;r<n;r++){var a=zL[r],i=t.normal,o=t.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&er("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?Fe(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&er("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?Fe(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Jr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&ia("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,Me(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&ia(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Ih(e){Jr(e,"itemStyle"),Jr(e,"lineStyle"),Jr(e,"areaStyle"),Jr(e,"label"),Jr(e,"labelLine"),Jr(e,"upperLabel"),Jr(e,"edgeLabel")}function ur(e,t){var r=Nh(e)&&e[t],n=Nh(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&ia("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,i=kN.length;a<i;a++){var o=kN[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function da(e){e&&(Ih(e),ur(e,"label"),e.emphasis&&ur(e.emphasis,"label"))}function iae(e){if(Nh(e)){qb(e),Ih(e),ur(e,"label"),ur(e,"upperLabel"),ur(e,"edgeLabel"),e.emphasis&&(ur(e.emphasis,"label"),ur(e.emphasis,"upperLabel"),ur(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(qb(t),da(t));var r=e.markLine;r&&(qb(r),da(r));var n=e.markArea;n&&da(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!Ur(i))for(var o=0;o<i.length;o++)da(i[o]);M(e.categories,function(u){Ih(u)})}if(a&&!Ur(a))for(var o=0;o<a.length;o++)da(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)da(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)J(l[o])?(da(l[o][0]),da(l[o][1])):da(l[o]);e.type==="gauge"?(ur(e,"axisLabel"),ur(e,"title"),ur(e,"detail")):e.type==="treemap"?(Jr(e.breadcrumb,"itemStyle"),M(e.levels,function(u){Ih(u)})):e.type==="tree"&&Ih(e.leaves)}}function oo(e){return J(e)?e:e?[e]:[]}function $L(e){return(J(e)?e[0]:e)||{}}function oae(e,t){ha(oo(e.series),function(n){Nh(n)&&iae(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ha(r,function(n){ha(oo(e[n]),function(a){a&&(ur(a,"axisLabel"),ur(a.axisPointer,"label"))})}),ha(oo(e.parallel),function(n){var a=n&&n.parallelAxisDefault;ur(a,"axisLabel"),ur(a&&a.axisPointer,"label")}),ha(oo(e.calendar),function(n){Jr(n,"itemStyle"),ur(n,"dayLabel"),ur(n,"monthLabel"),ur(n,"yearLabel")}),ha(oo(e.radar),function(n){ur(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&ia("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&ia("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&ha(n.indicator,function(a){a.text&&er("text","name","radar.indicator")})}),ha(oo(e.geo),function(n){Nh(n)&&(da(n),ha(oo(n.regions),function(a){da(a)}))}),ha(oo(e.timeline),function(n){da(n),Jr(n,"label"),Jr(n,"itemStyle"),Jr(n,"controlStyle",!0);var a=n.data;J(a)&&M(a,function(i){Ee(i)&&(Jr(i,"label"),Jr(i,"itemStyle"))})}),ha(oo(e.toolbox),function(n){Jr(n,"iconStyle"),ha(n.feature,function(a){Jr(a,"iconStyle")})}),ur($L(e.axisPointer),"label"),ur($L(e.tooltip).axisPointer,"label")}function sae(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function lae(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function HL(e){e&&M(uae,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var uae=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cae=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Lh(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Jb.length;r++){var n=Jb[r][1],a=Jb[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&er(n,a))}}function GL(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&er("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function UL(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&er("downplay","blur","sunburst"))}function fae(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&er("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function WL(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&WL(e[r].children,t)}function YL(e,t){oae(e,t),e.series=Dt(e.series),M(e.series,function(r){if(Ee(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&er("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&er("clockWise","clockwise")),GL(r.label);var a=r.data;if(a&&!Ur(a))for(var i=0;i<a.length;i++)GL(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&er("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=sae(r,"pointer.color");o!=null&&lae(r,"itemStyle.color",o)}else if(n==="bar"){Lh(r),Lh(r.backgroundStyle),Lh(r.emphasis);var a=r.data;if(a&&!Ur(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Lh(a[i]),Lh(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&er("highlightPolicy","emphasis.focus","sunburst"))),UL(r),WL(r.data,UL)}else n==="graph"||n==="sankey"?fae(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&er("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&ia("`mapLocation` is not used anymore."),Me(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&er("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),HL(r)}}),e.dataRange&&(e.visualMap=e.dataRange),M(cae,function(r){var n=e[r];n&&(J(n)||(n=[n]),M(n,function(a){HL(a)}))})}function hae(e){var t=_e();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(dae)}function dae(e){M(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var p,v;s?v=o.getRawIndex(f):p=o.get(t.stackedByDimension,f);for(var g=NaN,m=r-1;m>=0;m--){var y=e[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,p)),v>=0){var _=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&d>=0&&_>0||l==="samesign"&&d<=0&&_<0){d=ste(d,_),g=_;break}}}return n[0]=d,n[1]=g,n})})}var xg=function(){function e(t){this.data=t.data||(t.sourceFormat===bi?{}:[]),this.sourceFormat=t.sourceFormat||EL,this.seriesLayoutBy=t.seriesLayoutBy||Si,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&NL(this,n)===Rr.Must&&(a.type="ordinal")}}return e}();function Qb(e){return e instanceof xg}function eS(e,t,r){r=r||XL(e);var n=t.seriesLayoutBy,a=vae(e,r,n,t.sourceHeader,t.dimensions),i=new xg({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ke(t)});return i}function tS(e){return new xg({data:e,sourceFormat:Ur(e)?io:ca})}function pae(e){return new xg({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ke(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function XL(e){var t=EL;if(Ur(e))t=io;else if(J(e)){e.length===0&&(t=qr);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(J(a)||Ur(a)){t=qr;break}else if(Ee(a)){t=fa;break}}}}else if(Ee(e)){for(var i in e)if(ye(e,i)&&Lr(e[i])){t=bi;break}}return t}function vae(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:KL(a),startIndex:o,dimensionsDetectedCount:i};if(t===qr){var s=e;n==="auto"||n==null?jL(function(u){u!=null&&u!=="-"&&(he(u)?o==null&&(o=1):o=0)},r,s,10):o=ot(n)?n:n?1:0,!a&&o===1&&(a=[],jL(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===sc?s.length:s[0]?s[0].length:null}else if(t===fa)a||(a=gae(e));else if(t===bi)a||(a=[],M(e,function(u,c){a.push(c)}));else if(t===ca){var l=Fu(e[0]);i=J(l)&&l.length||1}else t===io&&process.env.NODE_ENV!=="production"&&Ne(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:KL(a),dimensionsDetectedCount:i}}function gae(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return qe(r)}function KL(e){if(e){var t=_e();return ee(e,function(r,n){r=Ee(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function jL(e,t,r,n){if(t===sc)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function ZL(e){var t=e.sourceFormat;return t===fa||t===bi}var bl,Sl,wl,qL,JL,QL=function(){function e(t,r){var n=Qb(t)?t:tS(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===io){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}JL(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;JL=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=qL[nS(u,c)];if(process.env.NODE_ENV!=="production"&&Ne(p,"Invalide sourceFormat: "+u),j(o,p),u===io)o.getItem=r,o.count=a,o.fillStorage=n;else{var v=tk(u,c);o.getItem=ge(v,null,s,f,d);var g=nk(u,c);o.count=ge(g,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var p=u[d],v=p[0]==null?1/0:p[0],g=p[1]==null?-1/0:p[1],m=s-o,y=l[d],_=0;_<m;_++){var b=c[_*f+d];y[o+_]=b,b<v&&(v=b),b>g&&(g=b)}p[0]=v,p[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};qL=(t={},t[qr+"_"+Si]={pure:!0,appendData:i},t[qr+"_"+sc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[fa]={pure:!0,appendData:i},t[bi]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ca]={appendData:i},t[io]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&Ne(Ur(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),ek=function(e,t,r,n){return e[n]},mae=(bl={},bl[qr+"_"+Si]=function(e,t,r,n){return e[n+t]},bl[qr+"_"+sc]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},bl[fa]=ek,bl[bi]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];i[o]=l?l[n]:null}return i},bl[ca]=ek,bl);function tk(e,t){var r=mae[nS(e,t)];return process.env.NODE_ENV!=="production"&&Ne(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var rk=function(e,t,r){return e.length},yae=(Sl={},Sl[qr+"_"+Si]=function(e,t,r){return Math.max(0,e.length-t)},Sl[qr+"_"+sc]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Sl[fa]=rk,Sl[bi]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=e[n];return a?a.length:0},Sl[ca]=rk,Sl);function nk(e,t){var r=yae[nS(e,t)];return process.env.NODE_ENV!=="production"&&Ne(r,'Do not support count on "'+e+'", "'+t+'".'),r}var rS=function(e,t,r){return e[t]},_ae=(wl={},wl[qr]=rS,wl[fa]=function(e,t,r){return e[r]},wl[bi]=rS,wl[ca]=function(e,t,r){var n=Fu(e);return n instanceof Array?n[t]:n},wl[io]=rS,wl);function ak(e){var t=_ae[e];return process.env.NODE_ENV!=="production"&&Ne(t,'Do not support get value on "'+e+'".'),t}function nS(e,t){return e===qr?e+"_"+t:e}function lc(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return ak(i)(n,o,s)}else{var l=n;return i===ca&&(l=Fu(n)),l}}}}var bae=/\{@(.+?)\}/g,Cg=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",p=n.userOutput&&n.userOutput.get();return{componentType:f,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:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&J(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Se(i))return l.status=r,l.dimensionIndex=a,i(l);if(he(i)){var c=zb(i,l);return c.replace(bae,function(f,d){var p=d.length,v=d;v.charAt(0)==="["&&v.charAt(p-1)==="]"&&(v=+v.slice(1,p-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&kr("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var g=lc(s,t,v);if(o&&J(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return lc(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function ik(e){var t,r;return Ee(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+un(e)):t=e,{text:t,frag:r}}function kh(e){return new Sae(e)}var Sae=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(_){return!(_>=1)&&(_=1),_}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&Ne(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&Ne(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||p<v)){var g=this._progress;if(J(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,v,l,u);else this._doProgress(g,p,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&Ne(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){ok.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:ok.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),J(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&Ne(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),ok=function(){var e,t,r,n,a,i={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function ts(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ot(e)&&e!=null&&e!=="-"&&(e=+Fn(e)),e==null||e===""?NaN:Number(e))}var wae=_e({number:function(e){return parseFloat(e)},time:function(e){return+Fn(e)},trim:function(e){return he(e)?ea(e):e}});function sk(e){return wae.get(e)}var lk={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},xae=function(){function e(t,r){if(!ot(r)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),vt(n)}this._opFn=lk[t],this._rvalFloat=hi(r)}return e.prototype.evaluate=function(t){return ot(t)?this._opFn(t,this._rvalFloat):this._opFn(hi(t),this._rvalFloat)},e}(),uk=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ot(t)?t:hi(t),a=ot(r)?r:hi(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=he(t),l=he(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),Cae=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=hi(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=hi(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Tae(e,t){return e==="eq"||e==="ne"?new Cae(e==="eq",t):ye(lk,e)?new xae(e,t):null}var Dae=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ts(t,r)},e}();function Eae(e,t){var r=new Dae,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Si&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),vt(o));var s=[],l={},u=e.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,_={index:m,name:y,displayName:g.displayName};if(s.push(_),y!=null){var b="";ye(l,y)&&(process.env.NODE_ENV!=="production"&&(b='dimension name "'+y+'" duplicated.'),vt(b)),l[y]=_}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=tk(a,Si);t.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,i,s,g)},r.getRawData=ge(Aae,null,e)),r.cloneRawData=ge(Mae,null,e);var d=nk(a,Si);r.count=ge(d,null,n,i,s);var p=ak(a);r.retrieveValue=function(g,m){var y=f(n,i,s,g);return v(y,m)};var v=r.retrieveValueFromItem=function(g,m){if(g!=null){var y=s[m];if(y)return p(g,m,y.name)}};return r.getDimensionInfo=ge(Nae,null,s,l),r.cloneAllDimensionInfo=ge(Iae,null,s),r}function Aae(e){var t=e.sourceFormat;if(!aS(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),vt(r)}return e.data}function Mae(e){var t=e.sourceFormat,r=e.data;if(!aS(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),vt(n)}if(t===qr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===fa){for(var a=[],i=0,o=r.length;i<o;i++)a.push(j({},r[i]));return a}}function Nae(e,t,r){if(r!=null){if(ot(r)||!isNaN(r)&&!ye(t,r))return e[r];if(ye(t,r))return t[r]}}function Iae(e){return ke(e)}var ck=_e();function Lae(e){e=ke(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),vt(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),vt(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,ck.set(t,e)}function kae(e,t,r){var n=Dt(e),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),vt(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=Pae(l,t,r,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Pae(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),vt(a)),Ee(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),vt(a));var i=e.type,o=ck.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),vt(a));var s=ee(t,function(c){return Eae(c,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:ke(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=ee(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",un(c.data),"- transform result dimensions:",un(c.dimensions)].join(`
84
+ `)}).join(`
85
+ `);fte(u)}return ee(l,function(c,f){var d="";Ee(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),vt(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),vt(d));var p=XL(c.data);aS(p)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),vt(d));var v,g=t[0];if(g&&f===0&&!c.dimensions){var m=g.startIndex;m&&(c.data=g.data.slice(0,m).concat(c.data)),v={seriesLayoutBy:Si,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:Si,sourceHeader:0,dimensions:c.dimensions};return eS(c.data,v,null)})}function aS(e){return e===qr||e===fa}var Tg="undefined",Oae=typeof Uint32Array===Tg?Array:Uint32Array,Rae=typeof Uint16Array===Tg?Array:Uint16Array,fk=typeof Int32Array===Tg?Array:Int32Array,hk=typeof Float64Array===Tg?Array:Float64Array,dk={float:hk,int:fk,ordinal:Array,number:Array,time:hk},iS;function uc(e){return e>65535?Oae:Rae}function cc(){return[1/0,-1/0]}function Vae(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function pk(e,t,r,n,a){var i=dk[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var oS=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=_e()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&Ne(Se(t.getItem)&&Se(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=iS[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=ZL(a);this._dimensions=ee(r,function(s){return process.env.NODE_ENV!=="production"&&o&&Ne(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new dk[r||"float"](this._rawCount),this._rawExtent[i]=cc(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=cc());for(var l=i[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&Ne(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var c=a[u];pk(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,v=0;v<i;v++){var c=a[v],g=iS.arrayRows.call(this,t[p]||f,c.property,p,v);n[v][d]=g;var m=o[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ee(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=cc()),pk(i,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var d=[],p=t;p<r;p++){d=a.getItem(p,d);for(var v=0;v<s;v++){var g=i[v],m=this._dimValueGetter(d,u[v],p,v);g[p]=m;var y=l[v];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),p=r-i[d],v=Math.abs(p);v<=n&&((v<s||v===s&&p>=0&&l<0)&&(s=v,l=p,u=0),p===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=uc(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=uc(n._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var p=void 0,v=n.getRawIndex(d);if(l===0)p=r(d);else if(l===1){var g=f[c][v];p=r(g,d)}else{for(var m=0;m<l;m++)s[m]=f[t[m]][v];s[m]=d,p=r.apply(null,s)}p&&(o[u++]=v)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=qe(t),i=a.length;if(!i)return this;var o=r.count(),s=uc(r._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],p=r._chunks,v=!1;if(!r._indices){var g=0;if(i===1){for(var m=p[a[0]],y=0;y<n;y++){var _=m[y];(_>=f&&_<=d||isNaN(_))&&(l[u++]=g),g++}v=!0}else if(i===2){for(var m=p[a[0]],b=p[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var _=m[y],w=b[y];(_>=f&&_<=d||isNaN(_))&&(w>=S&&w<=x||isNaN(w))&&(l[u++]=g),g++}v=!0}}if(!v)if(i===1)for(var y=0;y<o;y++){var C=r.getRawIndex(y),_=p[a[0]][C];(_>=f&&_<=d||isNaN(_))&&(l[u++]=C)}else for(var y=0;y<o;y++){for(var T=!0,C=r.getRawIndex(y),D=0;D<i;D++){var E=a[D],_=p[E][C];(_<t[E][0]||_>t[E][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=cc();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),p=0;p<o;p++)l[p]=a[r[p]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var g=r[c],m=v[c],y=u[g],_=a[g];_&&(_[d]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,p=new(uc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),m=Math.min(v+l*2,o),y=(m+g)/2,_=0,b=g;b<m;b++){var S=this.getRawIndex(b),x=i[S];isNaN(x)||(_+=x)}_/=m-g;var w=v,C=Math.min(v+l,o),T=v-1,D=i[u];c=-1,d=w;for(var E=-1,A=0,b=w;b<C;b++){var S=this.getRawIndex(b),x=i[S];if(isNaN(x)){A++,E<0&&(E=S);continue}f=Math.abs((T-y)*(x-D)-(T-b)*(_-D)),f>c&&(c=f,d=S)}A>0&&A<C-w&&(p[s++]=Math.min(E,d),d=Math.max(E,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(o-1),n._count=s,n._indices=p,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),l=new(uc(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,d=o[this.getRawIndex(f)],p=c,v=o[this.getRawIndex(p)],g=i;c+i>s&&(g=s-c);for(var m=0;m<g;m++){var y=this.getRawIndex(c+m),_=o[y];_<d&&(d=_,f=c+m),_>v&&(v=_,p=c+m)}var b=this.getRawIndex(f),S=this.getRawIndex(p);f<p?(l[u++]=b,l[u++]=S):(l[u++]=S,l[u++]=b)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=i._rawExtent[t]=cc(),d=new(uc(this._rawCount))(Math.ceil(c/l)),p=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var g=0;g<l;g++){var m=this.getRawIndex(v+g);s[g]=u[m]}var y=n(s),_=this.getRawIndex(Math.min(v+a(s,y)||0,c-1));u[_]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[p++]=_}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=cc();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&Qn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?Vae(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ke(this._extent),t._rawExtent=ke(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return ts(r[i],this._dimensions[i])}iS={arrayRows:t,objectRows:function(r,n,a,i){return ts(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return ts(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),vk=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,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 t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(Ph(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Ur(s)?io:ca,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Re(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Re(f.sourceHeader,d.sourceHeader),g=Re(f.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;a=m?[eS(s,{seriesLayoutBy:p,sourceHeader:v,dimensions:g},l)]:[]}else{var y=t;if(n){var _=this._applyTransform(r);a=_.sourceList,i=_.upstreamSignList}else{var b=y.get("source",!0);a=[eS(b,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&Ne(a&&i),this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&Ne(a!=null||n!=null),a!=null){var i="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),mk(i))}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+a),mk(f)),s.push(c),l.push(u._getVersionSign())}),n?o=kae(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[pae(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&Ne(Ph(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ph(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new oS,s.initData(new QL(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ph(t)){var r=Ub(t);return r?[r.getSourceManager()]:[]}else return ee($ne(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(Ph(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function gk(e){var t=e.option.transform;t&&kf(e.option.transform)}function Ph(e){return e.mainType==="series"}function mk(e){throw new Error(e)}var Bae="line-height:1";function yk(e){var t=e.lineHeight;return t==null?Bae:"line-height:"+Yr(t+"")+"px"}function _k(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Yr(n+"")+"px;color:"+Yr(r)+";font-weight:"+Yr(a+""),valueStyle:"font-size:"+Yr(o+"")+"px;color:"+Yr(i)+";font-weight:"+Yr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Fae=[0,10,20,30],zae=["",`
86
+ `,`
87
+
88
+ `,`
89
+
90
+
91
+ `];function wr(e,t){return t.type=e,t}function sS(e){return e.type==="section"}function bk(e){return sS(e)?$ae:Hae}function Sk(e){if(sS(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return M(e.blocks,function(a){var i=Sk(a);i>=t&&(t=i+ +(n&&(!i||sS(a)&&!a.noHeader)))}),t}return 0}function $ae(e,t,r,n){var a=t.noHeader,i=Gae(Sk(t)),o=[],s=t.blocks||[];Ne(!s||J(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ye(u,l)){var c=new uk(u[l],null);s.sort(function(g,m){return c.evaluate(g.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(g,m){var y=t.valueFormatter,_=bk(g)(y?j(j({},e),{valueFormatter:y}):e,g,m>0?i.html:0,n);_!=null&&o.push(_)});var f=e.renderMode==="richText"?o.join(i.richText):lS(n,o.join(""),a?r:i.html);if(a)return f;var d=Bb(t.header,"ordinal",e.useUTC),p=_k(n,e.renderMode).nameStyle,v=yk(n);return e.renderMode==="richText"?xk(e,d,p)+i.richText+f:lS(n,'<div style="'+p+";"+v+';">'+Yr(d)+"</div>"+f,r)}function Hae(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=J(S)?S:[S],ee(S,function(x,w){return Bb(x,J(p)?p[w]:p,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":Bb(l,"ordinal",u),p=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!i,m=!s&&i,y=_k(n,a),_=y.nameStyle,b=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":xk(e,d,_))+(o?"":Yae(e,v,g,m,b)):lS(n,(s?"":f)+(i?"":Uae(d,!s,_))+(o?"":Wae(v,g,m,b)),r)}}function wk(e,t,r,n,a,i){if(e){var o=bk(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Gae(e){return{html:Fae[e],richText:zae[e]}}function lS(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=yk(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function Uae(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Yr(e)+"</span>"}function Wae(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=J(e)?e:[e],'<span style="'+i+";"+n+'">'+ee(e,function(o){return Yr(o)}).join("&nbsp;&nbsp;")+"</span>"}function xk(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Yae(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(J(t)?t.join(" "):t,i)}function Ck(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return gl(n)}function Tk(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var uS=function(){function e(){this.richTextStyles={},this._nextStyleNameId=DN()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=xL({color:r,type:t,renderMode:n,markerId:a});return he(i)?i:(process.env.NODE_ENV!=="production"&&Ne(a),this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};J(r)?M(r,function(i){return j(n,i)}):j(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function Dk(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=J(s),u=Ck(t,r),c,f,d,p;if(o>1||l&&!o){var v=Xae(s,t,r,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,p=v.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);p=c=lc(a,r,i[0]),f=g.type}else p=c=l?s[0]:s;var m=O1(t),y=m&&t.name||"",_=a.getName(r),b=n?y:_;return wr("section",{header:y,noHeader:n||!m,sortParam:p,blocks:[wr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!ea(b),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function Xae(e,t,r,n,a){var i=t.getData(),o=Qn(e,function(f,d,p){var v=i.getDimensionInfo(p);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(lc(i,r,f),f)}):M(e,c);function c(f,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(wr("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var rs=at();function Dg(e,t){return e.getName(t)||e.getId(t)}var Eg="__universalTransitionEnabled",Et=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=kh({count:jae,reset:Zae}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=rs(this).sourceManager=new vk(this);i.prepareSource();var o=this.getInitialData(r,a);Ak(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&Ne(o,"getInitialData returned invalid data."),rs(this).dataBeforeProcessed=o,Ek(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Ah(this),i=a?ic(r):{},o=this.subType;Ue.hasClass(o)&&(o+="Series"),Fe(r,n.getTheme().get(this.subType)),Fe(r,this.getDefaultOption()),js(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&es(r,i,a)},t.prototype.mergeOption=function(r,n){r=Fe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Ah(this);a&&es(this.option,r,a);var i=rs(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Ak(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rs(this).dataBeforeProcessed=o,Ek(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Ur(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&js(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=cS(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return rs(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=cS(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}rs(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return _e(r)},t.prototype.getSourceManager=function(){return rs(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rs(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return Dk({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Xe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Yb.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Dg(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=qe(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Dg(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Eg])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ee(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Dg(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var p=n[l-1],d=Dg(r,p);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=r.getRawIndex(p),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Ue.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Ue);qt(Et,Cg),qt(Et,Yb),$N(Et,Ue);function Ek(e){var t=e.name;O1(e)||(e.name=Kae(e)||t)}function Kae(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function jae(e){return e.model.getRawData().count()}function Zae(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),qae}function qae(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ak(e,t){M(Au(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Be(Jae,t))})}function Jae(e,t){var r=cS(e);return r&&r.setOutputEnd((t||this).count()),t}function cS(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var kt=function(){function e(){this.group=new Oe,this.uid=tc("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();B1(kt),Bv(kt);function fc(){var e=at();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mk=at(),Qae=fc(),yt=function(){function e(){this.group=new Oe,this.uid=tc("viewChart"),this.renderTask=kh({plan:eie,reset:tie}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&kr("Unknown dataType "+a.dataType);return}Ik(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&kr("Unknown dataType "+a.dataType);return}Ik(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){Jo(this.group,t)},e.markUpdateMethod=function(t,r){Mk(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Nk(e,t,r){e&&jo(e)&&(t==="emphasis"?no:ao)(e,r)}function Ik(e,t,r){var n=Zs(e,t),a=t&&t.highlightKey!=null?Rre(t.highlightKey):null;n!=null?M(Dt(n),function(i){Nk(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){Nk(i,r,a)})}B1(yt,["dispose"]),Bv(yt);function eie(e){return Qae(e.model)}function tie(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Mk(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),rie[l]}var rie={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)}}},Ag="\0__throttleOriginMethod",Lk="\0__throttleRate",kk="\0__throttleType";function Mg(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];n=new Date().getTime(),l=this,u=p;var g=c||t,m=c||r;c=null,s=n-(m?a:i)-g,clearTimeout(o),m?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(p){c=p},d}function hc(e,t,r,n){var a=e[t];if(a){var i=a[Ag]||a,o=a[kk],s=a[Lk];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=Mg(i,r,n==="debounce"),a[Ag]=i,a[kk]=n,a[Lk]=r}return a}}function Oh(e,t){var r=e[t];r&&r[Ag]&&(r.clear&&r.clear(),e[t]=r[Ag])}var Pk=at(),Ok={itemStyle:Js(uL,!0),lineStyle:Js(lL,!0)},nie={lineStyle:"stroke",itemStyle:"fill"};function Rk(e,t){var r=e.visualStyleMapper||Ok[t];return r||(console.warn("Unknown style type '"+t+"'."),Ok.itemStyle)}function Vk(e,t){var r=e.visualDrawType||nie[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var aie={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Rk(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Vk(e,n),u=o[l],c=Se(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Se(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Se(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(p,v){var g=e.getDataParams(v),m=j({},o);m[l]=c(g),p.setItemVisual(v,"style",m)}}}},Rh=new ft,iie={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Rk(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Rh.option=l[n];var u=a(Rh),c=o.ensureUniqueItemVisual(s,"style");j(c,u),Rh.option.decal&&(o.setItemVisual(s,"decal",Rh.option.decal),Rh.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},oie={performRawSeries:!0,overallReset:function(e){var t=_e();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Pk(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=Pk(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Vk(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),p=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(p,o,v)}})}})}},Ng=Math.PI;function sie(e,t){t=t||{},Me(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 r=new Oe,n=new et({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new tt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new et({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new _h({shape:{startAngle:-Ng/2,endAngle:-Ng/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ng*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ng*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Bk=function(){function e(t,r,n,a){this._stageTaskMap=_e(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=_e();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),Ne(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;M(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,v=d.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),p=!0)}),p&&d.dirty(),o.updatePayload(d,n);var g=o.getPerformArgs(d,a.block);v.each(function(m){m.perform(g)}),d.perform(g)&&(i=!0)}else f&&f.each(function(m,y){s(a,m)&&m.dirty();var _=o.getPerformArgs(m,a.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(_)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=_e(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,p=s.set(d,o&&o.get(d)||kh({plan:hie,reset:die,count:vie}));p.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,p)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||kh({reset:lie});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=_e(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,p="";process.env.NODE_ENV!=="production"&&(p='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Ne(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,v):c?c(n,a).each(v):(f=!1,M(n.getSeries(),v));function v(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(d=!0,kh({reset:uie,onDirty:fie})));y.context={model:g,overallProgress:f},y.agent=o,y.__block=f,i._pipe(g,y)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return Se(t)&&(t={overallReset:t,seriesType:gie(t)}),t.uid=tc("stageHandler"),r&&(t.visualType=r),t},e}();function lie(e){e.overallReset(e.ecModel,e.api,e.payload)}function uie(e){return e.overallProgress&&cie}function cie(){this.agent.dirty(),this.getDownstream().dirty()}function fie(){this.agent&&this.agent.dirty()}function hie(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function die(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Dt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ee(t,function(r,n){return Fk(n)}):pie}var pie=Fk(0);function Fk(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function vie(e){return e.data.count()}function gie(e){Ig=null;try{e(Vh,zk)}catch{}return Ig}var Vh={},zk={},Ig;$k(Vh,jb),$k(zk,FL),Vh.eachSeriesByType=Vh.eachRawSeriesByType=function(e){Ig=e},Vh.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ig=e.subType)};function $k(e,t){for(var r in t.prototype)e[r]=Jt}var Hk=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const mie={color:Hk,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Hk]};var Qr="#B9B8CE",Gk="#100C2A",Lg=function(){return{axisLine:{lineStyle:{color:Qr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Uk=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Wk={darkMode:!0,color:Uk,backgroundColor:Gk,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Qr},pageTextStyle:{color:Qr}},textStyle:{color:Qr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Qr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Qr},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:Qr}},timeline:{lineStyle:{color:Qr},label:{color:Qr},controlStyle:{color:Qr,borderColor:Qr}},calendar:{itemStyle:{color:Gk},dayLabel:{color:Qr},monthLabel:{color:Qr},yearLabel:{color:Qr}},timeAxis:Lg(),logAxis:Lg(),valueAxis:Lg(),categoryAxis:Lg(),line:{symbol:"circle"},graph:{color:Uk},gauge:{title:{color:Qr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Qr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Wk.categoryAxis.splitLine.show=!1;var yie=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(he(t)){var i=di(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var v=u.slice(0,p);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(f,d,p,v){return f[p]==null||d[v||p]===f[p]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),fS=["symbol","symbolSize","symbolRotate","symbolOffset"],Yk=fS.concat(["symbolKeepAspect"]),_ie={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<fS.length;o++){var s=fS[o],l=e.get(s);Se(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(j({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=qe(a);function c(f,d){for(var p=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var m=u[g];f.setItemVisual(d,m,a[m](p,v))}}return{dataEach:i?c:null}}},bie={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Yk.length;s++){var l=Yk[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function hS(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function Bh(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Xk(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function Kk(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}M([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=j({},a),process.env.NODE_ENV!=="production"&&er(a.type,n[1]),o.dispatchAction(j(a,{type:n[1],seriesIndex:r(i,a)}))})})}function dc(e,t,r,n,a){var i=e+t;r.isSilent(i)||(process.env.NODE_ENV!=="production"&&ia("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Zs(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:J(d)?f.getName(d[0]):f.getName(d),selected:he(l)?l:j({},l)})}}))}function Sie(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(dc("map","selectchanged",t,a,n),dc("pie","selectchanged",t,a,n)):n.fromAction==="select"?(dc("map","selected",t,a,n),dc("pie","selected",t,a,n)):n.fromAction==="unselect"&&(dc("map","unselected",t,a,n),dc("pie","unselected",t,a,n))})}function xl(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var wie=Math.round(Math.random()*9),xie=typeof Object.defineProperty=="function",Cie=function(){function e(){this._id="__ec_inner_"+wie++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return xie?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),Tie=Ze.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),Die=Ze.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),Eie=Ze.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),p=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*p,l+s+d*p,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*p,l+s+d*p,r-c,l+s),e.closePath()}}),Aie=Ze.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),Mie={line:dr,rect:et,roundRect:et,square:et,circle:yi,diamond:Die,pin:Eie,arrow:Aie,triangle:Tie},Nie={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},kg={};M(Mie,function(e,t){kg[t]=new e});var Iie=Ze.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Lv(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=kg[n];a||(n="rect",a=kg[n]),Nie[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function Lie(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function tr(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=bb(e.slice(8),new He(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=Sh(e.slice(7),{},new He(t,r,n,a),o?"center":"cover"):l=new Iie({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=Lie,i&&l.setColor(i),l}function pc(e){return J(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Cl(e,t){if(e!=null)return J(e)||(e=[e,e]),[ue(e[0],t[0])||0,ue(Re(e[1],e[0]),t[1])||0]}function Tl(e){return isFinite(e)}function kie(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Tl(n)?n:0,a=Tl(a)?a:1,i=Tl(i)?i:0,o=Tl(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function Pie(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Tl(o)?o:.5,s=Tl(s)?s:.5,l=l>=0&&Tl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function dS(e,t,r){for(var n=t.type==="radial"?Pie(e,t,r):kie(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function Oie(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Pg(e){return parseInt(e,10)}function vc(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Pg(s[n])||Pg(e.style[n]))-(Pg(s[i])||0)-(Pg(s[o])||0)|0}function Rie(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ot(e)?[e]:J(e)?e:null}function pS(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Rie(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=ee(r,function(i){return i/a}),n/=a)}return[r,n]}var Vie=new mi(!0);function Og(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function jk(e){return typeof e=="string"&&e!=="none"}function Rg(e){var t=e.fill;return t!=null&&t!=="none"}function Zk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function qk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function vS(e,t,r){var n=z1(t.image,t.__image,r);if(Fv(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Of),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function Bie(e,t,r,n){var a,i=Og(r),o=Rg(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Vie,f=t.__dirty;if(!n){var d=r.fill,p=r.stroke,v=o&&!!d.colorStops,g=i&&!!p.colorStops,m=o&&!!d.image,y=i&&!!p.image,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0;(v||g)&&(w=t.getBoundingRect()),v&&(_=f?dS(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(b=f?dS(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(S=f||!t.__canvasFillPattern?vS(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?vS(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=_:m&&(S?e.fillStyle=S:o=!1),g?e.strokeStyle=b:y&&(x?e.strokeStyle=x:i=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,D;e.setLineDash&&r.lineDash&&(a=pS(t),T=a[0],D=a[1]);var E=!0;(u||f&Nu)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),E=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),E&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=D),n||(r.strokeFirst?(i&&qk(e,r),o&&Zk(e,r)):(o&&Zk(e,r),i&&qk(e,r))),T&&e.setLineDash([])}function Fie(e,t,r){var n=t.__image=z1(r.image,t.__image,t,t.onload);if(!(!n||!Fv(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function zie(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Lo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=pS(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Og(r)&&e.strokeText(a,r.x,r.y),Rg(r)&&e.fillText(a,r.x,r.y)):(Rg(r)&&e.fillText(a,r.x,r.y),Og(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var Jk=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function eP(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){En(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Qs.opacity:o}(n||t.blend!==r.blend)&&(i||(En(e,a),i=!0),e.globalCompositeOperation=t.blend||Qs.blend);for(var s=0;s<Jk.length;s++){var l=Jk[s];(n||t[l]!==r[l])&&(i||(En(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(En(e,a),i=!0),e.shadowColor=t.shadowColor||Qs.shadowColor),i}function tP(e,t,r,n,a){var i=Fh(t,a.inHover),o=n?null:r&&Fh(r,a.inHover)||{};if(i===o)return!1;var s=eP(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(En(e,a),s=!0),jk(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(En(e,a),s=!0),jk(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(En(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(En(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<Qk.length;c++){var f=Qk[c],d=f[0];(n||i[d]!==o[d])&&(s||(En(e,a),s=!0),e[d]=i[d]||f[1])}return s}function $ie(e,t,r,n,a){return eP(e,Fh(t,a.inHover),r&&Fh(r,a.inHover),n,a)}function rP(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Hie(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),rP(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function Gie(e,t){return e&&t?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&&!t)}var nP=1,aP=2,iP=3,oP=4;function Uie(e){var t=Rg(e),r=Og(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function En(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Fh(e,t){return t&&e.__hoverStyle||e.style}function gS(e,t){Dl(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Dl(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Rn,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Oie(i,o))&&(o&&o.length&&(En(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(En(e,r),e.save(),Hie(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof Ze&&t.autoBatch&&Uie(t.style);s||Gie(a,u.transform)?(En(e,r),rP(e,t)):c||En(e,r);var f=Fh(t,r.inHover);t instanceof Ze?(r.lastDrawType!==nP&&(l=!0,r.lastDrawType=nP),tP(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Bie(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof $u?(r.lastDrawType!==iP&&(l=!0,r.lastDrawType=iP),tP(e,t,u,l,r),zie(e,t,f)):t instanceof br?(r.lastDrawType!==aP&&(l=!0,r.lastDrawType=aP),$ie(e,t,u,l,r),Fie(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==oP&&(l=!0,r.lastDrawType=oP),Wie(e,t,r)),c&&n&&En(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Wie(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Dl(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Dl(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var mS=new Cie,sP=new Xf(100),lP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gc(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&mS.delete(e);var i=mS.get(e);if(i)return i;var o=Me(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,mS.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<lP.length;++d){var p=o[lP[d]];if(p!=null&&!J(p)&&!he(p)&&!ot(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var v;if(f){v=c.join(",")+(a?"-svg":"");var g=sP.get(v);g&&(a?u.svgElement=g:u.image=g)}var m=cP(o.dashArrayX),y=Yie(o.dashArrayY),_=uP(o.symbol),b=Xie(m),S=fP(y),x=!a&&Ia.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),T;x&&(x.width=C.width*r,x.height=C.height*r,T=x.getContext("2d")),E(),f&&sP.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var A=1,L=0,N=b.length;L<N;++L)A=AN(A,b[L]);for(var I=1,L=0,N=_.length;L<N;++L)I=AN(I,_[L].length);A*=I;var k=S*b.length*_.length;if(process.env.NODE_ENV!=="production"){var P=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&P("maxTileWidth"),k>o.maxTileHeight&&P("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var A=0,L=0;L<y.length;++L)A+=y[L];if(A<=0)return;for(var N=-S,I=0,k=0,P=0;N<C.height;){if(I%2===0){for(var V=k/2%_.length,B=0,G=0,U=0;B<C.width*2;){for(var W=0,L=0;L<m[P].length;++L)W+=m[P][L];if(W<=0)break;if(G%2===0){var re=(1-o.symbolSize)*.5,le=B+m[P][G]*re,Y=N+y[I]*re,X=m[P][G]*o.symbolSize,fe=y[I]*o.symbolSize,we=U/2%_[V].length;de(le,Y,X,fe,_[V][we])}B+=m[P][G],++U,++G,G===m[P].length&&(G=0)}++P,P===m.length&&(P=0)}N+=y[I],++k,++I,I===y.length&&(I=0)}function de(pe,Ae,me,Ce,Qe){var Ke=a?1:r,Ye=tr(Qe,pe*Ke,Ae*Ke,me*Ke,Ce*Ke,o.color,o.symbolKeepAspect);if(a){var lt=n.painter.renderOneToVNode(Ye);lt&&w.children.push(lt)}else gS(T,Ye)}}}}function uP(e){if(!e||e.length===0)return[["rect"]];if(he(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!he(e[r])){t=!1;break}if(t)return uP([e]);for(var n=[],r=0;r<e.length;++r)he(e[r])?n.push([e[r]]):n.push(e[r]);return n}function cP(e){if(!e||e.length===0)return[[0,0]];if(ot(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ot(e[n])){r=!1;break}if(r)return cP([e]);for(var a=[],n=0;n<e.length;++n)if(ot(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=ee(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function Yie(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ot(e)){var t=Math.ceil(e);return[t,t]}var r=ee(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Xie(e){return ee(e,function(t){return fP(t)})}function fP(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Kie(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=gc(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=gc(a,t)}}})}var $a=new ta,Vg={};function jie(e,t){process.env.NODE_ENV!=="production"&&Vg[e]&&kr("Already has an implementation of "+e+"."),Vg[e]=t}function hP(e){return process.env.NODE_ENV!=="production"&&(Vg[e]||kr("Implementation of "+e+" doesn't exists.")),Vg[e]}var Zie="5.6.0",qie={zrender:"5.6.1"},Jie=1,Qie=800,eoe=900,toe=1e3,roe=2e3,noe=5e3,dP=1e3,aoe=1100,yS=2e3,pP=3e3,ioe=4e3,Bg=4500,ooe=4600,soe=5e3,loe=6e3,vP=7e3,gP={PROCESSOR:{FILTER:toe,SERIES_FILTER:Qie,STATISTIC:noe},VISUAL:{LAYOUT:dP,PROGRESSIVE_LAYOUT:aoe,GLOBAL:yS,CHART:pP,POST_CHART_LAYOUT:ooe,COMPONENT:ioe,BRUSH:soe,CHART_ITEM:Bg,ARIA:loe,DECAL:vP}},en="__flagInMainProcess",An="__pendingUpdate",_S="__needsUpdateStatus",mP=/^[a-zA-Z0-9_]+$/,bS="__connectUpdateStatus",yP=0,uoe=1,coe=2;function _P(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){Hn(this.id);return}return SP(this,e,t)}}function bP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SP(this,e,t)}}function SP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ta.prototype[t].apply(e,r)}var wP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ta),xP=wP.prototype;xP.on=bP("on"),xP.off=bP("off");var mc,SS,Fg,ns,wS,xS,CS,zh,$h,CP,TP,TS,DP,zg,EP,AP,pa,MP,$g=function(e){H(t,e);function t(r,n,a){var i=e.call(this,new yie)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},he(n)&&(n=NP[n]),i._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Xe.hasGlobalWindow?window:global;u&&(o=Re(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Re(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Re(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr&&SN(function(p){var v=Ve(p),g=v.dataIndex;if(g!=null){var m=_e();return m.set("series_index",v.seriesIndex),m.set("data_index",g),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var c=i._zr=A1(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Re(a.useDirtyRect,l),useCoarsePointer:Re(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Mg(ge(c.flush,c),17),n=ke(n),n&&YL(n,!0),i._theme=n,i._locale=Tne(a.locale||cL),i._coordSysMgr=new _l;var f=i._api=EP(i);function d(p,v){return p.__prio-v.__prio}return hv(Gg,d),hv(ES,d),i._scheduler=new Bk(i,f,ES,Gg),i._messageCenter=new wP,i._initEvents(),i.resize=ge(i.resize,i),c.animation.on("frame",i._onframe,i),CP(c,i),TP(c,i),kf(i),i}return t.prototype._onframe=function(){if(!this._disposed){MP(this);var r=this._scheduler;if(this[An]){var n=this[An].silent;this[en]=!0;try{mc(this),ns.update.call(this,null,this[An].updateParams)}catch(l){throw this[en]=!1,this[An]=null,l}this._zr.flush(),this[en]=!1,this[An]=null,zh.call(this,n),$h.call(this,n)}else if(r.unfinished){var a=Jie,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),xS(this,i),r.performVisualTasks(i),zg(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.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(r,n,a){if(this[en]){process.env.NODE_ENV!=="production"&&kr("`setOption` should not be called during main process.");return}if(this._disposed){Hn(this.id);return}var i,o,s;if(Ee(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[en]=!0,!this._model||n){var l=new eae(this._api),u=this._theme,c=this._model=new jb;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},AS);var f={seriesTransition:s,optionChanged:!0};if(a)this[An]={silent:i,updateParams:f},this[en]=!1,this.getZr().wakeUp();else{try{mc(this),ns.update.call(this,null,f)}catch(d){throw this[An]=null,this[en]=!1,d}this._ssr||this._zr.flush(),this[An]=null,this[en]=!1,zh.call(this,i),$h.call(this,i)}},t.prototype.setTheme=function(){ia("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||Xe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&er("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Xe.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){Hn(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;M(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Hn(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Ug[a]){var l=s,u=s,c=-s,f=-s,d=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();M(El,function(b,S){if(b.group===a){var x=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(ke(r)),w=b.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:x,left:w.left,top:w.top})}}),l*=p,u*=p,c*=p,f*=p;var v=c-l,g=f-u,m=Ia.createCanvas(),y=A1(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:g}),n){var _="";return M(d,function(b){var S=b.left-l,x=b.top-u;_+='<g transform="translate('+S+","+x+')">'+b.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new et({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),M(d,function(b){var S=new br({style:{x:b.left*p-l,y:b.top*p-u,image:b.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return wS(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return wS(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Hn(this.id);return}var a=this._model,i,o=sh(a,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Wt(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Wt(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=sh(a,r,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||Wt("There is no specified series model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?hS(s,l,n):Bh(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;M(foe,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&xl(s,function(v){var g=Ve(v);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=j({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),p=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&p)&&Wt("model or view can not be found by params"),l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),M(Hh,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),Sie(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Hn(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Hn(this.id);return}this._disposed=!0;var r=this.getDom();r&&BN(this.getDom(),NS,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete El[n.id]},t.prototype.resize=function(r){if(this[en]){process.env.NODE_ENV!=="production"&&kr("`resize` should not be called during main process.");return}if(this._disposed){Hn(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[An]&&(i==null&&(i=this[An].silent),a=!0,this[An]=null),this[en]=!0;try{a&&mc(this),ns.update.call(this,{type:"resize",animation:j({duration:0},r&&r.animation)})}catch(o){throw this[en]=!1,o}this[en]=!1,zh.call(this,i),$h.call(this,i)}},t.prototype.showLoading=function(r,n){if(this._disposed){Hn(this.id);return}if(Ee(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!MS[r]){process.env.NODE_ENV!=="production"&&Wt("Loading effects "+r+" not exists.");return}var a=MS[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},t.prototype.hideLoading=function(){if(this._disposed){Hn(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=j({},r);return n.type=Hh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Hn(this.id);return}if(Ee(n)||(n={silent:!!n}),!!Hg[r.type]&&this._model){if(this[en]){this._pendingActions.push(r);return}var a=n.silent;CS.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Xe.browser.weChat&&this._throttledZrFlush(),zh.call(this,a),$h.call(this,a)}},t.prototype.updateLabelLayout=function(){$a.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Hn(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&Ne(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){mc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),SS(f,!0),SS(f,!1),d.plan()},SS=function(f,d){for(var p=f._model,v=f._scheduler,g=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,_=f._api,b=0;b<g.length;b++)g[b].__alive=!1;d?p.eachComponent(function(w,C){w!=="series"&&S(C)}):p.eachSeries(S);function S(w){var C=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,D=!C&&m[T];if(!D){var E=di(w.type),A=d?kt.getClass(E.main,E.sub):yt.getClass(E.sub);process.env.NODE_ENV!=="production"&&Ne(A,E.sub+" does not exist."),D=new A,D.init(p,_),m[T]=D,g.push(D),y.add(D.group)}w.__viewId=D.__id=T,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(D,w,p,_)}for(var b=0;b<g.length;){var x=g[b];x.__alive?b++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(p,_),g.splice(b,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Fg=function(f,d,p,v,g){var m=f._model;if(m.setUpdatePayload(p),!v){M([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=p[v+"Id"],y[v+"Index"]=p[v+"Index"],y[v+"Name"]=p[v+"Name"];var _={mainType:v,query:y};g&&(_.subType=g);var b=p.excludeSeriesId,S;b!=null&&(S=_e(),M(Dt(b),function(w){var C=hr(w,null);C!=null&&S.set(C,!0)})),m&&m.eachComponent(_,function(w){var C=S&&S.get(w.id)!=null;if(!C)if(NI(p))if(w instanceof Et)p.type===sl&&!p.notBlur&&!w.get(["emphasis","disabled"])&&Are(w,p,f._api);else{var T=cb(w.mainType,w.componentIndex,p.name,f._api),D=T.focusSelf,E=T.dispatchers;p.type===sl&&D&&!p.notBlur&&ub(w.mainType,w.componentIndex,f._api),E&&M(E,function(A){p.type===sl?no(A):ao(A)})}else hb(p)&&w instanceof Et&&(Ire(w,p,f._api),AI(w),pa(f))},f),m&&m.eachComponent(_,function(w){var C=S&&S.get(w.id)!=null;C||x(f[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function x(w){w&&w.__alive&&w[d]&&w[d](w.__model,m,f._api,p)}},ns={prepareAndUpdate:function(f){mc(this),ns.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,v=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(p){p.setUpdatePayload(f),y.restoreData(p,f),y.performSeriesTasks(p),m.create(p,v),y.performDataProcessorTasks(p,f),xS(this,p),m.update(p,v),r(p),y.performVisualTasks(p,f),TS(this,p,v,f,d);var _=p.get("backgroundColor")||"transparent",b=p.get("darkMode");g.setBackgroundColor(_),b!=null&&b!=="auto"&&g.setDarkMode(b),$a.trigger("afterupdate",p,v)}},updateTransform:function(f){var d=this,p=this._model,v=this._api;if(p){p.setUpdatePayload(f);var g=[];p.eachComponent(function(y,_){if(y!=="series"){var b=d.getViewOfComponentModel(_);if(b&&b.__alive)if(b.updateTransform){var S=b.updateTransform(_,p,v,f);S&&S.update&&g.push(b)}else g.push(b)}});var m=_e();p.eachSeries(function(y){var _=d._chartsMap[y.__viewId];if(_.updateTransform){var b=_.updateTransform(y,p,v,f);b&&b.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),r(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:m}),zg(this,p,v,f,{},m),$a.trigger("afterupdate",p,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),yt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),TS(this,d,this._api,f,{}),$a.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(v){v.getData().clearAllVisual()}),yt.markUpdateMethod(f,"updateVisual"),r(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(v,g){if(v!=="series"){var m=d.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,p,d._api,f)}}),p.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,p,d._api,f)}),$a.trigger("afterupdate",p,this._api))},updateLayout:function(f){ns.update.call(this,f)}},wS=function(f,d,p,v){if(f._disposed){Hn(f.id);return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=sh(g,p),b=0;b<m.length;b++){var S=m[b];if(S[d]&&(y=S[d](g,_,v))!=null)return y}process.env.NODE_ENV!=="production"&&Wt("No coordinate system that supports "+d+" found by the given finder.")},xS=function(f,d){var p=f._chartsMap,v=f._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,p[g.__viewId])})},CS=function(f,d){var p=this,v=this.getModel(),g=f.type,m=f.escapeConnect,y=Hg[g],_=y.actionInfo,b=(_.update||"update").split(":"),S=b.pop(),x=b[0]!=null&&di(b[0]);this[en]=!0;var w=[f],C=!1;f.batch&&(C=!0,w=ee(f.batch,function(I){return I=Me(j({},I),f),I.batch=null,I}));var T=[],D,E=hb(f),A=NI(f);if(A&&EI(this._api),M(w,function(I){if(D=y.action(I,p._model,p._api),D=D||j({},I),D.type=_.event||D.type,T.push(D),A){var k=R1(f),P=k.queryOptionMap,V=k.mainTypeSpecified,B=V?P.keys()[0]:"series";Fg(p,S,I,B),pa(p)}else E?(Fg(p,S,I,"series"),pa(p)):x&&Fg(p,S,I,x.main,x.sub)}),S!=="none"&&!A&&!E&&!x)try{this[An]?(mc(this),ns.update.call(this,f),this[An]=null):ns[S].call(this,f)}catch(I){throw this[en]=!1,I}if(C?D={type:_.event||g,escapeConnect:m,batch:T}:D=T[0],this[en]=!1,!d){var L=this._messageCenter;if(L.trigger(D.type,D),E){var N={type:"selectchanged",escapeConnect:m,selected:Lre(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};L.trigger(N.type,N)}}},zh=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();CS.call(this,p,f)}},$h=function(f){!f&&this.trigger("updated")},CP=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[An]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},TP=function(f,d){f.on("mouseover",function(p){var v=p.target,g=xl(v,jo);g&&(Mre(g,p,d._api),pa(d))}).on("mouseout",function(p){var v=p.target,g=xl(v,jo);g&&(Nre(g,p,d._api),pa(d))}).on("click",function(p){var v=p.target,g=xl(v,function(_){return Ve(_).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=Ve(g);d._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],p=[],v=!1;if(f.eachComponent(function(_,b){var S=b.get("zlevel")||0,x=b.get("z")||0,w=b.getZLevelKey();v=v||!!w,(_==="series"?p:d).push({zlevel:S,z:x,idx:b.componentIndex,type:_,key:w})}),v){var g=d.concat(p),m,y;hv(g,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),M(g,function(_){var b=f.getComponent(_.type,_.idx),S=_.zlevel,x=_.key;m!=null&&(S=Math.max(m,S)),x?(S===m&&x!==y&&S++,y=x):y&&(S===m&&S++,y=""),m=S,b.setZLevel(S)})}}TS=function(f,d,p,v,g){n(d),DP(f,d,p,v,g),M(f._chartsViews,function(m){m.__alive=!1}),zg(f,d,p,v,g),M(f._chartsViews,function(m){m.__alive||m.remove(d,p)})},DP=function(f,d,p,v,g,m){M(m||f._componentsViews,function(y){var _=y.__model;u(_,y),y.render(_,d,p,v),s(_,y),c(_,y)})},zg=function(f,d,p,v,g,m){var y=f._scheduler;g=j(g||{},{updatedSeries:d.getSeries()}),$a.trigger("series:beforeupdate",d,p,g);var _=!1;d.eachSeries(function(b){var S=f._chartsMap[b.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,v),u(b,S),m&&m.get(b.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(_=!0),S.group.silent=!!b.get("silent"),o(b,S),AI(b)}),y.unfinished=_||y.unfinished,$a.trigger("series:layoutlabels",d,p,g),$a.trigger("series:transition",d,p,g),d.eachSeries(function(b){var S=f._chartsMap[b.__viewId];s(b,S),c(b,S)}),i(f,d),$a.trigger("series:afterupdate",d,p,g)},pa=function(f){f[_S]=!0,f.getZr().wakeUp()},MP=function(f){f[_S]&&(f.getZr().storage.traverse(function(d){qu(d)||a(d)}),f[_S]=!1)};function a(f){for(var d=[],p=f.currentStates,v=0;v<p.length;v++){var g=p[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Yv&&f.states.emphasis?d.push("emphasis"):f.hoverState===fh&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var p=f._zr,v=p.storage,g=0;v.traverse(function(m){m.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!Xe.node&&!Xe.worker&&d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,p,v,-1/0),!0})}}function l(f,d,p,v){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var _=f.childrenRef(),b=0;b<_.length;b++)v=Math.max(l(_[b],d,p,v),v);else f.z=d,f.zlevel=p,v=Math.max(f.z2,v);if(g&&(g.z=d,g.zlevel=p,isFinite(v)&&(g.z2=v+2)),m){var S=f.textGuideLineConfig;m.z=d,m.zlevel=p,isFinite(v)&&(m.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(p){if(!qu(p)){var v=p.getTextContent(),g=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=p.get("duration"),m=g>0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qu(y))return;if(y instanceof Ze&&Vre(y),y.__dirty){var _=y.prevStates;_&&y.useStates(_)}if(v){y.stateTransition=m;var b=y.getTextContent(),S=y.getTextGuideLine();b&&(b.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}EP=function(f){return new(function(d){H(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},p.prototype.enterEmphasis=function(v,g){no(v,g),pa(f)},p.prototype.leaveEmphasis=function(v,g){ao(v,g),pa(f)},p.prototype.enterBlur=function(v){xI(v),pa(f)},p.prototype.leaveBlur=function(v){sb(v),pa(f)},p.prototype.enterSelect=function(v){CI(v),pa(f)},p.prototype.leaveSelect=function(v){TI(v),pa(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},p.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},p}(FL))(f)},AP=function(f){function d(p,v){for(var g=0;g<p.length;g++){var m=p[g];m[bS]=v}}M(Hh,function(p,v){f._messageCenter.on(v,function(g){if(Ug[f.group]&&f[bS]!==yP){if(g&&g.escapeConnect)return;var m=f.makeActionFromEvent(g),y=[];M(El,function(_){_!==f&&_.group===f.group&&y.push(_)}),d(y,yP),M(y,function(_){_[bS]!==uoe&&_.dispatchAction(m)}),d(y,coe)}})})}}(),t}(ta),DS=$g.prototype;DS.on=_P("on"),DS.off=_P("off"),DS.one=function(e,t,r){var n=this;ia("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var foe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Hn(e){process.env.NODE_ENV!=="production"&&Wt("Instance "+e+" has been disposed")}var Hg={},Hh={},ES=[],AS=[],Gg=[],NP={},MS={},El={},Ug={},hoe=+new Date-0,doe=+new Date-0,NS="_echarts_instance_";function IS(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var a=LS(e);if(a)return process.env.NODE_ENV!=="production"&&Wt("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&ko(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Wt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new $g(e,t,r);return i.id="ec_"+hoe++,El[i.id]=i,n&&BN(e,NS,i.id),AP(i),$a.trigger("afterinit",i),i}function poe(e){if(J(e)){var t=e;e=null,M(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+doe++,M(t,function(r){r.group=e})}return Ug[e]=!0,e}function IP(e){Ug[e]=!1}var voe=IP;function goe(e){he(e)?e=El[e]:e instanceof $g||(e=LS(e)),e instanceof $g&&!e.isDisposed()&&e.dispose()}function LS(e){return El[Tte(e,NS)]}function moe(e){return El[e]}function kS(e,t){NP[e]=t}function PS(e){Ge(AS,e)<0&&AS.push(e)}function OS(e,t){RS(ES,e,t,roe)}function LP(e){Wg("afterinit",e)}function kP(e){Wg("afterupdate",e)}function Wg(e,t){$a.on(e,t)}function Ha(e,t,r){Se(t)&&(r=t,t="");var n=Ee(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Hh[t]&&(Ne(mP.test(n)&&mP.test(t)),Hg[n]||(Hg[n]={action:r,actionInfo:e}),Hh[t]=n)}function PP(e,t){_l.register(e,t)}function yoe(e){var t=_l.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function OP(e,t){RS(Gg,e,t,dP,"layout")}function as(e,t){RS(Gg,e,t,pP,"visual")}var RP=[];function RS(e,t,r,n,a){if((Se(t)||Ee(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");M(e,function(o){Ne(o.__raw!==r)})}if(!(Ge(RP,r)>=0)){RP.push(r);var i=Bk.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function VS(e,t){MS[e]=t}function _oe(e){process.env.NODE_ENV!=="production"&&ia("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),h2({createCanvas:e})}function VP(e,t,r){var n=hP("registerMap");n&&n(e,t,r)}function boe(e){var t=hP("getMap");return t&&t(e)}var BP=Lae;as(yS,aie),as(Bg,iie),as(Bg,oie),as(yS,_ie),as(Bg,bie),as(vP,Kie),PS(YL),OS(eoe,hae),VS("default",sie),Ha({type:sl,event:sl,update:sl},Jt),Ha({type:Xv,event:Xv,update:Xv},Jt),Ha({type:dh,event:dh,update:dh},Jt),Ha({type:Kv,event:Kv,update:Kv},Jt),Ha({type:ph,event:ph,update:ph},Jt),kS("light",mie),kS("dark",Wk);var Soe={},FP=[],woe={registerPreprocessor:PS,registerProcessor:OS,registerPostInit:LP,registerPostUpdate:kP,registerUpdateLifecycle:Wg,registerAction:Ha,registerCoordinateSystem:PP,registerLayout:OP,registerVisual:as,registerTransform:BP,registerLoading:VS,registerMap:VP,registerImpl:jie,PRIORITY:gP,ComponentModel:Ue,ComponentView:kt,SeriesModel:Et,ChartView:yt,registerComponentModel:function(e){Ue.registerClass(e)},registerComponentView:function(e){kt.registerClass(e)},registerSeriesModel:function(e){Et.registerClass(e)},registerChartView:function(e){yt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ue.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){_N(e,t)}};function We(e){if(J(e)){M(e,function(t){We(t)});return}Ge(FP,e)>=0||(FP.push(e),Se(e)&&(e={install:e}),e.install(woe))}function Gh(e){return e==null?0:e.length||1}function zP(e){return e}var so=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||zP,this._newKeyGetter=a||zP,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Gh(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Gh(u),d=Gh(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var p=0;p<f;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Gh(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Gh(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),xoe=function(){function e(t,r){this._encode=t,this._schema=r}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 Coe(e,t){var r={},n=r.encode={},a=_e(),i=[],o=[],s={};M(e.dimensions,function(d){var p=e.getDimensionInfo(d),v=p.coordDim;if(v){process.env.NODE_ENV!=="production"&&Ne(Hb.get(v)==null);var g=p.coordDimIndex;BS(n,v)[g]=d,p.isExtraCoord||(a.set(v,1),Toe(p.type)&&(i[0]=d),BS(s,v)[g]=e.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}Hb.each(function(m,y){var _=BS(n,y),b=p.otherDims[y];b!=null&&b!==!1&&(_[b]=p.name)})});var l=[],u={};a.each(function(d,p){var v=n[p];u[p]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ee(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new xoe(s,t),r}function BS(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Yg(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Toe(e){return!(e==="ordinal"||e==="time")}var Xg=function(){function e(t){this.otherDims={},t!=null&&j(this,t)}return e}(),Doe=at(),Eoe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},$P=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=UP(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Re(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=ZL(this.source),n=!WP(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Eoe[u]||"f",c&&(a+=c.uid),a+="$"}var p=this.source,v=[p.seriesLayoutBy,p.startIndex,a].join("$$");return{dimensions:i,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function HP(e){return e instanceof $P}function GP(e){for(var t=_e(),r=0;r<(e||[]).length;r++){var n=e[r],a=Ee(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function UP(e){var t=Doe(e);return t.dimNameMap||(t.dimNameMap=GP(e.dimensionsDefine))}function WP(e){return e>30}var Uh=Ee,is=ee,Aoe=typeof Int32Array>"u"?Array:Int32Array,Moe="e\0\0",YP=-1,Noe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ioe=["_approximateExtent"],XP,Kg,Wh,yc,FS,Yh,zS,tn=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;HP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=he(f)?new Xg({name:f}):f instanceof Xg?f:new Xg(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(p),i[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&Ne(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=_e();M(o,function(m){g.set(i[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ot(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof oS&&(i=t),!i){var o=this.dimensions,s=Qb(t)||Lr(t)?new QL(t,o.length):t;i=new oS;var l=is(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Coe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&zS(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==io&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===ca;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&hte(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=hr(d,null));var p=f.id;o[c]==null&&p!=null&&(o[c]=hr(p,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)zS(this,c);XP(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Uh(t)?j(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Wh(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Kg(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return J(t)?a.getValues(is(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n&&n[r];return a==null||isNaN(a)?YP:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Se(t)&&(n=r,r=t,t=[]);var a=n||this,i=is(yc(t),this._getStoreDimIndex,this);this._store.each(i,a?ge(r,a):r)},e.prototype.filterSelf=function(t,r,n){Se(t)&&(n=r,r=t,t=[]);var a=n||this,i=is(yc(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ge(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=qe(t);return M(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Se(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=is(yc(t),this._getStoreDimIndex,this),s=Yh(this);return s._store=this._store.map(o,i?ge(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&M(yc(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=is(yc(t),this._getStoreDimIndex,this);this._store.modify(s,o?ge(r,o):r)},e.prototype.downSample=function(t,r,n,a){var i=Yh(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=Yh(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Yh(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new ft(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new so(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Kg(t,n)},function(n){return Kg(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Uh(t)?j(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),J(i)?i=i.slice():Uh(i)&&(i=j({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Uh(r)?j(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Uh(t)?j(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?j(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;rb(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:is(this.dimensions,this._getDimInfo,this),this.hostModel)),FS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Se(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(av(arguments)))})},e.internalField=function(){XP=function(t){var r=t._invertedIndicesMap;M(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new Aoe(o.categories.length);for(var l=0;l<n.length;l++)n[l]=YP;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Wh=function(t,r,n){return hr(t._getCategory(r,n),null)},Kg=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Wh(t,t._idDimIdx,r)),n==null&&(n=Moe+r),n},yc=function(t){return J(t)||(t=t!=null?[t]:[]),t},Yh=function(t){var r=new e(t._schema?t._schema:is(t.dimensions,t._getDimInfo,t),t.hostModel);return FS(r,t),r},FS=function(t,r){M(Noe.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,M(Ioe,function(n){t[n]=ke(r[n])}),t._calculationInfo=j({},r._calculationInfo)},zS=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Wh(t,i,r)),l==null&&o!=null&&(a[r]=l=Wh(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();function Loe(e,t){return _c(e,t).dimensions}function _c(e,t){Qb(e)||(e=tS(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=_e(),i=[],o=Poe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&WP(o),l=n===e.dimensionsDefine,u=l?UP(e):GP(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=_e(c),d=new fk(o),p=0;p<d.length;p++)d[p]=-1;function v(D){var E=d[D];if(E<0){var A=n[D],L=Ee(A)?A:{name:A},N=new Xg,I=L.name;I!=null&&u.get(I)!=null&&(N.name=N.displayName=I),L.type!=null&&(N.type=L.type),L.displayName!=null&&(N.displayName=L.displayName);var k=i.length;return d[D]=k,N.storeDimIndex=D,i.push(N),N}return i[E]}if(!s)for(var p=0;p<o;p++)v(p);f.each(function(D,E){var A=Dt(D).slice();if(A.length===1&&!he(A[0])&&A[0]<0){f.set(E,!1);return}var L=f.set(E,[]);M(A,function(N,I){var k=he(N)?u.get(N):N;k!=null&&k<o&&(L[I]=k,m(v(k),E,I))})});var g=0;M(r,function(D){var E,A,L,N;if(he(D))E=D,N={};else{N=D,E=N.name;var I=N.ordinalMeta;N.ordinalMeta=null,N=j({},N),N.ordinalMeta=I,A=N.dimsDef,L=N.otherDims,N.name=N.coordDim=N.coordDimIndex=N.dimsDef=N.otherDims=null}var k=f.get(E);if(k!==!1){if(k=Dt(k),!k.length)for(var P=0;P<(A&&A.length||1);P++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&k.push(g++)}M(k,function(V,B){var G=v(V);if(l&&N.type!=null&&(G.type=N.type),m(Me(G,N),E,B),G.name==null&&A){var U=A[B];!Ee(U)&&(U={name:U}),G.name=G.displayName=U.name,G.defaultTooltip=U.defaultTooltip}L&&Me(G.otherDims,L)})}});function m(D,E,A){Hb.get(E)!=null?D.otherDims[E]=A:(D.coordDim=E,D.coordDimIndex=A,a.set(E,!0))}var y=t.generateCoord,_=t.generateCoordCount,b=_!=null;_=y?_||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)M(i,function(D){x(D)}),i.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var w=0;w<o;w++){var C=v(w),T=C.coordDim;T==null&&(C.coordDim=Ooe(S,a,b),C.coordDimIndex=0,(!y||_<=0)&&(C.isExtraCoord=!0),_--),x(C),C.type==null&&(NL(e,w)===Rr.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return koe(i),new $P({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function koe(e){for(var t=_e(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function Poe(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(i){var o;Ee(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Ooe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Roe=function(){function e(t){this.coordSysDims=[],this.axisMap=_e(),this.categoryAxisMap=_e(),this.coordSysName=t}return e}();function Voe(e){var t=e.get("coordinateSystem"),r=new Roe(t),n=Boe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Boe={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",sr).models[0],i=e.getReferringComponents("yAxis",sr).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Qt(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+Qt(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),bc(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),bc(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",sr).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),bc(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",sr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),bc(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),bc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),bc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bc(e){return e.get("type")==="category"}function KP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;Foe(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(M(i,function(_,b){he(_)&&(i[b]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!a||a===_.coordDim)&&(c=_))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,v=c.type,g=0;M(i,function(_){_.coordDim===p&&g++});var m={name:f,coordDim:p,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Foe(e){return!HP(e.schema)}function lo(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function $S(e,t){return lo(e,t)?e.getCalculationInfo("stackResultDimension"):t}function zoe(e,t){var r=e.get("coordinateSystem"),n=_l.get(r),a;return t&&t.coordSysDims&&(a=ee(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Yg(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function $oe(e,t,r){var n,a;return r&&M(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function wi(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=tS(e)):(a=n.getSource(),i=a.sourceFormat===ca);var o=Voe(t),s=zoe(t,o),l=r.useEncodeDefaulter,u=Se(l)?l:l?Be(ML,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=_c(a,c),d=$oe(f.dimensions,r.createInvertedIndices,o),p=i?null:n.getSharedDataStore(f),v=KP(t,{schema:f,store:p}),g=new tn(f,t);g.setCalculationInfo(v);var m=d!=null&&Hoe(a)?function(y,_,b,S){return S===d?b:this.defaultDimValueGetter(y,_,b,S)}:null;return g.hasItemOption=!1,g.initData(i?a:p,null,m),g}function Hoe(e){if(e.sourceFormat===ca){var t=Goe(e.data||[]);return!J(Fu(t))}}function Goe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var xi=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Bv(xi);var Uoe=0,HS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Uoe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&ee(n,Woe);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!he(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=_e(this.categories))},e}();function Woe(e){return Ee(e)&&e.value!=null?e.value:e+""}function Yoe(e){var t=Math.pow(10,ih(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function GS(e){return e.type==="interval"||e.type==="log"}function Xoe(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=k1(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=jP(o),l=a.niceTickExtent=[Kt(Math.ceil(e[0]/o)*o,s),Kt(Math.floor(e[1]/o)*o,s)];return Koe(l,e),a}function US(e){var t=Math.pow(10,ih(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Kt(r*t)}function jP(e){return Va(e)+2}function ZP(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Koe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),ZP(e,0,t),ZP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function jg(e,t){return e>=t[0]&&e<=t[1]}function Zg(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function qg(e,t){return e*(t[1]-t[0])+t[0]}var Jg=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new HS({})),J(a)&&(a=new HS({categories:ee(a,function(i){return Ee(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:he(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),jg(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Zg(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(qg(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xi);xi.registerClass(Jg);var Al=Kt,uo=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return jg(r,this._extent)},t.prototype.normalize=function(r){return Zg(r,this._extent)},t.prototype.scale=function(r){return qg(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=jP(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:Al(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Al(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:Al(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var p=Al(l.value+(u+1)*d);p>i[0]&&p<i[1]&&c.push(p),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Va(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Al(r.value,a,!0);return Rb(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=Xoe(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Al(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Al(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(xi);xi.registerClass(uo);var qP=typeof Float32Array<"u",joe=qP?Float32Array:Array;function Ci(e){return J(e)?qP?new Float32Array(e):e:new joe(e)}var WS="__ec_stack_";function JP(e){return e.get("stack")||WS+e.seriesIndex}function YS(e){return e.dim+e.index}function Zoe(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(Me({bandWidth:a,axisKey:n,stackId:WS+i},e));for(var o=tO(t),s=[],i=0;i<e.count;i++){var l=o[n][WS+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function QP(e,t){var r=[];return t.eachSeriesByType(e,function(n){aO(n)&&r.push(n)}),r}function qoe(e){var t={};M(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,p=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,m=v.count();g<m;++g){var y=v.get(p,g);t[d]?t[d].push(y):t[d]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function eO(e){var t=qoe(e),r=[];return M(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var p=n.getData();s=Math.abs(o[1]-o[0])/p.count()}var v=ue(n.get("barWidth"),s),g=ue(n.get("barMaxWidth"),s),m=ue(n.get("barMinWidth")||(iO(n)?.5:1),s),y=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:_,axisKey:YS(i),stackId:JP(n)})}),tO(r)}function tO(e){var t={};M(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var p=n.barGap;p!=null&&(s.gap=p);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return M(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=qe(i).length;s=Math.max(35-l*4,15)+"%"}var u=ue(s,o),c=ue(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),M(i,function(y){var _=y.maxWidth,b=y.minWidth;if(y.width){var S=y.width;_&&(S=Math.min(S,_)),b&&(S=Math.max(S,b)),y.width=S,f-=S+c*S,d--}else{var S=p;_&&_<S&&(S=Math.min(_,f)),b&&b>S&&(S=b),S!==p&&(y.width=S,f-=S+c*S,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var v=0,g;M(i,function(y,_){y.width||(y.width=p),g=y,v+=y.width*(1+c)}),g&&(v-=g.width*c);var m=-v/2;M(i,function(y,_){r[a][_]=r[a][_]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),r}function Joe(e,t,r){if(e&&t){var n=e[YS(t)];return n}}function rO(e,t){var r=QP(e,t),n=eO(r);M(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=JP(a),u=n[YS(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function nO(e){return{seriesType:e,plan:fc(),reset:function(t){if(aO(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=lo(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=Qoe(a,i),v=iO(t),g=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(b,S){for(var x=b.count,w=v&&Ci(x*3),C=v&&l&&Ci(x*3),T=v&&Ci(x),D=n.master.getRect(),E=d?D.width:D.height,A,L=S.getStore(),N=0;(A=b.next())!=null;){var I=L.get(f?m:o,A),k=L.get(s,A),P=p,V=void 0;f&&(V=+I-L.get(o,A));var B=void 0,G=void 0,U=void 0,W=void 0;if(d){var re=n.dataToPoint([I,k]);if(f){var le=n.dataToPoint([V,k]);P=le[0]}B=P,G=re[1]+_,U=re[0]-P,W=y,Math.abs(U)<g&&(U=(U<0?-1:1)*g)}else{var re=n.dataToPoint([k,I]);if(f){var le=n.dataToPoint([k,V]);P=le[1]}B=re[0]+_,G=P,U=y,W=re[1]-P,Math.abs(W)<g&&(W=(W<=0?-1:1)*g)}v?(w[N]=B,w[N+1]=G,w[N+2]=d?U:W,C&&(C[N]=d?D.x:B,C[N+1]=d?G:D.y,C[N+2]=E),T[A]=A):S.setItemLayout(A,{x:B,y:G,width:U,height:W}),N+=3}v&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:d})}}}}}}function aO(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function iO(e){return e.pipelineContext&&e.pipelineContext.large}function Qoe(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var ese=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},XS=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Dh(r.value,hL[Ane(nc(this._minLevelUnit))]||hL.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Mne(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=sse(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=ua,n[1]+=ua),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-ua}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Qg.length,l=Math.min(ese(Qg,this._approxInterval,0,s),s-1);this._interval=Qg[l][1],this._minLevelUnit=Qg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return ot(r)?r:+Fn(r)},t.prototype.contain=function(r){return jg(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Zg(this.parse(r),this._extent)},t.prototype.scale=function(r){return qg(r,this._extent)},t.type="time",t}(uo),Qg=[["second",Lb],["minute",kb],["hour",Ch],["quarter-day",Ch*6],["half-day",Ch*12],["day",ua*1.2],["half-week",ua*3.5],["week",ua*7],["month",ua*31],["quarter",ua*95],["half-year",fL/2],["year",fL]];function tse(e,t,r,n){var a=Fn(t),i=Fn(r),o=function(v){return vL(a,v,n)===vL(i,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},p=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return p()}}function rse(e,t){return e/=ua,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nse(e){var t=30*ua;return e/=t,e>6?6:e>3?3:e>2?2:1}function ase(e){return e/=Ch,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function oO(e,t){return e/=t?kb:Lb,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ise(e){return k1(e,!0)}function ose(e,t,r){var n=new Date(e);switch(nc(t)){case"year":case"month":n[gL(r)](0);case"day":n[mL(r)](1);case"hour":n[yL(r)](0);case"minute":n[_L(r)](0);case"second":n[bL(r)](0),n[SL(r)](0)}return n.getTime()}function sse(e,t,r,n){var a=1e4,i=dL,o=0;function s(E,A,L,N,I,k,P){for(var V=new Date(A),B=A,G=V[N]();B<L&&B<=n[1];)P.push({value:B}),G+=E,V[I](G),B=V.getTime();P.push({value:B,notAdd:!0})}function l(E,A,L){var N=[],I=!A.length;if(!tse(nc(E),n[0],n[1],r)){I&&(A=[{value:ose(new Date(n[0]),E,r)},{value:n[1]}]);for(var k=0;k<A.length-1;k++){var P=A[k].value,V=A[k+1].value;if(P!==V){var B=void 0,G=void 0,U=void 0,W=!1;switch(E){case"year":B=Math.max(1,Math.round(t/ua/365)),G=Ob(r),U=Nne(r);break;case"half-year":case"quarter":case"month":B=nse(t),G=ac(r),U=gL(r);break;case"week":case"half-week":case"day":B=rse(t),G=pg(r),U=mL(r),W=!0;break;case"half-day":case"quarter-day":case"hour":B=ase(t),G=Eh(r),U=yL(r);break;case"minute":B=oO(t,!0),G=vg(r),U=_L(r);break;case"second":B=oO(t,!1),G=gg(r),U=bL(r);break;case"millisecond":B=ise(t),G=mg(r),U=SL(r);break}s(B,P,V,G,U,W,N),E==="year"&&L.length>1&&k===0&&L.unshift({value:L[0].value-B})}}for(var k=0;k<N.length;k++)L.push(N[k]);return N}}for(var u=[],c=[],f=0,d=0,p=0;p<i.length&&o++<a;++p){var v=nc(i[p]);if(Ene(i[p])){l(i[p],u[u.length-1]||[],c);var g=i[p+1]?nc(i[p+1]):null;if(v!==g){if(c.length){d=f,c.sort(function(E,A){return E.value-A.value});for(var m=[],y=0;y<c.length;++y){var _=c[y].value;(y===0||c[y-1].value!==_)&&(m.push(c[y]),_>=n[0]&&_<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&d>b/1.5||(u.push(m),f>b||e===i[p]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Wt("Exceed safe limit.");for(var S=ct(ee(u,function(E){return ct(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),x=[],w=S.length-1,p=0;p<S.length;++p)for(var C=S[p],T=0;T<C.length;++T)x.push({value:C[T].value,level:w-p});x.sort(function(E,A){return E.value-A.value});for(var D=[],p=0;p<x.length;++p)(p===0||x[p].value!==x[p-1].value)&&D.push(x[p]);return D}xi.registerClass(XS);var sO=xi.prototype,Xh=uo.prototype,lse=Kt,use=Math.floor,cse=Math.ceil,em=Math.pow,Ga=Math.log,KS=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new uo,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Xh.getTicks.call(this,r);return ee(o,function(s){var l=s.value,u=Kt(em(this.base,l));return u=l===a[0]&&this._fixMin?tm(u,i[0]):u,u=l===a[1]&&this._fixMax?tm(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Ga(this.base);r=Ga(Math.max(0,r))/a,n=Ga(Math.max(0,n))/a,Xh.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=sO.getExtent.call(this);n[0]=em(r,n[0]),n[1]=em(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=tm(n[0],i[0])),this._fixMax&&(n[1]=tm(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Ga(r[0])/Ga(n),r[1]=Ga(r[1])/Ga(n),sO.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=TN(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Kt(cse(n[0]/i)*i),Kt(use(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ga(r)/Ga(this.base),jg(r,this._extent)},t.prototype.normalize=function(r){return r=Ga(r)/Ga(this.base),Zg(r,this._extent)},t.prototype.scale=function(r){return r=qg(r,this._extent),em(this.base,r)},t.type="log",t}(xi),lO=KS.prototype;lO.getMinorTicks=Xh.getMinorTicks,lO.getLabel=Xh.getLabel;function tm(e,t){return lse(e,Va(t))}xi.registerClass(KS);var fse=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;Se(o)?this._modelMinNum=rm(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=rm(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Se(s)?this._modelMaxNum=rm(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=rm(t,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=J(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Ra(u[0],1),Ra(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Po(s)||Po(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&Ne(!this.frozen),this[dse[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=hse[t];process.env.NODE_ENV!=="production"&&Ne(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),hse={min:"_determinedMin",max:"_determinedMax"},dse={min:"_dataMin",max:"_dataMax"};function uO(e,t,r){var n=e.rawExtentInfo;return n||(n=new fse(e,t,r),e.rawExtentInfo=n,n)}function rm(e,t){return t==null?null:Po(t)?NaN:e.parse(t)}function cO(e,t){var r=e.type,n=uO(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=QP("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=eO(s),c=pse(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function pse(e,t,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Joe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;M(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;M(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Ml(e,t){var r=t,n=cO(e,r),a=n.extent,i=r.get("splitNumber");e instanceof KS&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Kh(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Jg({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new XS({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(xi.getClass(t)||uo)}}function vse(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Sc(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):he(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):Se(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(jS(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function jS(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function gse(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof Jg?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Sc(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),p=o.getTextRect(d),v=mse(p,o.get("rotate")||0);l?l.union(v):l=v}return l}}function mse(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new He(e.x,e.y,i,o);return s}function ZS(e){var t=e.get("interval");return t??"auto"}function fO(e){return e.type==="category"&&ZS(e.getLabelModel())===0}function nm(e,t){var r={};return M(e.mapDimensionsAll(t),function(n){r[$S(e,n)]=!0}),qe(r)}function yse(e,t,r){t&&M(nm(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var wc=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function _se(e){return wi(null,e)}var bse={isDimensionStacked:lo,enableDataStack:KP,getStackedDimension:$S};function Sse(e,t){var r=t;t instanceof ft||(r=new ft(t));var n=Kh(r);return n.setExtent(e[0],e[1]),Ml(n,r),n}function wse(e){qt(e,wc)}function xse(e,t){return t=t||{},Nt(e,null,null,t.state!=="normal")}const Cse=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Loe,createList:_se,createScale:Sse,createSymbol:tr,createTextStyle:xse,dataStack:bse,enableHoverEmphasis:Ko,getECData:Ve,getLayoutRect:lr,mixinAxisModelCommonMethods:wse},Symbol.toStringTag,{value:"Module"}));var Tse=1e-8;function hO(e,t){return Math.abs(e-t)<Tse}function Nl(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=to(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!hO(a[0],s[0])||!hO(a[1],s[1]))&&(n+=to(a[0],a[1],s[0],s[1],t,r)),n!==0}var Dse=[];function qS(e,t){for(var r=0;r<e.length;r++)Ar(e[r],e[r],t)}function dO(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(ji(t,t,i),Zi(r,r,i))}}function Ese(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var pO=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),vO=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),gO=function(){function e(t){this.type="linestring",this.points=t}return e}(),mO=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Ese(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?dO(s.exterior,a,i,r):M(s.points,function(l){dO(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new He(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Nl(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Nl(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new He(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(qS(d.exterior,u),M(d.interiors,function(p){qS(p,u)})):M(d.points,function(p){qS(p,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(pO),Ase=function(e){H(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Ff(Dse),o=r;o&&!o.isGeoSVGGraphicRoot;)ui(i,o.getLocalTransform(),i),o=o.parent;return zs(i,i),Ar(a,a,i),a},t}(pO);function Mse(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=yO(s,o,r);break;case"Polygon":JS(s,o,r);break;case"MultiLineString":JS(s,o,r);break;case"MultiPolygon":M(s,function(l,u){return JS(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function JS(e,t,r){for(var n=0;n<e.length;n++)e[n]=yO(e[n],t[n],r)}function yO(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function QS(e,t){return e=Mse(e),ee(ct(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new vO(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new vO(l[0],l.slice(1)))});break;case"LineString":i.push(new gO([a.coordinates]));break;case"MultiLineString":i.push(new gO(a.coordinates))}var s=new mO(n[t||"name"],i,n.cp);return s.properties=n,s})}const Nse=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:I1,asc:Bn,getPercentWithPrecision:ote,getPixelPrecision:N1,getPrecision:Va,getPrecisionSafe:Pv,isNumeric:Rv,isRadianAroundZero:Bu,linearMap:pt,nice:k1,numericToNumber:hi,parseDate:Fn,quantile:Ov,quantity:TN,quantityExponent:ih,reformIntervals:P1,remRadian:L1,round:Kt},Symbol.toStringTag,{value:"Module"})),Ise=Object.freeze(Object.defineProperty({__proto__:null,format:Dh,parse:Fn},Symbol.toStringTag,{value:"Module"})),Lse=Object.freeze(Object.defineProperty({__proto__:null,Arc:_h,BezierCurve:Ku,BoundingRect:He,Circle:yi,CompoundPath:eg,Ellipse:gh,Group:Oe,Image:br,IncrementalDisplayable:WI,Line:dr,LinearGradient:ju,Polygon:jr,Polyline:Zr,RadialGradient:mb,Rect:et,Ring:Xu,Sector:Kr,Text:tt,clipPointsByRect:wb,clipRectByRect:JI,createIcon:Qu,extendPath:jI,extendShape:KI,getShapeClass:og,getTransform:qo,initProps:Vt,makeImage:bb,makePath:Sh,mergePath:$n,registerShape:la,resizePath:Sb,updateProps:st},Symbol.toStringTag,{value:"Module"})),kse=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Rb,capitalFirst:Pne,encodeHTML:Yr,formatTime:kne,formatTpl:zb,getTextRect:Ine,getTooltipMarker:xL,normalizeCssArray:vl,toCamelCase:Vb,truncateText:Fte},Symbol.toStringTag,{value:"Module"})),Pse=Object.freeze(Object.defineProperty({__proto__:null,bind:ge,clone:ke,curry:Be,defaults:Me,each:M,extend:j,filter:ct,indexOf:Ge,inherits:O_,isArray:J,isFunction:Se,isObject:Ee,isString:he,map:ee,merge:Fe,reduce:Qn},Symbol.toStringTag,{value:"Module"}));var jh=at();function _O(e,t){var r=ee(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function Ose(e){var t=e.getLabelModel().get("customValues");if(t){var r=Sc(e),n=e.scale.getExtent(),a=_O(e,t),i=ct(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:ee(i,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:e.scale.getLabel(s),tickValue:o}})}}return e.type==="category"?Vse(e):Fse(e)}function Rse(e,t){var r=e.getTickModel().get("customValues");if(r){var n=e.scale.getExtent(),a=_O(e,r);return{ticks:ct(a,function(i){return i>=n[0]&&i<=n[1]})}}return e.type==="category"?Bse(e,t):{ticks:ee(e.scale.getTicks(),function(i){return i.value})}}function Vse(e){var t=e.getLabelModel(),r=bO(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bO(e,t){var r=SO(e,"labels"),n=ZS(t),a=wO(r,n);if(a)return a;var i,o;return Se(n)?i=TO(e,n):(o=n==="auto"?zse(e):n,i=CO(e,o)),xO(r,n,{labels:i,labelCategoryInterval:o})}function Bse(e,t){var r=SO(e,"ticks"),n=ZS(t),a=wO(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Se(n))i=TO(e,n,!0);else if(n==="auto"){var s=bO(e,e.getLabelModel());o=s.labelCategoryInterval,i=ee(s.labels,function(l){return l.tickValue})}else o=n,i=CO(e,o,!0);return xO(r,n,{ticks:i,tickCategoryInterval:o})}function Fse(e){var t=e.scale.getTicks(),r=Sc(e);return{labels:ee(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function SO(e,t){return jh(e)[t]||(jh(e)[t]=[])}function wO(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function xO(e,t,r){return e.push({key:t,value:r}),r}function zse(e){var t=jh(e).autoInterval;return t??(jh(e).autoInterval=e.calculateCategoryInterval())}function $se(e){var t=Hse(e),r=Sc(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,p=0;l<=i[1];l+=s){var v=0,g=0,m=rh(r({value:l}),t.font,"center","top");v=m.width*1.3,g=m.height*1.3,d=Math.max(d,v,7),p=Math.max(p,g,7)}var y=d/c,_=p/f;isNaN(y)&&(y=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(y,_))),S=jh(e.model),x=e.getExtent(),w=S.lastAutoInterval,C=S.lastTickCount;return w!=null&&C!=null&&Math.abs(w-b)<=1&&Math.abs(C-o)<=1&&w>b&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?b=w:(S.lastTickCount=o,S.lastAutoInterval=b,S.axisExtent0=x[0],S.axisExtent1=x[1]),b}function Hse(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()}}function CO(e,t,r){var n=Sc(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=fO(e),d=o.get("showMinLabel")||f,p=o.get("showMaxLabel")||f;d&&u!==i[0]&&g(i[0]);for(var v=u;v<=i[1];v+=l)g(v);p&&v-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(r?m:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function TO(e,t,r){var n=e.scale,a=Sc(e),i=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var DO=[0,1],va=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return N1(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),EO(n,a.count())),pt(t,DO,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),EO(n,a.count()));var i=pt(t,n,DO,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Rse(this,r),a=n.ticks,i=ee(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Gse(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=ee(n,function(i){return ee(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return Ose(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 t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return $se(this)},e}();function EO(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function Gse(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;M(t,function(p){p.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(p,v){return p=Kt(p),v=Kt(v),f?p>v:p<v}}function Use(e){var t=Ue.extend(e);return Ue.registerClass(t),t}function Wse(e){var t=kt.extend(e);return kt.registerClass(t),t}function Yse(e){var t=Et.extend(e);return Et.registerClass(t),t}function Xse(e){var t=yt.extend(e);return yt.registerClass(t),t}var Zh=Math.PI*2,Il=mi.CMD,Kse=["top","right","bottom","left"];function jse(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function Zse(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-a)%Zh<1e-4)return l[0]=c,l[1]=f,u-r;if(i){var d=n;n=zn(a),a=zn(d)}else n=zn(n),a=zn(a);n>a&&(a+=Zh);var p=Math.atan2(s,o);if(p<0&&(p+=Zh),p>=n&&p<=a||p+Zh>=n&&p+Zh<=a)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,g=r*Math.sin(n)+t,m=r*Math.cos(a)+e,y=r*Math.sin(a)+t,_=(v-o)*(v-o)+(g-s)*(g-s),b=(m-o)*(m-o)+(y-s)*(y-s);return _<b?(l[0]=v,l[1]=g,Math.sqrt(_)):(l[0]=m,l[1]=y,Math.sqrt(b))}function am(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var p=l*c+u*f,v=p/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var g=o[0]=e+v*c,m=o[1]=t+v*f;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function AO(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Ua=[];function qse(e,t,r){var n=AO(t.x,t.y,t.width,t.height,e.x,e.y,Ua);return r.set(Ua[0],Ua[1]),n}function Jse(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,p=0;p<c.length;){var v=c[p++];p===1&&(n=c[p],a=c[p+1],i=n,o=a);var g=u;switch(v){case Il.M:i=c[p++],o=c[p++],n=i,a=o;break;case Il.L:g=am(n,a,c[p],c[p+1],f,d,Ua,!0),n=c[p++],a=c[p++];break;case Il.C:g=U2(n,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,d,Ua),n=c[p++],a=c[p++];break;case Il.Q:g=Y2(n,a,c[p++],c[p++],c[p],c[p+1],f,d,Ua),n=c[p++],a=c[p++];break;case Il.A:var m=c[p++],y=c[p++],_=c[p++],b=c[p++],S=c[p++],x=c[p++];p+=1;var w=!!(1-c[p++]);s=Math.cos(S)*_+m,l=Math.sin(S)*b+y,p<=1&&(i=s,o=l);var C=(f-m)*b/_+m;g=Zse(m,y,b,S,S+x,w,C,d,Ua),n=Math.cos(S+x)*_+m,a=Math.sin(S+x)*b+y;break;case Il.R:i=n=c[p++],o=a=c[p++];var T=c[p++],D=c[p++];g=AO(i,o,T,D,f,d,Ua);break;case Il.Z:g=am(n,a,i,o,f,d,Ua,!0),n=i,a=o;break}g<u&&(u=g,r.set(Ua[0],Ua[1]))}return u}var Wa=new $e,Pt=new $e,rr=new $e,Ti=new $e,Di=new $e;function MO(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||Kse,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&zs([],c),d=t.get("length2")||0;u&&rr.copy(u);for(var p=0;p<o.length;p++){var v=o[p];jse(v,0,s,Wa,Ti),$e.scaleAndAdd(Pt,Wa,Ti,d),Pt.transform(f);var g=e.getBoundingRect(),m=u?u.distance(Pt):e instanceof Ze?Jse(Pt,e.path,rr):qse(Pt,g,rr);m<l&&(l=m,Pt.transform(c),rr.transform(c),rr.toArray(i[0]),Pt.toArray(i[1]),Wa.toArray(i[2]))}NO(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var im=[],dn=new $e;function NO(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Wa.fromArray(e[0]),Pt.fromArray(e[1]),rr.fromArray(e[2]),$e.sub(Ti,Wa,Pt),$e.sub(Di,rr,Pt);var r=Ti.len(),n=Di.len();if(!(r<.001||n<.001)){Ti.scale(1/r),Di.scale(1/n);var a=Ti.dot(Di),i=Math.cos(t);if(i<a){var o=am(Pt.x,Pt.y,rr.x,rr.y,Wa.x,Wa.y,im,!1);dn.fromArray(im),dn.scaleAndAdd(Di,o/Math.tan(Math.PI-t));var s=rr.x!==Pt.x?(dn.x-Pt.x)/(rr.x-Pt.x):(dn.y-Pt.y)/(rr.y-Pt.y);if(isNaN(s))return;s<0?$e.copy(dn,Pt):s>1&&$e.copy(dn,rr),dn.toArray(e[1])}}}}function Qse(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Wa.fromArray(e[0]),Pt.fromArray(e[1]),rr.fromArray(e[2]),$e.sub(Ti,Pt,Wa),$e.sub(Di,rr,Pt);var n=Ti.len(),a=Di.len();if(!(n<.001||a<.001)){Ti.scale(1/n),Di.scale(1/a);var i=Ti.dot(t),o=Math.cos(r);if(i<o){var s=am(Pt.x,Pt.y,rr.x,rr.y,Wa.x,Wa.y,im,!1);dn.fromArray(im);var l=Math.PI/2,u=Math.acos(Di.dot(t)),c=l+u-r;if(c>=l)$e.copy(dn,rr);else{dn.scaleAndAdd(Di,s/Math.tan(Math.PI/2-c));var f=rr.x!==Pt.x?(dn.x-Pt.x)/(rr.x-Pt.x):(dn.y-Pt.y)/(rr.y-Pt.y);if(isNaN(f))return;f<0?$e.copy(dn,Pt):f>1&&$e.copy(dn,rr)}dn.toArray(e[1])}}}}function ew(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function ele(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Ki(n[0],n[1]),i=Ki(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Bf([],n[1],n[0],o/a),l=Bf([],n[1],n[2],o/i),u=Bf([],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],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function tw(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<hh.length;l++){var u=hh[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),p=f?s:Re(a.states[u]&&a.states[u].ignore,s);if(p||!Re(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&ew(n,!0,u,c);continue}n||(n=new Zr,e.setTextGuideLine(n),!f&&(s||!o)&&ew(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ew(n,!1,u,c)}}if(n){Me(n.style,r),n.style.fill=null;var g=i.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=ele}}function rw(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<fn.length;n++){var a=fn[n];r[a]=e.getModel([a,t])}return r}function IO(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ng(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function LO(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(w,C){return w.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=e[c],d=f.rect;l=d[t]-s,l<0&&(d[t]-=l,f.label[t]-=l,u=!0),s=d[t]+d[r]}var p=e[0],v=e[o-1],g,m;y(),g<0&&S(-g,.8),m<0&&S(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&x(-g),m<0&&x(m);function y(){g=p.rect[t]-n,m=a-v.rect[t]-v.rect[r]}function _(w,C,T){if(w<0){var D=Math.min(C,-w);if(D>0){b(D*T,0,o);var E=D+w;E<0&&S(-E*T,1)}else S(-w*T,1)}}function b(w,C,T){w!==0&&(u=!0);for(var D=C;D<T;D++){var E=e[D],A=E.rect;A[t]+=w,E.label[t]+=w}}function S(w,C){for(var T=[],D=0,E=1;E<o;E++){var A=e[E-1].rect,L=Math.max(e[E].rect[t]-A[t]-A[r],0);T.push(L),D+=L}if(D){var N=Math.min(Math.abs(w)/D,C);if(w>0)for(var E=0;E<o-1;E++){var I=T[E]*N;b(I,0,E+1)}else for(var E=o-1;E>0;E--){var I=T[E-1]*N;b(-I,E,o)}}}function x(w){var C=w<0?-1:1;w=Math.abs(w);for(var T=Math.ceil(w/(o-1)),D=0;D<o-1;D++)if(C>0?b(T,0,D+1):b(-T,o-D-1,o),w-=T,w<=0)return}return u}function tle(e,t,r,n){return LO(e,"x","width",t,r)}function kO(e,t,r,n){return LO(e,"y","height",t,r)}function PO(e){var t=[];e.sort(function(g,m){return m.priority-g.priority});var r=new He(0,0,0,0);function n(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=i.obb,d=!1,p=0;p<t.length;p++){var v=t[p];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new ng(v.localRect,v.transform)),f||(f=new ng(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function rle(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function nle(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:rle(n&&n.shape.points)}}var OO=["align","verticalAlign","width","height","fontSize"],pn=new Qi,nw=at(),ale=at();function om(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var sm=["x","y","rotation"],ile=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();He.applyTransform(c,c,u),u?pn.setLocalTransform(u):(pn.x=pn.y=pn.rotation=pn.originX=pn.originY=0,pn.scaleX=pn.scaleY=1),pn.rotation=zn(pn.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var p=f.getComputedTransform();He.applyTransform(d,d,p)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:pn.x,y:pn.y,scaleX:pn.scaleX,scaleY:pn.scaleY,rotation:pn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(Se(a)||qe(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ve(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(b,S){return function(){MO(b,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Se(o.layoutOption)?c=o.layoutOption(nle(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=ue(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ue(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var v=nw(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<OO.length;g++){var m=OO[g];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var _=o.seriesModel.getData(o.dataType);y=_.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=IO(this._labelList),i=ct(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ct(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});tle(i,0,r),kO(o,0,n);var s=ct(a,function(l){return l.layoutOption.hideOverlap});PO(s)},e.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=nw(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=Ve(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");tw(t,rw(s),l),MO(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!qu(t))){var i=nw(n),o=i.oldLayout,s=Ve(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(Ge(d,"select")>=0&&n.attr(i.oldLayoutSelect),Ge(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),st(n,u,r,l)}else if(n.attr(u),!ec(n).valueAnimation){var f=Re(n.style.opacity,1);n.style.opacity=0,Vt(n,{style:{opacity:f}},r,l)}if(i.oldLayout=u,n.states.select){var p=i.oldLayoutSelect={};om(p,u,sm),om(p,n.states.select,sm)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};om(v,u,sm),om(v,n.states.emphasis,sm)}sL(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=ale(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),st(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,Vt(a,{style:{strokePercent:1}},r)),i.oldLayout=g}},e}(),aw=at();function ole(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=aw(r).labelManager;a||(a=aw(r).labelManager=new ile),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=aw(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var iw=Math.sin,ow=Math.cos,RO=Math.PI,Ll=Math.PI*2,sle=180/RO,VO=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Go(f-Ll)||(c?u>=Ll:-u>=Ll),p=u>0?u%Ll:u%Ll+Ll,v=!1;d?v=!0:Go(f)?v=!1:v=p>=RO==!!c;var g=t+n*ow(o),m=r+a*iw(o);this._start&&this._add("M",g,m);var y=Math.round(i*sle);if(d){var _=1/this._p,b=(c?1:-1)*(Ll-_);this._add("A",n,a,y,1,+c,t+n*ow(o+b),r+a*iw(o+b)),_>.01&&this._add("A",n,a,y,0,+c,g,m)}else{var S=t+n*ow(s),x=r+a*iw(s);this._add("A",n,a,y,+v,+c,S,x)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),sw="none",lle=Math.round;function ule(e){var t=e.fill;return t!=null&&t!==sw}function cle(e){var t=e.stroke;return t!=null&&t!==sw}var lw=["lineCap","miterLimit","lineJoin"],fle=ee(lw,function(e){return"stroke-"+e.toLowerCase()});function hle(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof br){e("opacity",a);return}if(ule(t)){var i=Jf(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&e("fill-opacity",o)}else e("fill",sw);if(cle(t)){var s=Jf(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var d=pS(r),p=d[0],v=d[1];p&&(v=lle(v||0),e("stroke-dasharray",p.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var g=0;g<lw.length;g++){var m=lw[g];if(t[m]!==Wv[m]){var y=t[m]||Wv[m];y&&e(fle[g],y)}}}}var BO="http://www.w3.org/2000/svg",FO="http://www.w3.org/1999/xlink",dle="http://www.w3.org/2000/xmlns/",ple="http://www.w3.org/XML/1998/namespace",zO="ecmeta_";function $O(e){return document.createElementNS(BO,e)}function xr(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function vle(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function gle(e){return"</"+e+">"}function uw(e,t){t=t||{};var r=t.newline?`
92
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return vle(o,s)+(o!=="style"?Yr(l):l||"")+(i?""+r+ee(i,function(u){return n(u)}).join(r)+r:"")+gle(o)}return n(e)}function mle(e,t,r){r=r||{};var n=r.newline?`
93
+ `:"",a=" {"+n,i=n+"}",o=ee(qe(e),function(l){return l+a+ee(qe(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=ee(qe(t),function(l){return"@keyframes "+l+a+ee(qe(t[l]),function(u){return u+a+ee(qe(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function cw(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function HO(e,t,r,n){return xr("svg","root",{width:e,height:t,xmlns:BO,"xmlns:xlink":FO,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var yle=0;function GO(){return yle++}var UO={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"},kl="transform-origin";function _le(e,t,r){var n=j({},e.shape);j(n,t),e.buildPath(r,n);var a=new VO;return a.reset(rN(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function ble(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[kl]=r+"px "+n+"px")}var Sle={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function WO(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function wle(e,t,r){var n=e.shape.paths,a={},i,o;if(M(n,function(l){var u=cw(r.zrId);u.animation=!0,lm(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=qe(c),p=d.length;if(p){o=d[p-1];var v=c[o];for(var g in v){var m=v[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in f){var _=f[y].animation;_.indexOf(o)>=0&&(i=_)}}}),!!i){t.d=!1;var s=WO(a,r);return i.replace(o,s)}}function YO(e){return he(e)?UO[e]?"cubic-bezier("+UO[e]+")":e1(e)?e:"":""}function lm(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof eg){var s=wle(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=YO(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(_){var b=_[1],S=b.length,x={},w={},C={},T="animation-timing-function";function D(de,pe,Ae){for(var me=de.getTracks(),Ce=de.getMaxTime(),Qe=0;Qe<me.length;Qe++){var Ke=me[Qe];if(Ke.needsAnimate()){var Ye=Ke.keyframes,lt=Ke.propName;if(Ae&&(lt=Ae(lt)),lt)for(var _t=0;_t<Ye.length;_t++){var O=Ye[_t],z=Math.round(O.time/Ce*100)+"%",oe=YO(O.easing),be=O.rawValue;(he(be)||ot(be))&&(pe[z]=pe[z]||{},pe[z][lt]=O.rawValue,oe&&(pe[z][T]=oe))}}}}for(var E=0;E<S;E++){var A=b[E],L=A.targetName;L?L==="shape"&&D(A,w):!n&&D(A,x)}for(var N in x){var I={};vN(I,e),j(I,x[N]);var k=nN(I),P=x[N][T];C[N]=k?{transform:k}:{},ble(C[N],I),P&&(C[N][T]=P)}var V,B=!0;for(var N in w){C[N]=C[N]||{};var G=!V,P=w[N][T];G&&(V=new mi);var U=V.len();V.reset(),C[N].d=_le(e,w[N],V);var W=V.len();if(!G&&U!==W){B=!1;break}P&&(C[N][T]=P)}if(!B)for(var N in C)delete C[N].d;if(!n)for(var E=0;E<S;E++){var A=b[E],L=A.targetName;L==="style"&&D(A,C,function(me){return Sle[me]})}for(var re=qe(C),le=!0,Y,E=1;E<re.length;E++){var X=re[E-1],fe=re[E];if(C[X][kl]!==C[fe][kl]){le=!1;break}Y=C[X][kl]}if(le&&Y){for(var N in C)C[N][kl]&&delete C[N][kl];t[kl]=Y}if(ct(re,function(de){return qe(C[de]).length>0}).length){var we=WO(C,r);return we+" "+_[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+GO();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function xle(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};XO(n,t,r)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=bv(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),XO(n,t,r)}}function XO(e,t,r,n){var a=JSON.stringify(e),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+GO(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var qh=Math.round;function KO(e){return e&&he(e.src)}function jO(e){return e&&Se(e.toDataURL)}function fw(e,t,r,n){hle(function(a,i){var o=a==="fill"||a==="stroke";o&&tN(i)?tR(t,e,a,n):o&&s1(i)?rR(r,e,a,n):e[a]=i,o&&n.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),Nle(r,e,n)}function hw(e,t){var r=bN(t);r&&(r.each(function(n,a){n!=null&&(e[(zO+a).toLowerCase()]=n+"")}),t.isSilent()&&(e[zO+"silent"]="true"))}function ZO(e){return Go(e[0]-1)&&Go(e[1])&&Go(e[2])&&Go(e[3]-1)}function Cle(e){return Go(e[4])&&Go(e[5])}function dw(e,t,r){if(t&&!(Cle(t)&&ZO(t))){var n=1e4;e.transform=ZO(t)?"translate("+qh(t[4]*n)/n+" "+qh(t[5]*n)/n+")":Cee(t)}}function qO(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(qh(n[i][0]*r)/r),a.push(qh(n[i][1]*r)/r);t.points=a.join(" ")}function JO(e){return!e.smooth}function Tle(e){var t=ee(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=qh(s*a)/a)}}}var Dle={circle:[Tle(["cx","cy","r"])],polyline:[qO,JO],polygon:[qO,JO]};function Ele(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function QO(e,t){var r=e.style,n=e.shape,a=Dle[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&rN(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Ele(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),v=e,g=v.__svgPathBuilder;(v.__svgPathVersion!==p||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new VO),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=p,v.__svgPathStrokePercent=l),i.d=g.getStr()}return dw(i,e.transform),fw(i,r,e,t),hw(i,e),t.animation&&lm(e,i,t),t.emphasis&&xle(e,i,t),xr(s,e.id+"",i)}function Ale(e,t){var r=e.style,n=r.image;if(n&&!he(n)&&(KO(n)?n=n.src:jO(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),dw(l,e.transform),fw(l,r,e,t),hw(l,e),t.animation&&lm(e,l,t),xr("image",e.id+"",l)}}function Mle(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Lo,i=r.x||0,o=Dee(r.y||0,Iv(a),r.textBaseline),s=Tee[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(lI(r)){var u="",c=r.fontStyle,f=oI(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||f2,p=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),dw(l,e.transform),fw(l,r,e,t),hw(l,e),t.animation&&lm(e,l,t),xr("text",e.id+"",l,void 0,n)}}function eR(e,t){if(e instanceof Ze)return QO(e,t);if(e instanceof br)return Ale(e,t);if(e instanceof $u)return Mle(e,t)}function Nle(e,t,r){var n=e.style;if(Eee(n)){var a=Aee(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,p=Jf(n.shadowColor),v=p.opacity,g=p.color,m=d/2/l,y=d/2/u,_=m+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=xr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[xr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:_,"flood-color":g,"flood-opacity":v})]),i[a]=o}t.filter=xv(o)}}function tR(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Q2(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(eN(a))i="radialGradient",o.cx=Re(a.x,.5),o.cy=Re(a.y,.5),o.r=Re(a.r,.5);else{process.env.NODE_ENV!=="production"&&Jn("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=o1(s[u].offset)*100+"%",d=s[u].color,p=Jf(d),v=p.color,g=p.opacity,m={offset:f};m["stop-color"]=v,g<1&&(m["stop-opacity"]=g),l.push(xr("stop",u+"",m))}var y=xr(i,"",o,l),_=uw(y),b=n.gradientCache,S=b[_];S||(S=n.zrId+"-g"+n.gradientIdx++,b[_]=S,o.id=S,n.defs[S]=xr(i,S,o,l)),t[r]=xv(S)}function rR(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(J2(a)){var d=a.imageWidth,p=a.imageHeight,v=void 0,g=a.image;if(he(g)?v=g:KO(g)?v=g.src:jO(g)&&(v=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ne(d,m),Ne(p,m)}else if(d==null||p==null){var y=function(E,A){if(E){var L=E.elm,N=d||A.width,I=p||A.height;E.tag==="pattern"&&(u?(I=1,N/=i.width):c&&(N=1,I/=i.height)),E.attrs.width=N,E.attrs.height=I,L&&(L.setAttribute("width",N),L.setAttribute("height",I))}},_=z1(v,null,e,function(E){l||y(w,E),y(f,E)});_&&_.width&&_.height&&(d=d||_.width,p=p||_.height)}f=xr("image","img",{href:v,width:d,height:p}),o.width=d,o.height=p}else a.svgElement&&(f=ke(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var b,S;l?b=S=1:u?(S=1,b=o.width/i.width):c?(b=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),S!=null&&!isNaN(S)&&(o.height=S);var x=nN(a);x&&(o.patternTransform=x);var w=xr("pattern","",o,[f]),C=uw(w),T=n.patternCache,D=T[C];D||(D=n.zrId+"-p"+n.patternIdx++,T[C]=D,o.id=D,w=n.defs[D]=xr("pattern",D,o,[f])),t[r]=xv(D)}}function Ile(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=xr("clipPath",i,o,[QO(e,r)])}t["clip-path"]=xv(i)}function nR(e){return document.createTextNode(e)}function Pl(e,t,r){e.insertBefore(t,r)}function aR(e,t){e.removeChild(t)}function iR(e,t){e.appendChild(t)}function oR(e){return e.parentNode}function sR(e){return e.nextSibling}function pw(e,t){e.textContent=t}var lR=58,Lle=120,kle=xr("","");function vw(e){return e===void 0}function Ei(e){return e!==void 0}function Ple(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Jh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Qh(e){var t,r=e.children,n=e.tag;if(Ei(n)){var a=e.elm=$O(n);if(gw(kle,e),J(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&iR(a,Qh(i))}else Ei(e.text)&&!Ee(e.text)&&iR(a,nR(e.text))}else e.elm=nR(e.text);return e.elm}function uR(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&Pl(e,Qh(i),t)}}function um(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(Ei(a.tag)){var i=oR(a.elm);aR(i,a.elm)}else aR(e,a.elm)}}function gw(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==Lle?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(dle,r,o):r.charCodeAt(3)===lR?n.setAttributeNS(ple,r,o):r.charCodeAt(5)===lR?n.setAttributeNS(FO,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Ole(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],c=r[l],f,d,p,v;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:c==null?c=r[--l]:Jh(o,u)?(xc(o,u),o=t[++n],u=r[++a]):Jh(s,c)?(xc(s,c),s=t[--i],c=r[--l]):Jh(o,c)?(xc(o,c),Pl(e,o.elm,sR(s.elm)),o=t[++n],c=r[--l]):Jh(s,u)?(xc(s,u),Pl(e,s.elm,o.elm),s=t[--i],u=r[++a]):(vw(f)&&(f=Ple(t,n,i)),d=f[u.key],vw(d)?Pl(e,Qh(u),o.elm):(p=t[d],p.tag!==u.tag?Pl(e,Qh(u),o.elm):(xc(p,u),t[d]=void 0,Pl(e,p.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(v=r[l+1]==null?null:r[l+1].elm,uR(e,v,r,a,l)):um(e,t,n,i))}function xc(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(gw(e,t),vw(t.text)?Ei(n)&&Ei(a)?n!==a&&Ole(r,n,a):Ei(a)?(Ei(e.text)&&pw(r,""),uR(r,null,a,0,a.length-1)):Ei(n)?um(r,n,0,n.length-1):Ei(e.text)&&pw(r,""):e.text!==t.text&&(Ei(n)&&um(r,n,0,n.length-1),pw(r,t.text)))}function Rle(e,t){if(Jh(e,t))xc(e,t);else{var r=e.elm,n=oR(r);Qh(t),n!==null&&(Pl(n,t.elm,sR(r)),um(n,[e],0,0))}return t}var Vle=0,Ble=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=cR("refreshHover"),this.configLayer=cR("configLayer"),this.storage=r,this._opts=n=j({},n),this.root=t,this._id="zr"+Vle++,this._oldVNode=HO(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=$O("svg");gw(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Rle(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return eR(t,cw(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=cw(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Fle(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=xr("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=ee(qe(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(xr("defs","defs",{},u)),t.animation){var c=mle(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=xr("style","stl",{},[],c);o.push(f)}}return HO(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},uw(this.renderToVNode({animation:Re(t.cssAnimation,!0),emphasis:Re(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Re(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(p-1,v-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var m=v-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y<p;y++){var _={};Ile(d[y],_,r);var b=xr("g","clip-g-"+u++,_,[]);(s?s.children:n).push(b),i[o++]=b,s=b}l=d;var S=eR(f,r);S&&(s?s.children:n).push(S)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=vc(a,0,n),r=vc(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(s1(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},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(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Nee(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function cR(e){return function(){process.env.NODE_ENV!=="production"&&Jn('In SVG mode painter not support method "'+e+'"')}}function Fle(e,t,r,n){var a;if(r&&r!=="none")if(a=xr("rect","bg",{width:e,height:t,x:"0",y:"0"}),tN(r))tR({fill:r},a.attrs,"fill",n);else if(s1(r))rR({style:{fill:r},dirty:Jt,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=Jf(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function zle(e){e.registerPainter("svg",Ble)}function fR(e,t,r){var n=Ia.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var mw=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||Nv,typeof r=="string"?o=fR(r,n,a):Ee(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(B_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return 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 r=this.dpr;this.domBack=fR("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new He(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var b=new He(0,0,0,0);b.copy(_),o.push(b)}else{for(var S=!1,x=1/0,w=0,C=0;C<o.length;++C){var T=o[C];if(T.intersect(_)){var D=new He(0,0,0,0);D.copy(T),D.union(_),o[C]=D,S=!0;break}else if(l){u.copy(_),u.union(T);var E=_.width*_.height,A=T.width*T.height,L=u.width*u.height,N=L-E-A;N<x&&(x=N,w=C)}}if(l&&(o[w].union(_),S=!0),!S){var b=new He(0,0,0,0);b.copy(_),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var p=d.shouldBePainted(a,i,!0,!0),v=d.__isRendered&&(d.__dirty&Rn||!p)?d.getPrevPaintRect():null;v&&c(v);var g=p&&(d.__dirty&Rn||!d.__isRendered)?d.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],p=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var m;do{m=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(m=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var p=this.domBack;function v(g,m,y,_){if(o.clearRect(g,m,y,_),n&&n!=="transparent"){var b=void 0;if(Lf(n)){var S=n.global||n.__width===y&&n.__height===_;b=S&&n.__canvasGradient||dS(o,n,{x:0,y:0,width:y,height:_}),n.__canvasGradient=b,n.__width=y,n.__height=_}else m2(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,b=vS(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(g,m,y,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,g,m,y,_),o.restore())}!a||u?v(0,0,s,l):a.length&&M(a,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},t}(ta),hR=1e5,Ol=314159,cm=.01,$le=.001;function Hle(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Gle(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Ule=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=j({},n||{}),this.dpr=n.devicePixelRatio||Nv,this._singleCanvas=i,this.root=t;var o=t.style;o&&(B_(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var p=new mw(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[Ol]=p,p.zlevel=Ol,s.push(Ol),this._domRoot=t}else{this._width=vc(t,0,n),this._height=vc(t,1,n);var u=this._domRoot=Gle(this._width,this._height);t.appendChild(u)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(hR)),i||(i=n.ctx,i.save()),Dl(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(hR)},e.prototype.paintOne=function(t,r){gS(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;dv(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Ol).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(g){var m=i[g],y=m.ctx,_=o&&m.createRepaintRects(t,r,p._width,p._height),b=n?m.__startIndex:m.__drawIndex,S=!n&&m.incremental&&Date.now,x=S&&Date.now(),w=m.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,w,_);else if(b===m.__startIndex){var C=t[b];(!C.incremental||!C.notClear||n)&&m.clear(!1,w,_)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=m.__startIndex);var T,D=function(N){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<m.__endIndex;T++){var k=t[T];if(k.__inHover&&(f=!0),a._doPaintEl(k,m,o,N,I,T===m.__endIndex-1),S){var P=Date.now()-x;if(P>15)break}}I.prevElClipPaths&&y.restore()};if(_)if(_.length===0)T=m.__endIndex;else for(var E=p.dpr,A=0;A<_.length;++A){var L=_[A];y.save(),y.beginPath(),y.rect(L.x*E,L.y*E,L.width*E,L.height*E),y.clip(),D(L),y.restore()}else y.save(),D(),y.restore();m.__drawIndex=T,m.__drawIndex<m.__endIndex&&(c=!1)},p=this,v=0;v<i.length;v++)d(v);return Xe.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Dl(s,t,i,o),t.setPrevPaintRect(l))}else Dl(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ol);var n=this._layers[t];return n||(n=new mw("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Fe(n,this._layerConfig[t],!0):this._layerConfig[t-cm]&&Fe(n,this._layerConfig[t-cm],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&Jn("ZLevel "+t+" has been used already");return}if(!Hle(r)){process.env.NODE_ENV!=="production"&&Jn("Layer of zlevel "+t+" is not valid");return}if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+$le,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?cm:0),this._needsManuallyCompositing),c.__builtin__||Jn("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&Rn&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Fe(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+cm){var o=this._layers[i];Fe(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(Ge(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=vc(i,0,a),r=vc(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Ol).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ol].dom;var r=new mw("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Dl(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Wle(e){e.registerPainter("canvas",Ule)}var Yle=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return wi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Oe,a=tr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=tr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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}(Et);function Cc(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=lc(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(lc(e,t,r[o]));return i.join(" ")}}function dR(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!J(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var ed=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=tr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Xle,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){no(this.childAt(0))},t.prototype.downplay=function(){ao(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):st(d,p,s,n),Fa(d)}if(this._updateCommon(r,n,l,a,i),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Vt(d,p,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,p,v,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,p=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,v=i.emphasisDisabled),!i||r.hasItemOption){var _=i&&i.itemModel?i.itemModel:r.getItemModel(n),b=_.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),p=b.get("blurScope"),v=b.get("disabled"),g=Sr(_),m=b.getShallow("scale"),y=_.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Cl(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var w=r.getItemVisual(n,"style"),C=w.fill;if(s instanceof br){var T=s.style;s.useStyle(j({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(j({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var A=o&&o.useNameLabel;Or(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:C,defaultOpacity:w.opacity});function L(k){return A?r.getName(k):Cc(r,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var N=s.ensureState("emphasis");N.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;N.scaleX=this._sizeX*I,N.scaleY=this._sizeY*I,this.setSymbolScale(1),Yt(this,d,p,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Zo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Zo(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return pc(r.getItemVisual(n,"symbolSize"))},t}(Oe);function Xle(e,t){this.parent.drift(e,t)}function yw(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function pR(e){return e!=null&&!Ee(e)&&(e={isIgnore:e}),e||{}}function vR(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Sr(t),cursorStyle:t.get("cursor")}}var td=function(){function e(t){this.group=new Oe,this._SymbolCtor=t||ed}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=pR(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=vR(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var d=c(f);if(yw(t,d,f,r)){var p=new o(t,f,l,u);p.setPosition(d),t.setItemGraphicEl(f,p),n.add(p)}}).update(function(f,d){var p=i.getItemGraphicEl(d),v=c(f);if(!yw(t,v,f,r)){n.remove(p);return}var g=t.getItemVisual(f,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==g)n.remove(p),p=new o(t,f,l,u),p.setPosition(v);else{p.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?p.attr(y):st(p,y,a)}n.add(p),t.setItemGraphicEl(f,p)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vR(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=pR(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(yw(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Jo(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function gR(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=Kle(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ee(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,p=t.getCalculationInfo("stackResultDimension");return lo(t,f[0])&&(d=!0,f[0]=p),lo(t,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Kle(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:ot(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function mR(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function jle(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function Zle(e,t,r,n,a,i,o,s){for(var l=jle(e,t),u=[],c=[],f=[],d=[],p=[],v=[],g=[],m=gR(a,t,o),y=e.getLayout("points")||[],_=t.getLayout("points")||[],b=0;b<l.length;b++){var S=l[b],x=!0,w=void 0,C=void 0;switch(S.cmd){case"=":w=S.idx*2,C=S.idx1*2;var T=y[w],D=y[w+1],E=_[C],A=_[C+1];(isNaN(T)||isNaN(D))&&(T=E,D=A),u.push(T,D),c.push(E,A),f.push(r[w],r[w+1]),d.push(n[C],n[C+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,N=m.dataDimsForPoint,I=a.dataToPoint([t.get(N[0],L),t.get(N[1],L)]);C=L*2,u.push(I[0],I[1]),c.push(_[C],_[C+1]);var k=mR(m,a,t,L);f.push(k[0],k[1]),d.push(n[C],n[C+1]),g.push(t.getRawIndex(L));break;case"-":x=!1}x&&(p.push(S),v.push(v.length))}v.sort(function(X,fe){return g[X]-g[fe]});for(var P=u.length,V=Ci(P),B=Ci(P),G=Ci(P),U=Ci(P),W=[],b=0;b<v.length;b++){var re=v[b],le=b*2,Y=re*2;V[le]=u[Y],V[le+1]=u[Y+1],B[le]=c[Y],B[le+1]=c[Y+1],G[le]=f[Y],G[le+1]=f[Y+1],U[le]=d[Y],U[le+1]=d[Y+1],W[b]=p[re]}return{current:V,next:B,stackedOnCurrent:G,stackedOnNext:U,status:W}}var os=Math.min,ss=Math.max;function Rl(e,t){return isNaN(e)||isNaN(t)}function _w(e,t,r,n,a,i,o,s,l){for(var u,c,f,d,p,v,g=r,m=0;m<n;m++){var y=t[g*2],_=t[g*2+1];if(g>=a||g<0)break;if(Rl(y,_)){if(l){g+=i;continue}break}if(g===r)e[i>0?"moveTo":"lineTo"](y,_),f=y,d=_;else{var b=y-u,S=_-c;if(b*b+S*S<.5){g+=i;continue}if(o>0){for(var x=g+i,w=t[x*2],C=t[x*2+1];w===y&&C===_&&m<n;)m++,x+=i,g+=i,w=t[x*2],C=t[x*2+1],y=t[g*2],_=t[g*2+1],b=y-u,S=_-c;var T=m+1;if(l)for(;Rl(w,C)&&T<n;)T++,x+=i,w=t[x*2],C=t[x*2+1];var D=.5,E=0,A=0,L=void 0,N=void 0;if(T>=n||Rl(w,C))p=y,v=_;else{E=w-u,A=C-c;var I=y-u,k=w-y,P=_-c,V=C-_,B=void 0,G=void 0;if(s==="x"){B=Math.abs(I),G=Math.abs(k);var U=E>0?1:-1;p=y-U*B*o,v=_,L=y+U*G*o,N=_}else if(s==="y"){B=Math.abs(P),G=Math.abs(V);var W=A>0?1:-1;p=y,v=_-W*B*o,L=y,N=_+W*G*o}else B=Math.sqrt(I*I+P*P),G=Math.sqrt(k*k+V*V),D=G/(G+B),p=y-E*o*(1-D),v=_-A*o*(1-D),L=y+E*o*D,N=_+A*o*D,L=os(L,ss(w,y)),N=os(N,ss(C,_)),L=ss(L,os(w,y)),N=ss(N,os(C,_)),E=L-y,A=N-_,p=y-E*B/G,v=_-A*B/G,p=os(p,ss(u,y)),v=os(v,ss(c,_)),p=ss(p,os(u,y)),v=ss(v,os(c,_)),E=y-p,A=_-v,L=y+E*G/B,N=_+A*G/B}e.bezierCurveTo(f,d,p,v,y,_),f=L,d=N}else e.lineTo(y,_)}u=y,c=_,g+=i}return m}var yR=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),qle=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yR},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Rl(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Rl(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=_w(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=mi.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(p=i[f++],v=i[f++],b=u?(r-s)/(p-s):(r-l)/(v-l),b<=1&&b>=0){var S=u?(v-l)*b+l:(p-s)*b+s;return u?[r,S]:[S,r]}s=p,l=v;break;case o.C:p=i[f++],v=i[f++],g=i[f++],m=i[f++],y=i[f++],_=i[f++];var x=u?mv(s,p,g,y,r,c):mv(l,v,m,_,r,c);if(x>0)for(var w=0;w<x;w++){var C=c[w];if(C<=1&&C>=0){var S=u?_r(l,v,m,_,C):_r(s,p,g,y,C);return u?[r,S]:[S,r]}}s=y,l=_;break}}},t}(Ze),Jle=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yR),_R=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new Jle},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Rl(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Rl(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=_w(r,a,o,s,s,1,n.smooth,l,n.connectNulls);_w(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Ze);function bR(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new et({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),v=d.inverse;p?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=Se(a)?function(m){a(m,f)}:null;Vt(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function SR(e,t,r){var n=e.getArea(),a=Kt(n.r0,1),i=Kt(n.r,1),o=new Kr({shape:{cx:Kt(e.cx,1),cy:Kt(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Vt(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function rd(e,t,r,n,a){if(e){if(e.type==="polar")return SR(e,t,r);if(e.type==="cartesian2d")return bR(e,t,r,n,a)}else return null;return null}function Vl(e,t){return e.type===t}function wR(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function xR(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function CR(e,t){var r=xR(e),n=r[0],a=r[1],i=xR(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function TR(e){return ot(e)?e:e?.5:0}function Qle(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ci(n*2),i=0;i<n;i++){var o=mR(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function ls(e,t,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(a){for(l=0;l<e.length;l+=2){var p=t||e;!isNaN(p[l])&&!isNaN(p[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var v=(c[o]+f[o])/2,g=[];u[o]=g[o]=v,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function eue(e,t){var r=[],n=e.length,a,i;function o(c,f,d){var p=c.coord,v=(d-p)/(f.coord-p),g=i1(v,[c.color,f.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function tue(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=ee(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=eue(u,a==="x"?r.getWidth():r.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=d[0].coord-v,m=d[p-1].coord+v,y=m-g;if(y<.001)return"transparent";M(d,function(b){b.offset=(b.coord-g)/y}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var _=new ju(0,0,0,0,d,!0);return _[a]=g,_[a+"2"]=m,_}}function rue(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&nue(i,t))){var o=t.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function nue(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(ed.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function aue(e,t){return isNaN(e)||isNaN(t)}function iue(e){for(var t=e.length/2;t>0&&aue(e[t*2-2],e[t*2-1]);t--);return t-1}function DR(e,t){return[e[t*2],e[t*2+1]]}function oue(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function ER(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<fn.length;t++)if(e.get([fn[t],"endLabel","show"]))return!0;return!1}function bw(e,t,r,n){if(Vl(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=ER(n)?function(p,v){e._endLabelOnDuring(p,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=bR(t,r,n,function(){var p=e._endLabel;p&&r&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),SR(t,r,n)}function sue(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var lue=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Oe,n=new td;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=ge(this._changePolyState,this)},t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",d=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),_=!u.isEmpty(),b=u.get("origin"),S=gR(i,s,b),x=_&&Qle(i,s,S),w=r.get("showSymbol"),C=r.get("connectNulls"),T=w&&!f&&rue(r,s,i),D=this._data;D&&D.eachItemGraphicEl(function(X,fe){X.__temp&&(o.remove(X),D.setItemGraphicEl(fe,null))}),w||p.remove(),o.add(m);var E=f?!1:r.get("step"),A;i&&i.getArea&&r.get("clip",!0)&&(A=i.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=tue(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===i.type&&E===this._step))w&&p.updateData(s,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(X){return[c[X*2],c[X*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,A),E&&(x&&(x=ls(x,c,i,E,C)),c=ls(c,null,i,E,C)),v=this._newPolyline(c),_?g=this._newPolygon(c,x):g&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,gl(L)),m.setClipPath(bw(this,i,!0,r));else{_&&!g?g=this._newPolygon(c,x):g&&!_&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,gl(L));var N=m.getClipPath();if(N){var I=bw(this,i,!1,r);Vt(N,{shape:I.shape},r)}else m.setClipPath(bw(this,i,!0,r));w&&p.updateData(s,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(X){return[c[X*2],c[X*2+1]]}}),(!wR(this._stackedOnPoints,x)||!wR(this._points,c))&&(y?this._doUpdateAnimation(s,x,i,a,E,b,C):(E&&(x&&(x=ls(x,c,i,E,C)),c=ls(c,null,i,E,C)),v.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}var k=r.getModel("emphasis"),P=k.get("focus"),V=k.get("blurScope"),B=k.get("disabled");if(v.useStyle(Me(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Pr(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=v.getState("emphasis").style;G.lineWidth=+v.style.lineWidth+1}Ve(v).seriesIndex=r.seriesIndex,Yt(v,P,V,B);var U=TR(r.get("smooth")),W=r.get("smoothMonotone");if(v.setShape({smooth:U,smoothMonotone:W,connectNulls:C}),g){var re=s.getCalculationInfo("stackedOnSeries"),le=0;g.useStyle(Me(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),re&&(le=TR(re.get("smooth"))),g.setShape({smooth:U,stackedOnSmooth:le,smoothMonotone:W,connectNulls:C}),Pr(g,r,"areaStyle"),Ve(g).seriesIndex=r.seriesIndex,Yt(g,P,V,B)}var Y=this._changePolyState;s.eachItemGraphicEl(function(X){X&&(X.onHoverStateChange=Y)}),this._polyline.onHoverStateChange=Y,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=c,this._step=E,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Zs(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,p=r.get("z")||0;u=new ed(o,s),u.x=c,u.y=f,u.setZ(d,p);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=p,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else yt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Zs(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else yt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;Zv(this._polyline,r),n&&Zv(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new qle({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new _R({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Se(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Se(f)?f(null):f;r.eachItemGraphicEl(function(p,v){var g=p;if(g){var m=[p.x,p.y],y=void 0,_=void 0,b=void 0;if(a)if(o){var S=a,x=n.pointToCoord(m);i?(y=S.startAngle,_=S.endAngle,b=-x[1]/180*Math.PI):(y=S.r0,_=S.r,b=x[0])}else{var w=a;i?(y=w.x,_=w.x+w.width,b=p.x):(y=w.y+w.height,_=w.y,b=p.y)}var C=_===y?0:(b-y)/(_-y);l&&(C=1-C);var T=Se(f)?f(v):c*C+d,D=g.getSymbolPath(),E=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(ER(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=iue(l);c>=0&&(Or(s,Sr(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?dR(o,p):Cc(o,f)},enableTextSetter:!0},sue(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,p=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),_=m.inverse,b=n.shape,S=_?y?b.x:b.y+b.height:y?b.x+b.width:b.y,x=(y?g:0)*(_?-1:1),w=(y?0:-g)*(_?-1:1),C=y?"x":"y",T=oue(f,S,C),D=T.range,E=D[1]-D[0],A=void 0;if(E>=1){if(E>1&&!p){var L=DR(f,D[0]);u.attr({x:L[0]+x,y:L[1]+w}),o&&(A=d.getRawValue(D[0]))}else{var L=c.getPointOn(S,C);L&&u.attr({x:L[0]+x,y:L[1]+w});var N=d.getRawValue(D[0]),I=d.getRawValue(D[1]);o&&(A=FN(a,v,N,I,T.t))}i.lastFrameIndex=D[0]}else{var k=r===1||i.lastFrameIndex>0?D[0]:0,L=DR(f,k);o&&(A=d.getRawValue(k)),u.attr({x:L[0]+x,y:L[1]+w})}if(o){var P=ec(u);typeof P.setLabelText=="function"&&P.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=Zle(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),p=d.current,v=d.stackedOnCurrent,g=d.next,m=d.stackedOnNext;if(o&&(v=ls(d.stackedOnCurrent,d.current,a,o,l),p=ls(d.current,null,a,o,l),m=ls(d.stackedOnNext,d.next,a,o,l),g=ls(d.next,null,a,o,l)),CR(p,g)>3e3||c&&CR(v,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:g}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),st(u,y,f),c&&(c.setShape({points:p,stackedOnPoints:v}),c.stopAnimation(),st(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],b=d.status,S=0;S<b.length;S++){var x=b[S].cmd;if(x==="="){var w=r.getItemGraphicEl(b[S].idx1);w&&_.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;T<_.length;T++){var D=_[T].el,E=_[T].ptIdx*2;D.x=C[E],D.y=C[E+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(yt);function nd(e,t){return{seriesType:e,plan:fc(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=ee(a.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");lo(n,s[0])&&(s[0]=u),lo(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(p,v){for(var g=p.end-p.start,m=o&&Ci(g*l),y=[],_=[],b=p.start,S=0;b<p.end;b++){var x=void 0;if(l===1){var w=c.get(f,b);x=a.dataToPoint(w,null,_)}else y[0]=c.get(f,b),y[1]=c.get(d,b),x=a.dataToPoint(y,null,_);o?(m[S++]=x[0],m[S++]=x[1]):v.setItemLayout(b,x.slice())}o&&v.setLayout("points",m)}}}}}}var uue={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},cue=function(e){return Math.round(e.length/2)};function AR(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/p)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/p));var v=void 0;he(i)?v=uue[i]:Se(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/p,v,cue))}}}}}function fue(e){e.registerChartView(lue),e.registerSeriesModel(Yle),e.registerLayout(nd("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,AR("line"))}var ad=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return wi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(d,p){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),m=o[p],y=n[p]==="x1"||n[p]==="y1";if(y&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var _=void 0,b=void 0,S=1,x=0;x<v.length;x++){var w=v[x].coord,C=x===v.length-1?v[x-1].tickValue+S:v[x].tickValue;if(C===m){b=w;break}else if(C<m)_=w;else if(_!=null&&C>m){b=(w+_)/2;break}x===1&&(S=C-v[0].tickValue)}b==null&&(_?_&&(b=v[v.length-1].coord):b=v[0].coord),s[p]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}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}(Et);Et.registerClass(ad);var hue=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return wi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Qo(ad.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}(ad),due=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),fm=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new due},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,p=Math.PI*2,v=d?f-c<p:c-f<p;v||(c=f-(d?p:-p));var g=Math.cos(c),m=Math.sin(c),y=Math.cos(f),_=Math.sin(f);v?(r.moveTo(g*o+a,m*o+i),r.arc(g*u+a,m*u+i,l,-Math.PI+c,c,!d)):r.moveTo(g*s+a,m*s+i),r.arc(a,i,s,c,f,!d),r.arc(y*u+a,_*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(a,i,o,f,c,d)},t}(Ze);function pue(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Lv(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,p=u.r0,v=(d+p)/2,g=u.startAngle,m=u.endAngle,y=(g+m)/2,_=r?Math.abs(d-p)/2:0,b=Math.cos,S=Math.sin,x=c+d*b(g),w=f+d*S(g),C="left",T="top";switch(s){case"startArc":x=c+(p-l)*b(y),w=f+(p-l)*S(y),C="center",T="top";break;case"insideStartArc":x=c+(p+l)*b(y),w=f+(p+l)*S(y),C="center",T="bottom";break;case"startAngle":x=c+v*b(g)+hm(g,l+_,!1),w=f+v*S(g)+dm(g,l+_,!1),C="right",T="middle";break;case"insideStartAngle":x=c+v*b(g)+hm(g,-l+_,!1),w=f+v*S(g)+dm(g,-l+_,!1),C="left",T="middle";break;case"middle":x=c+v*b(y),w=f+v*S(y),C="center",T="middle";break;case"endArc":x=c+(d+l)*b(y),w=f+(d+l)*S(y),C="center",T="bottom";break;case"insideEndArc":x=c+(d-l)*b(y),w=f+(d-l)*S(y),C="center",T="top";break;case"endAngle":x=c+v*b(m)+hm(m,l+_,!0),w=f+v*S(m)+dm(m,l+_,!0),C="left",T="middle";break;case"insideEndAngle":x=c+v*b(m)+hm(m,-l+_,!0),w=f+v*S(m)+dm(m,-l+_,!0),C="right",T="middle";break;default:return Lv(n,a,i)}return n=n||{},n.x=x,n.y=w,n.align=C,n.verticalAlign=T,n}}function vue(e,t,r,n){if(ot(n)){e.setTextConfig({rotation:n});return}else if(J(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function hm(e,t,r){return t*Math.sin(e)*(r?-1:1)}function dm(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Bl(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;J(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:ee(n,function(i){return Ra(i,a)})}}var Sw=Math.max,ww=Math.min;function gue(e,t){var r=e.getArea&&e.getArea();if(Vl(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var mue=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i)):process.env.NODE_ENV!=="production"&&Wt("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Jo(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,p=yue(r,u);p&&this._enableRealtimeSort(p,s,a);var v=r.get("clip",!0)||p,g=gue(u,s);o.removeClipPath();var m=r.get("roundCap",!0),y=r.get("showBackground",!0),_=r.getModel("backgroundStyle"),b=_.get("borderRadius")||0,S=[],x=this._backgroundEls,w=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(A){var L=pm[u.type](s,A),N=Tue(u,f,L);return N.useStyle(_.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",b):N.setShape("cornerRadius",b),S[A]=N,N}s.diff(l).add(function(A){var L=s.getItemModel(A),N=pm[u.type](s,A,L);if(y&&T(A),!(!s.hasValue(A)||!kR[u.type](N))){var I=!1;v&&(I=MR[u.type](g,N));var k=NR[u.type](r,s,A,N,f,d,c.model,!1,m);p&&(k.forceLabelAnimation=!0),OR(k,s,A,L,N,r,f,u.type==="polar"),w?k.attr({shape:N}):p?IR(p,d,k,N,A,f,!1,!1):Vt(k,{shape:N},r,A),s.setItemGraphicEl(A,k),o.add(k),k.ignore=I}}).update(function(A,L){var N=s.getItemModel(A),I=pm[u.type](s,A,N);if(y){var k=void 0;x.length===0?k=T(L):(k=x[L],k.useStyle(_.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",b):k.setShape("cornerRadius",b),S[A]=k);var P=pm[u.type](s,A),V=FR(f,P,u);st(k,{shape:V},d,A)}var B=l.getItemGraphicEl(L);if(!s.hasValue(A)||!kR[u.type](I)){o.remove(B);return}var G=!1;if(v&&(G=MR[u.type](g,I),G&&o.remove(B)),B?Fa(B):B=NR[u.type](r,s,A,I,f,d,c.model,!!B,m),p&&(B.forceLabelAnimation=!0),C){var U=B.getTextContent();if(U){var W=ec(U);W.prevValue!=null&&(W.prevValue=W.value)}}else OR(B,s,A,N,I,r,f,u.type==="polar");w?B.attr({shape:I}):p?IR(p,d,B,I,A,f,!0,C):st(B,{shape:I},r,A,null),s.setItemGraphicEl(A,B),B.ignore=G,o.add(B)}).remove(function(A){var L=l.getItemGraphicEl(A);L&&bh(L,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Oe);D.removeAll();for(var E=0;E<S.length;++E)D.add(S[E]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),VR(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),VR(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&rd(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ee(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){bh(i,r,Ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(yt),MR={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Sw(t.x,e.x),s=ww(t.x+t.width,a),l=Sw(t.y,e.y),u=ww(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=ww(t.r,e.r),i=Sw(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},NR={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new et({shape:j({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?fm:Kr,c=new u({shape:n,z2:1});c.name="item";var f=PR(a);if(c.calculateTextPosition=pue(f,{isRoundCap:u===fm}),i){var d=c.shape,p=a?"r":"endAngle",v={};d[p]=a?n.r0:n.startAngle,v[p]=n[p],(s?st:Vt)(c,{shape:v},i)}return c}};function yue(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Wt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Wt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function IR(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?st:Vt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?st:Vt)(r,{shape:u},c,a)}function LR(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var _ue=["x","y","width","height"],bue=["cx","cy","r","startAngle","endAngle"],kR={cartesian2d:function(e){return!LR(e,_ue)},polar:function(e){return!LR(e,bue)}},pm={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?wue(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Sue(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function PR(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function OR(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Bl(n.getModel("itemStyle"),c,!0);j(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var p=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Sr(n);Or(e,v,{labelFetcher:i,labelDataIndex:r,defaultText:Cc(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,vue(e,m==="outside"?p:m,PR(o),n.get(["label","rotate"]))}oL(g,v,i.getRawValue(r),function(_){return dR(t,_)});var y=n.getModel(["emphasis"]);Yt(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Pr(e,n),Sue(a)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function wue(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var xue=function(){function e(){}return e}(),RR=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new xue},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(Ze);function VR(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new RR({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new RR({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,Ve(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",BR),f.on("mousemove",BR)),r&&r.push(f)}var BR=Mg(function(e){var t=this,r=Cue(t,e.offsetX,e.offsetY);Ve(t).dataIndex=r>=0?r:null},30,!1);function Cue(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function FR(e,t,r){if(Vl(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function Tue(e,t,r){var n=e.type==="polar"?Kr:et;return new n({shape:FR(t,r,e),silent:!0,z2:0})}function Due(e){e.registerChartView(mue),e.registerSeriesModel(hue),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Be(rO,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nO("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,AR("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var zR=Math.PI*2,vm=Math.PI/180;function $R(e,t){return lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function HR(e,t){var r=$R(e,t),n=e.get("center"),a=e.get("radius");J(a)||(a=[0,a]);var i=ue(r.width,t.getWidth()),o=ue(r.height,t.getHeight()),s=Math.min(i,o),l=ue(a[0],s/2),u=ue(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var p=d.dataToPoint(n);c=p[0]||0,f=p[1]||0}else J(n)||(n=[n,n]),c=ue(n[0],i)+r.x,f=ue(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Eue(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=$R(n,r),s=HR(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*vm,p=n.get("endAngle"),v=n.get("padAngle")*vm;p=p==="auto"?d-zR:-p*vm;var g=n.get("minAngle")*vm,m=g+v,y=0;a.each(i,function(V){!isNaN(V)&&y++});var _=a.getSum(i),b=Math.PI/(_||y)*2,S=n.get("clockwise"),x=n.get("roseType"),w=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[d,p],E=T*v/2;Q1(D,!S),d=D[0],p=D[1];var A=GR(n);A.startAngle=d,A.endAngle=p,A.clockwise=S;var L=Math.abs(p-d),N=L,I=0,k=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(V,B){var G;if(isNaN(V)){a.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?G=_===0&&w?b:V*b:G=L/y,G<m?(G=m,N-=m):I+=V;var U=k+T*G,W=0,re=0;v>G?(W=k+T*G/2,re=W):(W=k+E,re=U-E),a.setItemLayout(B,{angle:G,startAngle:W,endAngle:re,clockwise:S,cx:l,cy:u,r0:f,r:x?pt(V,C,[f,c]):c}),k=U}),N<zR&&y)if(N<=.001){var P=L/y;a.each(i,function(V,B){if(!isNaN(V)){var G=a.getItemLayout(B);G.angle=P;var U=0,W=0;P<v?(U=d+T*(B+1/2)*P,W=U):(U=d+T*B*P+E,W=d+T*(B+1)*P-E),G.startAngle=U,G.endAngle=W}})}else b=N/I,k=d,a.each(i,function(V,B){if(!isNaN(V)){var G=a.getItemLayout(B),U=G.angle===m?m:V*b,W=0,re=0;U<v?(W=k+T*U/2,re=W):(W=k+E,re=k+T*U-E),G.startAngle=W,G.endAngle=re,k+=T*U}})})}var GR=at();function id(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Aue=Math.PI/180;function UR(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(g){for(var m=g.rB,y=m*m,_=0;_<g.list.length;_++){var b=g.list[_],S=Math.abs(b.label.y-r),x=n+b.len,w=x*x,C=Math.sqrt(Math.abs((1-S*S/y)*w)),T=t+(C+b.len2)*a,D=T-b.label.x,E=b.targetTextWidth-D*a;WR(b,E,!0),b.label.x=T}}function f(g){for(var m={list:[],maxY:0},y={list:[],maxY:0},_=0;_<g.length;_++)if(g[_].labelAlignTo==="none"){var b=g[_],S=b.label.y>r?y:m,x=Math.abs(b.label.y-r);if(x>=S.maxY){var w=b.label.x-t-b.len2*a,C=n+b.len,T=Math.abs(w)<C?Math.sqrt(x*x/(1-w*w/C/C)):C;S.rB=T,S.maxY=x}S.list.push(b)}c(m),c(y)}for(var d=e.length,p=0;p<d;p++)if(e[p].position==="outer"&&e[p].labelAlignTo==="labelLine"){var v=e[p].label.x-u;e[p].linePoints[1][0]+=v,e[p].label.x=u}kO(e,l,l+o)&&f(e)}function Mue(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;xw(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(f=Math.max(f,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!xw(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var p=v.label,g=v.linePoints,m=void 0;v.labelAlignTo==="edge"?p.x<t?m=g[2][0]-v.labelDistance-o-v.edgeDistance:m=o+a-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?p.x<t?m=c-o-v.bleedMargin:m=o+a-f-v.bleedMargin:p.x<t?m=p.x-o-v.bleedMargin:m=o+a-p.x-v.bleedMargin,v.targetTextWidth=m,WR(v,m)}}UR(u,t,r,n,1,a,i,o,s,f),UR(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!xw(v)&&v.linePoints){var p=v.label,g=v.linePoints,y=v.labelAlignTo==="edge",_=p.style.padding,b=_?_[1]+_[3]:0,S=p.style.backgroundColor?0:b,x=v.rect.width+S,w=g[1][0]-g[2][0];y?p.x<t?g[2][0]=o+v.edgeDistance+x+v.labelDistance:g[2][0]=o+a-v.edgeDistance-x-v.labelDistance:(p.x<t?g[2][0]=p.x+v.labelDistance:g[2][0]=p.x-v.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function WR(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var p=t-l,v=t<c?p:r?p>e.unconstrainedWidth?null:p:null;n.setStyle("width",v)}var g=n.getBoundingRect();i.width=g.width;var m=(n.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-f)/2}}}function xw(e){return e.position==="center"}function Nue(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Aue,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}t.each(function(w){var C=t.getItemGraphicEl(w),T=C.shape,D=C.getTextContent(),E=C.getTextGuideLine(),A=t.getItemModel(w),L=A.getModel("label"),N=L.get("position")||A.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),k=L.get("alignTo"),P=ue(L.get("edgeDistance"),u),V=L.get("bleedMargin"),B=A.getModel("labelLine"),G=B.get("length");G=ue(G,u);var U=B.get("length2");if(U=ue(U,u),Math.abs(T.endAngle-T.startAngle)<o){M(D.states,p),D.ignore=!0,E&&(M(E.states,p),E.ignore=!0);return}if(v(D)){var W=(T.startAngle+T.endAngle)/2,re=Math.cos(W),le=Math.sin(W),Y,X,fe,we;n=T.cx,a=T.cy;var de=N==="inside"||N==="inner";if(N==="center")Y=T.cx,X=T.cy,we="center";else{var pe=(de?(T.r+T.r0)/2*re:T.r*re)+n,Ae=(de?(T.r+T.r0)/2*le:T.r*le)+a;if(Y=pe+re*3,X=Ae+le*3,!de){var me=pe+re*(G+l-T.r),Ce=Ae+le*(G+l-T.r),Qe=me+(re<0?-1:1)*U,Ke=Ce;k==="edge"?Y=re<0?c+P:c+u-P:Y=Qe+(re<0?-I:I),X=Ke,fe=[[pe,Ae],[me,Ce],[Qe,Ke]]}we=de?"center":k==="edge"?re>0?"right":"left":re>0?"left":"right"}var Ye=Math.PI,lt=0,_t=L.get("rotate");if(ot(_t))lt=_t*(Ye/180);else if(N==="center")lt=0;else if(_t==="radial"||_t===!0){var O=re<0?-W+Ye:-W;lt=O}else if(_t==="tangential"&&N!=="outside"&&N!=="outer"){var z=Math.atan2(re,le);z<0&&(z=Ye*2+z);var oe=le>0;oe&&(z=Ye+z),lt=z-Ye}if(i=!!lt,D.x=Y,D.y=X,D.rotation=lt,D.setStyle({verticalAlign:"middle"}),de){D.setStyle({align:we});var At=D.states.select;At&&(At.x+=D.x,At.y+=D.y)}else{var be=D.getBoundingRect().clone();be.applyTransform(D.getComputedTransform());var St=(D.style.margin||0)+2.1;be.y-=St/2,be.height+=St,r.push({label:D,labelLine:E,position:N,len:G,len2:U,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new $e(re,le),linePoints:fe,textAlign:we,labelDistance:I,labelAlignTo:k,edgeDistance:P,bleedMargin:V,rect:be,unconstrainedWidth:be.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:de})}}),!i&&e.get("avoidLabelOverlap")&&Mue(r,n,a,l,u,d,c,f);for(var g=0;g<r.length;g++){var m=r[g],y=m.label,_=m.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),b&&(M(y.states,p),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(_){var x=m.linePoints;b||!x?(M(_.states,p),_.ignore=!0):(NO(x,m.minTurnAngle),Qse(x,m.surfaceNormal,m.maxSurfaceAngle),_.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new $e(x[0][0],x[0][1])})}}}var Iue=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new tt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=j(Bl(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Vt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Vt(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Vt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,st(o,{shape:{endAngle:c.endAngle}},s,n))}else Fa(o),st(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),Pr(o,l);var p=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(p)*v,m=Math.sin(p)*v,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=j({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Bl(u.getModel("itemStyle"),c)),j(o.ensureState("select"),{x:g,y:m,shape:Bl(l.getModel(["select","itemStyle"]),c)}),j(o.ensureState("blur"),{shape:Bl(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),b=o.getTextContent();_&&j(_.ensureState("select"),{x:g,y:m}),j(b.ensureState("select"),{x:g,y:m}),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Or(i,Sr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Zr,this.setTextGuideLine(p)),tw(this,rw(o),{stroke:u,opacity:On(s.get(["lineStyle","opacity"]),c,1)})}},t}(Kr),Lue=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=GR(r),p=new Kr({shape:j(HR(r,a),d)});p.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(v){var g=new Iue(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var m=s.getItemGraphicEl(g);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var g=s.getItemGraphicEl(v);bh(g,r,v)}).execute(),Nue(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(yt);function Tc(e,t,r){t=J(t)&&{coordDimensions:t}||j({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=_c(n,t).dimensions,i=new tn(a,e);return i.initData(n,r),i}var od=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),kue=at(),Pue=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new od(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Tc(this,{coordDimensions:["value"],encodeDefaulter:Be(Gb,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=kue(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=CN(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.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}(Et);function Oue(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ot(o)&&!isNaN(o)&&o<0)})}}}function Rue(e){e.registerChartView(Lue),e.registerSeriesModel(Pue),Kk("pie",e.registerAction),e.registerLayout(Be(Eue,"pie")),e.registerProcessor(id("pie")),e.registerProcessor(Oue("pie"))}var Vue=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return wi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Et),YR=4,Bue=function(){function e(){}return e}(),Fue=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Bue},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<YR,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],p=a[f++];isNaN(d)||isNaN(p)||c&&!c.contain(d,p)||(s.x=d-i[0]/2,s.y=p-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var p=a[d++],v=a[d++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new He(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(Ze),zue=function(){function e(){this.group=new Oe}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Fue({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=tr(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<YR;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Ve(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),$ue=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=nd("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new zue:new td,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(yt),Hue=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return 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}(Ue),Cw=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sr).models[0]},t.type="cartesian2dAxis",t}(Ue);qt(Cw,wc);var XR={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,showMinLine:!0,showMaxLine:!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)"]}}},Gue=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XR),Tw=Fe({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}}},XR),Uue=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Tw),Wue=Me({logBase:10},Tw);const KR={category:Gue,value:Tw,time:Uue,log:Wue};var Yue={value:1,category:1,time:1,log:1};function Dc(e,t,r,n){M(Yue,function(a,i){var o=Fe(Fe({},KR[i],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Ah(this),p=d?ic(c):{},v=f.getTheme();Fe(c,v.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=jR(c),d&&es(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=HS.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",jR)}function jR(e){return e.type||(e.data?"category":"value")}var Xue=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return ee(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ct(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Dw=["x","y"];function ZR(e){return e.type==="interval"||e.type==="time"}var Kue=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Dw,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ZR(r)||!ZR(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,p=o[1]-i[0]*f,v=this._transform=[c,0,0,f,d,p];this._invTransform=zs([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new He(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ar(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Ar(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new He(i,o,s,l)},t}(Xue),jue=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(va);function Ew(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,v=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(g,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Qt(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function qR(e){return e.get("coordinateSystem")==="cartesian2d"}function JR(e){var t={xAxisModel:null,yAxisModel:null};return M(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,sr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+On(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=i}),t}var Aw=Math.log;function QR(e,t,r){var n=uo.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=cO(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Aw(e.base);u=[Aw(u[0])/d,Aw(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var p=n.getExtent.call(e);c&&(u[0]=p[0]),f&&(u[1]=p[1]);var v=n.getInterval.call(e),g=u[0],m=u[1];if(c&&f)v=(m-g)/o;else if(c)for(m=u[0]+v*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=US(v),m=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=US(v),g=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=US(v));var _=v*o;m=Math.ceil(u[1]/v)*v,g=Kt(m-_),g<0&&u[0]>=0?(g=0,m=Kt(_)):m>0&&u[1]<=0&&(m=0,g=-Kt(_))}var b=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(e,g+v*b,m+v*S),n.setInterval.call(e,v),(b||S)&&n.setNiceExtent.call(e,g+v,m-v),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!Yoe(v)||Pv(x[1].value)>Pv(v))&&Wt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var Zue=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dw,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=qe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=o[d],v=p.model,g=p.scale;GS(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(p):(Ml(g,v),GS(g)&&(s=p))}c.length&&(s||(s=c.pop(),Ml(s.scale,s.model)),M(c,function(m){QR(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){eV(n,"y",o,i)}),M(n.y,function(o){eV(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=lr(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=gse(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),que(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Ee(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",sr).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",sr).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Ge(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(c,f){M(s.y,function(d,p){var v="x"+f+"y"+p,g=new Kue(v);g.master=a,g.model=t,a._coordsMap[v]=g,a._coordsList.push(g),g.addAxis(c),g.addAxis(d)})});function u(c){return function(f,d){if(Mw(f,t)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var v=new jue(c,Kh(f),[0,0],f.get("type"),p),g=v.type==="category";v.onBand=g&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){M(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(qR(a)){var i=JR(a),o=i.xAxisModel,s=i.yAxisModel;if(!Mw(o,r)||!Mw(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){M(nm(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return M(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Ge(r,i)<0&&r.push(i),Ge(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(qR(a)){var i=JR(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+On(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Dw,e}();function Mw(e,t){return e.getCoordSysModel()===t}function eV(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)tV(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&tV(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function tV(e){return e&&e.type!=="category"&&e.type!=="time"&&vse(e)}function que(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}var us=Math.PI,vn=function(){function e(t,r){this.group=new Oe,this.opt=r,this.axisModel=t,Me(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Oe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!rV[t]},e.prototype.add=function(t){rV[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=L1(r-t),i,o;return Bu(a)?(o=n>0?"top":"bottom",i="center"):Bu(a-us)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<us?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),rV={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ar(s,s,o),Ar(l,l,o));var c=j({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new dr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Ju(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var p=t.get(["axisLine","symbolSize"]);he(d)&&(d=[d,d]),(he(p)||ot(p))&&(p=[p,p]);var v=Cl(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];M([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,_){if(d[_]!=="none"&&d[_]!=null){var b=tr(d[_],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,x=u?l:s;b.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var a=ece(r,n,t,e),i=rce(r,n,t,e);if(Que(t,i,a),tce(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=IO(ee(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));PO(o)}},axisName:function(e,t,r,n){var a=Qt(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,aV(i)?e.labelOffset+o*l:0],d,p=t.get("nameRotate");p!=null&&(p=p*us/180);var v;aV(i)?d=vn.innerTextLayout(e.rotation,p??e.rotation,o):(d=Jue(e.rotation,i,p||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,_=Qt(e.nameTruncateMaxWidth,m.maxWidth,v),b=new tt({x:f[0],y:f[1],rotation:d.rotation,silent:vn.isLabelSilent(t),style:Nt(s,{text:a,font:g,overflow:"truncate",width:_,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(dl({el:b,componentModel:t,itemName:a}),b.__fullText=a,b.anid="name",t.get("triggerEvent")){var S=vn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,Ve(b).eventData=S}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function Jue(e,t,r,n){var a=L1(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Bu(a-us/2)?(o=l?"bottom":"top",i="center"):Bu(a-us*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<us*1.5&&a>us/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Que(e,t,r){if(!fO(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(ga(i),ga(u)):nV(i,o)&&(n?(ga(o),ga(c)):(ga(i),ga(u))),a===!1?(ga(s),ga(f)):nV(l,s)&&(a?(ga(l),ga(d)):(ga(s),ga(f)))}}function ga(e){e&&(e.ignore=!0)}function nV(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=Ff([]);return Bo(a,a,-e.rotation),r.applyTransform(ui([],a,e.getLocalTransform())),n.applyTransform(ui([],a,t.getLocalTransform())),r.intersect(n)}}function aV(e){return e==="middle"||e==="center"}function iV(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Ar(o,o,t),Ar(s,s,t));var c=new dr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ju(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function ece(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=iV(u,t.transform,l,Me(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function tce(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=Me(s.getLineStyle(),Me(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=iV(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function rce(e,t,r,n){var a=r.axis,i=Qt(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Qt(n.labelRotate,o.get("rotate"))||0)*us/180,c=vn.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],p=vn.isLabelSilent(r),v=r.get("triggerEvent");return M(l,function(g,m){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,_=g.formattedLabel,b=g.rawLabel,S=o;if(f&&f[y]){var x=f[y];Ee(x)&&x.textStyle&&(S=new ft(x.textStyle,o,r.ecModel))}var w=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(y),T=S.getShallow("align",!0)||c.textAlign,D=Re(S.getShallow("alignMinLabel",!0),T),E=Re(S.getShallow("alignMaxLabel",!0),T),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,L=Re(S.getShallow("verticalAlignMinLabel",!0),A),N=Re(S.getShallow("verticalAlignMaxLabel",!0),A),I=new tt({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(g.level||0),style:Nt(S,{text:_,align:m===0?D:m===l.length-1?E:T,verticalAlign:m===0?L:m===l.length-1?N:A,fill:Se(w)?w(a.type==="category"?b:a.type==="value"?y+"":y,m):w})});if(I.anid="label_"+y,dl({el:I,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:b,tickIndex:m}}),v){var k=vn.makeAxisEventDataBase(r);k.targetType="axisLabel",k.value=b,k.tickIndex=m,a.type==="category"&&(k.dataIndex=y),Ve(I).eventData=k}t.add(I),I.updateTransform(),d.push(I),e.add(I),I.decomposeTransform()}),d}}function nce(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ace(r,e,t),r.seriesInvolved&&oce(r,e),r}function ace(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=sd(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(M(s.getAxes(),Be(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&M(v.baseAxes,Be(g,p?"cross":!0,d)),p&&M(v.otherAxes,Be(g,"cross",!1))}function g(m,y,_){var b=_.model.getModel("axisPointer",a),S=b.get("show");if(!(!S||S==="auto"&&!m&&!Lw(b))){y==null&&(y=b.get("triggerTooltip")),b=m?ice(_,f,a,t,m,y):b;var x=b.get("snap"),w=b.get("triggerEmphasis"),C=sd(_.model),T=y||x||_.type==="category",D=e.axesInfo[C]={key:C,axis:_,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:x,useHandle:Lw(b),seriesModels:[],linkGroup:null};u[C]=D,e.seriesInvolved=e.seriesInvolved||T;var E=sce(i,_);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[C]=D,A.mapper=i[E].mapper,D.linkGroup=A}}}})}function ice(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(d){l[d]=ke(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&Me(u,f.textStyle)}}return e.model.getModel("axisPointer",new ft(l,r,n))}function oce(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||M(e.coordSysAxesInfo[sd(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function sce(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(Nw(i[n+"AxisId"],r.id)||Nw(i[n+"AxisIndex"],r.componentIndex)||Nw(i[n+"AxisName"],r.name))return a}}function Nw(e,t){return e==="all"||J(e)&&Ge(e,t)>=0||e===t}function lce(e){var t=Iw(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Lw(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Iw(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[sd(e)]}function uce(e){var t=Iw(e);return t&&t.axisPointerModel}function Lw(e){return!!e.get(["handle","show"])}function sd(e){return e.type+"||"+e.id}var kw={},Fl=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&lce(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=uce(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&kw[r])throw new Error("axisPointer "+r+" exists");kw[r]=n},t.getAxisPointerClass=function(r){return r&&kw[r]},t.type="axis",t}(kt),Pw=at();function oV(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=Pw(e).splitAreaColors,d=_e(),p=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){p=(g+(c-1)*v)%c;break}}var m=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=J(s)?s:[s];for(var v=1;v<u.length;v++){var _=a.toGlobalCoord(u[v].coord),b=void 0,S=void 0,x=void 0,w=void 0;a.isHorizontal()?(b=m,S=l.y,x=_-b,w=l.height,m=b+x):(b=l.x,S=m,x=l.width,w=_-S,m=S+w);var C=u[v-1].tickValue;C!=null&&d.set(C,p),t.add(new et({anid:C!=null?"area_"+C:null,shape:{x:b,y:S,width:x,height:w},style:Me({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}Pw(e).splitAreaColors=d}}}function sV(e){Pw(e).splitAreaColors=null}var cce=["axisLine","axisTickLabel","axisName"],fce=["splitArea","splitLine","minorSplitLine"],lV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Ew(s,r),u=new vn(r,j({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(GS(d[p].getOtherAxis(r.axis).scale))return!0;return!1}},l));M(cce,u.add,u),this._axisGroup.add(u.getGroup()),M(fce,function(f){r.get([f,"show"])&&hce[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||wh(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){sV(this)},t.type="cartesianAxis",t}(Fl),hce={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=J(s)?s:[s];for(var c=n.coordinateSystem.getRect(),f=a.isHorizontal(),d=0,p=a.getTicksCoords({tickModel:i}),v=[],g=[],m=o.getLineStyle(),y=0;y<p.length;y++){var _=a.toGlobalCoord(p[y].coord);if(!(y===0&&!l||y===p.length-1&&!u)){var b=p[y].tickValue;f?(v[0]=_,v[1]=c.y,g[0]=_,g[1]=c.y+c.height):(v[0]=c.x,v[1]=_,g[0]=c.x+c.width,g[1]=_);var S=d++%s.length,x=new dr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:Me({stroke:s[S]},m),silent:!0});Ju(x.shape,m.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),p=0;p<u.length;p++)for(var v=0;v<u[p].length;v++){var g=a.toGlobalCoord(u[p][v].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var m=new dr({anid:"minor_line_"+u[p][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Ju(m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,r,n){oV(e,t,r,n)}},uV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(lV),dce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=uV.type,r}return t.type="yAxis",t}(lV),pce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new et({shape:r.coordinateSystem.getRect(),style:Me({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(kt),cV={offset:0};function fV(e){e.registerComponentView(pce),e.registerComponentModel(Hue),e.registerCoordinateSystem("cartesian2d",Zue),Dc(e,"x",Cw,cV),Dc(e,"y",Cw,cV),e.registerComponentView(uV),e.registerComponentView(dce),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function vce(e){We(fV),e.registerSeriesModel(Vue),e.registerChartView($ue),e.registerLayout(nd("scatter"))}function gce(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();M(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=hV(c)?c:dV(a)})}),r.each(function(o){var s=g2(n[o],function(l){return hV(l)})||dV(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function hV(e){return!isNaN(e[0])&&!isNaN(e[1])}function dV(e){return[e.cx,e.cy]}function mce(e){var t=e.polar;if(t){J(t)||(t=[t]);var r=[];M(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],J(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}M(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var yce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,p){var v=d.getItemVisual(p,"symbol")||"circle";if(v!=="none"){var g=pc(d.getItemVisual(p,"symbolSize")),m=tr(v,-1,-1,2,2),y=d.getItemVisual(p,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),m}}function c(d,p,v,g,m,y){v.removeAll();for(var _=0;_<p.length-1;_++){var b=u(g,m);b&&(b.__dimIdx=_,d[_]?(b.setPosition(d[_]),pl[y?"initProps":"updateProps"](b,{x:p[_][0],y:p[_][1]},r,m)):b.setPosition(p[_]),v.add(b))}}function f(d){return ee(d,function(p){return[i.cx,i.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var v=new jr,g=new Zr,m={shape:{points:p}};v.shape.points=f(p),g.shape.points=f(p),Vt(v,m,r,d),Vt(g,m,r,d);var y=new Oe,_=new Oe;y.add(g),y.add(v),y.add(_),c(g.shape.points,p,_,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,p){var v=l.getItemGraphicEl(p),g=v.childAt(0),m=v.childAt(1),y=v.childAt(2),_={shape:{points:s.getItemLayout(d)}};_.shape.points&&(c(g.shape.points,_.shape.points,y,s,d,!1),Fa(m),Fa(g),st(g,_,r),st(m,_,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var v=s.getItemModel(p),g=d.childAt(0),m=d.childAt(1),y=d.childAt(2),_=s.getItemVisual(p,"style"),b=_.fill;o.add(d),g.useStyle(Me(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Pr(g,v,"lineStyle"),Pr(m,v,"areaStyle");var S=v.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();m.ignore=x,M(["emphasis","select","blur"],function(T){var D=v.getModel([T,"areaStyle"]),E=D.isEmpty()&&D.parentModel.isEmpty();m.ensureState(T).ignore=E&&x}),m.useStyle(Me(S.getAreaStyle(),{fill:b,opacity:.7,decal:_.decal}));var w=v.getModel("emphasis"),C=w.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof br){var D=T.style;T.useStyle(j({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},_))}else T.useStyle(_),T.setColor(b),T.style.strokeNoScale=!0;var E=T.ensureState("emphasis");E.style=ke(C);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),p);(A==null||isNaN(A))&&(A=""),Or(T,Sr(v),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:b,defaultOpacity:_.opacity})}),Yt(d,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(yt),_ce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new od(ge(this.getData,this),ge(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return Tc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=Ck(this,r);return wr("section",{header:u,sortBlocks:!0,blocks:ee(s,function(f){var d=i.get(i.mapDimension(f.dim),r);return wr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(ee(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Et),ld=KR.value;function gm(e,t){return Me({show:t},e)}var bce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),p=ee(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Me({color:v.color},l));var m=Fe(ke(v),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(he(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else Se(c)&&(m.name=c(m.name,m));var _=new ft(m,null,this.ecModel);return qt(_,wc.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_},this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},ld.axisLine),axisLabel:gm(ld.axisLabel,!1),axisTick:gm(ld.axisTick,!1),splitLine:gm(ld.splitLine,!0),splitArea:gm(ld.splitArea,!0),indicator:[]},t}(Ue),Sce=["axisLine","axisTickLabel","axisName"],wce=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=ee(a,function(o){var s=o.model.get("showName")?o.name:"",l=new vn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(Sce,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),p=u.get("color"),v=J(d)?d:[d],g=J(p)?p:[p],m=[],y=[];function _(k,P,V){var B=V%P.length;return k[B]=k[B]||[],B}if(i==="circle")for(var b=a[0].getTicksCoords(),S=n.cx,x=n.cy,w=0;w<b.length;w++){if(c){var C=_(m,v,w);m[C].push(new yi({shape:{cx:S,cy:x,r:b[w].coord}}))}if(f&&w<b.length-1){var C=_(y,g,w);y[C].push(new Xu({shape:{cx:S,cy:x,r0:b[w].coord,r:b[w+1].coord}}))}}else for(var T,D=ee(a,function(k,P){var V=k.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),ee(V,function(B){return n.coordToPoint(B.coord,P)})}),E=[],w=0;w<=T;w++){for(var A=[],L=0;L<a.length;L++)A.push(D[L][w]);if(A[0]?A.push(A[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+w),c){var C=_(m,v,w);m[C].push(new Zr({shape:{points:A}}))}if(f&&E){var C=_(y,g,w-1);y[C].push(new jr({shape:{points:A.concat(E)}}))}E=A.slice().reverse()}var N=l.getLineStyle(),I=u.getAreaStyle();M(y,function(k,P){this.group.add($n(k,{style:Me({stroke:"none",fill:g[P%g.length]},I),silent:!0}))},this),M(m,function(k,P){this.group.add($n(k,{style:Me({fill:"none",stroke:v[P%v.length]},N),silent:!0}))},this)},t.type="radar",t}(kt),xce=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(va),Cce=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=ee(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new xce(o,new uo);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=ue(n[0],a),this.cy=ue(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(he(s)||ot(s))&&(s=[0,s]),this.r0=ue(s[0],o),this.r=ue(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();M(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new uo;o.setExtent(0,i),o.setInterval(1),M(n,function(s,l){QR(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},e.dimensions=[],e}();function Tce(e){e.registerCoordinateSystem("radar",Cce),e.registerComponentModel(bce),e.registerComponentView(wce),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function Dce(e){We(Tce),e.registerChartView(yce),e.registerSeriesModel(_ce),e.registerLayout(gce),e.registerProcessor(id("radar")),e.registerPreprocessor(mce)}var pV="\0_ec_interaction_mutex";function Ece(e,t,r){var n=Ow(e);n[t]=r}function Ace(e,t,r){var n=Ow(e),a=n[t];a===r&&(n[t]=null)}function vV(e,t){return!!Ow(e)[t]}function Ow(e){return e[pV]||(e[pV]={})}Ha({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Jt);var ud=function(e){H(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=ge(n._mousedownHandler,n),i=ge(n._mousemoveHandler,n),o=ge(n._mouseupHandler,n),s=ge(n._mousewheelHandler,n),l=ge(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Me(ke(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!E2(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!mm("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||vV(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&qi(r.event),gV(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){E2(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=mm("zoomOnMouseWheel",r,this._opt),a=mm("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Rw(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Rw(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!vV(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Rw(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(ta);function Rw(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(qi(n.event),gV(e,t,r,n,a))}function gV(e,t,r,n,a){a.isAvailableBehavior=ge(mm,null,r,n),e.trigger(t,a)}function mm(e,t,r){var n=r[e];return!e||n&&(!he(n)||t.event[n+"Key"])}function Vw(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function Bw(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var Mce={axisPointer:1,tooltip:1,brush:1};function ym(e,t,r){var n=t.getComponentByElement(e.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!Mce.hasOwnProperty(n.mainType)&&a&&a.model!==r}function mV(e){if(he(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var Fw,_m={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"},yV=qe(_m),bm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_V=qe(bm),Nce=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=mV(t);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Gn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;kce(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Sm(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=EV(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var p=a;a=new Oe,a.add(p),p.scaleX=p.scaleY=f.scale,p.x=f.x,p.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new et({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=Fw[s];if(c&&ye(Fw,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var p=bV[s];if(p&&ye(bV,s)){var v=p.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new $u({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),Ice(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Fw={g:function(t,r){var n=new Oe;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new et;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new yi;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new dr;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new gh;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=xV(n));var i=new jr({shape:{points:a||[]},silent:!0});return ma(r,i),Gn(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=xV(n));var i=new Zr({shape:{points:a||[]},silent:!0});return ma(r,i),Gn(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new br;return ma(r,n),Gn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return ma(r,s),Gn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Oe;return ma(r,s),Gn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=FI(n);return ma(r,a),Gn(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),bV={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new ju(t,r,n,a);return SV(e,i),wV(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new mb(t,r,n);return SV(e,a),wV(e,a),a}};function SV(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function wV(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};DV(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function ma(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Me(t.__inheritedStyle,e.__inheritedStyle))}function xV(e){for(var t=Sm(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function Gn(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(Rce(e,t),DV(e,o,s),n||Vce(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=CV(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=CV(i,"stroke",o.stroke,r)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=ee(Sm(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Ice(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var Lce=/^url\(\s*#(.*?)\)/;function CV(e,t,r,n){var a=r&&r.match(Lce);if(a){var i=ea(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function kce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Pce=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sm(e){return e.match(Pce)||[]}var Oce=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,zw=Math.PI/180;function Rce(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(Oce,function(f,d,p){return n.push(d,p),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Sm(o);switch(a=a||xn(),s){case"translate":La(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":uv(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Bo(a,a,-parseFloat(l[0])*zw,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zw);ui(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zw);ui(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var TV=/([^\s:;]+)\s*:\s*([^:;]+)/g;function DV(e,t,r){var n=e.getAttribute("style");if(n){TV.lastIndex=0;for(var a;(a=TV.exec(n))!=null;){var i=a[1],o=ye(_m,i)?_m[i]:null;o&&(t[o]=a[2]);var s=ye(bm,i)?bm[i]:null;s&&(r[s]=a[2])}}}function Vce(e,t,r){for(var n=0;n<yV.length;n++){var a=yV[n],i=e.getAttribute(a);i!=null&&(t[_m[a]]=i)}for(var n=0;n<_V.length;n++){var a=_V[n],i=e.getAttribute(a);i!=null&&(r[bm[a]]=i)}}function EV(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function Bce(e,t){var r=new Nce;return r.parse(e,t)}var Fce=_e(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),zce=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=_e(),this._freedGraphics=[],this._mapName=t,this._parsedXML=mV(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=Hce(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&Bce(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Ne(n!=null)}catch(m){throw new Error(`Invalid svg format
94
+ `+m.message)}var a=new Oe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var p=n.getBoundingRect();u==null&&(u=p.x,f=p.width),c==null&&(c=p.y,d=p.height)}l=this._boundingRect=new He(u,c,f,d)}if(s){var v=EV(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}a.setClipPath(new et({shape:l.plain()}));var g=[];return M(r.named,function(m){Fce.get(m.svgNodeTagLower)!=null&&(g.push(m),$ce(m.el))}),{root:a,boundingRect:l,named:g}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function $ce(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function Hce(e){var t=[],r=_e();return M(e,function(n){if(n.namedFrom==null){var a=new Ase(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}for(var $w=[126,25],AV="南海诸岛",zl=[[[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]]],$l=0;$l<zl.length;$l++)for(var Ec=0;Ec<zl[$l].length;Ec++)zl[$l][Ec][0]/=10.5,zl[$l][Ec][1]/=-10.5/.75,zl[$l][Ec][0]+=$w[0],zl[$l][Ec][1]+=$w[1];function Gce(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===AV)return;t.push(new mO(AV,ee(zl,function(n){return{type:"polygon",exterior:n}}),$w))}}var Uce={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Wce(e,t){if(e==="china"){var r=Uce[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var Yce=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Xce(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Yce[0]})}var Kce="name",jce=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=_e(),this._mapName=t,this._specialAreas=n,this._geoJSON=qce(r)}return e.prototype.load=function(t,r){r=r||Kce;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:Zce(a)})}var i=_e(),o=[];return M(n.regions,function(s){var l=s.name;t&&ye(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new He(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?QS(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
95
+ `+i.message)}return Gce(r,a),M(a,function(i){var o=i.name;Wce(r,i),Xce(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Zce(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function qce(e){return he(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var cd=_e();const co={registerMap:function(e,t,r){if(t.svg){var n=new zce(e,t.svg);cd.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new jce(e,a,r);cd.set(e,n)}},getGeoResource:function(e){return cd.get(e)},getMapForUser:function(e){var t=cd.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=cd.get(e);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+e+" not exists. The GeoJSON of the map must be provided.");return}return n.load(t,r)}};var Hw=["rect","circle","line","ellipse","polygon","polyline","path"],Jce=_e(Hw),Qce=_e(Hw.concat(["g"])),efe=_e(Hw.concat(["g"])),MV=at();function wm(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function NV(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var IV=function(){function e(t){var r=new Oe;this.uid=tc("ec_map_draw"),this._controller=new ud(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Oe),r.add(this._svgGroup=new Oe)}return e.prototype.draw=function(t,r,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,p=f.roam,v=!u.childAt(0)||i;v?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):st(c,p,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=_e(),n=_e(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(p,v){return v&&(p=v(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function f(p){for(var v=[],g=!u&&l&&l.project,m=0;m<p.length;++m){var y=c(p[m],g);y&&v.push(y)}return v}function d(p){return{shape:{points:f(p)}}}a.removeAll(),M(t.geo.regions,function(p){var v=p.name,g=r.get(v),m=n.get(v)||{},y=m.dataIdx,_=m.regionModel;if(!g){g=r.set(v,new Oe),a.add(g),y=s?s.indexOfName(v):null,_=t.isGeo?o.getRegionModel(v):s?s.getItemModel(y):null;var b=_.get("silent",!0);b!=null&&(g.silent=b),n.set(v,{dataIdx:y,regionModel:_})}var S=[],x=[];M(p.geometries,function(T){if(T.type==="polygon"){var D=[T.exterior].concat(T.interiors||[]);u&&(D=VV(D,u)),M(D,function(A){S.push(new jr(d(A)))})}else{var E=T.points;u&&(E=VV(E,u,!0)),M(E,function(A){x.push(new Zr(d(A)))})}});var w=c(p.getCenter(),l&&l.project);function C(T,D){if(T.length){var E=new eg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});g.add(E),LV(t,E,y,_),kV(t,E,v,_,o,y,w),D&&(NV(E),M(E.states,NV))}}C(S),C(x,!0)}),r.each(function(p,v){var g=n.get(v),m=g.dataIdx,y=g.regionModel;PV(t,p,v,y,o,m),OV(t,p,v,y,o),RV(t,p,v,y,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=_e(),i=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);Jce.get(c)!=null&&f instanceof oa&&LV(t,f,d,p),f instanceof oa&&(f.culling=!0);var v=p.get("silent",!0);if(v!=null&&(f.silent=v),f.z2EmphasisLift=0,!o.namedFrom&&(efe.get(c)!=null&&kV(t,f,s,p,l,d,null),PV(t,f,s,p,l,d),OV(t,f,s,p,l),Qce.get(c)!=null)){var g=RV(t,f,s,p,l);g==="self"&&(i=!0);var m=a.get(s)||a.set(s,[]);m.push(f)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ll(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.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(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=co.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=co.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Vw(o,u.dx,u.dy),n.dispatchAction(j(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Bw(o,u.scale,u.originX,u.originY),n.dispatchAction(j(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!ym(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=MV(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function LV(e,t,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=wm(a),u=wm(i),c=wm(s),f=wm(o),d=e.data;if(d){var p=d.getItemVisual(r,"style"),v=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),v&&(l.decal=gc(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,ll(t)}function kV(e,t,r,n,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?r:i,d=void 0;(!s||i>=0)&&(d=a);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Or(t,Sr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},p);var v=t.getTextContent();if(v&&(MV(v).ignore=v.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function PV(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):Ve(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function OV(e,t,r,n,a){e.data||dl({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function RV(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Yt(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&Ore(t,a,r),o}function VV(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),M(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var tfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new IV(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},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(r,n,a){var i=r.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new yi({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Gu+1)});if(!f){var p=r.mainSeries.getData(),v=i.getName(l),g=p.indexOfName(v),m=i.getItemModel(l),y=m.getModel("label"),_=p.getItemGraphicEl(g);Or(d,Sr(m),{labelFetcher:{getFormattedLabel:function(b,S){return r.getFormattedLabel(g,S)}},defaultText:v}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),_.onHoverStateChange=function(b){Zv(d,b)}}o.add(d)}}})},t.type="map",t}(yt),rfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=Tc(this,{coordDimensions:["value"],encodeDefaulter:Be(Gb,this)}),a=_e(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=co.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(c){var f=c.name,d=a.get(f),p=c.properties&&c.properties.echartsStyle,v;d==null?(v={name:f},i.push(v)):v=n.getRawDataItem(d),p&&Fe(v,p)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return wr("section",{header:u.join(", "),noHeader:!u.length,blocks:[wr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=tr(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},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}(Et);function nfe(e,t){var r={};return M(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c<u;c++)s=Math.min(s,r[i][c]),l=Math.max(l,r[i][c]),o+=r[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function afe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(t[a]=t[a]||[]).push(r)}),M(t,function(r,n){for(var a=nfe(ee(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function ife(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var a={};M(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var p=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=p+1,l.setItemLayout(c,{point:v,offset:p})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var BV=Ar,fd=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Qi,n._rawTransformable=new Qi,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new He(r,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new He(r,n,a,i)},t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new He(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[ue(r[0],n.getWidth()),ue(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},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 r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ar([],i,r),a=Ar([],a,r),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),lv(this.transform||(this.transform=[]),n.transform||xn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],zs(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new Qi;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?BV(a,r,i):Wr(a,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?BV([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,a){var i=FV(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=FV(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Qi);function FV(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var ofe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zV=["lng","lat"],Gw=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r)||this;i.dimensions=zV,i.type="geo",i._nameCoordMap=_e(),i.map=n;var o=a.projection,s=co.load(n,a.nameMap,a.nameProperty),l=co.getGeoResource(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,f=ofe[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Wt("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Wt("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var d;if(o)for(var p=0;p<c.length;p++){var v=c[p].getBoundingRect(o);d=d||v.clone(),d.union(v)}else d=s.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=o?1:Re(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new He(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(he(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,a){return e.prototype.dataToPoint.call(this,r,n,a)},t.prototype.convertToPixel=function(r,n,a){var i=$V(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=$V(n);return i===this?i.pointToData(a):null},t}(fd);qt(Gw,fd);function $V(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",sr).models[0]||{}).coordinateSystem:null}function HV(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(w,C,T,D){for(var E=T-w,A=D-C,L=0;L<=100;L++){var N=L/100,I=i.project([w+E*N,C+A*N]);ji(n,n,I),Zi(a,a,I)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),p=e.get("layoutSize"),v=t.getWidth(),g=t.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,_,b;d&&p&&(_=[ue(d[0],v),ue(d[1],g)],b=ue(p,Math.min(v,g)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(b)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},m>1?(S.width=b,S.height=b/m):(S.height=b,S.width=b*m),S.y=_[1]-S.height/2,S.x=_[0]-S.width/2;else{var x=e.getBoxLayoutParams();x.aspect=m,S=lr(x,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function sfe(e,t){M(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var lfe=function(){function e(){this.dimensions=zV}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Gw(l+s,l,j({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=HV,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=ee(o,function(c){return c.get("nameMap")}),u=new Gw(s,s,j({nameMap:nv(l)},a(o[0])));u.zoomLimit=Qt.apply(null,ee(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=HV,u.resize(o[0],r),M(o,function(c){c.coordinateSystem=u,sfe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=_e(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=co.load(r,n,a);return M(l.regions,function(u){var c=u.name,f=o.get(c),d=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),d&&Fe(f,d)}),i},e}(),GV=new lfe,ufe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=co.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),js(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=GV.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Qn(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new ft(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},_e()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new ft(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(Se(i))return o.status=n,i(o);if(he(i))return i.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},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}(Ue);function UV(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function Uw(e,t,r,n){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(UV(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(UV(e,s),n),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var cfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new IV(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype._handleRegionClick=function(r){var n;xl(r.target,function(a){return(n=Ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Ve(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(kt);function ffe(e,t,r){co.registerMap(e,t,r)}function WV(e){e.registerCoordinateSystem("geo",GV),e.registerComponentModel(ufe),e.registerComponentView(cfe),e.registerImpl("registerMap",ffe),e.registerImpl("getMap",function(r){return co.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;M(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];M(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}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(r,n,a){var i=r.componentType||"series";n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Uw(s,r,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function hfe(e){We(WV),e.registerChartView(tfe),e.registerSeriesModel(rfe),e.registerLayout(ife),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,afe),Kk("map",e.registerAction)}function dfe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function pfe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){mfe(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=yfe(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function vfe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function YV(e){return arguments.length?e:Sfe}function hd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function gfe(e,t){return lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mfe(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function yfe(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Ww(s),i=Yw(i),s&&i;){a=Ww(a),o=Yw(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);d>0&&(bfe(_fe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!Ww(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!Yw(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=e)}return r}function Ww(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Yw(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function _fe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function bfe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Sfe(e,t){return e.parentNode===t.parentNode?1:2}var wfe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),xfe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wfe},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ue(n.forkPosition,1),p=[];p[c]=o[c],p[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(p[0],p[1]),r.moveTo(s[0],s[1]),p[c]=s[c],r.lineTo(p[0],p[1]),p[c]=l[c],r.lineTo(p[0],p[1]),r.lineTo(l[0],l[1]);for(var v=1;v<i-1;v++){var g=a[v];r.moveTo(g[0],g[1]),p[c]=g[c],r.lineTo(p[0],p[1])}},t}(Ze),Cfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Oe,r}return t.prototype.init=function(r,n){this._controller=new ud(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,a),this._updateController(r,n,a);var u=this._data;i.diff(u).add(function(c){XV(i,c)&&KV(i,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!XV(i,c)){d&&qV(u,f,d,s,r);return}KV(i,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&qV(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];Uv(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new fd;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!ym(u,a,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Vw(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Bw(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(r),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(yt);function XV(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function KV(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),p=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();i?(r=new ed(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=g.rawX,r.__radialRawY=g.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,st(r,{x:g.x,y:g.y},a);var m=r.getSymbolPath();if(a.get("layout")==="radial"){var y=c.children[0],_=y.getLayout(),b=y.children.length,S=void 0,x=void 0;if(g.x===_.x&&o.isExpand===!0&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[b-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[b-1].getLayout().y)/2};S=Math.atan2(w.y-_.y,w.x-_.x),S<0&&(S=Math.PI*2+S),x=w.x<_.x,x&&(S=S-Math.PI)}else S=Math.atan2(g.y-_.y,g.x-_.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=g.x<_.x,x&&(S=S-Math.PI)):(x=g.x>_.x,x||(S=S-Math.PI));var C=x?"left":"right",T=s.getModel("label"),D=T.get("rotate"),E=D*(Math.PI/180),A=m.getTextContent();A&&(m.setTextConfig({position:T.get("position")||C,rotation:D==null?-S:E,origin:"center"}),A.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),N=L==="relative"?Au(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;N&&(Ve(r).focus=N),Tfe(a,o,c,r,v,p,g,n),r.__edge&&(r.onHoverStateChange=function(I){if(I!=="blur"){var k=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===fh||Zv(r.__edge,I)}})}function Tfe(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new Ku({shape:Xw(c,f,d,a,a)})),st(g,{shape:Xw(c,f,d,i,o)},e));else if(u==="polyline"){if(c==="orthogonal"){if(t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],_=0;_<m.length;_++){var b=m[_].getLayout();y.push([b.x,b.y])}g||(g=n.__edge=new xfe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:p}})),st(g,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(Me({strokeNoScale:!0,fill:null},v)),Pr(g,l,"lineStyle"),ll(g),s.add(g))}function jV(e,t,r,n,a){var i=t.tree.root,o=ZV(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),p=n.get("edgeShape"),v=n.get("layout"),g=n.get("orient"),m=n.get(["lineStyle","curveness"]);d&&(p==="curve"?Zo(d,{shape:Xw(v,g,m,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:a}):p==="polyline"&&n.get("layout")==="orthogonal"&&Zo(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:a}))}}function ZV(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function qV(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=ZV(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Zo(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){jV(u,e,n,a,l)}),jV(i,e,n,a,l)}function Xw(e,t,r,n,a){var i,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=a.rawX,d=a.rawY;var p=hd(u,f),v=hd(u,f+(d-f)*r),g=hd(c,d+(f-d)*r),m=hd(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=n.x,f=n.y,c=a.x,d=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(i=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var ya=at();function JV(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,QV(t,r,e),M(r,function(n){M(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Be(Dfe,e))})}),t.wrapMethod("cloneShallow",Be(Afe,e)),M(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Be(Efe,e))}),Ne(r[t.dataType]===t)}function Dfe(e,t){if(Ife(this)){var r=j({},ya(this).datas);r[this.dataType]=t,QV(t,r,e)}else Kw(t,this.dataType,ya(this).mainData,e);return t}function Efe(e,t){return e.struct&&e.struct.update(),t}function Afe(e,t){return M(ya(t).datas,function(r,n){r!==t&&Kw(r.cloneShallow(),n,t,e)}),t}function Mfe(e){var t=ya(this).mainData;return e==null||t==null?t:ya(t).datas[e]}function Nfe(){var e=ya(this).mainData;return e==null?[{data:e}]:ee(qe(ya(e).datas),function(t){return{type:t,data:ya(e).datas[t]}})}function Ife(e){return ya(e).mainData===e}function QV(e,t,r){ya(e).datas={},M(t,function(n,a){Kw(n,a,e,r)})}function Kw(e,t,r,n){ya(r).datas[t]=e,ya(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=Mfe,e.getLinkedDataAll=Nfe}var Lfe=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Se(t)&&(n=r,r=t,t=null),t=t||{},he(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),jw=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,J(d)?d.length:1),i.push(c);var p=new Lfe(hr(c.name,""),a);f?kfe(p,f):a.root=p,a._nodes.push(p);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],p)}a.root.updateDepthAndHeight(0);var l=_c(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new tn(l,r);return u.initData(i),n&&n(u),JV({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function kfe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function dd(e,t,r){if(e&&Ge(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(he(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function eB(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function Zw(e,t){var r=eB(e);return Ge(r,t)>=0}function xm(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var Pfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new ft(a,this,this.ecModel),o=jw.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var v=o.getNodeByDataIndex(p);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return wr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=xm(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Et);function Ofe(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function pd(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function Rfe(e,t){e.eachSeriesByType("tree",function(r){Vfe(r,t)})}function Vfe(e,t){var r=gfe(e,t);e.layoutInfo=r;var n=e.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=YV(function(b,S){return(b.parentNode===S.parentNode?1:2)/b.depth})):(a=r.width,i=r.height,o=YV());var s=e.getData().tree.root,l=s.children[0];if(l){dfe(s),Ofe(l,pfe,o),s.hierNode.modifier=-l.hierNode.prelim,pd(l,vfe);var u=l,c=l,f=l;pd(l,function(b){var S=b.getLayout().x;S<u.getLayout().x&&(u=b),S>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,p=d-u.getLayout().x,v=0,g=0,m=0,y=0;if(n==="radial")v=a/(c.getLayout().x+d+p),g=i/(f.depth-1||1),pd(l,function(b){m=(b.getLayout().x+p)*v,y=(b.depth-1)*g;var S=hd(m,y);b.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var _=e.getOrient();_==="RL"||_==="LR"?(g=i/(c.getLayout().x+d+p),v=a/(f.depth-1||1),pd(l,function(b){y=(b.getLayout().x+p)*g,m=_==="LR"?(b.depth-1)*v:a-(b.depth-1)*v,b.setLayout({x:m,y},!0)})):(_==="TB"||_==="BT")&&(v=a/(c.getLayout().x+d+p),g=i/(f.depth-1||1),pd(l,function(b){m=(b.getLayout().x+p)*v,y=_==="TB"?(b.depth-1)*g:i-(b.depth-1)*g,b.setLayout({x:m,y},!0)}))}}}function Bfe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");j(s,o)})})}function Ffe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=Uw(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function zfe(e){e.registerChartView(Cfe),e.registerSeriesModel(Pfe),e.registerLayout(Rfe),e.registerVisual(Bfe),Ffe(e)}var tB=["treemapZoomToNode","treemapRender","treemapMove"];function $fe(e){for(var t=0;t<tB.length;t++)e.registerAction({type:tB[t],update:"updateView"},Jt);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=dd(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=Zw(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function rB(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=Xb(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var Hfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};nB(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new ft({itemStyle:o},this,n);i=r.levels=Gfe(i,n);var l=ee(i||[],function(f){return new ft(f,s,n)},this),u=jw.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,p){var v=u.getNodeByDataIndex(p),g=v?l[v.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return wr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=xm(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},j(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=_e(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){rB(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Et);function nB(e){var t=0;M(e.children,function(n){nB(n);var a=n.value;J(a)&&(a=a[0]),t+=a});var r=e.value;J(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),J(e.value)?e.value[0]=r:e.value=r}function Gfe(e,t){var r=Dt(t.get("color")),n=Dt(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;M(e,function(s){var l=new ft(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}var Ufe=8,aB=8,qw=5,Wfe=function(){function e(t){this.group=new Oe,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,a),bg(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=hr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Ufe*2,r.emptyItemWidth);r.totalWidth+=s+aB,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=One(r.pos,r.box),d=r.totalWidth,p=r.renderList,v=a.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var m=p[g],y=m.node,_=m.width,b=m.text;d>f.width&&(d-=_-u,_=u,b=null);var S=new jr({shape:{points:Yfe(l,0,_,c,g===p.length-1,g===0)},style:Me(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new tt({style:Nt(i,{text:b})}),textConfig:{position:"inside"},z2:Gu*1e4,onclick:Be(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Nt(o,{text:b}),S.ensureState("emphasis").style=v,Yt(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Xfe(S,t,y),l+=_+aB}},e.prototype.remove=function(){this.group.removeAll()},e}();function Yfe(e,t,r,n,a,i){var o=[[a?e:e-qw,t],[e+r,t],[e+r,t+n],[a?e:e-qw,t+n]];return!i&&o.splice(2,0,[e+r+qw,t+n/2]),!a&&o.push([e,t+n/2]),o}function Xfe(e,t,r){Ve(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&xm(r,t)}}var Kfe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function jfe(){return new Kfe}var Jw=Oe,iB=et,oB=3,sB="label",lB="upperLabel",Zfe=Gu*10,qfe=Gu*2,Jfe=Gu*3,Hl=Js([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),uB=function(e){var t=Hl(e);return t.stroke=t.fill=t.lineWidth=null,t},Cm=at(),Qfe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=vd(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ge(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=dd(i,s,r),u=i&&i.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,p=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(c),g=r.get("animation"),m=this._doRender(v,r,p);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,m,r,p):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new Jw,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=vd(),l=vd(),u=this._storage,c=[];function f(_,b,S,x){return ehe(n,l,u,a,s,c,_,b,S,x)}g(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var d=m(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,v=i.root.getLayout();v.width===p.width&&v.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:y};function g(_,b,S,x,w){x?(b=_,M(_,function(D,E){!D.isRemoved()&&T(E,E)})):new so(b,_,C,C).add(T).update(T).remove(Be(T,null)).execute();function C(D){return D.getId()}function T(D,E){var A=D!=null?_[D]:null,L=E!=null?b[E]:null,N=f(A,L,S,w);N&&g(A&&A.viewChildren||[],L&&L.viewChildren||[],N,x,w+1)}}function m(_){var b=vd();return _&&M(_,function(S,x){var w=b[x];M(S,function(C){C&&(w.push(C),Cm(C).willDelete=!0)})}),b}function y(){M(d,function(_){M(_,function(b){b.parent&&b.parent.remove(b)})}),M(c,function(_){_.invisible=!0,_.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Se(o)?0:o)||0,u=(Se(s)?null:s)||"cubicOut",c=jfe();M(n.willDeleteEls,function(f,d){M(f,function(p,v){if(!p.invisible){var g=p.parent,m,y=Cm(g);if(i&&i.direction==="drillDown")m=g===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,b=0;y.willDelete||(_=y.nodeWidth/2,b=y.nodeHeight/2),m=d==="nodeGroup"?{x:_,y:b,style:{opacity:0}}:{shape:{x:_,y:b,width:0,height:0},style:{opacity:0}}}m&&c.add(p,m,l,0,u)}})}),M(this._storage,function(f,d){M(f,function(p,v){var g=n.lastsForAnimation[d][v],m={};g&&(p instanceof Oe?g.oldX!=null&&(m.x=p.x,m.y=p.y,p.x=g.oldX,p.y=g.oldY):(g.oldShape&&(m.shape=j({},p.shape),p.setShape(g.oldShape)),g.fadein?(p.setStyle("opacity",0),m.style={opacity:1}):p.style.opacity!==1&&(m.style={opacity:1})),c.add(p,m,l,0,u))})},this),this._state="animating",c.finished(ge(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),n||(n=this._controller=new ud(r.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",ge(this._onPan,this)),n.on("zoom",ge(this._onZoom,this)));var i=new He(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return i.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>oB||Math.abs(r.dy)>oB)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY,i=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new He(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,p=u.max||1/0;f=Math.max(Math.min(p,f),d)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,a-=g.y;var m=xn();La(m,m,[-n,-a]),uv(m,m,[v,v]),La(m,m,[n,a]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&yg(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Wfe(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(Zw(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=vd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(yt);function vd(){return{nodeGroup:[],background:[],content:[]}}function ehe(e,t,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var p=c.width,v=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),_=s&&s.getRawIndex(),b=o.viewChildren,S=c.upperHeight,x=b&&b.length,w=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),D=d.getModel(["select","itemStyle"]),E=w.get("borderRadius")||0,A=X("nodeGroup",Jw);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),Cm(A).nodeWidth=p,Cm(A).nodeHeight=v,c.isAboveViewRoot)return A;var L=X("background",iB,u,qfe);L&&U(A,L,x&&c.upperLabelHeight);var N=d.getModel("emphasis"),I=N.get("focus"),k=N.get("blurScope"),P=N.get("disabled"),V=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(x)jo(A)&&ul(A,!1),L&&(ul(L,!P),f.setItemGraphicEl(o.dataIndex,L),fb(L,V,k));else{var B=X("content",iB,u,Jfe);B&&W(A,B),L.disableMorphing=!0,L&&jo(L)&&ul(L,!1),ul(A,!P),f.setItemGraphicEl(o.dataIndex,A);var G=d.getShallow("cursor");G&&B.attr("cursor",G),fb(A,V,k)}return A;function U(de,pe,Ae){var me=Ve(pe);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,pe.setShape({x:0,y:0,width:p,height:v,r:E}),m)re(pe);else{pe.invisible=!1;var Ce=o.getVisual("style"),Qe=Ce.stroke,Ke=uB(w);Ke.fill=Qe;var Ye=Hl(C);Ye.fill=C.get("borderColor");var lt=Hl(T);lt.fill=T.get("borderColor");var _t=Hl(D);if(_t.fill=D.get("borderColor"),Ae){var O=p-2*g;le(pe,Qe,Ce.opacity,{x:g,y:0,width:O,height:S})}else pe.removeTextContent();pe.setStyle(Ke),pe.ensureState("emphasis").style=Ye,pe.ensureState("blur").style=lt,pe.ensureState("select").style=_t,ll(pe)}de.add(pe)}function W(de,pe){var Ae=Ve(pe);Ae.dataIndex=o.dataIndex,Ae.seriesIndex=e.seriesIndex;var me=Math.max(p-2*g,0),Ce=Math.max(v-2*g,0);if(pe.culling=!0,pe.setShape({x:g,y:g,width:me,height:Ce,r:E}),m)re(pe);else{pe.invisible=!1;var Qe=o.getVisual("style"),Ke=Qe.fill,Ye=uB(w);Ye.fill=Ke,Ye.decal=Qe.decal;var lt=Hl(C),_t=Hl(T),O=Hl(D);le(pe,Ke,Qe.opacity,null),pe.setStyle(Ye),pe.ensureState("emphasis").style=lt,pe.ensureState("blur").style=_t,pe.ensureState("select").style=O,ll(pe)}de.add(pe)}function re(de){!de.invisible&&i.push(de)}function le(de,pe,Ae,me){var Ce=d.getModel(me?lB:sB),Qe=hr(d.get("name"),null),Ke=Ce.getShallow("show");Or(de,Sr(d,me?lB:sB),{defaultText:Ke?Qe:null,inheritColor:pe,defaultOpacity:Ae,labelFetcher:e,labelDataIndex:o.dataIndex});var Ye=de.getTextContent();if(Ye){var lt=Ye.style,_t=iv(lt.padding||0);me&&(de.setTextConfig({layoutRect:me}),Ye.disableLabelLayout=!0),Ye.beforeUpdate=function(){var z=Math.max((me?me.width:de.shape.width)-_t[1]-_t[3],0),oe=Math.max((me?me.height:de.shape.height)-_t[0]-_t[2],0);(lt.width!==z||lt.height!==oe)&&Ye.setStyle({width:z,height:oe})},lt.truncateMinChar=2,lt.lineOverflow="truncate",Y(lt,me,c);var O=Ye.getState("emphasis");Y(O?O.style:null,me,c)}}function Y(de,pe,Ae){var me=de?de.text:null;if(!pe&&Ae.isLeafRoot&&me!=null){var Ce=e.get("drillDownIcon",!0);de.text=Ce?Ce+" "+me:me}}function X(de,pe,Ae,me){var Ce=_!=null&&r[de][_],Qe=a[de];return Ce?(r[de][_]=null,fe(Qe,Ce)):m||(Ce=new pe,Ce instanceof oa&&(Ce.z2=the(Ae,me)),we(Qe,Ce)),t[de][y]=Ce}function fe(de,pe){var Ae=de[y]={};pe instanceof Jw?(Ae.oldX=pe.x,Ae.oldY=pe.y):Ae.oldShape=j({},pe.shape)}function we(de,pe){var Ae=de[y]={},me=o.parentNode,Ce=pe instanceof Oe;if(me&&(!n||n.direction==="drillDown")){var Qe=0,Ke=0,Ye=a.background[me.getRawIndex()];!n&&Ye&&Ye.oldShape&&(Qe=Ye.oldShape.width,Ke=Ye.oldShape.height),Ce?(Ae.oldX=0,Ae.oldY=Ke):Ae.oldShape={x:Qe,y:Ke,width:0,height:0}}Ae.fadein=!Ce}}function the(e,t){return e*Zfe+t}var gd=M,rhe=Ee,Tm=-1,Cr=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=ke(t);this.type=n,this.mappingMethod=r,this._normalizeData=ihe[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(Qw(a),nhe(a)):r==="category"?a.categories?ahe(a):Qw(a,!0):(Ne(r!=="linear"||a.dataExtent),Qw(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ge(this._normalizeData,this)},e.listVisualTypes=function(){return qe(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ee(t)?M(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=J(t)?[]:Ee(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&gd(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(J(t))t=t.slice();else if(rhe(t)){var r=[];gd(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||he(l)&&l===t+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Em(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Em(f[0],c[0],t))return o}else if(Em(f[0],c[0],t)&&Em(f[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function d(p,v){var g=Math.abs(p-t);g<i&&(i=g,a=v)}},e.visualHandlers={color:{applyVisual:md("color"),getColorMapper:function(){var t=this.option;return ge(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),yd.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=jf(r,t.parsedVisual,a),i?a:Pa(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Pa(jf(t,this.option.parsedVisual),"rgba")},category:yd,piecewise:function(t,r){var n=tx.call(this,r);return n==null&&(n=Pa(jf(t,this.option.parsedVisual),"rgba")),n},fixed:Gl}},colorHue:Dm(function(t,r){return ku(t,r)}),colorSaturation:Dm(function(t,r){return ku(t,null,r)}),colorLightness:Dm(function(t,r){return ku(t,null,null,r)}),colorAlpha:Dm(function(t,r){return Zf(t,r)}),decal:{applyVisual:md("decal"),_normalizedToVisual:{linear:null,category:yd,piecewise:null,fixed:null}},opacity:{applyVisual:md("opacity"),_normalizedToVisual:ex([0,1])},liftZ:{applyVisual:md("liftZ"),_normalizedToVisual:{linear:Gl,category:Gl,piecewise:Gl,fixed:Gl}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:cB,category:yd,piecewise:function(t,r){var n=tx.call(this,r);return n==null&&(n=cB.call(this,t)),n},fixed:Gl}},symbolSize:{applyVisual:md("symbolSize"),_normalizedToVisual:ex([0,1])}},e}();function nhe(e){var t=e.pieceList;e.hasSpecialVisual=!1,M(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function ahe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(gd(t,function(o,s){r[o]=s}),!J(n)){var a=[];Ee(n)?gd(n,function(o,s){var l=r[s];a[l??Tm]=o}):a[Tm]=n,n=fB(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function Qw(e,t){var r=e.visual,n=[];Ee(r)?gd(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),fB(e,n)}function Dm(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:ex([0,1])}}function cB(e){var t=this.option.visual;return t[Math.round(pt(e,[0,1],[0,t.length-1],!0))]||{}}function md(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function yd(e){var t=this.option.visual;return t[this.option.loop&&e!==Tm?e%t.length:e]}function Gl(){return this.option.visual[0]}function ex(e){return{linear:function(t){return pt(t,e,this.option.visual,!0)},category:yd,piecewise:function(t,r){var n=tx.call(this,r);return n==null&&(n=pt(t,e,this.option.visual,!0)),n},fixed:Gl}}function tx(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Cr.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function fB(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=ee(t,function(r){var n=ln(r);return!n&&process.env.NODE_ENV!=="production"&&Wt("'"+r+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),t}var ihe={linear:function(e){return pt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Cr.findPieceIndex(e,t,!0);if(r!=null)return pt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??Tm},fixed:Jt};function Em(e,t,r){return e?t<=r:t<r}var ohe="itemStyle",hB=at();const she={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||dB(r,{},e.getViewRoot().getAncestors(),e)}};function dB(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(ohe),l=lhe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=pB(l),c=uhe(f,d)),u.stroke=c;var p=e.viewChildren;if(!p||!p.length)d=pB(l),u.fill=d;else{var v=che(e,a,i,s,l,p);M(p,function(g,m){if(g.depth>=r.length||g===r[g.depth]){var y=fhe(a,l,g,m,v,n);dB(g,y,r,n)}})}}}function lhe(e,t,r){var n=j({},t),a=r.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function pB(e){var t=rx(e,"color");if(t){var r=rx(e,"colorAlpha"),n=rx(e,"colorSaturation");return n&&(t=ku(t,null,null,n)),r&&(t=Zf(t,r)),t}}function uhe(e,t){return t!=null?ku(t,null,null,e):null}function rx(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function che(e,t,r,n,a,i){if(!(!i||!i.length)){var o=nx(t,"color")||a.color!=null&&a.color!=="none"&&(nx(t,"colorAlpha")||nx(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Cr(f);return hB(d).drColorMappingBy=c,d}}}function nx(e,t){var r=e.get(t);return J(r)&&r.length?{name:t,range:r}:null}function fhe(e,t,r,n,a,i){var o=j({},t);if(a){var s=a.type,l=s==="color"&&hB(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var _d=Math.max,Am=Math.min,vB=Qt,ax=M,gB=["itemStyle","borderWidth"],hhe=["itemStyle","gapWidth"],dhe=["upperLabel","show"],phe=["upperLabel","height"];const vhe={seriesType:"treemap",reset:function(e,t,r,n){var a=r.getWidth(),i=r.getHeight(),o=e.option,s=lr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ue(vB(s.width,l[0]),a),c=ue(vB(s.height,l[1]),i),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],p=dd(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),m=eB(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?She(e,p,g,u,c):v?[v.width,v.height]:[u,c],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var b={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),mB(g,b,!1,0),S=g.getLayout(),ax(m,function(w,C){var T=(m[C+1]||g).getValue();w.setLayout(j({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=e.getData().tree.root;x.setLayout(whe(s,v,p),!0),e.setLayoutInfo(s),_B(x,new He(-s.x,-s.y,a,i),m,g,0)}};function mB(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(gB),u=s.get(hhe)/2,c=bB(s),f=Math.max(l,c),d=l-u,p=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=_d(a-2*d,0),i=_d(i-d-p,0);var v=a*i,g=ghe(e,s,v,t,r,n);if(g.length){var m={x:d,y:p,width:a,height:i},y=Am(a,i),_=1/0,b=[];b.area=0;for(var S=0,x=g.length;S<x;){var w=g[S];b.push(w),b.area+=w.getLayout().area;var C=bhe(b,y,t.squareRatio);C<=_?(S++,_=C):(b.area-=b.pop().getLayout().area,yB(b,y,m,u,!1),y=Am(m.width,m.height),b.length=b.area=0,_=1/0)}if(b.length&&yB(b,y,m,u,!0),!r){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(r=!0)}for(var S=0,x=g.length;S<x;S++)mB(g[S],t,r,n+1)}}}function ghe(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=ct(o,function(p){return!p.isRemoved()}),yhe(o,s);var u=_he(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=mhe(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function mhe(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function yhe(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function _he(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],ax(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function bhe(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?_d(u*n/l,l/(u*a)):1/0}function yB(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=t?e.area/t:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f<d;f++){var p=e[f],v={},g=c?p.getLayout().area/c:0,m=v[l[o]]=_d(c-2*n,0),y=r[s[i]]+r[l[i]]-u,_=f===d-1||y<g?y:g,b=v[l[i]]=_d(_-2*n,0);v[s[o]]=r[s[o]]+Am(n,m/2),v[s[i]]=u+Am(n,b/2),u+=_,p.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function She(e,t,r,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,p=f.length;d<p;d++)c+=f[d].getValue();var v=i.getValue();if(v===0)return o;u*=c/v;var g=s.getModel(),m=g.get(gB),y=Math.max(m,bB(g));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>I1&&(u=I1),i=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,a*_]}function whe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function _B(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new He(t.x-i.x,t.y-i.y,t.width,t.height);ax(e.viewChildren||[],function(u){_B(u,l,r,n,a+1)})}}function bB(e){return e.get(dhe)?e.get(phe):0}function xhe(e){e.registerSeriesModel(Hfe),e.registerChartView(Qfe),e.registerVisual(she),e.registerLayout(vhe),$fe(e)}function Che(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){ot(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function The(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){he(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");j(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function Mm(e){return e instanceof Array||(e=[e,e]),e}function Dhe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),a=Mm(t.get("edgeSymbol")),i=Mm(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Mm(s.getShallow("symbol",!0)),c=Mm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(j(d,f),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var ix="-->",Nm=function(e){return e.get("autoCurveness")||null},SB=function(e,t){var r=Nm(e),n=20,a=[];if(ot(r))n=r;else if(J(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},bd=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(ix)},wB=function(e){var t=e.split(ix);return[t[0],t[2],t[1]].join(ix)},Ehe=function(e,t){var r=bd(e.node1,e.node2,t);return t.__edgeMap[r]},Ahe=function(e,t){var r=ox(bd(e.node1,e.node2,t),t),n=ox(bd(e.node2,e.node1,t),t);return r+n},ox=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function Mhe(e){Nm(e)&&(e.__curvenessList=[],e.__edgeMap={},SB(e))}function Nhe(e,t,r,n){if(Nm(r)){var a=bd(e,t,r),i=r.__edgeMap,o=i[wB(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function sx(e,t,r,n){var a=Nm(t),i=J(a);if(!a)return null;var o=Ehe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=Ahe(e,t);SB(t,u),e.lineStyle=e.lineStyle||{};var c=bd(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var p=wB(c),v=ox(p,t),g=f[s+v+d];return n?i?a&&a[0]===0?(v+d)%2?g:-g:((v%2?0:1)+d)%2?g:-g:(v+d)%2?g:-g:f[s+v+d]}function xB(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),lx(r,e)}}function lx(e,t){e.eachEdge(function(r,n){var a=On(r.getModel().get(["lineStyle","curveness"]),-sx(r,t,n,!0),0),i=li(r.node1.getLayout()),o=li(r.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}function Ihe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];M(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}lx(i.graph,r)}else(!n||n==="none")&&xB(r)})}function Sd(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*r+1;return i/n}function wd(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var CB=Math.PI,ux=[];function cx(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=a.pointToData(n),p=d[0],v=d[1],g=[p-l,v-u];Fs(g,g),Vf(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var m=e.get(["circular","rotateLabel"]);TB(r,m,l,u)}Lhe[t](e,s,o,c,l,u,f),s.eachEdge(function(y,_){var b=On(y.getModel().get(["lineStyle","curveness"]),sx(y,e,_),0),S=li(y.node1.getLayout()),x=li(y.node2.getLayout()),w,C=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+b&&(b*=3,w=[l*b+C*(1-b),u*b+T*(1-b)]),y.setLayout([S,x,w])})}}}var Lhe={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=d})},symbolSize:function(e,t,r,n,a,i,o){var s=0;ux.length=o;var l=Sd(e);t.eachNode(function(f){var d=wd(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/n);isNaN(p)&&(p=CB/2),ux[f.dataIndex]=p,s+=p*2});var u=(2*CB-s)/o/2,c=0;t.eachNode(function(f){var d=u+ux[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=d})}};function TB(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");j(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function khe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&cx(t,"symbolSize")})}var Ac=ov;function Phe(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Oo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=li(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,p=d,v,g;return{warmUp:function(){p=d*.8},setFixed:function(m){n[m].fixed=!0},setUnfixed:function(m){n[m].fixed=!1},beforeStep:function(m){v=m},afterStep:function(m){g=m},step:function(m){v&&v(n,a);for(var y=[],_=n.length,b=0;b<a.length;b++){var S=a[b];if(!S.ignoreForceLayout){var x=S.n1,w=S.n2;Ro(y,w.p,x.p);var C=Rf(y)-S.d,T=w.w/(x.w+w.w);isNaN(T)&&(T=0),Fs(y,y),!x.fixed&&Ac(x.p,x.p,y,T*C*p),!w.fixed&&Ac(w.p,w.p,y,-(1-T)*C*p)}}for(var b=0;b<_;b++){var D=n[b];D.fixed||(Ro(y,l,D.p),Ac(D.p,D.p,y,u*p))}for(var b=0;b<_;b++)for(var x=n[b],E=b+1;E<_;E++){var w=n[E];Ro(y,w.p,x.p);var C=Rf(y);C===0&&(S2(y,Math.random()-.5,Math.random()-.5),C=1);var A=(x.rep+w.rep)/C/C;!x.fixed&&Ac(x.pp,x.pp,y,A),!w.fixed&&Ac(w.pp,w.pp,y,-A)}for(var L=[],b=0;b<_;b++){var D=n[b];D.fixed||(Ro(L,D.p,D.pp),Ac(D.p,D.p,L,p),Wr(D.pp,D.p))}p=p*.992;var N=p<.01;g&&g(n,a,N),m&&m(N)}}}function Ohe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(b){var S=i.getId(b);i.setItemLayout(b,n[S]||[NaN,NaN])}):!l||l==="none"?xB(t):l==="circular"&&cx(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),p=J(f)?f:[f,f],v=J(d)?d:[d,d];v=[v[1],v[0]];var g=i.mapArray("value",function(b,S){var x=i.getItemLayout(S),w=pt(b,u,p);return isNaN(w)&&(w=(p[0]+p[1])/2),{w,rep:w,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),m=o.mapArray("value",function(b,S){var x=a.getEdgeByIndex(S),w=pt(b,c,v);isNaN(w)&&(w=(v[0]+v[1])/2);var C=x.getModel(),T=On(x.getModel().get(["lineStyle","curveness"]),-sx(x,t,S,!0),0);return{n1:g[x.node1.dataIndex],n2:g[x.node2.dataIndex],d:w,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),y=r.getBoundingRect(),_=Phe(g,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(b,S){for(var x=0,w=b.length;x<w;x++)b[x].fixed&&Wr(b[x].p,a.getNodeByIndex(x).getLayout())}),_.afterStep(function(b,S,x){for(var w=0,C=b.length;w<C;w++)b[w].fixed||a.getNodeByIndex(w).setLayout(b[w].p),n[i.getId(w)]=b[w].p;for(var w=0,C=S.length;w<C;w++){var T=S[w],D=a.getEdgeByIndex(w),E=T.n1.p,A=T.n2.p,L=D.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Wr(L[0],E),Wr(L[1],A),+T.curveness&&(L[2]=[(E[0]+A[0])/2-(E[1]-A[1])*T.curveness,(E[1]+A[1])/2-(A[0]-E[0])*T.curveness]),D.setLayout(L)}}),t.forceLayout=_,t.preservedPoints=n,_.step()}else t.forceLayout=null})}function Rhe(e,t,r){var n=j(e.getBoxLayoutParams(),{aspect:r});return lr(n,{width:t.getWidth(),height:t.getHeight()})}function Vhe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(m){var y=i.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Uv(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Rhe(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],p=c.width,v=c.height,g=n.coordinateSystem=new fd;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,d),g.setViewRect(c.x,c.y,p,v),g.setCenter(n.get("center"),t),g.setZoom(n.get("zoom")),r.push(g)}}),r}var DB=dr.prototype,fx=Ku.prototype,EB=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(EB);function hx(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Bhe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new EB},t.prototype.buildPath=function(r,n){hx(n)?DB.buildPath.call(this,r,n):fx.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return hx(this.shape)?DB.pointAt.call(this,r):fx.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=hx(n)?[n.x2-n.x1,n.y2-n.y1]:fx.tangentAt.call(this,r);return Fs(a,a)},t}(Ze),dx=["fromSymbol","toSymbol"];function AB(e){return"_"+e+"Type"}function MB(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=pc(a),u=Cl(o||0,l);return n+l+u+(i||"")+(s||"")}function NB(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=pc(a),u=Cl(o||0,l),c=tr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function Fhe(e){var t=new Bhe({name:"line",subPixelOptimize:!0});return px(t.shape,e),t}function px(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 r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var vx=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=Fhe(o);s.shape.percent=0,Vt(s,{shape:{percent:1}},i,n),this.add(s),M(dx,function(l){var u=NB(l,r,n);this.add(u),this[AB(l)]=MB(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};px(l.shape,s),st(o,l,i,n),M(dx,function(u){var c=MB(u,r,n),f=AB(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=NB(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,p=a&&a.blurScope;if(!a||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),d=g.get("focus"),p=g.get("blurScope"),c=Sr(v)}var m=r.getItemVisual(n,"style"),y=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(dx,function(w){var C=this.childOfName(w);if(C){C.setColor(y),C.style.opacity=m.opacity;for(var T=0;T<fn.length;T++){var D=fn[T],E=o.getState(D);if(E){var A=E.style||{},L=C.ensureState(D),N=L.style||(L.style={});A.stroke!=null&&(N[C.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(N.opacity=A.opacity)}}C.markRedraw()}},this);var _=i.getRawValue(n);Or(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,C){return i.getFormattedLabel(w,C,r.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?Kt(_):_)+""});var b=this.getTextContent();if(b){var S=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=S.get("position")||"middle";var x=S.get("distance");J(x)||(x=[x,x]),b.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Yt(this,d,p,f)},t.prototype.highlight=function(){no(this)},t.prototype.downplay=function(){ao(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");px(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Ro([],f,c);Fs(d,d);function p(E,A){var L=E.__specifiedRotation;if(L==null){var N=l.tangentAt(A);E.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(N[1],N[0]))}else E.attr("rotation",L)}if(n&&(n.setPosition(c),p(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),p(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,g=void 0,m=i.__labelDistance,y=m[0]*o,_=m[1]*o,b=u/2,S=l.tangentAt(b),x=[S[1],-S[0]],w=l.pointAt(b);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var C=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var D=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-_,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=_,g="top";break;default:D=0,g="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*_+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*_+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*C+c[0],i.y=c[1]+D,v=S[0]<0?"right":"left",i.originX=-y*C,i.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+D,v="center",i.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*C+f[0],i.y=f[1]+D,v=S[0]>=0?"right":"left",i.originX=y*C,i.originY=-D;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||v})}},t}(Oe),gx=function(){function e(t){this.group=new Oe,this._LineCtor=t||vx}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=IB(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=IB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!zhe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(mx(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Jo(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(mx(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!mx(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function zhe(e){return e.animators&&e.animators.length>0}function IB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Sr(t)}}function LB(e){return isNaN(e[0])||isNaN(e[1])}function mx(e){return e&&!LB(e[0])&&!LB(e[1])}var yx=[],_x=[],bx=[],Mc=Mr,Sx=Vo,kB=Math.abs;function PB(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){yx[0]=Mc(n[0],a[0],i[0],c),yx[1]=Mc(n[1],a[1],i[1],c);var f=kB(Sx(yx,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var p=s+u;_x[0]=Mc(n[0],a[0],i[0],s),_x[1]=Mc(n[1],a[1],i[1],s),bx[0]=Mc(n[0],a[0],i[0],p),bx[1]=Mc(n[1],a[1],i[1],p);var f=Sx(_x,t)-l;if(kB(f)<.01)break;var v=Sx(bx,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function xx(e,t){var r=[],n=Yf,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[li(u[0]),li(u[1])],u[2]&&u.__original.push(li(u[2])));var d=u.__original;if(u[2]!=null){if(Wr(a[0],d[0]),Wr(a[1],d[2]),Wr(a[2],d[1]),c&&c!=="none"){var p=wd(s.node1),v=PB(a,d[0],p*t);n(a[0][0],a[1][0],a[2][0],v,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],v,r),a[0][1]=r[3],a[1][1]=r[4]}if(f&&f!=="none"){var p=wd(s.node2),v=PB(a,d[1],p*t);n(a[0][0],a[1][0],a[2][0],v,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],v,r),a[1][1]=r[1],a[2][1]=r[2]}Wr(u[0],a[0]),Wr(u[1],a[2]),Wr(u[2],a[1])}else{if(Wr(i[0],d[0]),Wr(i[1],d[1]),Ro(o,i[1],i[0]),Fs(o,o),c&&c!=="none"){var p=wd(s.node1);ov(i[0],i[0],o,p*t)}if(f&&f!=="none"){var p=wd(s.node2);ov(i[1],i[1],o,-p*t)}Wr(u[0],i[0]),Wr(u[1],i[1])}})}function OB(e){return e.type==="view"}var $he=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new td,i=new gx,o=this.group;this._controller=new ud(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):st(u,c,r)}xx(r.getGraph(),Sd(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var p=r.forceLayout,v=r.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,v);var g=r.get("layout");f.graph.eachNode(function(b){var S=b.dataIndex,x=b.getGraphicEl(),w=b.getModel();if(x){x.off("drag").off("dragend");var C=w.get("draggable");C&&x.on("drag",function(D){switch(g){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,v),p.setFixed(S),f.setItemLayout(S,[x.x,x.y]);break;case"circular":f.setItemLayout(S,[x.x,x.y]),b.setLayout({fixed:!0},!0),cx(r,"symbolSize",b,[D.offsetX,D.offsetY]),i.updateLayout(r);break;case"none":default:f.setItemLayout(S,[x.x,x.y]),lx(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){p&&p.setUnfixed(S)}),x.setDraggable(C,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(Ve(x).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var S=b.getGraphicEl(),x=b.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(Ve(S).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),_=f.getLayout("cy");f.graph.eachNode(function(b){TB(b,m,y,_)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!ym(u,a,r)}),!OB(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Vw(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Bw(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),xx(r.getGraph(),Sd(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=Sd(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){xx(r.getGraph(),Sd(r)),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}(yt);function Nc(e){return"_EC_"+e}var Hhe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(n[Nc(t)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new Ul(t,r);return a.hostGraph=this,this.nodes.push(a),n[Nc(t)]=a,a},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Nc(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(ot(t)&&(t=this.nodes[t]),ot(r)&&(r=this.nodes[r]),t instanceof Ul||(t=a[Nc(t)]),r instanceof Ul||(r=a[Nc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new RB(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Ul&&(t=t.id),r instanceof Ul&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof Ul||(r=this._nodesMap[Nc(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(a,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),Ul=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}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(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=_e(),r=_e(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),RB=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=_e(),r=_e();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function VB(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},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)}}}qt(Ul,VB("hostGraph","data")),qt(RB,VB("hostGraph","edgeData"));function BB(e,t,r,n,a){for(var i=new Hhe(n),o=0;o<e.length;o++)i.addNode(Qt(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(Qt(hr(c.id,null),f+" > "+d)),u++)}var p=r.get("coordinateSystem"),v;if(p==="cartesian2d"||p==="polar")v=wi(e,r);else{var g=_l.get(p),m=g?g.dimensions||[]:[];Ge(m,"value")<0&&m.concat(["value"]);var y=_c(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new tn(y,r),v.initData(e)}var _=new tn(["value"],r);return _.initData(l,s),a&&a(v,_),JV({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ghe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new od(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),js(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){Mhe(this);var s=BB(i,a,this,!0,l);return M(s.edges,function(u){Nhe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,m=v.getShallow("category"),y=g[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=ft.prototype.getModel;function d(v,g){var m=f.call(this,v,g);return m.resolveParentPath=p,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=p,v.getModel=d,v});function p(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},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(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),wr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Dk({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=ee(this.option.categories||[],function(a){return a.value!=null?a:j({value:0},a)}),n=new tn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&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}(Et),Uhe={type:"graphRoam",event:"graphRoam",update:"none"};function Whe(e){e.registerChartView($he),e.registerSeriesModel(Ghe),e.registerProcessor(Che),e.registerVisual(The),e.registerVisual(Dhe),e.registerLayout(Ihe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,khe),e.registerLayout(Ohe),e.registerCoordinateSystem("graphView",{dimensions:fd.dimensions,create:Vhe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Jt),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Jt),e.registerAction(Uhe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=Uw(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Yhe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Xhe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Yhe},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,c)},t}(Ze);function Khe(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=ue(r[0],t.getWidth()),s=ue(r[1],t.getHeight()),l=ue(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Im(e,t){var r=e==null?"":e+"";return t&&(he(t)?r=t.replace("{value}",r):Se(t)&&(r=t(e))),r}var jhe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=Khe(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),p=d?fm:Kr,v=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];Q1(y,!l),u=y[0],c=y[1];for(var _=c-u,b=u,S=[],x=0;v&&x<i.length;x++){var w=Math.min(Math.max(i[x][0],0),1);c=u+_*w;var C=new p({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});C.setStyle({fill:i[x][1]}),C.setStyle(g.getLineStyle(["color","width"])),S.push(C),b=c}S.reverse(),M(S,function(D){return s.add(D)});var T=function(D){if(D<=0)return i[0][1];var E;for(E=0;E<i.length;E++)if(i[E][0]>=D&&(E===0?0:i[E-1][0])<D)return i[E][1];return i[E-1][1]};this._renderTicks(r,n,a,T,o,u,c,l,m),this._renderTitleAndDetail(r,n,a,T,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,T,o,u,c,l,m)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,p=o.cy,v=o.r,g=+r.get("min"),m=+r.get("max"),y=r.getModel("splitLine"),_=r.getModel("axisTick"),b=r.getModel("axisLabel"),S=r.get("splitNumber"),x=_.get("splitNumber"),w=ue(y.get("length"),v),C=ue(_.get("length"),v),T=s,D=(l-s)/S,E=D/x,A=y.getModel("lineStyle").getLineStyle(),L=_.getModel("lineStyle").getLineStyle(),N=y.get("distance"),I,k,P=0;P<=S;P++){if(I=Math.cos(T),k=Math.sin(T),y.get("show")){var V=N?N+c:c,B=new dr({shape:{x1:I*(v-V)+d,y1:k*(v-V)+p,x2:I*(v-w-V)+d,y2:k*(v-w-V)+p},style:A,silent:!0});A.stroke==="auto"&&B.setStyle({stroke:i(P/S)}),f.add(B)}if(b.get("show")){var V=b.get("distance")+N,G=Im(Kt(P/S*(m-g)+g),b.get("formatter")),U=i(P/S),W=I*(v-w-V)+d,re=k*(v-w-V)+p,le=b.get("rotate"),Y=0;le==="radial"?(Y=-T+2*Math.PI,Y>Math.PI/2&&(Y+=Math.PI)):le==="tangential"?Y=-T-Math.PI/2:ot(le)&&(Y=le*Math.PI/180),Y===0?f.add(new tt({style:Nt(b,{text:G,x:W,y:re,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:U}),silent:!0})):f.add(new tt({style:Nt(b,{text:G,x:W,y:re,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:W,originY:re,rotation:Y}))}if(_.get("show")&&P!==S){var V=_.get("distance");V=V?V+c:c;for(var X=0;X<=x;X++){I=Math.cos(T),k=Math.sin(T);var fe=new dr({shape:{x1:I*(v-V)+d,y1:k*(v-V)+p,x2:I*(v-C-V)+d,y2:k*(v-C-V)+p},silent:!0,style:L});L.stroke==="auto"&&fe.setStyle({stroke:i((P+X/x)/S)}),f.add(fe),T+=E}T-=E}else T+=D}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,v=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),_=r.getData(),b=_.mapDimension("value"),S=+r.get("min"),x=+r.get("max"),w=[S,x],C=[s,l];function T(E,A){var L=_.getItemModel(E),N=L.getModel("pointer"),I=ue(N.get("width"),o.r),k=ue(N.get("length"),o.r),P=r.get(["pointer","icon"]),V=N.get("offsetCenter"),B=ue(V[0],o.r),G=ue(V[1],o.r),U=N.get("keepAspect"),W;return P?W=tr(P,B-I/2,G-k,I,k,null,U):W=new Xhe({shape:{angle:-Math.PI/2,width:I,r:k,x:B,y:G}}),W.rotation=-(A+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function D(E,A){var L=m.get("roundCap"),N=L?fm:Kr,I=m.get("overlap"),k=I?m.get("width"):c/_.count(),P=I?o.r-k:o.r-(E+1)*k,V=I?o.r:o.r-E*k,B=new N({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:V}});return I&&(B.z2=pt(_.get(b,E),[S,x],[100,0],!0)),B}(y||g)&&(_.diff(d).add(function(E){var A=_.get(b,E);if(g){var L=T(E,s);Vt(L,{rotation:-((isNaN(+A)?C[0]:pt(A,w,C,!0))+Math.PI/2)},r),f.add(L),_.setItemGraphicEl(E,L)}if(y){var N=D(E,s),I=m.get("clip");Vt(N,{shape:{endAngle:pt(A,w,C,I)}},r),f.add(N),rb(r.seriesIndex,_.dataType,E,N),v[E]=N}}).update(function(E,A){var L=_.get(b,E);if(g){var N=d.getItemGraphicEl(A),I=N?N.rotation:s,k=T(E,I);k.rotation=I,st(k,{rotation:-((isNaN(+L)?C[0]:pt(L,w,C,!0))+Math.PI/2)},r),f.add(k),_.setItemGraphicEl(E,k)}if(y){var P=p[A],V=P?P.shape.endAngle:s,B=D(E,V),G=m.get("clip");st(B,{shape:{endAngle:pt(L,w,C,G)}},r),f.add(B),rb(r.seriesIndex,_.dataType,E,B),v[E]=B}}).execute(),_.each(function(E){var A=_.getItemModel(E),L=A.getModel("emphasis"),N=L.get("focus"),I=L.get("blurScope"),k=L.get("disabled");if(g){var P=_.getItemGraphicEl(E),V=_.getItemVisual(E,"style"),B=V.fill;if(P instanceof br){var G=P.style;P.useStyle(j({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},V))}else P.useStyle(V),P.type!=="pointer"&&P.setColor(B);P.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(pt(_.get(b,E),w,[0,1],!0))),P.z2EmphasisLift=0,Pr(P,A),Yt(P,N,I,k)}if(y){var U=v[E];U.useStyle(_.getItemVisual(E,"style")),U.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Pr(U,A),Yt(U,N,I,k)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=tr(s,n.cx-o/2+ue(l[0],n.r),n.cy-o/2+ue(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Oe,p=[],v=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new tt({silent:!0}),v[y]=new tt({silent:!0})}).update(function(y,_){p[y]=s._titleEls[_],v[y]=s._detailEls[_]}).execute(),l.each(function(y){var _=l.getItemModel(y),b=l.get(u,y),S=new Oe,x=i(pt(b,[c,f],[0,1],!0)),w=_.getModel("title");if(w.get("show")){var C=w.get("offsetCenter"),T=o.cx+ue(C[0],o.r),D=o.cy+ue(C[1],o.r),E=p[y];E.attr({z2:m?0:2,style:Nt(w,{x:T,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(E)}var A=_.getModel("detail");if(A.get("show")){var L=A.get("offsetCenter"),N=o.cx+ue(L[0],o.r),I=o.cy+ue(L[1],o.r),k=ue(A.get("width"),o.r),P=ue(A.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,E=v[y],B=A.get("formatter");E.attr({z2:m?0:2,style:Nt(A,{x:N,y:I,text:Im(b,B),width:isNaN(k)?null:k,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:V})}),oL(E,{normal:A},b,function(U){return Im(U,B)}),g&&sL(E,y,l,r,{getFormattedLabel:function(U,W,re,le,Y,X){return Im(X?X.interpolatedValue:b,B)}}),S.add(E)}d.add(S)}),this.group.add(d),this._titleEls=p,this._detailEls=v},t.type="gauge",t}(yt),Zhe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Tc(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Et);function qhe(e){e.registerChartView(jhe),e.registerSeriesModel(Zhe)}var Jhe=["itemStyle","opacity"],Qhe=function(e){H(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new Zr,s=new tt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Jhe);c=c??1,a||Fa(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Vt(i,{style:{opacity:c}},o,n)):st(i,{style:{opacity:c},shape:{points:l.points}},o,n),Pr(i,s),this._updateLabel(r,n),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Or(o,Sr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var p=c.linePoints;i.setShape({points:p}),a.textGuideLineConfig={anchor:p?new $e(p[0][0],p[0][1]):null},st(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),tw(a,rw(l),{stroke:d})},t}(jr),ede=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Qhe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);bh(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(yt),tde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new od(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Tc(this,{coordDimensions:["value"],encodeDefaulter:Be(Gb,this)})},t.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Et);function rde(e,t){return lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nde(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return Se(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function ade(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,p,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,p],[d,p]];else{var g=void 0,m=void 0,y=void 0,_=void 0,b=s.get("length");process.env.NODE_ENV!=="production"&&(r==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),r==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=g-b,d=y-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=g+b,d=y+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,_=m-b,p=_-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,_=m+b,p=_+5,f="center"):o==="rightTop"?(g=r==="horizontal"?u[3][0]:u[1][0],m=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(_=m-b,p=_-5,f="center"):(y=g+b,d=y+5,f="top")):o==="rightBottom"?(g=u[2][0],m=u[2][1],r==="horizontal"?(_=m+b,p=_+5,f="center"):(y=g+b,d=y+5,f="bottom")):o==="leftTop"?(g=u[0][0],m=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(_=m-b,p=_-5,f="center"):(y=g-b,d=y-5,f="right")):o==="leftBottom"?(g=r==="horizontal"?u[1][0]:u[3][0],m=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(_=m+b,p=_+5,f="center"):(y=g-b,d=y-5,f="right")):(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r==="horizontal"?(_=m+b,p=_+5,f="center"):(y=g+b,d=y+5,f="left")),r==="horizontal"?(y=g,d=y):(_=m,p=_),v=[[g,m],[y,_]]}l.label={linePoints:v,x:d,y:p,verticalAlign:"middle",textAlign:f,inside:c}})}function ide(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=rde(r,t),s=r.get("orient"),l=o.width,u=o.height,c=nde(n,i),f=o.x,d=o.y,p=s==="horizontal"?[ue(r.get("minSize"),u),ue(r.get("maxSize"),u)]:[ue(r.get("minSize"),l),ue(r.get("maxSize"),l)],v=n.getDataExtent(a),g=r.get("min"),m=r.get("max");g==null&&(g=Math.min(v[0],0)),m==null&&(m=v[1]);var y=r.get("funnelAlign"),_=r.get("gap"),b=s==="horizontal"?l:u,S=(b-_*(n.count()-1))/n.count(),x=function(I,k){if(s==="horizontal"){var P=n.get(a,I)||0,V=pt(P,[g,m],p,!0),B=void 0;switch(y){case"top":B=d;break;case"center":B=d+(u-V)/2;break;case"bottom":B=d+(u-V);break}return[[k,B],[k,B+V]]}var G=n.get(a,I)||0,U=pt(G,[g,m],p,!0),W;switch(y){case"left":W=f;break;case"center":W=f+(l-U)/2;break;case"right":W=f+l-U;break}return[[W,k],[W+U,k]]};i==="ascending"&&(S=-S,_=-_,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var w=0;w<c.length;w++){var C=c[w],T=c[w+1],D=n.getItemModel(C);if(s==="horizontal"){var E=D.get(["itemStyle","width"]);E==null?E=S:(E=ue(E,l),i==="ascending"&&(E=-E));var A=x(C,f),L=x(T,f+E);f+=E+_,n.setItemLayout(C,{points:A.concat(L.slice().reverse())})}else{var N=D.get(["itemStyle","height"]);N==null?N=S:(N=ue(N,u),i==="ascending"&&(N=-N));var A=x(C,d),L=x(T,d+N);d+=N+_,n.setItemLayout(C,{points:A.concat(L.slice().reverse())})}}ade(n)})}function ode(e){e.registerChartView(ede),e.registerSeriesModel(tde),e.registerLayout(ide),e.registerProcessor(id("funnel"))}var sde=.3,lde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Oe,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=$B(r);s.diff(l).add(d).update(p).remove(v).execute();function d(m){var y=zB(s,o,m,c,u);Cx(y,s,m,f)}function p(m,y){var _=l.getItemGraphicEl(y),b=FB(s,m,c,u);s.setItemGraphicEl(m,_),st(_,{shape:{points:b}},r,m),Fa(_),Cx(_,s,m,f)}function v(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var g=ude(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=$B(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=zB(i,this._dataGroup,c,s,o);f.incremental=!0,Cx(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(yt);function ude(e,t,r){var n=e.model,a=e.getRect(),i=new et({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Vt(i,{shape:{width:a.width,height:a.height}},t,r),i}function FB(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);cde(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function zB(e,t,r,n,a){var i=FB(e,r,n,a),o=new Zr({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function $B(e){var t=e.get("smooth",!0);return t===!0&&(t=sde),t=hi(t),Po(t)&&(t=0),{smooth:t}}function Cx(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");Pr(e,a,"lineStyle"),Yt(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function cde(e,t){return t==="category"?e==null:e==null||isNaN(e)}var fde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return wi(null,this,{useEncodeDefaulter:ge(hde,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Et);function hde(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return M(t.dimensions,function(n){var a=dde(n);r[n]=a}),r}}function dde(e){return+e.replace("dim","")}var pde=["lineStyle","opacity"],vde={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(pde,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};function gde(e){mde(e),yde(e)}function mde(e){if(!e.parallel){var t=!1;M(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function yde(e){var t=Dt(e.parallelAxis);M(t,function(r){if(Ee(r)){var n=r.parallelIndex||0,a=Dt(e.parallel)[n];a&&a.parallelAxisDefault&&Fe(r,a.parallelAxisDefault,!1)}})}var _de=5,bde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},M(Sde,function(i,o){a.getZr().on(o,this._handlers[o]=ge(i,this))},this)),hc(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Oh(this,"_throttledDispatchExpand"),M(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(j({type:"parallelAxisExpand"},r))},t.type="parallel",t}(kt),Sde={mousedown:function(e){Tx(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Tx(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>_de)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Tx(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Tx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var wde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Fe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Ue),xde=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(va);function Wl(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=Ic(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ic(s,[0,o]),a=i=Ic(s,[a,i]),n=0}t[0]=Ic(t[0],r),t[1]=Ic(t[1],r);var l=Dx(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Ic(t[n],c);var f;return f=Dx(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=Dx(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function Dx(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ic(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ex=M,HB=Math.min,GB=Math.max,UB=Math.floor,Cde=Math.ceil,WB=Kt,Tde=Math.PI,Dde=function(){function e(t,r,n){this.type="parallel",this._axesMap=_e(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;Ex(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new xde(o,Kh(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var a=n.getData();Ex(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Ml(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=lr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=Lm(t.get("axisExpandWidth"),l),f=Lm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,p=t.get("axisExpandWindow"),v;if(p)v=Lm(p[1]-p[0],l),p[1]=p[0]+v;else{v=Lm(c*(f-1),l);var g=t.get("axisExpandCenter")||UB(u/2);p=[c*g-v/2],p[1]=p[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[UB(WB(p[0]/c,1))+1,Cde(WB(p[1]/c,1))-1],_=m/c*p[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:_}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Ex(n,function(o,s){var l=(a.axisExpandable?Ade:Ede)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Tde/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],p=xn();Bo(p,p,d),La(p,p,f),this._axesLayout[o]={position:f,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(t.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),p=0,v=o.length;p<v;p++){var g=l[p].getActiveState(d[p]);if(g==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return za([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return ke(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Wl(l,a,o,"all"):u="none";else{var p=a[1]-a[0],v=o[1]*s/p;a=[GB(0,v-p/2)],a[1]=HB(o[1],a[0]+p),a[0]=a[1]-p}return{axisExpandWindow:a,behavior:u}},e}();function Lm(e,t){return HB(GB(e,t[0]),t[1])}function Ede(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Ade(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Mde(e,t){var r=[];return e.eachComponent("parallel",function(n,a){var i=new Dde(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",sr).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var Nde={create:Mde},Ax=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return Js([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=ke(r);if(n)for(var a=n.length-1;a>=0;a--)Bn(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(Ue);qt(Ax,wc);var Yl=!0,xd=Math.min,Lc=Math.max,Ide=Math.pow,Lde=1e4,kde=6,Pde=6,YB="globalPan",Ode={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Rde={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Vde=0,Mx=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&Ne(r),n._zr=r,n.group=new Oe,n._uid="brushController_"+Vde++,M(Ude,function(a,i){this._handlers[i]=ge(a,this)},n),n}return t.prototype.enableBrush=function(r){return process.env.NODE_ENV!=="production"&&Ne(this._mounted),this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||Ece(n,YB,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=Fe(ke(XB),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;Ace(r,YB,this._uid),M(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};M(r,function(a){n[a.panelId]=ke(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){process.env.NODE_ENV!=="production"&&Ne(this._mounted),r=ee(r,function(d){return Fe(ke(XB),d,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new so(a,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,p){return(d.id!=null?d.id:n+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function c(d,p){var v=r[d];if(p!=null&&a[p]===s)i[d]=a[p];else{var g=i[d]=p!=null?(a[p].__brushOption=v,a[p]):jB(o,KB(o,v));Nx(o,g)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),kx(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ta);function KB(e,t){var r=km[t.brushType].createCover(e,t);return r.__brushOption=t,qB(r,t),e.group.add(r),r}function jB(e,t){var r=Ix(t);return r.endCreating&&(r.endCreating(e,t),qB(t,t.__brushOption)),t}function ZB(e,t){var r=t.__brushOption;Ix(t).updateCoverShape(e,t,r.range,r)}function qB(e,t){var r=t.z;r==null&&(r=Lde),e.traverse(function(n){n.z=r,n.z2=r})}function Nx(e,t){Ix(t).updateCommon(e,t),ZB(e,t)}function Ix(e){return km[e.__brushOption.brushType]}function Lx(e,t,r){var n=e._panels;if(!n)return Yl;var a,i=e._transform;return M(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function JB(e,t){var r=e._panels;if(!r)return Yl;var n=t.__brushOption.panelId;return n!=null?r[n]:Yl}function kx(e){var t=e._covers,r=t.length;return M(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Xl(e,t){var r=ee(e._covers,function(n){var a=n.__brushOption,i=ke(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Bde(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=Ide(a*a+i*i,.5);return o>kde}function QB(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function e5(e,t,r,n){var a=new Oe;return a.add(new et({name:"main",style:Ox(r),silent:!0,draggable:!0,cursor:"move",drift:Be(n5,e,t,a,["n","s","w","e"]),ondragend:Be(Xl,t,{isEnd:!0})})),M(n,function(i){a.add(new et({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Be(n5,e,t,a,i),ondragend:Be(Xl,t,{isEnd:!0})}))}),a}function t5(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=Lc(a,Pde),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],f=r[1][1],d=c-i+a/2,p=f-i+a/2,v=c-o,g=f-s,m=v+a,y=g+a;fo(e,t,"main",o,s,v,g),n.transformable&&(fo(e,t,"w",l,u,i,y),fo(e,t,"e",d,u,i,y),fo(e,t,"n",l,u,m,i),fo(e,t,"s",l,p,m,i),fo(e,t,"nw",l,u,i,i),fo(e,t,"ne",d,u,i,i),fo(e,t,"sw",l,p,i,i),fo(e,t,"se",d,p,i,i))}function Px(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(Ox(r)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Rx(e,i[0]):zde(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Rde[s]+"-resize":null})})}function fo(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(Hde(Vx(e,t,[[n,a],[n+i,a+o]])))}function Ox(e){return Me({strokeNoScale:!0},e.brushStyle)}function r5(e,t,r,n){var a=[xd(e,r),xd(t,n)],i=[Lc(e,r),Lc(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Fde(e){return qo(e.group)}function Rx(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=lg(r[t],Fde(e));return n[a]}function zde(e,t){var r=[Rx(e,t[0]),Rx(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function n5(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=a5(t,a,i);M(n,function(u){var c=Ode[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(r5(s[0][0],s[1][0],s[0][1],s[1][1])),Nx(t,r),Xl(t,{isEnd:!1})}function $de(e,t,r,n){var a=t.__brushOption.range,i=a5(e,r,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Nx(e,t),Xl(e,{isEnd:!1})}function a5(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Vx(e,t,r){var n=JB(e,t);return n&&n!==Yl?n.clipPath(r,e._transform):ke(r)}function Hde(e){var t=xd(e[0][0],e[1][0]),r=xd(e[0][1],e[1][1]),n=Lc(e[0][0],e[1][0]),a=Lc(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function Gde(e,t,r){if(!(!e._brushType||Wde(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=Lx(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Yl||s.panelId===i.panelId)&&km[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function Bx(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Fx(e,t,r){return e.childOfName("main").contain(t,r)}function i5(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),Bde(e)||a){if(i&&!a){o.brushMode==="single"&&kx(e);var l=ke(o);l.brushType=o5(l.brushType,i),l.panelId=i===Yl?null:i.panelId,a=e._creatingCover=KB(e,l),e._covers.push(a)}if(a){var u=km[o5(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(Vx(e,a,e._track)),n&&(jB(e,a),u.updateCommon(e,a)),ZB(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Lx(e,t,r)&&kx(e)&&(s={isEnd:n,removeOnClick:!0});return s}function o5(e,t){return e==="auto"?(process.env.NODE_ENV!=="production"&&Ne(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var Ude={mousedown:function(e){if(this._dragging)s5(this,e);else if(!e.target||!e.target.draggable){Bx(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=Lx(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(Gde(this,e,n),this._dragging){Bx(e);var a=i5(this,e,n,!1);a&&Xl(this,a)}},mouseup:function(e){s5(this,e)}};function s5(e,t){if(e._dragging){Bx(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=i5(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Xl(e,i)}}function Wde(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var km={lineX:l5(0),lineY:l5(1),rect:{createCover:function(e,t){function r(n){return n}return e5({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=QB(e);return r5(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){t5(e,t,r,n)},updateCommon:Px,contain:Fx},polygon:{createCover:function(e,t){var r=new Oe;return r.add(new Zr({name:"main",style:Ox(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new jr({name:"main",draggable:!0,drift:Be($de,e,t),ondragend:Be(Xl,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:Vx(e,t,r)})},updateCommon:Px,contain:Fx}};function l5(e){return{createCover:function(t,r){return e5({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=QB(t),n=xd(r[0][e],r[1][e]),a=Lc(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=JB(t,r);if(o!==Yl&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),t5(t,r,l,a)},updateCommon:Px,contain:Fx}}function u5(e){return e=zx(e),function(t){return wb(t,e)}}function c5(e,t){return e=zx(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function f5(e,t,r){var n=zx(e);return function(a,i){return n.contain(i[0],i[1])&&!ym(a,t,r)}}function zx(e){return He.create(e)}var Yde=["axisLine","axisTickLabel","axisName"],Xde=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new Mx(n.getZr())).on("brush",ge(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!Kde(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!r.get("show")){var s=Zde(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),p=j({strokeContainThreshold:c},d),v=new vn(r,p);M(Yde,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(p,u,r,s,c,a),wh(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=He.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:u5(f),isTargetByCursor:f5(f,s,i),getLinearBrushOtherExtent:c5(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(jde(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=ee(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(kt);function Kde(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function jde(e){var t=e.axis;return ee(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function Zde(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var qde={type:"axisAreaSelect",event:"axisAreaSelected"};function Jde(e){e.registerAction(qde,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Qde={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function h5(e){e.registerComponentView(bde),e.registerComponentModel(wde),e.registerCoordinateSystem("parallel",Nde),e.registerPreprocessor(gde),e.registerComponentModel(Ax),e.registerComponentView(Xde),Dc(e,"parallel",Ax,Qde),Jde(e)}function epe(e){We(h5),e.registerChartView(lde),e.registerSeriesModel(fde),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,vde)}var tpe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),rpe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tpe},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){no(this)},t.prototype.downplay=function(){ao(this)},t}(Ze),npe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),p=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new rpe,m=Ve(g);m.dataIndex=v.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=v.getModel(),_=y.getModel("lineStyle"),b=_.get("curveness"),S=v.node1.getLayout(),x=v.node1.getModel(),w=x.get("localX"),C=x.get("localY"),T=v.node2.getLayout(),D=v.node2.getModel(),E=D.get("localX"),A=D.get("localY"),L=v.getLayout(),N,I,k,P,V,B,G,U;g.shape.extent=Math.max(1,L.dy),g.shape.orient=p,p==="vertical"?(N=(w!=null?w*u:S.x)+L.sy,I=(C!=null?C*c:S.y)+S.dy,k=(E!=null?E*u:T.x)+L.ty,P=A!=null?A*c:T.y,V=N,B=I*(1-b)+P*b,G=k,U=I*b+P*(1-b)):(N=(w!=null?w*u:S.x)+S.dx,I=(C!=null?C*c:S.y)+L.sy,k=E!=null?E*u:T.x,P=(A!=null?A*c:T.y)+L.ty,V=N*(1-b)+k*b,B=I,G=N*b+k*(1-b),U=P),g.setShape({x1:N,y1:I,x2:k,y2:P,cpx1:V,cpy1:B,cpx2:G,cpy2:U}),g.useStyle(_.getItemStyle()),d5(g.style,p,v);var W=""+y.get("value"),re=Sr(y,"edgeLabel");Or(g,re,{labelFetcher:{getFormattedLabel:function(X,fe,we,de,pe,Ae){return r.getFormattedLabel(X,fe,"edge",de,On(pe,re.normal&&re.normal.get("formatter"),W),Ae)}},labelDataIndex:v.dataIndex,defaultText:W}),g.setTextConfig({position:"inside"});var le=y.getModel("emphasis");Pr(g,y,"lineStyle",function(X){var fe=X.getItemStyle();return d5(fe,p,v),fe}),s.add(g),d.setItemGraphicEl(v.dataIndex,g);var Y=le.get("focus");Yt(g,Y==="adjacency"?v.getAdjacentDataIndices():Y==="trajectory"?v.getTrajectoryDataIndices():Y,le.get("blurScope"),le.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),m=v.getModel(),y=m.get("localX"),_=m.get("localY"),b=m.getModel("emphasis"),S=m.get(["itemStyle","borderRadius"])||0,x=new et({shape:{x:y!=null?y*u:g.x,y:_!=null?_*c:g.y,width:g.dx,height:g.dy,r:S},style:m.getModel("itemStyle").getItemStyle(),z2:10});Or(x,Sr(m),{labelFetcher:{getFormattedLabel:function(C,T){return r.getFormattedLabel(C,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),x.disableLabelAnimation=!0,x.setStyle("fill",v.getVisual("color")),x.setStyle("decal",v.getVisual("style").decal),Pr(x,m),s.add(x),f.setItemGraphicEl(v.dataIndex,x),Ve(x).dataType="node";var w=b.get("focus");Yt(x,w==="adjacency"?v.getAdjacentDataIndices():w==="trajectory"?v.getTrajectoryDataIndices():w,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var m=f.getItemModel(g);m.get("draggable")&&(v.drift=function(y,_){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=_,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(ape(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(yt);function d5(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");he(n)&&he(a)&&(e.fill=new ju(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function ape(e,t,r){var n=new et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Vt(n,{shape:{width:e.width+20}},t,r),n}var ipe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=r.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new ft(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");var u=BB(i,a,this,!0,c);return u.data;function c(f,d){f.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,m=g.getData().getItemLayout(v);if(m){var y=m.depth,_=g.levelModels[y];_&&(p.parentModel=_)}return p}),d.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,m=g.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var _=y.depth,b=g.levelModels[_];b&&(p.parentModel=b)}return p})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(p){return isNaN(p)||p==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return wr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,a).data.name;return wr("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Et);function ope(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=spe(r,t);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;upe(u);var f=ct(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),p=r.get("orient"),v=r.get("nodeAlign");lpe(u,c,n,a,o,s,d,p,v)})}function spe(e,t){return lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lpe(e,t,r,n,a,i,o,s,l){cpe(e,t,r,a,i,s,l),ppe(e,t,i,a,n,o,s),xpe(e,s)}function upe(e){M(e,function(t){var r=fs(t.outEdges,Pm),n=fs(t.inEdges,Pm),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function cpe(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var p=-1;u.length;){for(var v=0;v<u.length;v++){var g=u[v],m=g.hostGraph.data.getRawDataItem(g.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>p&&(p=m.depth),g.setLayout({depth:y?m.depth:f},!0),i==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var _=0;_<g.outEdges.length;_++){var b=g.outEdges[_],S=t.indexOf(b);s[S]=0;var x=b.node2,w=e.indexOf(x);--l[w]===0&&c.indexOf(x)<0&&c.push(x)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=p>f-1?p:f-1;o&&o!=="left"&&fpe(e,o,i,C);var T=i==="vertical"?(a-r)/C:(n-r)/C;dpe(e,T,i)}function p5(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function fpe(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}M(e,function(f){p5(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&hpe(e,n)}function hpe(e,t){M(e,function(r){!p5(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function dpe(e,t,r){M(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function ppe(e,t,r,n,a,i,o){var s=vpe(e,o);gpe(s,t,r,n,a,o),$x(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,mpe(s,l,o),$x(s,a,r,n,o),wpe(s,l,o),$x(s,a,r,n,o)}function vpe(e,t){var r=[],n=t==="vertical"?"y":"x",a=V1(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){r.push(a.buckets.get(i))}),r}function gpe(e,t,r,n,a,i){var o=1/0;M(e,function(s){var l=s.length,u=0;M(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c<o&&(o=c)}),M(e,function(s){M(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),M(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function $x(e,t,r,n,a){var i=a==="vertical"?"x":"y";M(e,function(o){o.sort(function(g,m){return g.getLayout()[i]-m.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",p=0;p<f;p++)l=o[p],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=f-2;p>=0;--p)l=o[p],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mpe(e,t,r){M(e.slice().reverse(),function(n){M(n,function(a){if(a.outEdges.length){var i=fs(a.outEdges,ype,r)/fs(a.outEdges,Pm);if(isNaN(i)){var o=a.outEdges.length;i=o?fs(a.outEdges,_pe,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-cs(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-cs(a,r))*t;a.setLayout({y:l},!0)}}})})}function ype(e,t){return cs(e.node2,t)*e.getValue()}function _pe(e,t){return cs(e.node2,t)}function bpe(e,t){return cs(e.node1,t)*e.getValue()}function Spe(e,t){return cs(e.node1,t)}function cs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Pm(e){return e.getValue()}function fs(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function wpe(e,t,r){M(e,function(n){M(n,function(a){if(a.inEdges.length){var i=fs(a.inEdges,bpe,r)/fs(a.inEdges,Pm);if(isNaN(i)){var o=a.inEdges.length;i=o?fs(a.inEdges,Spe,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-cs(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-cs(a,r))*t;a.setLayout({y:l},!0)}}})})}function xpe(e,t){var r=t==="vertical"?"x":"y";M(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),M(e,function(n){var a=0,i=0;M(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function Cpe(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(n,function(s){var l=new Cr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Tpe(e){e.registerChartView(npe),e.registerSeriesModel(ipe),e.registerLayout(ope),e.registerVisual(Cpe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var v5=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var r=this.getEncode();return r&&r.get(t)!=null},e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],p=[a,i],v=p[c].get("type"),g=p[1-c].get("type"),m=t.data;if(m&&l){var y=[];M(m,function(S,x){var w;J(S)?(w=S.slice(),S.unshift(x)):J(S.value)?(w=j({},S),w.value=w.value.slice(),S.value.unshift(x)):w=S,y.push(w)}),t.data=y}var _=this.defaultValueDimensions,b=[{name:f,type:Yg(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Yg(g),dimsDef:_.slice()}];return Tc(this,{coordDimensions:b,dimensionsCount:_.length+1,encodeDefaulter:Be(ML,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),g5=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Et);qt(g5,v5,!0);var Dpe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=m5(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Fa(f),y5(d,f,i,u)):f=m5(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(yt),Epe=function(){function e(){}return e}(),Ape=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Epe},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(Ze);function m5(e,t,r,n,a){var i=e.ends,o=new Ape({shape:{points:a?Mpe(i,n,e):i}});return y5(e,o,t,r,a),o}function y5(e,t,r,n,a){var i=r.hostModel,o=pl[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");Pr(t,s),Yt(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Mpe(e,t,r){return ee(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Cd=M;function Npe(e){var t=Ipe(e);Cd(t,function(r){var n=r.seriesModels;n.length&&(Lpe(r),Cd(n,function(a,i){kpe(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function Ipe(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Ge(r,a);i<0&&(i=r.length,r[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function Lpe(e){var t=e.axis,r=e.seriesModels,n=r.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Cd(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Cd(r,function(v){var g=v.get("boxWidth");J(g)||(g=[g,g]),o.push([ue(g[0],s)||0,ue(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,p=d/2-c/2;Cd(r,function(v,g){i.push(p),p+=f+d,a.push(Math.min(Math.max(d,o[g][0]),o[g][1]))})}function kpe(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),p=b(d,c[2],f),v=b(d,c[0],f),g=b(d,c[1],f),m=b(d,c[3],f),y=b(d,c[4],f),_=[];S(_,g,!1),S(_,m,!0),_.push(v,g,y,m),x(_,v),x(_,y),x(_,p),a.setItemLayout(f,{initBaseline:p[s],ends:_})}function b(w,C,T){var D=a.get(C,T),E=[];E[o]=w,E[s]=D;var A;return isNaN(w)||isNaN(D)?A=[NaN,NaN]:(A=n.dataToPoint(E),A[o]+=t),A}function S(w,C,T){var D=C.slice(),E=C.slice();D[o]+=i,E[o]-=i,T?w.push(D,E):w.push(E,D)}function x(w,C){var T=C.slice(),D=C.slice();T[o]-=i,D[o]+=i,w.push(T,D)}}function Ppe(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Bn(e[o].slice()),l=Ov(s,.25),u=Ov(s,.5),c=Ov(s,.75),f=s[0],d=s[s.length-1],p=(a??1.5)*(c-l),v=i?f:Math.max(f,l-p),g=i?d:Math.min(d,c+p),m=t.itemNameFormatter,y=Se(m)?m({value:o}):he(m)?m.replace("{value}",o+""):o+"";r.push([y,v,l,u,c,g]);for(var _=0;_<s.length;_++){var b=s[_];if(b<v||b>g){var S=[y,b];n.push(S)}}}return{boxData:r,outliers:n}}var Ope={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==qr){var n="";process.env.NODE_ENV!=="production"&&(n=un("source data is not applicable for this boxplot transform. Expect number[][].")),vt(n)}var a=Ppe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Rpe(e){e.registerSeriesModel(g5),e.registerChartView(Dpe),e.registerLayout(Npe),e.registerTransform(Ope)}var Vpe=["itemStyle","borderColor"],Bpe=["itemStyle","borderColor0"],Fpe=["itemStyle","borderColorDoji"],zpe=["itemStyle","color"],$pe=["itemStyle","color0"];function Hx(e,t){return t.get(e>0?zpe:$pe)}function Gx(e,t){return t.get(e===0?Fpe:e>0?Vpe:Bpe)}var Hpe={seriesType:"candlestick",plan:fc(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Hx(s,o),l.stroke=Gx(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");j(u,l)}}}}}},Gpe=["color","borderColor"],Upe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Jo(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&_5(u,f))return;var d=Ux(f,c,!0);Vt(d,{shape:{points:f.ends}},r,c),Wx(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(d);return}var p=n.getItemLayout(c);if(s&&_5(u,p)){i.remove(d);return}d?(st(d,{shape:{points:p.ends}},r,c),Fa(d)):d=Ux(p),Wx(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),b5(r,this.group);var n=r.get("clip",!0)?rd(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=Ux(s);Wx(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){b5(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(yt),Wpe=function(){function e(){}return e}(),Ype=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Wpe},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(Ze);function Ux(e,t,r){var n=e.ends;return new Ype({shape:{points:r?Xpe(n,e):n},z2:100})}function _5(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function Wx(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,Pr(e,a);var i=t.getItemLayout(r).sign;M(e.states,function(s,l){var u=a.getModel(l),c=Hx(i,u),f=Gx(i,u)||c,d=s.style||(s.style={});c&&(d.fill=c),f&&(d.stroke=f)});var o=a.getModel("emphasis");Yt(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Xpe(e,t){return ee(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var Kpe=function(){function e(){}return e}(),Yx=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Kpe},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(Ze);function b5(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new Yx({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Yx({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Yx({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Xx(1,o,e),Xx(-1,s,e),Xx(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function Xx(e,t,r,n){var a=Gx(e,r)||Hx(e,r),i=r.getModel("itemStyle").getItemStyle(Gpe);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var S5=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Et);qt(S5,v5,!0);function jpe(e){!e||!J(e.series)||M(e.series,function(t){Ee(t)&&t.type==="k"&&(t.type="candlestick")})}var Zpe={seriesType:"candlestick",plan:fc(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=qpe(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=ee(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:p};function p(g,m){for(var y,_=m.getStore();(y=g.next())!=null;){var b=_.get(s,y),S=_.get(u,y),x=_.get(c,y),w=_.get(f,y),C=_.get(d,y),T=Math.min(S,x),D=Math.max(S,x),E=V(T,b),A=V(D,b),L=V(w,b),N=V(C,b),I=[];B(I,A,0),B(I,E,1),I.push(U(N),U(A),U(L),U(E));var k=m.getItemModel(y),P=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:w5(_,y,S,x,c,P),initBaseline:S>x?A[i]:E[i],ends:I,brushRect:G(w,C,b)})}function V(W,re){var le=[];return le[a]=re,le[i]=W,isNaN(re)||isNaN(W)?[NaN,NaN]:t.dataToPoint(le)}function B(W,re,le){var Y=re.slice(),X=re.slice();Y[a]=sg(Y[a]+n/2,1,!1),X[a]=sg(X[a]-n/2,1,!0),le?W.push(Y,X):W.push(X,Y)}function G(W,re,le){var Y=V(W,le),X=V(re,le);return Y[a]-=n/2,X[a]-=n/2,{x:Y[0],y:Y[1],width:n,height:X[1]-Y[1]}}function U(W){return W[a]=sg(W[a],1),W}}function v(g,m){for(var y=Ci(g.count*4),_=0,b,S=[],x=[],w,C=m.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var D=C.get(s,w),E=C.get(u,w),A=C.get(c,w),L=C.get(f,w),N=C.get(d,w);if(isNaN(D)||isNaN(L)||isNaN(N)){y[_++]=NaN,_+=3;continue}y[_++]=w5(C,w,E,A,c,T),S[a]=D,S[i]=L,b=t.dataToPoint(S,null,x),y[_++]=b?b[0]:NaN,y[_++]=b?b[1]:NaN,S[i]=N,b=t.dataToPoint(S,null,x),y[_++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function w5(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function qpe(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=ue(Re(e.get("barMaxWidth"),a),a),o=ue(Re(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?ue(s,a):Math.max(Math.min(a/2,i),o)}function Jpe(e){e.registerChartView(Upe),e.registerSeriesModel(S5),e.registerPreprocessor(jpe),e.registerVisual(Hpe),e.registerLayout(Zpe)}function x5(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var Qpe=function(e){H(t,e);function t(r,n){var a=e.call(this)||this,i=new ed(r,n),o=new Oe;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=tr(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}x5(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}x5(a,r)},t.prototype.highlight=function(){no(this)},t.prototype.downplay=function(){ao(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=pc(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var p=Cl(r.getItemVisual(n,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[1]);var v=r.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var g={};g.showEffectOn=i.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=n/r.count(),g.z=i.getShallow("z")||0,g.zlevel=i.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?g.showEffectOn!=="render"&&a.startEffectAnimation(g):m==="normal"&&g.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=g,Yt(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Oe),eve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new td(Qpe)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=nd("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=M2(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(yt),tve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return wi(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Et);function rve(e){e.registerChartView(eve),e.registerSeriesModel(tve),e.registerLayout(nd("effectScatter"))}var C5=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new vx(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");J(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=tr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=Qt(n.get("delay"),function(p){return p/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Se(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Ki(r.__p1,r.__cp1)+Ki(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Mr,c=Q_;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var f=r.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),d=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Ki(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*Ki(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(Oe),T5=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new Zr({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};st(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Yt(this,l,u,c)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},t}(Oe),nve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new T5(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Ki(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var p=r.__t<1?d[0]-f[0]:f[0]-d[0],v=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(v,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(C5),ave=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),ive=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ave},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(r.moveTo(u,c),i>0){var p=(u+f)/2-(c-d)*i,v=(c+d)/2-(f-u)*i;r.quadraticCurveTo(p,v,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],p=1;p<c;p++){var v=i[u++],g=i[u++];if(Yo(f,d,v,g,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],v=i[u++],g=i[u++];if(o>0){var m=(f+v)/2-(d-g)*o,y=(d+g)/2-(v-f)*o;if(JN(f,d,m,y,v,g,s,r,n))return l}else if(Yo(f,d,v,g,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new He(i,o,s,l)}return r},t}(Ze),ove=function(){function e(){this.group=new Oe}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new ive({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Ve(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),D5={seriesType:"lines",plan:fc(),reset:function(e){var t=e.coordinateSystem;if(!t){process.env.NODE_ENV!=="production"&&kr("The lines series must have a coordinate system.");return}var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var p=e.getLineCoords(c,o);r&&(s[f++]=p);for(var v=0;v<p;v++)d=t.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var g=i.getItemModel(c),p=e.getLineCoords(c,o),m=[];if(r)for(var y=0;y<p;y++)m.push(t.dataToPoint(o[y]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var _=g.get(["lineStyle","curveness"]);+_&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*_,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*_])}i.setItemLayout(c,m)}}}}},sve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=r.get("clip",!0)&&rd(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=D5.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new ove:new gx(o?i?nve:T5:i?C5:vx),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(yt),lve=typeof Uint32Array>"u"?Array:Uint32Array,uve=typeof Float64Array>"u"?Array:Float64Array;function E5(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),e.data=ee(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),nv([a,r[0],r[1]])}))}var cve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],E5(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(E5(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Au(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Au(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),ot(r[0])){for(var a=r.length,i=new lve(a),o=new uve(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=r[c++];i[l++]=s+n,i[l++]=f;for(var d=0;d<f;d++){var p=r[c++],v=r[c++];if(o[s++]=p,o[s++]=v,c>a&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){if(process.env.NODE_ENV!=="production"){var a=_l.get(r.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+r.coordinateSystem)}var i=new tn(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),i},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),wr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Et);function Om(e){return e instanceof Array||(e=[e,e]),e}var fve={seriesType:"lines",reset:function(e){var t=Om(e.get("symbol")),r=Om(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=Om(s.getShallow("symbol",!0)),u=Om(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function hve(e){e.registerChartView(sve),e.registerSeriesModel(cve),e.registerLayout(D5),e.registerVisual(fve)}var dve=256,pve=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ia.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),p=t.length;f.width=r,f.height=n;for(var v=0;v<p;++v){var g=t[v],m=g[0],y=g[1],_=g[2],b=a(_);d.globalAlpha=b,d.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var S=d.getImageData(0,0,f.width,f.height),x=S.data,w=0,C=x.length,T=this.minOpacity,D=this.maxOpacity,E=D-T;w<C;){var b=x[w+3]/256,A=Math.floor(b*(dve-1))*4;if(b>0){var L=o(b)?l:u;b>0&&(b=b*E+T),x[w++]=L[A],x[w++]=L[A+1],x[w++]=L[A+2],x[w++]=L[A+3]*b*256}else w+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ia.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function vve(e,t,r){var n=e[1]-e[0];t=ee(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function gve(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function A5(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var mve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):A5(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(A5(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Jo(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=Vl(s,"cartesian2d"),u,c,f,d;if(l){var p=s.getAxis("x"),v=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&v.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&v.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=p.getBandWidth()+.5,c=v.getBandWidth()+.5,f=p.scale.getExtent(),d=v.scale.getExtent()}for(var g=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),_=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),x=Sr(r),w=r.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),D=w.get("disabled"),E=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],A=a;A<i;A++){var L=void 0,N=m.getItemVisual(A,"style");if(l){var I=m.get(E[0],A),k=m.get(E[1],A);if(isNaN(m.get(E[2],A))||isNaN(I)||isNaN(k)||I<f[0]||I>f[1]||k<d[0]||k>d[1])continue;var P=s.dataToPoint([I,k]);L=new et({shape:{x:P[0]-u/2,y:P[1]-c/2,width:u,height:c},style:N})}else{if(isNaN(m.get(E[1],A)))continue;L=new et({z2:1,shape:s.dataToRect([m.get(E[0],A)]).contentShape,style:N})}if(m.hasItemOption){var V=m.getItemModel(A),B=V.getModel("emphasis");y=B.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),b=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),C=B.get("focus"),T=B.get("blurScope"),D=B.get("disabled"),x=Sr(V)}L.shape.r=S;var G=r.getRawValue(A),U="-";G&&G[2]!=null&&(U=G[2]+""),Or(L,x,{labelFetcher:r,labelDataIndex:A,defaultOpacity:N.opacity,defaultText:U}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=_,L.ensureState("select").style=b,Yt(L,C,T,D),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),m.setItemGraphicEl(A,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new pve;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),p=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=v-d,y=g-p,_=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(_,function(C,T,D){var E=r.dataToPoint([C,T]);return E[0]-=d,E[1]-=p,E.push(D),E}),S=a.getExtent(),x=a.type==="visualMap.continuous"?gve(S,a.option.range):vve(S,a.getPieceList(),a.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var w=new br({style:{width:m,height:y,x:d,y:p,image:u.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(yt),yve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return wi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=_l.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Et);function _ve(e){e.registerChartView(mve),e.registerSeriesModel(yve)}var bve=["itemStyle","borderWidth"],M5=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Kx=new yi,Sve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:M5[+c],categoryDim:M5[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=R5(o,v),m=N5(o,v,g,d),y=V5(o,d,m);o.setItemGraphicEl(v,y),i.add(y),z5(y,d,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(v)){i.remove(m);return}var y=R5(o,v),_=N5(o,v,y,d),b=F5(o,_);m&&b!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(v,null),m=null),m?Ave(m,d,_):m=V5(o,d,_,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=_,i.add(m),z5(m,d,_)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&B5(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=r.get("clip",!0)?rd(r.coordinateSystem,!1,r):null;return p?i.setClipPath(p):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){B5(i,Ve(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(yt);function N5(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};wve(r,i,a,n,d),xve(e,t,a,i,o,d.boundingLength,d.pxSign,c,n,d),Cve(r,d.symbolScale,u,n,d);var p=d.symbolSize,v=Cl(r.get("symbolOffset"),p);return Tve(r,p,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function wve(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(J(o)){var f=[jx(s,o[0])-l,jx(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=jx(s,o)-l:t?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=r[i.wh]);var d=i.xy==="x",p=s.inverse;a.pxSign=d&&!p||!d&&p?c>=0?1:-1:c>0?1:-1}function jx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function xve(e,t,r,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),p=e.getItemVisual(t,"symbolSize"),v;J(p)?v=p.slice():p==null?v=["100%","100%"]:v=[p,p],v[f.index]=ue(v[f.index],d),v[c.index]=ue(v[c.index],n?d:Math.abs(i)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Cve(e,t,r,n,a){var i=e.get(bve)||0;i&&(Kx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Kx.updateTransform(),i/=Kx.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Tve(e,t,r,n,a,i,o,s,l,u,c,f){var d=c.categoryDim,p=c.valueDim,v=f.pxSign,g=Math.max(t[p.index]+s,0),m=g;if(n){var y=Math.abs(l),_=Qt(e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var S=ue(_,t[p.index]),x=Math.max(g+S*2,0),w=b?0:S*2,C=Rv(n),T=C?n:$5((y+w)/x),D=y-T*g;S=D/2/(b?T:Math.max(T-1,1)),x=g+S*2,w=b?0:S*2,!C&&n!=="fixed"&&(T=u?$5((Math.abs(u)+w)/x):0),m=T*x-w,f.repeatTimes=T,f.symbolMargin=S}var E=v*(m/2),A=f.pathPosition=[];A[d.index]=r[d.wh]/2,A[p.index]=o==="start"?E:o==="end"?l-E:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var L=f.bundlePosition=[];L[d.index]=r[d.xy],L[p.index]=r[p.xy];var N=f.barRectShape=j({},r);N[p.wh]=v*Math.max(Math.abs(r[p.wh]),Math.abs(A[p.index]+E)),N[d.wh]=r[d.wh];var I=f.clipShape={};I[d.xy]=-r[d.xy],I[d.wh]=c.ecSize[d.wh],I[p.xy]=0,I[p.wh]=r[p.wh]}function I5(e){var t=e.symbolPatternSize,r=tr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function L5(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+r.symbolMargin*2;for(Zx(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?kc(g,null,v(c),r,n):kc(g,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(g)}),c++});c<u;c++){var d=I5(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var p=v(c);kc(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},r,n)}function v(g){var m=s.slice(),y=r.pxSign,_=g;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(_=u-1-g),m[l.index]=f*(_-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function k5(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?kc(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=I5(r),a.add(i),kc(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function P5(e,t,r){var n=j({},t.barRectShape),a=e.__pictorialBarRect;a?kc(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new et({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function O5(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=j({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)st(a,{shape:i},s,l);else{i[o.wh]=0,a=new et({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],pl[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function R5(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Dve,r.isAnimationEnabled=Eve,r}function Dve(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Eve(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function V5(e,t,r,n){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?L5(a,t,r):k5(a,t,r),P5(a,r,n),O5(a,t,r,n),a.__pictorialShapeStr=F5(e,r),a.__pictorialSymbolMeta=r,a}function Ave(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;st(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?L5(e,t,r,!0):k5(e,t,r,!0),P5(e,r,!0),O5(e,t,r,!0)}function B5(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Zx(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),M(i,function(o){Zo(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function F5(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Zx(e,t,r){M(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function kc(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&pl[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function z5(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");Zx(e,function(g){if(g instanceof br){var m=g.style;g.useStyle(j({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else g.useStyle(r.style);var y=g.ensureState("emphasis");y.style=o,d&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var p=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Or(v,Sr(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Cc(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:p}),Yt(e,c,f,i.get("disabled"))}function $5(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Mve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Qo(ad.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ad);function Nve(e){e.registerChartView(Sve),e.registerSeriesModel(Mve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Be(rO,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nO("pictorialBar"))}var Ive=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var p=new so(this._layersSeries||[],l,d,d),v=[];p.add(ge(g,this,"add")).update(ge(g,this,"update")).remove(ge(g,this,"remove")).execute();function g(m,y,_){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var S=[],x=[],w,C=l[y].indices,T=0;T<C.length;T++){var D=i.getItemLayout(C[T]),E=D.x,A=D.y0,L=D.y;S.push(E,A),x.push(E,A+L),w=i.getItemVisual(C[T],"style")}var N,I=i.getItemLayout(C[0]),k=r.getModel("label"),P=k.get("margin"),V=r.getModel("emphasis");if(m==="add"){var B=v[y]=new Oe;N=new _R({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(N),s.add(B),r.isAnimationEnabled()&&N.setClipPath(Lve(N.getBoundingRect(),r,function(){N.removeClipPath()}))}else{var B=b[_];N=B.childAt(0),s.add(B),v[y]=B,st(N,{shape:{points:S,stackedOnPoints:x}},r),Fa(N)}Or(N,Sr(r),{labelDataIndex:C[T-1],defaultText:i.getName(C[T-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),N.setTextConfig({position:null,local:!0});var G=N.getTextContent();G&&(G.x=I.x-P,G.y=I.y0+I.y/2),N.useStyle(w),i.setItemGraphicEl(y,N),Pr(N,r),Yt(N,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(yt);function Lve(e,t,r){var n=new et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Vt(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var qx=2,kve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new od(ge(this.getData,this),ge(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=V1(r,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,p){o.push({name:p,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",sr).models[0],i=a.get("type"),o=ct(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=_e(),c=0,f=0;f<s.length;++f)l.push(s[f][qx]),u.get(s[f][qx])||(u.set(s[f][qx],c),c++);var d=_c(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Yg(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new tn(d,this);return p.initData(s),p},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=V1(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){J(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,p=o[c].indices.length,v=0;v<p;++v){var g=i.get(r[0],o[c].indices[v]),m=Math.abs(g-n);m<=f&&(u=g,f=m,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return wr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Et);function Pve(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=ue(s[0],o.height),s[1]=ue(s[1],o.height);var u=o.height-s[0]-s[1];H5(n,r,u)}else{s[0]=ue(s[0],o.width),s[1]=ue(s[1],o.width);var c=o.width-s[0]-s[1];H5(n,r,c)}n.setLayout("layoutInfo",i)})}function H5(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=ee(a,function(m){return ee(m.indices,function(y){var _=n.dataToPoint(e.get(i,y));return _[1]=e.get(o,y),_})}),l=Ove(s),u=l.y0,c=r/l.max,f=a.length,d=a[0].indices.length,p,v=0;v<d;++v){p=u[v]*c,e.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:p,y:s[0][v][1]*c});for(var g=1;g<f;++g)p+=s[g-1][v][1]*c,e.setItemLayout(a[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:p,y:s[g][v][1]*c})}}function Ove(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<r;++c){var f=n[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function Rve(e){e.registerChartView(Ive),e.registerSeriesModel(kve),e.registerLayout(Pve),e.registerProcessor(id("themeRiver"))}var Vve=2,Bve=4,G5=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=Vve,o.textConfig={inside:!0},Ve(o).seriesIndex=n.seriesIndex;var s=new tt({z2:Bve,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ve(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=j({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var p=n.getVisual("decal");p&&(d.decal=gc(p,o));var v=Bl(l.getModel("itemStyle"),f,!0);j(f,v),M(fn,function(_){var b=s.ensureState(_),S=l.getModel([_,"itemStyle"]);b.style=S.getItemStyle();var x=Bl(S,f);x&&(b.shape=x)}),r?(s.setShape(f),s.shape.r=c.r0,Vt(s,{shape:{r:c.r}},a,n.dataIndex)):(st(s,{shape:f},a),Fa(s)),s.useStyle(d),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="relative"?Au(n.getAncestorsIndices(),n.getDescendantIndices()):m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Yt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),p=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!g,M(hh,function(y){var _=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),b=y==="normal",S=b?d:d.ensureState(y),x=r.getFormattedLabel(p,y);b&&(x=x||n.node.name),S.style=Nt(_,{},null,y!=="normal",!0),x&&(S.style.text=x);var w=_.get("show");w!=null&&!b&&(S.ignore=!w);var C=m(_,"position"),T=b?f:f.states[y],D=T.style.fill;T.textConfig={outsideFill:_.get("color")==="inherit"?D:null,inside:C!=="outside"};var E,A=m(_,"distance")||0,L=m(_,"align"),N=m(_,"rotate"),I=Math.PI*.5,k=Math.PI*1.5,P=zn(N==="tangential"?Math.PI/2-l:l),V=P>I&&!Bu(P-I)&&P<k;C==="outside"?(E=o.r+A,L=V?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?E=0:E=(o.r+o.r0)/2,L="center"):L==="left"?(E=o.r0+A,L=V?"right":"left"):L==="right"&&(E=o.r-A,L=V?"left":"right"),S.style.align=L,S.style.verticalAlign=m(_,"verticalAlign")||"middle",S.x=E*u+o.cx,S.y=E*c+o.cy;var B=0;N==="radial"?B=zn(-l)+(V?Math.PI:0):N==="tangential"?B=zn(Math.PI/2-l)+(V?Math.PI:0):ot(N)&&(B=N*Math.PI/180),S.rotation=zn(B)});function m(y,_){var b=y.get(_);return b??i.get(_)}d.dirtyStyle()},t}(Kr),Jx="sunburstRootToNode",U5="sunburstHighlight",Fve="sunburstUnhighlight";function zve(e){e.registerAction({type:Jx,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=dd(t,[Jx],a);if(o){var s=a.getViewRoot();s&&(t.direction=Zw(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:U5,update:"none"},function(t,r,n){t=j({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=dd(t,[U5],i);o&&(t.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&er("sunburstHighlight","highlight"),n.dispatchAction(j(t,{type:"highlight"}))}),e.registerAction({type:Fve,update:"updateView"},function(t,r,n){t=j({},t),process.env.NODE_ENV!=="production"&&er("sunburstUnhighlight","downplay"),n.dispatchAction(j(t,{type:"downplay"}))})}var $ve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(_){d.push(_)});var p=this._oldChildren||[];v(d,p),y(l,u),this._initEvents(),this._oldChildren=d;function v(_,b){if(_.length===0&&b.length===0)return;new so(b,_,S,S).add(x).update(x).remove(Be(x,null)).execute();function S(w){return w.getId()}function x(w,C){var T=w==null?null:_[w],D=C==null?null:b[C];g(T,D)}}function g(_,b){if(!f&&_&&!_.getValue()&&(_=null),_!==l&&b!==l){if(b&&b.piece)_?(b.piece.updateData(!1,_,r,n,a),s.setItemGraphicEl(_.dataIndex,b.piece)):m(b);else if(_){var S=new G5(_,r,n,a);c.add(S),s.setItemGraphicEl(_.dataIndex,S)}}}function m(_){_&&_.piece&&(c.remove(_.piece),_.piece=null)}function y(_,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,_,r,n,a):(o.virtualPiece=new G5(_,r,n,a),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";yg(u,c)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Jx,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(yt),Hve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};W5(a);var i=this._levelModels=ee(r.levels||[],function(l){return new ft(l,this,n)},this),o=jw.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=xm(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){rB(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Et);function W5(e){var t=0;M(e.children,function(n){W5(n);var a=n.value;J(a)&&(a=a[0]),t+=a});var r=e.value;J(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),J(e.value)?e.value[0]=r:e.value=r}var Y5=Math.PI/180;function Gve(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");J(i)||(i=[0,i]),J(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ue(a[0],o),c=ue(a[1],s),f=ue(i[0],l/2),d=ue(i[1],l/2),p=-n.get("startAngle")*Y5,v=n.get("minAngle")*Y5,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,_=n.get("sort");_!=null&&X5(m,_);var b=0;M(m.children,function(P){!isNaN(P.getValue())&&b++});var S=m.getValue(),x=Math.PI/(S||b)*2,w=m.depth>0,C=m.height-(w?-1:1),T=(d-f)/(C||1),D=n.get("clockwise"),E=n.get("stillShowZeroSum"),A=D?1:-1,L=function(P,V){if(P){var B=V;if(P!==g){var G=P.getValue(),U=S===0&&E?x:G*x;U<v&&(U=v),B=V+A*U;var W=P.depth-y-(w?-1:1),re=f+T*W,le=f+T*(W+1),Y=n.getLevelModel(P);if(Y){var X=Y.get("r0",!0),fe=Y.get("r",!0),we=Y.get("radius",!0);we!=null&&(X=we[0],fe=we[1]),X!=null&&(re=ue(X,l/2)),fe!=null&&(le=ue(fe,l/2))}P.setLayout({angle:U,startAngle:V,endAngle:B,clockwise:D,cx:u,cy:c,r0:re,r:le})}if(P.children&&P.children.length){var de=0;M(P.children,function(pe){de+=L(pe,V+de)})}return B-V}};if(w){var N=f,I=f+T,k=Math.PI*2;g.setLayout({angle:k,startAngle:p,endAngle:p+k,clockwise:D,cx:u,cy:c,r0:N,r:I})}L(m,p)})}function X5(e,t){var r=e.children||[];e.children=Uve(r,t),r.length&&M(e.children,function(n){X5(n,t)})}function Uve(e,t){if(Se(t)){var r=ee(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),ee(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Wve(e){var t={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&he(s)&&(s=_v(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");j(u,l)})})}function Yve(e){e.registerChartView($ve),e.registerSeriesModel(Hve),e.registerLayout(Be(Gve,"sunburst")),e.registerProcessor(Be(id,"sunburst")),e.registerVisual(Wve),zve(e)}var K5={color:"fill",borderColor:"stroke"},Xve={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ho=at(),Kve=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return wi(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=ho(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Et);function jve(e,t){return t=t||[0,0],ee(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Zve(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ge(jve,e)}}}function qve(e,t){return t=t||[0,0],ee([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function Jve(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ge(qve,e)}}}function Qve(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function ege(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ge(Qve,e)}}}function tge(e,t){return t=t||[0,0],ee(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function rge(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ge(tge,e)}}}function nge(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}var j5={};function Z5(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ye(e,"text")))}function q5(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},ye(n,"text")&&(o.text=n.text),ye(n,"rich")&&(o.rich=n.rich),ye(n,"textFill")&&(o.fill=n.textFill),ye(n,"textStroke")&&(o.stroke=n.textStroke),ye(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ye(n,"fontSize")&&(o.fontSize=n.fontSize),ye(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ye(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=ye(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),ye(n,"textPosition")&&(a.position=n.textPosition),ye(n,"textOffset")&&(a.offset=n.textOffset),ye(n,"textRotation")&&(a.rotation=n.textRotation),ye(n,"textDistance")&&(a.distance=n.textDistance)}return J5(o,e),M(o.rich,function(l){J5(l,l)}),{textConfig:a,textContent:i}}function J5(e,t){t&&(t.font=t.textFont||t.font,ye(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ye(t,"textAlign")&&(e.align=t.textAlign),ye(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ye(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ye(t,"textWidth")&&(e.width=t.textWidth),ye(t,"textHeight")&&(e.height=t.textHeight),ye(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ye(t,"textPadding")&&(e.padding=t.textPadding),ye(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ye(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ye(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ye(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ye(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ye(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ye(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Q5(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";eF(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,M(t.rich,function(s){eF(s,s)}),n}function eF(e,t){t&&(ye(t,"fill")&&(e.textFill=t.fill),ye(t,"stroke")&&(e.textStroke=t.fill),ye(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ye(t,"font")&&(e.font=t.font),ye(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ye(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ye(t,"fontSize")&&(e.fontSize=t.fontSize),ye(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ye(t,"align")&&(e.textAlign=t.align),ye(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ye(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ye(t,"width")&&(e.textWidth=t.width),ye(t,"height")&&(e.textHeight=t.height),ye(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ye(t,"padding")&&(e.textPadding=t.padding),ye(t,"borderColor")&&(e.textBorderColor=t.borderColor),ye(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ye(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ye(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ye(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ye(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ye(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ye(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ye(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ye(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ye(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function tF(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;j5[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),j5[r]=!0)}}var rF={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},nF=qe(rF),Rm=Qn(fi,function(e,t){return e[t]=1,e},{}),aF=fi.join(", "),Vm=["","style","shape","extra"],Pc=at();function Qx(e,t,r,n,a){var i=e+"Animation",o=Zu(e,n,a)||{},s=Pc(t).userDuring;return o.duration>0&&(o.during=s?ge(lge,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),j(o,r[i]),o}function Bm(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Pc(e),u=t.style;l.userDuring=t.during;var c={},f={};if(cge(e,t,f),sF("shape",t,f),sF("extra",t,f),!i&&s&&(uge(e,t,c),oF("shape",e,t,c),oF("extra",e,t,c),fge(e,t,u,c)),f.style=u,age(e,f,o),oge(e,t),s)if(i){var d={};M(Vm,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),j(v?d[v]:d,g.enterFrom))});var p=Qx("enter",e,t,r,a);p.duration>0&&e.animateFrom(d,p)}else ige(e,t,a||0,r,c);iF(e,t),u?e.dirty():e.markRedraw()}function iF(e,t){for(var r=Pc(e).leaveToProps,n=0;n<Vm.length;n++){var a=Vm[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=Pc(e).leaveToProps={}),a&&(r[a]=r[a]||{}),j(a?r[a]:r,i.leaveTo))}}function Fm(e,t,r,n){if(e){var a=e.parent,i=Pc(e).leaveToProps;if(i){var o=Qx("update",e,t,r,0);o.done=function(){a.remove(e)},e.animateTo(i,o)}else a.remove(e)}}function Kl(e){return e==="all"}function age(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function ige(e,t,r,n,a){if(a){var i=Qx("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function oge(e,t){ye(t,"silent")&&(e.silent=t.silent),ye(t,"ignore")&&(e.ignore=t.ignore),e instanceof oa&&ye(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ze&&ye(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ai={},sge={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&Ne(ye(Rm,e),"Only "+aF+" available in `setTransform`."),Ai.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&Ne(ye(Rm,e),"Only "+aF+" available in `getTransform`."),Ai.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&Oc(e);var r=Ai.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&Oc(e);var t=Ai.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&Oc(e);var r=Ai.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&Po(t)&&Wt("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&Oc(e);var t=Ai.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&Oc(e);var r=Ai.el.extra||(Ai.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&Oc(e);var t=Ai.el.extra;if(t)return t[e]}};function Oc(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function lge(){var e=this,t=e.el;if(t){var r=Pc(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ai.el=t,n(sge)}}function oF(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),Kl(l))j(o,i);else for(var u=Dt(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Kl(s)||Ge(s,e)>=0){!o&&(o=n[e]={});for(var p=qe(i),c=0;c<p.length;c++){var f=p[c],d=i[f];hge(a[f],d)&&(o[f]=d)}}}}}function sF(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=qe(n),o=0;o<i.length;o++){var s=i[o];a[s]=Qf(n[s])}}function uge(e,t,r){for(var n=t.transition,a=Kl(n)?fi:Dt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];process.env.NODE_ENV!=="production"&&lF(o,"el.transition"),r[o]=s}}}function cge(e,t,r){for(var n=0;n<nF.length;n++){var a=nF[n],i=rF[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<fi.length;n++){var s=fi[n];t[s]!=null&&(r[s]=t[s])}}function fge(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!Kl(o)){var l=Dt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(Kl(s)||Kl(o)||Ge(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=n.style={});for(var v=qe(r),u=0;u<v.length;u++){var c=v[u];if(p[c]){var f=a[c];i[c]=f}}}}}}}function hge(e,t){return Lr(e)?e!==t:e!=null&&isFinite(e)}var lF;process.env.NODE_ENV!=="production"&&(lF=function(e,t){ye(Rm,e)||Wt("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+qe(Rm).join("`, `")+"` are permitted.")});var uF=at(),dge=["percent","easing","shape","style","extra"];function cF(e){e.stopAnimation("keyframe"),e.attr(uF(e))}function zm(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(J(t)){M(t,function(s){zm(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Zu("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=uF(e);M(Vm,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),M(n,function(c){var f=e.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var p=qe(d);if(s||(p=ct(p,function(m){return Ge(dge,m)<0})),!!p.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(p);s&&(o[s]=o[s]||{});var g=s?o[s]:o;M(p,function(m){g[m]=((s?e[s]:e)||{})[m]}),l.whenWithKeys(a*c.percent,d,p,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Wt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var po="emphasis",hs="normal",eC="blur",tC="select",ds=[hs,po,eC,tC],rC={normal:["itemStyle"],emphasis:[po,"itemStyle"],blur:[eC,"itemStyle"],select:[tC,"itemStyle"]},nC={normal:["label"],emphasis:[po,"label"],blur:[eC,"label"],select:[tC,"label"]},pge=["x","y"],vge="e\0\0",_a={normal:{},emphasis:{},blur:{},select:{}},fF={cartesian2d:Zve,geo:Jve,single:ege,polar:rge,calendar:nge};function $m(e){return e instanceof Ze}function aC(e){return e instanceof oa}function gge(e,t){t.copyTransform(e),aC(t)&&aC(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,$m(t)&&$m(e)&&t.setShape(e.shape))}var mge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=dF(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){sC(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Fm(d,ho(d).option,r)}).update(function(f,d){var p=o.getItemGraphicEl(d);sC(a,p,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?rd(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=dF(n,s,a,i),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=sC(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Jo(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(yt);function iC(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=yF(n);r=Sh(i,null,a,n.layout||"center"),ho(r).customPathData=i}else if(t==="image")r=new br({}),ho(r).customImagePath=e.style.image;else if(t==="text")r=new tt({});else if(t==="group")r=new Oe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=og(t);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),vt(s)}r=new o}return ho(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function oC(e,t,r,n,a,i,o){cF(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=pge);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;ye(u,"textFill")&&(u.fill=u.textFill),ye(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=$m(t)?l.decal:null;e&&f&&(f.dirty=!0,c=gc(f,e)),l.__decalPattern=c}if(aC(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Bm(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),zm(t,n.keyframeAnimation,i)}function hF(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ll(i)}}function yge(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ds.length;s++)_ge(n,t,ds[s])}}function _ge(e,t,r){var n=r===hs,a=n?t:Hm(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function dF(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(Ne(a,"series.render is required."),Ne(i.prepareCustoms||fF[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):fF[i.type](i));for(var s=Me({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:w,ordinalRawValue:x,styleEmphasis:C,visual:E,barLayout:A,currentSeriesIndices:L,font:N},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:bge(e.getData())},u,c,f={},d={},p={},v={},g=0;g<ds.length;g++){var m=ds[g];p[m]=e.getModel(rC[m]),v[m]=e.getModel(nC[m])}function y(I){return I===u?c||(c=t.getItemModel(I)):t.getItemModel(I)}function _(I,k){return t.hasItemOption?I===u?f[k]||(f[k]=y(I).getModel(rC[k])):y(I).getModel(rC[k]):p[k]}function b(I,k){return t.hasItemOption?I===u?d[k]||(d[k]=y(I).getModel(nC[k])):y(I).getModel(nC[k]):v[k]}return function(I,k){return u=I,c=null,f={},d={},a&&a(Me({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:k?k.type:null},l),s)};function S(I,k){return k==null&&(k=u),t.getStore().get(t.getDimensionIndex(I||0),k)}function x(I,k){k==null&&(k=u),I=I||0;var P=t.getDimensionInfo(I);if(!P){var V=t.getDimensionIndex(I);return V>=0?t.getStore().get(V,k):void 0}var B=t.get(P.name,k),G=P&&P.ordinalMeta;return G?G.categories[B]:B}function w(I,k){process.env.NODE_ENV!=="production"&&tF("api.style","Please write literal style directly instead."),k==null&&(k=u);var P=t.getItemVisual(k,"style"),V=P&&P.fill,B=P&&P.opacity,G=_(k,hs).getItemStyle();V!=null&&(G.fill=V),B!=null&&(G.opacity=B);var U={inheritColor:he(V)?V:"#000"},W=b(k,hs),re=Nt(W,null,U,!1,!0);re.text=W.getShallow("show")?Re(e.getFormattedLabel(k,hs),Cc(t,k)):null;var le=cg(W,U,!1);return D(I,G),G=Q5(G,re,le),I&&T(G,I),G.legacy=!0,G}function C(I,k){process.env.NODE_ENV!=="production"&&tF("api.styleEmphasis","Please write literal style directly instead."),k==null&&(k=u);var P=_(k,po).getItemStyle(),V=b(k,po),B=Nt(V,null,null,!0,!0);B.text=V.getShallow("show")?On(e.getFormattedLabel(k,po),e.getFormattedLabel(k,hs),Cc(t,k)):null;var G=cg(V,null,!0);return D(I,P),P=Q5(P,B,G),I&&T(P,I),P.legacy=!0,P}function T(I,k){for(var P in k)ye(k,P)&&(I[P]=k[P])}function D(I,k){I&&(I.textFill&&(k.textFill=I.textFill),I.textPosition&&(k.textPosition=I.textPosition))}function E(I,k){if(k==null&&(k=u),ye(K5,I)){var P=t.getItemVisual(k,"style");return P?P[K5[I]]:null}if(ye(Xve,I))return t.getItemVisual(k,I)}function A(I){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return Zoe(Me({axis:k},I))}}function L(){return r.getCurrentSeriesIndices()}function N(I){return Tb(I,r)}}function bge(e){var t={};return M(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function sC(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=lC(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Yt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function lC(e,t,r,n,a,i){process.env.NODE_ENV!=="production"&&Ne(n,"should not have an null/undefined element setting");var o=-1,s=t;t&&pF(t,n,a)&&(o=Ge(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=iC(n),s&&gge(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),_a.normal.cfg=_a.normal.conOpt=_a.emphasis.cfg=_a.emphasis.conOpt=_a.blur.cfg=_a.blur.conOpt=_a.select.cfg=_a.select.conOpt=null,_a.isLegacy=!1,wge(u,r,n,a,l,_a),Sge(u,r,n,a,l),oC(e,u,r,n,_a,a,l),ye(n,"info")&&(ho(u).info=n.info);for(var c=0;c<ds.length;c++){var f=ds[c];if(f!==hs){var d=Hm(n,f),p=uC(n,d,f);hF(f,u,d,p,_a)}}return yge(u,n,a),n.type==="group"&&xge(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function pF(e,t,r){var n=ho(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Ege(i)&&yF(i)!==n.customPathData||a==="image"&&ye(o,"image")&&o.image!==n.customImagePath}function Sge(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&pF(o,i,n)&&(o=null),o||(o=iC(i),process.env.NODE_ENV!=="production"&&Ne($m(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),oC(null,o,t,i,null,n,a)}}function wge(e,t,r,n,a,i){if(!e.isGroup){vF(r,null,i),vF(r,po,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=iC(o),e.setTextContent(c)),oC(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d<ds.length;d++){var p=ds[d];if(p!==hs){var v=i[p].conOpt;hF(p,c,v,uC(o,v,p),null)}}f?c.dirty():c.markRedraw()}}}}function vF(e,t,r){var n=t?Hm(e,t):e,a=t?uC(e,n,po):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Hm(s,t):s:null;if(a&&(r.isLegacy||Z5(a,i,!!o,!!l))){r.isLegacy=!0;var u=q5(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&Ne(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Hm(e,t){return t?e?e[t]:null:e}function uC(e,t,r){var n=t&&t.style;return n==null&&r===po&&e&&(n=e.styleEmphasis),n}function xge(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Tge({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),lC(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&Ne(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var p=t.childCount()-1;p>=c;p--){var v=t.childAt(p);Cge(t,v,a)}}}function Cge(e,t,r){t&&Fm(t,ho(e).option,r)}function Tge(e){new so(e.oldChildren,e.newChildren,gF,gF,e).add(mF).update(mF).remove(Dge).execute()}function gF(e,t){var r=e&&e.name;return r??vge+t}function mF(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;lC(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function Dge(e){var t=this.context,r=t.oldChildren[e];r&&Fm(r,ho(r).option,t.seriesModel)}function yF(e){return e&&(e.pathData||e.d)}function Ege(e){return e&&(ye(e,"pathData")||ye(e,"d"))}function Age(e){e.registerChartView(mge),e.registerSeriesModel(Kve)}var jl=at(),_F=ke,cC=ge,fC=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Be(bF,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}xF(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Iw(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=jl(t).pointerEl=new pl[i.type](_F(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=jl(t).labelEl=new tt(_F(r.label));t.add(i),wF(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=jl(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=jl(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),wF(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Qu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qi(u.event)},onmousedown:cC(this._onHandleDragMove,this,0,0),drift:cC(this._onHandleDragMove,this),ondragend:cC(this._onHandleDragEnd,this)}),n.add(a)),xF(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");J(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,hc(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){bF(this._axisPointerModel,!r&&this._moveAnimation,this._handle,hC(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(hC(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(hC(a)),jl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Oh(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function bF(e,t,r,n){SF(jl(r).lastProp,n)||(jl(r).lastProp=n,t?st(r,n,e):(r.stopAnimation(),r.attr(n)))}function SF(e,t){if(Ee(e)&&Ee(t)){var r=!0;return M(t,function(n,a){r=r&&SF(e[a],n)}),!!r}else return e===t}function wF(e,t){e[t.get(["label","show"])?"show":"hide"]()}function hC(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function xF(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function dC(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function CF(e,t,r,n,a){var i=r.get("value"),o=TF(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=vl(s.get("padding")||0),u=s.getFont(),c=rh(o,u),f=a.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=p),g==="middle"&&(f[1]-=p/2),Mge(f,d,p,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Mge(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function TF(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:jS(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),he(o)?i=o.replace("{value}",i):Se(o)&&(i=o(s))}return i}function pC(e,t,r){var n=xn();return Bo(n,n,r.rotation),La(n,n,r.position),za([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function DF(e,t,r,n,a,i){var o=vn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),CF(t,n,a,i,{position:pC(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vC(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function EF(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function AF(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var Nge=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=MF(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=dC(i),p=Ige[u](s,f,c);p.style=d,r.graphicKey=p.type,r.pointer=p}var v=Ew(l.model,a);DF(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=Ew(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pC(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MF(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:p,tooltipOption:v[c]}},t}(fC);function MF(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Ige={line:function(e,t,r){var n=vC([t,r[0]],[t,r[1]],NF(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:EF([t-n/2,r[0]],[n,a],NF(e))}}};function NF(e){return e.dim==="x"?0:1}var Lge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return 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}(Ue),vo=at(),kge=M;function IF(e,t,r){if(!Xe.node){var n=t.getZr();vo(n).records||(vo(n).records={}),Pge(n,t);var a=vo(n).records[e]||(vo(n).records[e]={});a.handler=r}}function Pge(e,t){if(vo(e).initialized)return;vo(e).initialized=!0,r("click",Be(LF,"click")),r("mousemove",Be(LF,"mousemove")),r("globalout",Rge);function r(n,a){e.on(n,function(i){var o=Vge(t);kge(vo(e).records,function(s){s&&a(s,i,o.dispatchAction)}),Oge(o.pendings,t)})}}function Oge(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function Rge(e,t,r){e.handler("leave",null,r)}function LF(e,t,r,n){t.handler(e,r,n)}function Vge(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function gC(e,t){if(!Xe.node){var r=t.getZr(),n=(vo(r).records||{})[e];n&&(vo(r).records[e]=null)}}var Bge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";IF("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){gC("axisPointer",n)},t.prototype.dispose=function(r,n){gC("axisPointer",n)},t.type="axisPointer",t}(kt);function kF(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Zs(i,e);if(o==null||o<0||J(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),g=[];g[p]=i.get(v,o),g[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(i.getValues(ee(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var PF=at();function Fge(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||ge(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Gm(a)&&(a=kF({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Gm(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Gm(a),d={},p={},v={list:[],map:{}},g={showPointer:Be($ge,p),showTooltip:Be(Hge,v)};M(s.coordSysMap,function(y,_){var b=l||y.containPoint(a);M(s.coordSysAxesInfo[_],function(S,x){var w=S.axis,C=Yge(u,S);if(!f&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=w.pointToData(a)),T!=null&&OF(S,T,g,!1,d)}})});var m={};return M(c,function(y,_){var b=y.linkGroup;b&&!p[_]&&M(b.axesInfo,function(S,x){var w=p[x];if(S!==y&&w){var C=w.value;b.mapper&&(C=y.axis.scale.parse(b.mapper(C,RF(S),RF(y)))),m[y.key]=C}})}),M(m,function(y,_){OF(c[_],y,g,!0,d)}),Gge(p,c,d),Uge(v,a,e,o),Wge(c,o,r),d}}function OF(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=zge(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&j(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function zge(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,e,r);d=p.dataIndices,f=p.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,a=f,i.length=0),M(d,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function $ge(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Hge(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=sd(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Gge(e,t,r){var n=r.axesInfo=[];M(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Uge(e,t,r,n){if(Gm(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function Wge(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=PF(n)[a]||{},o=PF(n)[a]={};M(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&M(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Yge(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function RF(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Gm(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Td(e){Fl.registerAxisPointerClass("CartesianAxisPointer",Nge),e.registerComponentModel(Lge),e.registerComponentView(Bge),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!J(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=nce(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Fge)}function Xge(e){We(fV),We(Td)}var Kge=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=i.get("type");if(d&&d!=="none"){var p=dC(i),v=Zge[d](s,l,f,c);v.style=p,r.graphicKey=v.type,r.pointer=v}var g=i.get(["label","margin"]),m=jge(n,a,i,l,g);CF(r,a,i,o,m)},t}(fC);function jge(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=xn();Bo(d,d,s),La(d,d,[n.cx,n.cy]),u=za([o,-a],d);var p=t.getModel("axisLabel").get("rotate")||0,v=vn.innerTextLayout(s,p*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+a,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var Zge={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:vC(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:AF(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:AF(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}},qge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Ue),mC=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sr).models[0]},t.type="polarAxis",t}(Ue);qt(mC,wc);var Jge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mC),Qge=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mC),yC=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(va);yC.prototype.dataToRadius=va.prototype.dataToCoord,yC.prototype.radiusToData=va.prototype.coordToData;var eme=at(),_C=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=rh(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),v=eme(r.model),g=v.lastAutoInterval,m=v.lastTickCount;return g!=null&&m!=null&&Math.abs(g-p)<=1&&Math.abs(m-o)<=1&&g>p?p=g:(v.lastTickCount=o,v.lastAutoInterval=p),p},t}(va);_C.prototype.dataToAngle=va.prototype.dataToCoord,_C.prototype.angleToData=va.prototype.coordToData;var VF=["radius","angle"],tme=function(){function e(t){this.dimensions=VF,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new yC,this._angleAxis=new _C,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,d=this.r,p=this.r0;return d!==p&&f-o<=d*d&&f+o>=p*p}}},e.prototype.convertToPixel=function(t,r,n){var a=BF(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=BF(r);return a===this?this.pointToData(n):null},e}();function BF(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function rme(e,t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight();e.cx=ue(n[0],a),e.cy=ue(n[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:J(l)||(l=[0,l]);var u=[ue(l[0],s),ue(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function nme(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();M(nm(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(nm(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ml(n.scale,n.model),Ml(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function ame(e){return e.mainType==="angleAxis"}function FF(e,t){var r;if(e.type=t.get("type"),e.scale=Kh(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),ame(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,a)}t.axis=e,e.model=t}var ime={dimensions:VF,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new tme(a+"");i.update=nme;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");FF(o,l),FF(s,u),rme(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",sr).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+Qt(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),r}},ome=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Um(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Wm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function zF(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var sme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=ee(a.getViewLabels(),function(c){c=ke(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});zF(u),zF(s),M(ome,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&lme[c](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Fl),lme={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Wm(r),f=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new pl[p]({shape:{cx:r.cx,cy:r.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new Xu({shape:{cx:r.cx,cy:r.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Wm(r)],u=ee(n,function(c){return new dr({shape:Um(r,[l,l+s],c.coord)})});e.add($n(u,{style:Me(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Wm(r)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new dr({shape:Um(r,[u,u+l],a[f][d].coord)}));e.add($n(c,{style:Me(s.getModel("lineStyle").getLineStyle(),Me(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");M(o,function(f,d){var p=l,v=f.tickValue,g=i[Wm(r)],m=r.coordToPoint([g+u,f.coord]),y=r.cx,_=r.cy,b=Math.abs(m[0]-y)/g<.3?"center":m[0]>y?"left":"right",S=Math.abs(m[1]-_)/g<.3?"middle":m[1]>_?"top":"bottom";if(s&&s[v]){var x=s[v];Ee(x)&&x.textStyle&&(p=new ft(x.textStyle,l,l.ecModel))}var w=new tt({silent:vn.isLabelSilent(t),style:Nt(p,{x:m[0],y:m[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:S})});if(e.add(w),c){var C=vn.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ve(w).eventData=C}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new dr({shape:Um(r,i,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add($n(c[f],{style:Me({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new dr({shape:Um(r,i,a[u][c].coord)}));e.add($n(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,p=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),g=t.get("clockwise"),m=1,y=n.length;m<=y;m++){var _=m===y?n[0].coord:n[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Kr({shape:{cx:r.cx,cy:r.cy,r0:p,r:v,startAngle:d,endAngle:-_*f,clockwise:g},silent:!0})),d=-_*f}for(var m=0;m<c.length;m++)e.add($n(c[m],{style:Me({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},ume=["axisLine","axisTickLabel","axisName"],cme=["splitLine","splitArea","minorSplitLine"],fme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new Oe;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),p=dme(s,r,f),v=new vn(r,p);M(ume,v.add,v),i.add(v.getGroup()),wh(a,i,r),M(cme,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&hme[g](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Fl),hme={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),p=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],g=0;g<i.length;g++){var m=u++%l.length;v[m]=v[m]||[],v[m].push(new pl[p]({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[g].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)e.add($n(v[g],{style:Me({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new yi({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add($n(u,{style:Me({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Kr({shape:{cx:r.cx,cy:r.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)e.add($n(c[d],{style:Me({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function dme(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function $F(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function HF(e,t){return t.dim+e.model.componentIndex}function pme(e,t,r){var n={},a=vme(ct(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=HF(s,l),c=$F(i),f=a[u][c],d=f.offset,p=f.width,v=s.getOtherAxis(l),g=i.coordinateSystem.cx,m=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,_=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var b=o.mapDimension(v.dim),S=o.mapDimension(l.dim),x=lo(o,b),w=l.dim!=="radius"||!i.get("roundCap",!0),C=v.model,T=C.get("startValue"),D=v.dataToCoord(T||0),E=0,A=o.count();E<A;E++){var L=o.get(b,E),N=o.get(S,E),I=L>=0?"p":"n",k=D;x&&(n[c][N]||(n[c][N]={p:D,n:D}),k=n[c][N][I]);var P=void 0,V=void 0,B=void 0,G=void 0;if(v.dim==="radius"){var U=v.dataToCoord(L)-D,W=l.dataToCoord(N);Math.abs(U)<y&&(U=(U<0?-1:1)*y),P=k,V=k+U,B=W-d,G=B-p,x&&(n[c][N][I]=V)}else{var re=v.dataToCoord(L,w)-D,le=l.dataToCoord(N);Math.abs(re)<_&&(re=(re<0?-1:1)*_),P=le+d,V=P+p,B=k,G=k+re,x&&(n[c][N][I]=G)}o.setItemLayout(E,{cx:g,cy:m,r0:P,r:V,startAngle:-B*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:B>=G})}}})}function vme(e){var t={};M(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=HF(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var p=$F(n);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var v=ue(n.get("barWidth"),c),g=ue(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!d[p].width&&(v=Math.min(f.remainedWidth,v),d[p].width=v,f.remainedWidth-=v),g&&(d[p].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return M(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=ue(n.categoryGap,o),l=ue(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),M(i,function(g,m){var y=g.maxWidth;y&&y<f&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,p;M(i,function(g,m){g.width||(g.width=f),p=g,d+=g.width*(1+l)}),p&&(d-=p.width*l);var v=-d/2;M(i,function(g,m){r[a][m]=r[a][m]||{offset:v,width:g.width},v+=g.width*(1+l)})}),r}var gme={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},mme={splitNumber:5},yme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(kt);function _me(e){We(Td),Fl.registerAxisPointerClass("PolarAxisPointer",Kge),e.registerCoordinateSystem("polar",ime),e.registerComponentModel(qge),e.registerComponentView(yme),Dc(e,"angle",Jge,gme),Dc(e,"radius",Qge,mme),e.registerComponentView(sme),e.registerComponentView(fme),e.registerLayout(Be(pme,"bar"))}function bC(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Qt(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var bme=["axisLine","axisTickLabel","axisName"],Sme=["splitArea","splitLine"],wme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Oe;var l=bC(r),u=new vn(r,l);M(bme,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(Sme,function(c){r.get([c,"show"])&&xme[c](this,this.group,this._axisGroup,r)},this),wh(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){sV(this)},t.type="singleAxis",t}(Fl),xme={splitLine:function(e,t,r,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,p=a.getTicksCoords({tickModel:i}),v=[],g=[],m=0;m<p.length;++m){var y=a.toGlobalCoord(p[m].coord);c?(v[0]=y,v[1]=u.y,g[0]=y,g[1]=u.y+u.height):(v[0]=u.x,v[1]=y,g[0]=u.x+u.width,g[1]=y);var _=new dr({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});Ju(_.shape,l);var b=d++%s.length;f[b]=f[b]||[],f[b].push(_)}for(var S=o.getLineStyle(["color"]),m=0;m<f.length;++m)t.add($n(f[m],{style:Me({stroke:s[m%s.length]},S),silent:!0}))}},splitArea:function(e,t,r,n){oV(e,r,n,n)}},Ym=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Ue);qt(Ym,wc.prototype);var Cme=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(va),GF=["single"],Tme=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=GF,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=new Cme(a,Kh(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();M(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Ml(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=lr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},e.prototype.convertToPixel=function(t,r,n){var a=UF(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=UF(r);return a===this?this.pointToData(n):null},e}();function UF(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Dme(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new Tme(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",sr).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var Eme={create:Dme,dimensions:GF},WF=["x","y"],Ame=["width","height"],Mme=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=SC(l,1-Xm(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var d=dC(i),p=Nme[f](s,c,u);p.style=d,r.graphicKey=p.type,r.pointer=p}var v=bC(a);DF(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=bC(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pC(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Xm(o),u=SC(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=SC(s,1-l),d=(f[1]+f[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t}(fC),Nme={line:function(e,t,r){var n=vC([t,r[0]],[t,r[1]],Xm(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:EF([t-n/2,r[0]],[n,a],Xm(e))}}};function Xm(e){return e.isHorizontal()?0:1}function SC(e,t){var r=e.getRect();return[r[WF[t]],r[WF[t]]+r[Ame[t]]]}var Ime=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(kt);function Lme(e){We(Td),Fl.registerAxisPointerClass("SingleAxisPointer",Mme),e.registerComponentView(Ime),e.registerComponentView(wme),e.registerComponentModel(Ym),Dc(e,"single",Ym,Ym.defaultOption),e.registerCoordinateSystem("single",Eme)}var kme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=ic(r);e.prototype.init.apply(this,arguments),YF(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),YF(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Ue);function YF(e,t){var r=e.cellSize,n;J(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=ee([0,1],function(i){return Rne(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});es(e,t,{type:"box",ignoreSize:a})}var Pme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new et({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var p=f.date;p.setMonth(p.getMonth()+1),f=s.getDateInfo(p)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(r,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new Zr({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return he(r)&&r?Lne(r,n):Se(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:v},y=this._formatterLabel(g,m),_=new tt({z2:30,style:Nt(o,{text:y}),silent:o.get("silent")});_.attr(this._yearTextPositionControl(_,p[l],a,l,s)),i.add(_)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||he(s))&&(s&&(n=Ib(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",g=o.get("silent"),m=0;m<f[d].length-1;m++){var y=f[d][m].slice(),_=this._firstDayOfMonth[m];if(v){var b=this._firstDayPoints[m];y[p]=(b[p]+f[0][m+1][p])/2}var S=o.get("formatter"),x=s[+_.m-1],w={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:x},C=this._formatterLabel(S,w),T=new tt({z2:30,style:j(Nt(o,{text:C}),this._monthTextPositionControl(y,v,a,u,l)),silent:g});i.add(T)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],c=r[1],f=a==="start";return n==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||he(c)){c&&(n=Ib(c)||n);var p=n.get(["time","dayOfWeekShort"]);c=p||ee(n.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=ue(f,Math.min(g[1],g[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var m=s.get("silent"),y=0;y<7;y++){var _=l.getNextNDay(v,y),b=l.dataToRect([_.time],!1).center,S=y;S=Math.abs((y+d)%7);var x=new tt({z2:30,style:j(Nt(s,{text:c[S]}),this._weekTextPositionControl(b,i,u,f,g)),silent:m});o.add(x)}}},t.type="calendar",t}(kt),wC=864e5,Ome=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Fn(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];M([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=lr(o,l);M([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r){J(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+wC))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=XF(r);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=XF(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(J(t)&&t.length===1&&(t=t[0]),J(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return process.env.NODE_ENV!=="production"&&Jn("Invalid date range."),t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/wC)-Math.floor(r[0].time/wC)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function XF(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function Rme(e){e.registerComponentModel(kme),e.registerComponentView(Pme),e.registerCoordinateSystem("calendar",Ome)}function Vme(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function KF(e,t){var r;return M(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Bme(e,t,r){var n=j({},r),a=e[t],i=r.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=r.type;Ne(!o||a.type===o,'Please set $action: "replace" to change `type`')}Fe(a,n,!0),es(a,n,{ignoreSize:!0}),TL(r,a),Km(r,a),Km(r,a,"shape"),Km(r,a,"style"),Km(r,a,"extra"),r.clipPath=a.clipPath}else e[t]=n;else i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var jF=["transition","enterFrom","leaveTo"],Fme=jF.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Km(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?jF:Fme,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function zme(e,t){if(e&&(e.hv=t.hv=[KF(t,["left","right"]),KF(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var $me=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=PN(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(c,f){var d=c.newOption;process.env.NODE_ENV!=="production"&&Ne(Ee(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),Vme(c,d),Bme(o,f,d),zme(o[f],d))},this),a.elements=ct(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,a){M(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Ue),ZF={path:null,compoundPath:null,group:Oe,image:br,text:tt},ba=at(),Hme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=_e()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");M(n,function(l){var u=hr(l.id,null),c=u!=null?a.get(u):null,f=hr(l.parentId,null),d=f!=null?a.get(f):i,p=l.type,v=l.style;p==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var g=l.textContent,m=l.textConfig;if(v&&Z5(v,p,!!m,!!g)){var y=q5(v,p,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var _=Gme(l);process.env.NODE_ENV!=="production"&&c&&Ne(d===c.parent,"Changing parent is not supported.");var b=l.$action||"merge",S=b==="merge",x=b==="replace";if(S){var w=!c,C=c;w?C=qF(u,d,l.type,a):(C&&(ba(C).isNew=!1),cF(C)),C&&(Bm(C,_,r,{isInit:w}),JF(C,l,o,s))}else if(x){jm(c,l,a,r);var T=qF(u,d,l.type,a);T&&(Bm(T,_,r,{isInit:!0}),JF(T,l,o,s))}else b==="remove"&&(iF(c,l),jm(c,l,a,r));var D=a.get(u);if(D&&g)if(S){var E=D.getTextContent();E?E.attr(g):D.setTextContent(new tt(g))}else x&&D.setTextContent(new tt(g));if(D){var A=l.clipPath;if(A){var L=A.type,N=void 0,w=!1;if(S){var I=D.getClipPath();w=!I||ba(I).type!==L,N=w?xC(L):I}else x&&(w=!0,N=xC(L));D.setClipPath(N),Bm(N,A,r,{isInit:w}),zm(N,A.keyframeAnimation,r)}var k=ba(D);D.setTextConfig(m),k.option=l,Ume(D,r,l),dl({el:D,componentModel:r,itemName:D.name,itemTooltipOption:l.tooltip}),zm(D,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=hr(f.id,null),p=d!=null?o.get(d):null;if(!(!p||!p.isGroup)){var v=p.parent,g=v===i,m=ba(p),y=ba(v);m.width=ue(m.option.width,g?s:y.width)||0,m.height=ue(m.option.height,g?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=hr(f.id,null),p=d!=null?o.get(d):null;if(p){var v=p.parent,y=ba(v),_=v===i?{width:s,height:l}:{width:y.width,height:y.height},b={},S=bg(p,f,_,null,{hv:f.hv,boundingMode:f.bounding},b);if(!ba(p).isNew&&S){for(var x=f.transition,w={},C=0;C<u.length;C++){var T=u[C],D=b[T];x&&(Kl(x)||Ge(x,T)>=0)?w[T]=D:p[T]=D}st(p,w,r,0)}else p.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){jm(a,ba(a).option,n,r._lastGraphicModel)}),this._elMap=_e()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(kt);function xC(e){process.env.NODE_ENV!=="production"&&Ne(e,"graphic type MUST be set");var t=ye(ZF,e)?ZF[e]:og(e);process.env.NODE_ENV!=="production"&&Ne(t,"graphic type "+e+" can not be found");var r=new t({});return ba(r).type=e,r}function qF(e,t,r,n){var a=xC(r);return t.add(a),n.set(e,a),ba(a).id=e,ba(a).isNew=!0,a}function jm(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){jm(i,t,r,n)}),Fm(e,t,n),r.removeKey(ba(e).id))}function JF(e,t,r,n){e.isGroup||M([["cursor",oa.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];ye(t,i)?e[i]=Re(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),M(qe(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Se(i)?i:null}}),ye(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Gme(e){return e=j({},e),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(CL),function(t){delete e[t]}),e}function Ume(e,t,r){var n=Ve(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ve(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Wme(e){e.registerComponentModel($me),e.registerComponentView(Hme),e.registerPreprocessor(function(t){var r=t.graphic;J(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var QF=["x","y","radius","angle","single"],Yme=["cartesian2d","polar","singleAxis"];function Xme(e){var t=e.get("coordinateSystem");return Ge(Yme,t)>=0}function ps(e){return process.env.NODE_ENV!=="production"&&Ne(e),e+"Axis"}function Kme(e,t){var r=_e(),n=[],a=_e();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,p){var v=r.get(d);v&&v[p]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function e3(e){var t=e.ecModel,r={infoList:[],infoMap:_e()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(ps(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var CC=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Dd=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=t3(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=t3(r);Fe(this.option,r,!0),Fe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=_e(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return M(QF,function(a){var i=this.getReferringComponents(ps(a),Cte);if(i.specified){n=!0;var o=new CC;M(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new CC;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var p=f.getReferringComponents("grid",sr).models[0];p&&M(u,function(v){f.componentIndex!==v.componentIndex&&p===v.getReferringComponents("grid",sr).models[0]&&d.add(v.componentIndex)})}}}i&&M(QF,function(u){if(i){var c=a.findComponents({mainType:ps(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new CC;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(ps(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&Ne(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(ps(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&Ne(this._orient),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}(Ue);function t3(e){var t={};return M(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var jme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(Dd),TC=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(kt),Zme=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(TC),Rc=M,r3=Bn,qme=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Xme(r)){var n=ps(this._dimName),a=r.getReferringComponents(n,sr).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ke(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Rc(["start","end"],function(d,p){var v=t[d],g=t[d+"Value"];i[p]==="percent"?(v==null&&(v=o[p]),g=a.parse(pt(v,o,r))):(u=!0,g=g==null?r[p]:a.parse(g),v=pt(g,r,o)),l[p]=g==null||isNaN(g)?r[p]:g,s[p]=v==null||isNaN(v)?o[p]:v}),r3(l),r3(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,p,v,g,m){var y=m?"Span":"ValueSpan";Wl(0,d,v,"all",c["min"+y],c["max"+y]);for(var _=0;_<2;_++)p[_]=pt(d[_],v,g,!0),m&&(p[_]=a.parse(p[_]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=Jme(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Rc(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=ee(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var v,g,m,y=0;y<c.length;y++){var _=f.get(d[y],p),b=!isNaN(_),S=_<o[0],x=_>o[1];if(b&&!S&&!x)return!0;b&&(m=!0),S&&(v=!0),x&&(g=!0)}return m&&v&&g})}else Rc(c,function(p){if(i==="empty")l.setData(u=u.map(p,function(g){return s(g)?g:NaN}));else{var v={};v[p]=o,u.selectRange(v)}});Rc(c,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Rc(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=pt(n[0]+o,n,[0,100],!0):i!=null&&(o=pt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=N1(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function Jme(e,t,r){var n=[1/0,-1/0];Rc(r,function(o){yse(n,o.getData(),t)});var a=e.getAxisModel(),i=uO(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Qme={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(ps(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new qme(a,i,s,e),r.push(o.__dzAxisProxy))});var n=_e();return M(r,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function eye(e){e.registerAction("dataZoom",function(t,r){var n=Kme(r,t);M(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var n3=!1;function DC(e){n3||(n3=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Qme),eye(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function tye(e){e.registerComponentModel(jme),e.registerComponentView(Zme),DC(e)}var Sa=function(){function e(){}return e}(),a3={};function Vc(e,t){a3[e]=t}function i3(e){return a3[e]}var rye=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;M(this.option.feature,function(n,a){var i=i3(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),Fe(n,i.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}(Ue);function nye(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=lr(n,i,a);yl(t.get("orient"),e,t.get("itemGap"),o.width,o.height),bg(e,n,i,a)}function o3(e,t){var r=vl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new et({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var aye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];M(u,function(v,g){f.push(g)}),new so(this._featureNames||[],f).add(d).update(d).remove(Be(d,null)).execute(),this._featureNames=f;function d(v,g){var m=f[v],y=f[g],_=u[m],b=new ft(_,r,r.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(_.title=i.newTitle),m&&!y){if(iye(m))S={onclick:b.option.onclick,featureName:m};else{var x=i3(m);if(!x)return;S=new x}c[m]=S}else if(S=c[y],!S)return;S.uid=tc("toolbox-feature"),S.model=b,S.ecModel=n,S.api=a;var w=S instanceof Sa;if(!m&&y){w&&S.dispose&&S.dispose(n,a);return}if(!b.get("show")||w&&S.unusable){w&&S.remove&&S.remove(n,a);return}p(b,S,m),b.setIconStatus=function(C,T){var D=this.option,E=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,E[C]&&(T==="emphasis"?no:ao)(E[C])},S instanceof Sa&&S.render&&S.render(b,n,a,i)}function p(v,g,m){var y=v.getModel("iconStyle"),_=v.getModel(["emphasis","iconStyle"]),b=g instanceof Sa&&g.getIcons?g.getIcons():v.get("icon"),S=v.get("title")||{},x,w;he(b)?(x={},x[m]=b):x=b,he(S)?(w={},w[m]=S):w=S;var C=v.iconPaths={};M(x,function(T,D){var E=Qu(T,{},{x:-s/2,y:-s/2,width:s,height:s});E.setStyle(y.getItemStyle());var A=E.ensureState("emphasis");A.style=_.getItemStyle();var L=new tt({style:{text:w[D],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null,font:Tb({fontStyle:_.get("textFontStyle"),fontFamily:_.get("textFontFamily"),fontSize:_.get("textFontSize"),fontWeight:_.get("textFontWeight")},n)},ignore:!0});E.setTextContent(L),dl({el:E,componentModel:r,itemName:D,formatterParamsExtra:{title:w[D]}}),E.__title=w[D],E.on("mouseover",function(){var N=_.getItemStyle(),I=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:_.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),E.setTextConfig({position:_.get("textPosition")||I}),L.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(v.get(["iconStatus",D])==="emphasis"?no:ao)(E),o.add(E),E.on("click",ge(g.onclick,g,n,a,D)),C[D]=E})}nye(o,r,a),o.add(o3(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),_=v.getTextContent(),b=_&&_.ensureState("emphasis");if(b&&!Se(b)&&g){var S=b.style||(b.style={}),x=rh(g,tt.makeFont(S)),w=v.x+o.x,C=v.y+o.y+s,T=!1;C+x.height>a.getHeight()&&(y.position="top",T=!0);var D=T?-5-x.height:s+10;w+x.width/2>a.getWidth()?(y.position=["100%",D],S.align="right"):w-x.width/2<0&&(y.position=[0,D],S.align="left")}})},t.prototype.updateView=function(r,n,a,i){M(this._features,function(o){o instanceof Sa&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){M(this._features,function(a){a instanceof Sa&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){M(this._features,function(a){a instanceof Sa&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(kt);function iye(e){return e.indexOf("my")===0}var oye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Xe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),p=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];p&&(v=window.atob(v));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var _=new Blob([y]);window.navigator.msSaveOrOpenBlob(_,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var S=b.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),S.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var w=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Sa),s3="__ec_magicType_stack__",sye=[["line","bar"],["stack"]],lye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return M(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(l3[a]){var s={series:[]},l=function(f){var d=f.subType,p=f.id,v=l3[a](d,p,f,i);v&&(Me(v,f.option),s.series.push(v));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,_=y+"Axis",b=f.getReferringComponents(_,sr).models[0],S=b.componentIndex;s[_]=s[_]||[];for(var x=0;x<=S;x++)s[_][S]=s[_][S]||{};s[_][S].boundaryGap=a==="bar"}}};M(sye,function(f){Ge(f,a)>=0&&M(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Sa),l3={line:function(e,t,r,n){if(e==="bar")return Fe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Fe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===s3;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:t,stack:a?"":s3},n.get(["option","stack"])||{},!0)}};Ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var Zm=new Array(60).join("-"),Bc=" ";function uye(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function cye(e){var t=[];return M(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(ee(r.series,function(p){return p.name})),l=[a.model.getCategories()];M(r.series,function(p){var v=p.getRawData();l.push(p.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Bc)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Bc))}t.push(u.join(`
96
+ `))}),t.join(`
97
+
98
+ `+Zm+`
99
+
100
+ `)}function fye(e){return ee(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Bc:"")+a.join(Bc))}),n.join(`
101
+ `)}).join(`
102
+
103
+ `+Zm+`
104
+
105
+ `)}function hye(e){var t=uye(e);return{value:ct([cye(t.seriesGroupByCategoryAxis),fye(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
106
+
107
+ `+Zm+`
108
+
109
+ `),meta:t.meta}}function qm(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dye(e){var t=e.slice(0,e.indexOf(`
110
+ `));if(t.indexOf(Bc)>=0)return!0}var EC=new RegExp("["+Bc+"]+","g");function pye(e){for(var t=e.split(/\n+/g),r=qm(t.shift()).split(EC),n=[],a=ee(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=qm(t[i]).split(EC);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function vye(e){for(var t=e.split(/\n+/g),r=qm(t.shift()),n=[],a=0;a<t.length;a++){var i=qm(t[a]);if(i){var o=i.split(EC),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function gye(e,t){var r=e.split(new RegExp(`
111
+ *`+Zm+`
112
+ *`,"g")),n={series:[]};return M(r,function(a,i){if(dye(a)){var o=pye(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=vye(a);n.series.push(o)}}),n}var mye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),p=hye(r);if(Se(f)){var v=f(n.getOption());he(v)?u.innerHTML=v:ko(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var g=c.style;g.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",g.color=i.get("textColor"),g.borderColor=i.get("textareaBorderColor"),g.backgroundColor=i.get("textareaColor"),c.value=p.value,u.appendChild(c)}var m=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),S=document.createElement("div");_+=";background-color:"+i.get("buttonColor"),_+=";color:"+i.get("buttonTextColor");var x=this;function w(){a.removeChild(o),x._dom=null}X_(b,"click",w),X_(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){process.env.NODE_ENV!=="production"&&Wt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),w();return}var C;try{Se(d)?C=d(u,n.getOption()):C=gye(c.value,m)}catch(T){throw w(),new Error("Data view format error "+T)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),w()}),b.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=b.style.cssText=_,!i.get("readOnly")&&y.appendChild(S),y.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Sa);function yye(e,t){return ee(e,function(r,n){var a=t&&t[n];if(Ee(a)&&!J(a)){var i=Ee(r)&&!J(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=Me(r,a),o&&delete r.name,r}else return r})}Ha({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];M(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(j({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:yye(n.data,i)})}}),t.mergeOption(Me({series:r},e.newOption))});var u3=M,c3=at();function _ye(e,t){var r=AC(e);u3(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function bye(e){var t=AC(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return u3(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Sye(e){c3(e).snapshots=null}function wye(e){return AC(e).length}function AC(e){var t=c3(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var xye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Sye(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Sa);Ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Cye=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MC=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=f3(r,t);M(Tye,function(o,s){(!n||!n.include||Ge(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=IC[n.brushType](0,i,a);n.__rangeOffset={offset:v3[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){M(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&M(i.coordSyses,function(o){var s=IC[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){M(t,function(n){var a=this.findTargetInfo(n,r);if(process.env.NODE_ENV!=="production"&&(Ne(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),Ne(!a||a!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=IC[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?v3[n.brushType](i.values,o.offset,Dye(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return ee(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:u5(a),isTargetByCursor:f5(a,t,n.coordSysModel),getLinearBrushOtherExtent:c5(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Ge(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=f3(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<h3.length;l++)if(h3[l](a,o))return o}return!0},e}();function NC(e){return e[0]>e[1]&&e.reverse(),e}function f3(e,t){return sh(e,t,{includeMainTypes:Cye})}var Tye={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=_e(),o={},s={};!r&&!n&&!a||(M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(f,d){(Ge(r,f.getAxis("x").model)>=0||Ge(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:d3.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){M(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:d3.geo})})}},h3=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],d3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(qo(e)),t}},IC={lineX:Be(p3,0),lineY:Be(p3,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[NC([a[0],i[0]]),NC([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=ee(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function p3(e,t,r,n){process.env.NODE_ENV!=="production"&&Ne(r.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=r.getAxis(["x","y"][e]),i=NC(ee([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var v3={lineX:Be(g3,0),lineY:Be(g3,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return ee(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function g3(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function Dye(e,t){var r=m3(e),n=m3(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function m3(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var LC=M,Eye=_te("toolbox-dataZoom_"),Aye=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new Mx(a.getZr()),this._brushController.on("brush",ge(this._onBrush,this)).mount()),Iye(r,n,this,i,a),Nye(r,n)},t.prototype.onclick=function(r,n,a){Mye[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new MC(kC(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),_ye(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),p=d.model,v=l(u,p,i),g=v.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Wl(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var v=p.getAxisModel(u,c.componentIndex);v&&(d=p)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];LC(r,function(a,i){n.push(ke(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Sa),Mye={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(bye(this.ecModel))}};function kC(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Nye(e,t){e.setIconStatus("back",wye(t)>1?"emphasis":"normal")}function Iye(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new MC(kC(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Hne("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=kC(n),o=sh(e,i);LC(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),LC(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Eye+u+f};d[c]=f,a.push(d)}return a});function Lye(e){e.registerComponentModel(rye),e.registerComponentView(aye),Vc("saveAsImage",oye),Vc("magicType",lye),Vc("dataView",mye),Vc("dataZoom",Aye),Vc("restore",xye),We(tye)}var kye=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return 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}(Ue);function y3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _3(e){if(Xe.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var b3=_3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Pye=_3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function S3(e,t){if(!e)return t;t=Vb(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Oye(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var Rye=S3(Pye,"transition"),PC=S3(b3,"transform"),Vye="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Xe.transform3dSupported?"will-change:transform;":"");function Bye(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Fye(e,t,r){if(!he(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=gl(t);var i=Bye(r),o=Math.max(Math.round(a)*1.5,6),s="",l=PC+":",u;Ge(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+p+"px";var v=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function zye(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=Xe.transformSupported?","+PC+n:",left"+n+",top"+n),Rye+":"+a}function w3(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Xe.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Xe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+PC+":"+o+";":[["top",0],["left",0],[b3,o]]}function $ye(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=Re(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+a+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),M(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function Hye(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Tk(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(zye(a,r)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(p){var v="border-"+p,g=Vb(v),m=e.get(g);m!=null&&n.push(v+":"+m+(p==="color"?"":"px"))}),n.push($ye(c)),f!=null&&n.push("padding:"+vl(f).join("px ")+"px"),n.join(";")+";"}function x3(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&UQ(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Gye=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Xe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(he(i)?document.querySelector(i):ko(i)?i:Se(i)&&i(t.getDom()));x3(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();ra(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=Oye(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Vye+Hye(t,!this._firstShow,this._longHide)+w3(i[0],i[1],!0)+("border-color:"+gl(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(he(i)&&n.get("trigger")==="item"&&!y3(n)&&(s=Fye(n,a,i)),he(t))o.innerHTML=t+s;else if(t){o.innerHTML="",J(t)||(t=[t]);for(var l=0;l<t.length;l++)ko(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(x3(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=w3(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Xe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),Uye=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),T3(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;Ee(t)&&vt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new tt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Tk(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=C3(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;T3(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=vs(i.borderWidth||0),s=C3(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function vs(e){return Math.max(0,e)}function C3(e){var t=vs(e.shadowBlur||0),r=vs(e.shadowOffsetX||0),n=vs(e.shadowOffsetY||0);return{left:vs(t-r),right:vs(t+r),top:vs(t-n),bottom:vs(t+n)}}function T3(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Wye=new et({shape:{x:-1,y:-1,width:2,height:2}}),Yye=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Xe.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=Dte(a.get("renderMode"));this._tooltipContent=i==="richText"?new Uye(n):new Gye(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(Xe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?hc(this,"_updatePosition",50,"fixRate"):Oh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");IF("itemTooltip",this._api,ge(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Xe.node||!a.getDom())){var o=D3(i,a);this._ticket="";var s=i.dataByCoordSys,l=Zye(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=Wye;c.x=i.x,c.y=i.y,c.update(),Ve(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var f=kF(i,n),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(D3(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ed([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=Ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xl(a,function(c){if(Ve(c).dataIndex!=null)return l=c,!0;if(Ve(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ge(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ed([n.tooltipOption],i),l=this._renderMode,u=[],c=wr("section",{blocks:[],noHeader:!0}),f=[],d=new uS;M(r,function(_){M(_.dataByAxis,function(b){var S=a.getComponent(b.axisDim+"Axis",b.axisIndex),x=b.value;if(!(!S||x==null)){var w=TF(x,S.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=wr("section",{header:w,noHeader:!ea(w),sortBlocks:!0,blocks:[]});c.blocks.push(C),M(b.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,A=D.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=b.axisDim,A.axisIndex=b.axisIndex,A.axisType=b.axisType,A.axisId=b.axisId,A.axisValue=jS(S.axis,{value:x}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",gl(A.color),l);var L=ik(D.formatTooltip(E,!0,null)),N=L.frag;if(N){var I=Ed([D],i).get("valueFormatter");C.blocks.push(I?j({valueFormatter:I},N):N)}L.text&&f.push(L.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var p=n.position,v=s.get("order"),g=wk(c,d,l,v,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?`
113
+
114
+ `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Ve(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),p=this._renderMode,v=r.positionDefault,g=Ed([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),_=new uS;y.marker=_.makeTooltipMarker("item",gl(y.color),p);var b=ik(u.formatTooltip(c,!1,f)),S=g.get("order"),x=g.get("valueFormatter"),w=b.frag,C=w?wk(x?j({valueFormatter:x},w):w,_,p,S,i.get("useUTC"),g.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,C,y,T,r.offsetX,r.offsetY,r.position,r.target,_)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=Ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(he(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=ke(l),l.content=Yr(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=r.positionDefault,v=Ed(f,this._tooltipModel,p?{position:p}:null),g=v.get("content"),m=Math.random()+"",y=new uS;this._showOrMove(v,function(){var _=ke(v.get("formatterParams")||{});this._showTooltipContent(v,g,_,m,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var p=n,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),g=v.color;if(d)if(he(d)){var m=r.ecModel.get("useUTC"),y=J(a)?a[0]:a,_=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,_&&(p=Dh(y.axisValue,p,m)),p=zb(p,a,!0)}else if(Se(d)){var b=ge(function(S,x){S===this._ticket&&(f.setContent(x,c,r,g,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,p=d(a,i,b)}else p=d;f.setContent(p,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||J(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!J(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),p=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Se(n)&&(n=n([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),J(n))a=ue(n[0],u),i=ue(n[1],c);else if(Ee(n)){var g=n;g.width=f[0],g.height=f[1];var m=lr(g,{width:u,height:c});a=m.x,i=m.y,d=null,p=null}else if(he(n)&&l){var y=jye(n,v,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=Xye(a,i,o,u,c,d?null:20,p?null:20);a=y[0],i=y[1]}if(d&&(a-=E3(d)?f[0]/2:d==="right"?f[0]:0),p&&(i-=E3(p)?f[1]/2:p==="bottom"?f[1]:0),y3(r)){var y=Kye(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(d,p){var v=f[p]||{},g=d.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===m.length,o&&M(g,function(y,_){var b=m[_];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),i&&M(d.seriesDataIndices,function(y){var _=y.seriesIndex,b=n[_],S=i[_];b&&S&&S.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Xe.node||!n.getDom()||(Oh(this,"_updatePosition"),this._tooltipContent.dispose(),gC("itemTooltip",n))},t.type="tooltip",t}(kt);function Ed(e,t,r){var n=t.ecModel,a;r?(a=new ft(r,n,n),a=new ft(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof ft&&(o=o.get("tooltip",!0)),he(o)&&(o={formatter:o}),o&&(a=new ft(o,a,n)))}return a}function D3(e,t){return e.dispatchAction||ge(t.dispatchAction,t)}function Xye(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function Kye(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function jye(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function E3(e){return e==="center"||e==="middle"}function Zye(e,t,r){var n=R1(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=lh(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ve(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function qye(e){We(Td),e.registerComponentModel(kye),e.registerComponentView(Yye),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jt)}var Jye=["rect","polygon","keep","clear"];function Qye(e,t){var r=Dt(e?e.brush:[]);if(r.length){var n=[];M(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;J(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),e0e(s),t&&!s.length&&s.push.apply(s,Jye)}}function e0e(e){var t={};M(e,function(r){t[r]=1}),e.length=0,M(t,function(r,n){e.push(n)})}var A3=M;function M3(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function OC(e,t,r){var n={};return A3(t,function(i){var o=n[i]=a();A3(e[i],function(s,l){if(Cr.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new Cr(u),l==="opacity"&&(u=ke(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Cr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function N3(e,t,r){var n;M(r,function(a){t.hasOwnProperty(a)&&M3(t[a])&&(n=!0)}),n&&M(r,function(a){t.hasOwnProperty(a)&&M3(t[a])?e[a]=ke(t[a]):delete e[a]})}function t0e(e,t,r,n,a,i){var o={};M(e,function(f){var d=Cr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return hS(r,s,f)}function u(f,d){Xk(r,s,f,d)}r.each(c);function c(f,d){s=f;var p=r.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var v=n.call(a,f),g=t[v],m=o[v],y=0,_=m.length;y<_;y++){var b=m[y];g[b]&&g[b].applyVisual(f,l,u)}}}function r0e(e,t,r,n){var a={};return M(e,function(i){var o=Cr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return hS(s,f,x)}function c(x,w){Xk(s,f,x,w)}for(var f,d=s.getStore();(f=o.next())!=null;){var p=s.getRawDataItem(f);if(!(p&&p.visualMap===!1))for(var v=n!=null?d.get(l,f):f,g=r(v),m=t[g],y=a[g],_=0,b=y.length;_<b;_++){var S=y[_];m[S]&&m[S].applyVisual(v,u,c)}}}}}function n0e(e){var t=e.brushType,r={point:function(n){return I3[t].point(n,r,e)},rect:function(n){return I3[t].rect(n,r,e)}};return r}var I3={lineX:L3(0),lineY:L3(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Nl(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(Nl(n,a,i)||Nl(n,a+o,i)||Nl(n,a,i+s)||Nl(n,a+o,i+s)||He.create(e).contain(l[0],l[1])||xh(a,i,a+o,i,n)||xh(a,i,a,i+s,n)||xh(a+o,i,a+o,i+s,n)||xh(a,i+s,a+o,i+s,n))return!0}}};function L3(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return Ad(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Ad(s[0],o)||Ad(s[1],o)||Ad(o[0],s)||Ad(o[1],s)}}}}function Ad(e,t){return t[0]<=e&&e<=t[1]}var k3=["inBrush","outOfBrush"],RC="__ecBrushSelect",VC="__ecInBrushSelectEvent";function P3(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new MC(t.option,e);r.setInputRanges(t.areas,e)})}function a0e(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),P3(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ke(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],p=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var g=ee(o.areas,function(x){var w=l0e[x.brushType],C=Me({boundingRect:w?w(x):void 0},x);return C.selectors=n0e(C),C}),m=OC(o.option,k3,function(x){x.mappingMethod="fixed"});J(c)&&M(c,function(x){f[x]=1});function y(x){return c==="all"||!!f[x]}function _(x){return!!x.length}e.eachSeries(function(x,w){var C=p[w]=[];x.subType==="parallel"?b(x,w):S(x,w,C)});function b(x,w){var C=x.coordinateSystem;v=v||C.hasAxisBrushed(),y(w)&&C.eachActiveState(x.getData(),function(T,D){T==="active"&&(d[D]=1)})}function S(x,w,C){if(!(!x.brushSelector||s0e(o,w))&&(M(g,function(D){o.brushTargetManager.controlSeries(D,x,e)&&C.push(D),v=v||_(C)}),y(w)&&_(C))){var T=x.getData();T.each(function(D){O3(x,C,T,D)&&(d[D]=1)})}}e.eachSeries(function(x,w){var C={seriesId:x.id,seriesIndex:w,seriesName:x.name,dataIndex:[]};l.selected.push(C);var T=p[w],D=x.getData(),E=y(w)?function(A){return d[A]?(C.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return O3(x,T,D,A)?(C.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(w)?v:_(T))&&t0e(k3,m,D,E)})}),i0e(t,a,i,n,r)}function i0e(e,t,r,n,a){if(a){var i=e.getZr();if(!i[VC]){i[RC]||(i[RC]=o0e);var o=hc(i,RC,r,t);o(e,n)}}}function o0e(e,t){if(!e.isDisposed()){var r=e.getZr();r[VC]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[VC]=!1}}function O3(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function s0e(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(J(r)?Ge(r,t)<0:t!==r)}var l0e={rect:function(e){return R3(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&R3(t)}};function R3(e){return new He(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var u0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new Mx(n.getZr())).on("brush",ge(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){P3(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ke(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ke(a),$from:n})},t.type="brush",t}(kt),c0e="#ddd",f0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&N3(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:c0e},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){process.env.NODE_ENV!=="production"&&(Ne(J(r)),M(r,function(n){Ne(n.brushType,"Illegal areas")})),r&&(this.areas=ee(r,function(n){return V3(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=V3(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ue);function V3(e,t){return Fe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ft(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var h0e=["rect","polygon","lineX","lineY","keep","clear"],d0e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return M(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:h0e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Sa);function p0e(e){e.registerComponentView(u0e),e.registerComponentModel(f0e),e.registerPreprocessor(Qye),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,a0e),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Jt),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Jt),Vc("brush",d0e)}var v0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return 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}(Ue),g0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Re(r.get("textBaseline"),r.get("textVerticalAlign")),c=new tt({style:Nt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),p=new tt({style:Nt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,p.silent=!g&&!m,v&&c.on("click",function(){yg(v,"_"+r.get("target"))}),g&&p.on("click",function(){yg(g,"_"+r.get("subtarget"))}),Ve(c).eventData=Ve(p).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(p);var y=i.getBoundingRect(),_=r.getBoxLayoutParams();_.width=y.width,_.height=y.height;var b=lr(_,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),p.setStyle(S),y=i.getBoundingRect();var x=b.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var C=new et({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(kt);function m0e(e){e.registerComponentModel(v0e),e.registerComponentView(g0e)}var B3=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],M(n,function(u,c){var f=hr(Fu(u),""),d;Ee(u)?(d=ke(u),d.value=c):d=c,o.push(d),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new tn([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ue),F3=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Qo(B3.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(B3);qt(F3,Cg.prototype);var y0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(kt),_0e=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(va),BC=Math.PI,z3=at(),b0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return wr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=w0e(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":he(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:BC/2},f=i==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),p=d.get("show",!0),v=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,m=v+g,y=r.get(["label","rotate"])||0;y=y*BC/180;var _,b,S,x=d.get("position",!0),w=p&&d.get("showPlayBtn",!0),C=p&&d.get("showPrevBtn",!0),T=p&&d.get("showNextBtn",!0),D=0,E=f;x==="left"||x==="bottom"?(w&&(_=[0,0],D+=m),C&&(b=[D,0],D+=m),T&&(S=[E-v,0],E-=m)):(w&&(_=[E-v,0],E-=m),C&&(b=[0,0],D+=m),T&&(S=[E-v,0],E-=m));var A=[D,E];return r.get("inverse")&&A.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:_,prevBtnPosition:b,nextBtnPosition:S,axisExtent:A,controlSize:v,controlGap:g}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=xn(),l=o.x,u=o.y+o.height;La(s,s,[-l,-u]),Bo(s,s,-BC/2),La(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=_(o),f=_(a.getBoundingRect()),d=_(i.getBoundingRect()),p=[a.x,a.y],v=[i.x,i.y];v[0]=p[0]=c[0][0];var g=r.labelPosOpt;if(g==null||he(g)){var m=g==="+"?0:1;b(p,f,c,1,m),b(v,d,c,1,1-m)}else{var m=g>=0?0:1;b(p,f,c,1,m),v[1]=p[1]+g}a.setPosition(p),i.setPosition(v),a.rotation=i.rotation=r.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function _(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function b(S,x,w,C,T){S[C]+=w[C][T]-x[C][T]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=S0e(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new _0e("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Oe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new dr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:j({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new dr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Me({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),p=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ge(o._changeTimeline,o,u.value)},m=$3(f,d,n,g);m.ensureState("emphasis").style=p.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Ko(m);var y=Ve(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var f=c.tickValue,d=l.getItemModel(f),p=d.getModel("label"),v=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new tt({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:ge(o._changeTimeline,o,f),silent:!1,style:Nt(p,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=Nt(v),y.ensureState("progress").style=Nt(g),n.add(y),Ko(y),z3(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(r.nextBtnPosition,"next",ge(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ge(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ge(this._handlePlayClick,this,!c),!0);function d(p,v,g,m){if(p){var y=Ra(Re(i.get(["controlStyle",v+"BtnSize"]),o),o),_=[0,-y/2,y,y],b=x0e(i,v+"Icon",_,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),Ko(b)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ge(u._handlePointerDrag,u),f.ondragend=ge(u._handlePointerDragend,u),H3(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){H3(f,u._progressLine,s,a,i)}};this._currentPointer=$3(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=Bn(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return za(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",z3(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(y0e);function S0e(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Jg({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new XS({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new uo}}function w0e(e,t){return lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function x0e(e,t,r,n){var a=n.style,i=Qu(e.get(["controlStyle",t]),n||{},new He(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function $3(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=tr(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=Fe({rectHover:!0,z2:100},n,!0);var u=pc(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Cl(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function H3(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function C0e(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Me({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function T0e(e){var t=e&&e.timeline;J(t)||(t=t?[t]:[]),M(t,function(r){r&&D0e(r)})}function D0e(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),G3(e),Zl(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Zl(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Zl(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}M(e.data||[],function(a){Ee(a)&&!J(a)&&(!Zl(a,"value")&&Zl(a,"name")&&(a.value=a.name),G3(a))})}function G3(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};M(n,function(o,s){!i[s]&&!Zl(a,s)&&(a[s]=o)}),r.label&&!Zl(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Zl(e,t){return e.hasOwnProperty(t)}function E0e(e){e.registerComponentModel(F3),e.registerComponentView(b0e),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),C0e(e),e.registerPreprocessor(T0e)}function FC(e,t){if(!e)return!1;for(var r=J(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Jm(e){js(e,"label",["show"])}var Qm=at(),go=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Xe.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Qm(s)[o];if(!l||!l.data){Qm(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Jm(l),M(l.data,function(c){c instanceof Array?(Jm(c[0]),Jm(c[1])):Jm(c)}),u=this.createMarkerModelFromSeries(l,this,n),j(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Qm(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return wr("section",{header:this.name,blocks:[wr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var a=Cg.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(r,n){return Qm(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Ue);qt(go,Cg.prototype);var A0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(go);function zC(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function M0e(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function ey(e,t,r,n,a,i){var o=[],s=lo(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=HC(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var f=t.get(n,c),d=Va(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var $C={min:Be(ey,"min"),max:Be(ey,"max"),average:Be(ey,"average"),median:Be(ey,"median")};function Md(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!M0e(t)&&!J(t.coord)&&J(a)){var i=U3(t,r,n,e);if(t=ke(t),t.type&&$C[t.type]&&i.baseAxis&&i.valueAxis){var o=Ge(a,i.baseAxis.dim),s=Ge(a,i.valueAxis.dim),l=$C[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!J(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)$C[u[c]]&&(u[c]=HC(r,r.mapDimension(a[c]),u[c]));return t}}function U3(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(N0e(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function N0e(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Nd(e,t){return e&&e.containData&&t.coord&&!zC(t)?e.containData(t.coord):!0}function I0e(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!zC(t)&&!zC(r)?e.containZone(t.coord,r.coord):!0}function W3(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return ts(o,t[i])}:function(r,n,a,i){return ts(r.value,t[i])}}function HC(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var GC=at(),UC=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=_e()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){GC(s).keep=!1}),n.eachSeries(function(s){var l=go.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!GC(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){GC(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;M(r,function(i){var o=go.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?xI(l):sb(l))})}})},t.type="marker",t}(kt);function Y3(e,t,r){var n=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=ue(i.get("x"),r.getWidth()),l=ue(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),c=e.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var L0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=go.getMarkerModelFromSeries(i,"markPoint");o&&(Y3(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new td),f=k0e(o,r,n);n.setData(f),Y3(n.getData(),r,i),f.each(function(d){var p=f.getItemModel(d),v=p.getShallow("symbol"),g=p.getShallow("symbolSize"),m=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),_=p.getShallow("symbolKeepAspect");if(Se(v)||Se(g)||Se(m)||Se(y)){var b=n.getRawValue(d),S=n.getDataParams(d);Se(v)&&(v=v(b,S)),Se(g)&&(g=g(b,S)),Se(m)&&(m=m(b,S)),Se(y)&&(y=y(b,S))}var x=p.getModel("itemStyle").getItemStyle(),w=Bh(l,"color");x.fill||(x.fill=w),f.setItemVisual(d,{symbol:v,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:_,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(p){Ve(p).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(UC);function k0e(e,t,r){var n;e?n=ee(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return j(j({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,r),i=ee(r.get("data"),Be(Md,t));e&&(i=ct(i,Be(Nd,e)));var o=W3(!!e,n);return a.initData(i,null,o),a}function P0e(e){e.registerComponentModel(A0e),e.registerComponentView(L0e),e.registerPreprocessor(function(t){FC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var O0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(go),ty=at(),R0e=function(e,t,r,n){var a=e.getData(),i;if(J(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Qt(n.yAxis,n.xAxis);else{var u=U3(n,a,t,e);s=u.valueAxis;var c=$S(a,u.valueDataDim);l=HC(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,p=ke(n),v={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,v.coord[d]=1/0;var g=r.get("precision");g>=0&&ot(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[f]=v.coord[f]=l,i=[p,v,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Jn("Invalid markLine data."),i=[]}var m=[Md(e,i[0]),Md(e,i[1]),j({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function ry(e){return!isNaN(e)&&!isFinite(e)}function X3(e,t,r,n){var a=1-e,i=n.dimensions[e];return ry(t[a])&&ry(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function V0e(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(X3(1,r,n,e)||X3(0,r,n,e)))return!0}return Nd(e,t[0])&&Nd(e,t[1])}function WC(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=ue(o.get("x"),a.getWidth()),u=ue(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Vl(i,"cartesian2d")){var p=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;ry(e.get(c[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[r?0:1]):ry(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var B0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=go.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=ty(o).from,u=ty(o).to;l.each(function(c){WC(l,c,!0,i,a),WC(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new gx);this.group.add(c.group);var f=F0e(o,r,n),d=f.from,p=f.to,v=f.line;ty(n).from=d,ty(n).to=p,n.setData(v);var g=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),_=n.get("symbolOffset");J(g)||(g=[g,g]),J(m)||(m=[m,m]),J(y)||(y=[y,y]),J(_)||(_=[_,_]),f.from.each(function(S){b(d,S,!0),b(p,S,!1)}),v.each(function(S){var x=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),p.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:p.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(S,"symbolOffset"),toSymbolRotate:p.getItemVisual(S,"symbolRotate"),toSymbolSize:p.getItemVisual(S,"symbolSize"),toSymbol:p.getItemVisual(S,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){Ve(S).dataModel=n,S.traverse(function(x){Ve(x).dataModel=n})});function b(S,x,w){var C=S.getItemModel(x);WC(S,x,w,r,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bh(l,"color")),S.setItemVisual(x,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Re(C.get("symbolOffset",!0),_[w?0:1]),symbolRotate:Re(C.get("symbolRotate",!0),y[w?0:1]),symbolSize:Re(C.get("symbolSize"),m[w?0:1]),symbol:Re(C.get("symbol",!0),g[w?0:1]),style:T})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(UC);function F0e(e,t,r){var n;e?n=ee(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return j(j({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,r),i=new tn(n,r),o=new tn([],r),s=ee(r.get("data"),Be(R0e,t,e,r));e&&(s=ct(s,Be(V0e,e)));var l=W3(!!e,n);return a.initData(ee(s,function(u){return u[0]}),null,l),i.initData(ee(s,function(u){return u[1]}),null,l),o.initData(ee(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function z0e(e){e.registerComponentModel(O0e),e.registerComponentView(B0e),e.registerPreprocessor(function(t){FC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var $0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(go),ny=at(),H0e=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Md(e,a),s=Md(e,i),l=o.coord,u=s.coord;l[0]=Qt(l[0],-1/0),l[1]=Qt(l[1],-1/0),u[0]=Qt(u[0],1/0),u[1]=Qt(u[1],1/0);var c=nv([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function ay(e){return!isNaN(e)&&!isFinite(e)}function K3(e,t,r,n){var a=1-e;return ay(t[a])&&ay(r[a])}function G0e(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Vl(e,"cartesian2d")?r&&n&&(K3(1,r,n)||K3(0,r,n))?!0:I0e(e,a,i):Nd(e,a)||Nd(e,i)}function j3(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=ue(o.get(r[0]),a.getWidth()),u=ue(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),p=i.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>p[0]?f[0]:c[0]:v[0]=d[0]>p[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>p[1]?f[1]:c[1]:v[1]=d[1]>p[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var g=e.get(r[0],t),m=e.get(r[1],t),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Vl(i,"cartesian2d")){var _=i.getAxis("x"),b=i.getAxis("y"),g=e.get(r[0],t),m=e.get(r[1],t);ay(g)?s[0]=_.toGlobalCoord(_.getExtent()[r[0]==="x0"?0:1]):ay(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Z3=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],U0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=go.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ee(Z3,function(f){return j3(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var f=W0e(o,r,n);n.setData(f),f.each(function(d){var p=ee(Z3,function(T){return j3(f,d,T,r,i)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,m=v.getExtent(),y=g.getExtent(),_=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],b=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];Bn(_),Bn(b);var S=!(m[0]>_[1]||m[1]<_[0]||y[0]>b[1]||y[1]<b[0]),x=!S;f.setItemLayout(d,{points:p,allClipped:x});var w=f.getItemModel(d).getModel("itemStyle").getItemStyle(),C=Bh(l,"color");w.fill||(w.fill=C,he(w.fill)&&(w.fill=Zf(w.fill,.4))),w.stroke||(w.stroke=C),f.setItemVisual(d,"style",w)}),f.diff(ny(c).data).add(function(d){var p=f.getItemLayout(d);if(!p.allClipped){var v=new jr({shape:{points:p.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,p){var v=ny(c).data.getItemGraphicEl(p),g=f.getItemLayout(d);g.allClipped?v&&c.group.remove(v):(v?st(v,{shape:{points:g.points}},n,d):v=new jr({shape:{points:g.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var p=ny(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),f.eachItemGraphicEl(function(d,p){var v=f.getItemModel(p),g=f.getItemVisual(p,"style");d.useStyle(f.getItemVisual(p,"style")),Or(d,Sr(v),{labelFetcher:n,labelDataIndex:p,defaultText:f.getName(p)||"",inheritColor:he(g.fill)?Zf(g.fill,1):"#000"}),Pr(d,v),Yt(d,null,null,v.get(["emphasis","disabled"])),Ve(d).dataModel=n}),ny(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(UC);function W0e(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=ee(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return j(j({},f),{name:u,ordinalMeta:null})});a=ee(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new tn(a,r)}else a=[{name:"value",type:"float"}],n=new tn(a,r);var s=ee(r.get("data"),Be(H0e,t,e,r));e&&(s=ct(s,Be(G0e,e)));var l=e?function(u,c,f,d){var p=u.coord[Math.floor(d/2)][d%2];return ts(p,a[d])}:function(u,c,f,d){return ts(u.value,a[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function Y0e(e){e.registerComponentModel($0e),e.registerComponentView(U0e),e.registerPreprocessor(function(t){FC(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var X0e=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},YC=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),J(n)&&M(n,function(i,o){he(i)&&(i={type:i}),n[o]=Fe(i,X0e(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&O1(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=_e(),s=ee(i,function(l){return(he(l)||ot(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ft(l,this,this.ecModel))},this);this._data=ct(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;M(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;M(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ge(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{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}(Ue),Fc=Be,XC=M,iy=Oe,q3=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new iy),this.group.add(this._selectorGroup=new iy),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),p=lr(c,f,d),v=this.layoutInner(r,o,p,i,l,u),g=lr(Me({width:v.width,height:v.height},c),f,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=o3(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=_e(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),XC(n.getData(),function(p,v){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===`
115
+ `)){var m=new iy;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g)){if(y){var _=y.getData(),b=_.getVisual("legendLineStyle")||{},S=_.getVisual("legendIcon"),x=_.getVisual("style"),w=this._createItem(y,g,v,p,n,r,b,x,S,f,i);w.on("click",Fc(J3,g,null,i,d)).on("mouseover",Fc(KC,y.name,null,i,d)).on("mouseout",Fc(jC,y.name,null,i,d)),a.ssr&&w.eachChild(function(C){var T=Ve(C);T.seriesIndex=y.seriesIndex,T.dataIndex=v,T.ssrType="legend"}),c.set(g,!0)}else a.eachRawSeries(function(C){if(!c.get(g)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(g))return;var D=T.indexOfName(g),E=T.getItemVisual(D,"style"),A=T.getItemVisual(D,"legendIcon"),L=ln(E.fill);L&&L[3]===0&&(L[3]=.2,E=j(j({},E),{fill:Pa(L,"rgba")}));var N=this._createItem(C,g,v,p,n,r,{},E,A,f,i);N.on("click",Fc(J3,null,g,i,d)).on("mouseover",Fc(KC,null,g,i,d)).on("mouseout",Fc(jC,null,g,i,d)),a.ssr&&N.eachChild(function(I){var k=Ve(I);k.seriesIndex=C.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),c.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();XC(r,function(u){var c=u.type,f=new tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var d=n.getModel("selectorLabel"),p=n.getModel(["emphasis","selectorLabel"]);Or(f,{normal:d,emphasis:p},{defaultText:u.title}),Ko(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var p=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var S=K0e(c,i,l,u,p,m,d),x=new iy,w=i.getModel("textStyle");if(Se(r.getLegendIcon)&&(!b||b==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:_}));else{var C=b==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;x.add(j0e({itemWidth:v,itemHeight:g,icon:c,iconRotate:C,itemStyle:S.itemStyle,symbolKeepAspect:_}))}var T=s==="left"?v+5:-5,D=s,E=o.get("formatter"),A=n;he(E)&&E?A=E.replace("{name}",n??""):Se(E)&&(A=E(n));var L=m?w.getTextColor():i.get("inactiveColor");x.add(new tt({style:Nt(w,{text:A,x:T,y:g/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var N=new et({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=i.getModel("tooltip");return I.get("show")&&dl({el:N,componentModel:o,itemName:n,itemTooltipOption:I.option}),x.add(N),x.eachChild(function(k){k.silent=!0}),N.silent=!f,this.getContentGroup().add(x),Ko(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();yl(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){yl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",_=g===0?"y":"x";s==="end"?p[g]+=c[m]+v:f[g]+=d[m]+v,p[1-g]+=c[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+d[m],b[y]=Math.max(c[y],d[y]),b[_]=Math.min(0,d[_]+p[1-g]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(kt);function K0e(e,t,r,n,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),XC(m,function(_,b){m[b]==="inherit"&&(m[b]=y[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:gc(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function j0e(e){var t=e.icon||"roundRect",r=tr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function J3(e,t,r,n){jC(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),KC(e,t,r,n)}function Q3(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function KC(e,t,r,n){Q3(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function jC(e,t,r,n){Q3(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Z0e(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Id(e,t,r){var n=e==="allSelect"||e==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),e4(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),e4(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function e4(e,t){var r=t||{};return M(e.getData(),function(n){var a=n.get("name");if(!(a===`
116
+ `||a==="")){var i=e.isSelected(a);ye(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function q0e(e){e.registerAction("legendToggleSelect","legendselectchanged",Be(Id,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Be(Id,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Be(Id,"inverseSelect")),e.registerAction("legendSelect","legendselected",Be(Id,"select")),e.registerAction("legendUnSelect","legendunselected",Be(Id,"unSelect"))}function t4(e){e.registerComponentModel(YC),e.registerComponentView(q3),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Z0e),e.registerSubTypeDefaulter("legend",function(){return"plain"}),q0e(e)}var J0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=ic(r);e.prototype.init.call(this,r,n,a),r4(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),r4(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Qo(YC.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}(YC);function r4(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,es(t,r,{type:"box",ignoreSize:!!a})}var n4=Oe,ZC=["width","height"],qC=["x","y"],Q0e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new n4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new n4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=J(f)?f:[f,f];v("pagePrev",0);var p=n.getModel("pageTextStyle");c.add(new tt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,m){var y=g+"DataIndex",_=Qu(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:ge(u._pageGo,u,y,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});_.name=g,c.add(_)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=ZC[u],f=qC[u],d=ZC[1-u],p=qC[1-u];o&&yl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],y=ke(a);o&&(y[c]=a[c]-g[c]-v);var _=this._layoutContentAndController(r,i,y,u,c,d,p,f);if(o){if(s==="end")m[u]+=_[c]+v;else{var b=g[c]+v;m[u]-=b,_[f]-=b}_[c]+=g[c]+v,m[1-u]+=_[p]+_[d]/2-g[d]/2,_[d]=Math.max(_[d],g[d]),_[p]=Math.min(_[p],g[p]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return _},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;yl(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),yl("horizontal",d,r.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=p[o]>a[o],m=[-p.x,-p.y];n||(m[i]=c[u]);var y=[0,0],_=[-v.x,-v.y],b=Re(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var S=r.get("pageButtonPosition",!0);S==="end"?_[i]+=a[o]-v[o]:y[i]+=v[o]+b}_[1-i]+=p[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(_);var x={x:0,y:0};if(x[o]=g?a[o]:p[o],x[s]=Math.max(p[s],v[s]),x[l]=Math.min(0,v[l]+_[1-i]),f.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-v[o]-b,0),w[s]=x[s],f.setClipPath(new et({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&st(c,{x:C.contentPosition[0],y:C.contentPosition[1]},g?r:null),this._updatePageInfoView(r,C),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,p=a.childOfName(c);p&&(p.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",he(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=ZC[o],l=qC[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,p=d?1:0,v={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=S(f);v.contentPosition[o]=-g.s;for(var m=u+1,y=g,_=g,b=null;m<=d;++m)b=S(c[m]),(!b&&_.e>y.s+i||b&&!x(b,y.s))&&(_.i>y.i?y=_:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),_=b;for(var m=u-1,y=g,_=g,b=null;m>=-1;--m)b=S(c[m]),(!b||!x(_,b.s))&&y.i<_.i&&(_=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function S(w){if(w){var C=w.getBoundingRect(),T=C[l]+w[l];return{s:T,e:T+C[s],i:w.__legendDataIndex}}}function x(w,C){return w.e>=C&&w.s<=C+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(q3);function e_e(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function t_e(e){We(t4),e.registerComponentModel(J0e),e.registerComponentView(Q0e),e_e(e)}function r_e(e){We(t4),We(t_e)}var n_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Qo(Dd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Dd),JC=at();function a_e(e,t,r){JC(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function i_e(e,t){for(var r=JC(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||a4(r,o))}}}function a4(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function o_e(e,t){var r={model:t,containsPoint:Be(l_e,t),dispatchAction:Be(s_e,e),dataZoomInfoMap:null,controller:null},n=r.controller=new ud(e.getZr());return M(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function s_e(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function l_e(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function u_e(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function c_e(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=JC(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=_e());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=e3(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,o_e(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=_e());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){a4(a,i);return}var c=u_e(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),hc(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var f_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),a_e(a,r,{pan:ge(QC.pan,this),zoom:ge(QC.zoom,this),scrollMove:ge(QC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){i_e(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(TC),QC={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=eT[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Wl(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:i4(function(e,t,r,n,a,i){var o=eT[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:i4(function(e,t,r,n,a,i){var o=eT[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function i4(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(Wl(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var eT={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function o4(e){DC(e),e.registerComponentModel(n_e),e.registerComponentView(f_e),c_e(e)}var h_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Qo(Dd.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Dd),Ld=et,s4=7,d_e=1,tT=30,p_e=7,kd="horizontal",l4="vertical",v_e=5,g_e=["line","bar","candlestick","scatter"],m_e={easing:"cubicOut",duration:100,delay:0},y_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ge(this._onBrush,this),this._onBrushEnd=ge(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),hc(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Oh(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?p_e:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===kd?{right:s.width-o.x-o.width,top:s.height-tT-s4-i,width:o.width,height:tT}:{right:s4,top:o.y,width:tT,height:o.height},u=ic(r.option);M(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=lr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===l4&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===kd&&!o?{scaleY:l?1:-1,scaleX:1}:a===kd&&o?{scaleY:l?1:-1,scaleX:-1}:a===l4&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Ld({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Ld({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ge(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var p=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=v[1]/(o.count()-1),_=0,b=Math.round(o.count()/n[0]),S;o.each([l],function(D,E){if(b>0&&E%b){_+=y;return}var A=D==null||isNaN(D)||D==="",L=A?0:pt(D,f,p,!0);A&&!S&&E?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!A&&S&&(g.push([_,0]),m.push([_,0])),g.push([_,L]),m.push([_,L]),_+=y,S=A}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function w(D){var E=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new Oe,L=new jr({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new Zr({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(L),A.add(N),A}for(var C=0;C<3;C++){var T=w(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(n!==!0&&Ge(g_e,u.get("type"))<0)){var c=i.getComponent(ps(o),s).axis,f=__e(o),d,p=u.coordinateSystem;f!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Ld({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ld({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:d_e,fill:"rgba(0,0,0,0)"}})),M([0,1],function(b){var S=l.get("handleIcon");!kg[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&ia("handleIcon now needs 'path://' prefix when using a path string"));var x=tr(S,-1,0,2,2,null,!0);x.attr({cursor:u4(this._orient),draggable:!0,drift:ge(this._onDragMove,this,b),ondragend:ge(this._onDragEnd,this),onmouseover:ge(this._showDataInfo,this,!0),onmouseout:ge(this._showDataInfo,this,!1),z2:5});var w=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ue(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ko(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[b]=x);var D=l.getModel("textStyle"),E=l.get("handleLabel")||{},A=E.show||!1;r.add(i[b]=new tt({silent:!0,invisible:!A,style:Nt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var p=d;if(f){var v=ue(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new et({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=n.moveHandleIcon=tr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(s[1]/2,Math.max(v,10));p=n.moveZone=new et({invisible:!0,shape:{y:s[1]-_,height:v+_}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(p)}p.attr({draggable:!0,cursor:u4(this._orient),drift:ge(this._onDragMove,this,"all"),ondragstart:ge(this._showDataInfo,this,!0),ondragend:ge(this._onDragEnd,this),onmouseover:ge(this._showDataInfo,this,!0),onmouseout:ge(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[pt(r[0],[0,100],n,!0),pt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Wl(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?pt(s.minSpan,l,o,!0):null,s.maxSpan!=null?pt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Bn([pt(i[0],o,l,!0),pt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Bn(a.slice()),o=this._size;M([0,1],function(p){var v=n.handles[p],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:a[p]+(p?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new et,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Bn(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(v){var g=qo(a.handles[v].parent,this.group),m=lg(v===0?"right":"left",g),y=this._handleWidth/2+v_e,_=za([d[v]+(v===0?-y:y),this._size[1]/2],g);i[v].setStyle({x:_[0],y:_[1],verticalAlign:o===kd?"middle":m,align:o===kd?m:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(i)?i(r,s):he(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=r||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,qi(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=za([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new $e(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Bn([pt(a.x,o,s,!0),pt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(qi(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Ld({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?m_e:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=e3(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(TC);function __e(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function u4(e){return e==="vertical"?"ns-resize":"ew-resize"}function c4(e){e.registerComponentModel(h_e),e.registerComponentView(y_e),DC(e)}function b_e(e){We(o4),We(c4)}var f4={get:function(e,t,r){var n=ke((S_e[e]||{})[t]);return r&&J(n)?n[n.length-1]:n}},S_e={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]}},h4=Cr.mapVisual,w_e=Cr.eachVisual,x_e=J,d4=M,C_e=Bn,T_e=pt,oy=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&N3(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ge(r,this),this.controllerVisuals=OC(this.option.controller,n,r),this.targetVisuals=OC(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Dt(r),n},t.prototype.eachTargetSeries=function(r,n){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],J(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(he(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=C_e([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){x_e(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,p){var v=f[d],g=f[p];v&&!g&&(g=f[p]={},d4(v,function(m,y){if(Cr.isValidType(y)){var _=f4.get(y,"inactive",s);_!=null&&(g[y]=_,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,p=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";d4(this.stateList,function(y){var _=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=d&&ke(d)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=p&&ke(p)||(s?_[0]:[_[0],_[0]])),b.symbol=h4(b.symbol,function(w){return w==="none"?m:w});var S=b.symbolSize;if(S!=null){var x=-1/0;w_e(S,function(w){w>x&&(x=w)}),b.symbolSize=h4(S,function(w){return T_e(w,[0,x],[0,_[0]],!0)})}},this)}},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(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){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}(Ue),p4=[20,140],D_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=p4[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=p4[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):J(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Bn((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=r)&&(n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=v4(this,"outOfRange",this.getExtent()),a=v4(this,"inRange",this.option.range.slice()),i=[];function o(p,v){i.push({value:p,color:r(p,v)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Qo(oy.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}(oy);function v4(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}var g4=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=vl(n.get("padding")||0),i=r.getBoundingRect();r.add(new et({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(p){return s[p]}function c(p,v){s[p]=v}var f=o.controllerVisuals[i||o.getValueState(r)],d=Cr.prepareVisualTypes(f);return M(d,function(p){var v=f[p];a.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",v=f.__alphaForOpacity),Cr.dependsOn(p,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;bg(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(kt),m4=[["left","right","width"],["top","bottom","height"]];function y4(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=m4[o],l=[0,null,10],u={},c=0;c<3;c++)u[m4[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=lr(u,i,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function sy(e,t){return M(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Mi=pt,E_e=M,_4=Math.min,rT=Math.max,A_e=12,M_e=6,N_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=ge(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ge(this._hideIndicator,this)},t.prototype.doRender=function(r,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new tt({style:Nt(p,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=y4(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Oe;u.add(c),c.add(a.outOfRange=b4()),c.add(a.inRange=b4(null,s?w4(this._orient):null,ge(this._dragHandle,this,"all",!1),ge(this._dragHandle,this,"all",!0))),c.setClipPath(new et({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=rT(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,d,o),this._createHandle(n,u,1,i,d,o)),this._createIndicator(n,u,i,d,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=ge(this._dragHandle,this,a,!1),u=ge(this._dragHandle,this,a,!0),c=Ra(r.get("handleSize"),i[0]),f=tr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=w4(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){qi(y.event)}}),f.x=i[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),ul(f,!0),n.add(f);var p=this.visualMapModel.textStyleModel,v=new tt({cursor:d,draggable:!0,drift:l,onmousemove:function(y){qi(y.event)},ondragend:u,style:Nt(p,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var g=[c,0],m=this._shapes;m.handleThumbs[a]=f,m.handleLabelPoints[a]=g,m.handleLabels[a]=v},t.prototype._createIndicator=function(r,n,a,i,o){var s=Ra(r.get("indicatorSize"),a[0]),l=tr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof br){var c=l.style;l.useStyle(j({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new tt({silent:!0,invisible:!0,style:Nt(f,{x:0,y:0,text:""})});this.group.add(d);var p=[(o==="horizontal"?i/2:M_e)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():S4(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[Mi(n[0],a,i,!0),Mi(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Wl(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[Mi(i[0],o,s,!0),Mi(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new ju(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new Oe(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",a.mainGroup);E_e([0,1],function(f){var d=o[f];d.setStyle("fill",n.handlesColor[f]),d.y=r[f];var p=Mi(r[f],[0,l[1]],u,!0),v=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=v/l[0],d.x=l[0]-v/2;var g=za(a.handleLabelPoints[f],qo(d,this.group));if(this._orient==="horizontal"){var m=c==="left"||c==="top"?(l[0]-v)/2:(l[0]-v)/-2;g[1]+=m}s[f].setStyle({x:g[0],y:g[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),g=Mi(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var _=za(c.indicatorLabelPoint,qo(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),x=this._orient,w=x==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:w?S:"middle",align:w?"center":S});var C={x:m,y:g,style:{fill:p}},T={style:{x:_[0],y:_[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(C,D),b.animateTo(T,D)}else f.attr(C),b.attr(T);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var A=0;A<E.length;A++)this.api.enterBlur(E[A])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=_4(rT(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=_4(rT(o[0],r),o[1]);var l=I_e(a,s,o),u=[r-l,r+l],c=Mi(r,o,s,!0),f=[Mi(u[0],o,s,!0),Mi(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(n||S4(a))&&(p=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=wte(d,p);this._dispatchHighDown("downplay",sy(v[0],a)),this._dispatchHighDown("highlight",sy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(xl(r.target,function(l){var u=Ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",sy(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=qo(n,i?null:this.group);return J(r)?za(r,o,a):lg(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(g4);function b4(e,t,r,n){return new jr({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){qi(a.event)},ondragend:n})}function I_e(e,t,r){var n=A_e/2,a=e.get("hoverLinkDataSize");return a&&(n=Mi(a,t,r,!0)/2),n}function S4(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function w4(e){return e==="vertical"?"ns-resize":"ew-resize"}var L_e={type:"selectDataRange",event:"dataRangeSelected",update:"update"},k_e=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},P_e=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(r0e(n.stateList,n.targetVisuals,ge(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(ge(O_e,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function O_e(e,t,r,n){for(var a=t.targetVisuals[n],i=Cr.prepareVisualTypes(a),o={color:Bh(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(p){return o[p]}function d(p,v){o[p]=v}}var x4=M;function R_e(e){var t=e&&e.visualMap;J(t)||(t=t?[t]:[]),x4(t,function(r){if(r){zc(r,"splitList")&&!zc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&J(n)&&x4(n,function(a){Ee(a)&&(zc(a,"start")&&!zc(a,"min")&&(a.min=a.start),zc(a,"end")&&!zc(a,"max")&&(a.max=a.end))})}})}function zc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var C4=!1;function T4(e){C4||(C4=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(L_e,k_e),M(P_e,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(R_e))}function D4(e){e.registerComponentModel(D_e),e.registerComponentView(N_e),T4(e)}var V_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],B_e[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ke(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ee(this._pieceList,function(l){return l=ke(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=Cr.listVisualTypes(),i=this.isCategory();M(r.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&M(this.stateList,function(c){(r[c]||(r[c]={}))[l]=f4.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=ke(r)},t.prototype.getValueState=function(r){var n=Cr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Cr.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var p=r(d,f);c[0]===-1/0?a[0]=p:c[1]===1/0?a[1]=p:n.push({value:c[0],color:p},{value:c[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Qo(oy.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}(oy),B_e={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),P1(e),M(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;M(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),E4(t,e)},pieces:function(e){var t=this.option;M(t.pieces,function(r,n){Ee(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],p=0;p<3&&o[f]==null;p++)o[f]=r[d[p]],s[f]=l[p],c[f]=p===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Cr.retrieveVisuals(r),e.push(a)},this),E4(t,e),P1(e),M(e,function(r){var n=r.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function E4(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var F_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Qt(n.get("showLabel",!0),!f),p=!n.get("selectedMode");f&&this._renderEndsText(r,f[0],u,d,l),M(c.viewPieceList,function(v){var g=v.piece,m=new Oe;m.onclick=ge(this._onItemClick,this,g),this._enableHoverLink(m,v.indexInModelPieceList);var y=n.getRepresentValue(g);if(this._createItemSymbol(m,y,[0,0,u[0],u[1]],p),d){var _=this.visualMapModel.getValueState(y);m.add(new tt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:_==="outOfRange"?.5:1},silent:p}))}r.add(m)},this),f&&this._renderEndsText(r,f[1],u,d,l),yl(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:sy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return y4(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new tt({style:Nt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=ee(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a,i){var o=tr(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,r.add(o)},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ke(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(g4);function A4(e){e.registerComponentModel(V_e),e.registerComponentView(F_e),T4(e)}function z_e(e){We(D4),We(A4)}var $_e={label:{enabled:!0},decal:{show:!1}},M4=at(),H_e={};function G_e(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=ke($_e);Fe(n.label,e.getLocaleModel().get("aria"),!1),Fe(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=_e();e.eachSeries(function(d){if(!d.isColorBySeries()){var p=f.get(d.type);p||(p={},f.set(d.type,p)),M4(d).scope=p}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var _=Xb(d.ecModel,d.name,H_e,e.getSeriesCount()),b=p.getVisual("decal");p.setVisual("decal",S(b,_))}else{var v=d.getRawData(),g={},m=M4(d).scope;p.each(function(x){var w=p.getRawIndex(x);g[w]=x});var y=v.count();v.each(function(x){var w=g[x],C=v.getName(x)||x+"",T=Xb(d.ecModel,C,m,y),D=p.getItemVisual(w,"decal");p.setItemVisual(w,"decal",S(D,T))})}function S(x,w){var C=x?j(j({},w),x):w;return C.dirty=!0,C}})}}function i(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=Me(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),p=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(d,v),m;if(!(d<1)){var y=s();if(y){var _=f.get(["general","withTitle"]);m=o(_,{title:y})}else m=f.get(["general","withoutTitle"]);var b=[],S=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:d}),e.eachSeries(function(T,D){if(D<g){var E=void 0,A=T.get("name"),L=A?"withName":"withoutName";E=d>1?f.get(["series","multiple",L]):f.get(["series","single",L]),E=o(E,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var N=T.getData();if(N.count()>p){var I=f.get(["data","partialData"]);E+=o(I,{displayCnt:p})}else E+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),P=f.get(["data","separator","end"]),V=f.get(["data","excludeDimensionId"]),B=[],G=0;G<N.count();G++)if(G<p){var U=N.getName(G),W=V?ct(N.getValues(G),function(le,Y){return Ge(V,Y)===-1}):N.getValues(G),re=f.get(["data",U?"withName":"withoutName"]);B.push(o(re,{name:U,value:W.join(k)}))}E+=B.join(k)+P,b.push(E)}});var x=f.getModel(["series","multiple","separator"]),w=x.get("middle"),C=x.get("end");m+=b.join(w)+C,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!he(u))return u;var f=u;return M(c,function(d,p){f=f.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function U_e(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},M(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function W_e(e){e.registerPreprocessor(U_e),e.registerVisual(e.PRIORITY.VISUAL.ARIA,G_e)}var N4={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Y_e=function(){function e(t){var r=this._condVal=he(t)?new RegExp(t):V_(t)?t:null;if(r==null){var n="";process.env.NODE_ENV!=="production"&&(n=un("Illegal regexp",t,"in")),vt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return he(r)?this._condVal.test(t):ot(r)?this._condVal.test(t+""):!1},e}(),X_e=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),K_e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),j_e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),Z_e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),q_e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function nT(e,t){if(e===!0||e===!1){var r=new X_e;return r.value=e,r}var n="";return L4(e)||(process.env.NODE_ENV!=="production"&&(n=un("Illegal config. Expect a plain object but actually",e)),vt(n)),e.and?I4("and",e,t):e.or?I4("or",e,t):e.not?J_e(e,t):Q_e(e,t)}function I4(e,t,r){var n=t[e],a="";process.env.NODE_ENV!=="production"&&(a=un('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t)),J(n)||vt(a),n.length||vt(a);var i=e==="and"?new K_e:new j_e;return i.children=ee(n,function(o){return nT(o,r)}),i.children.length||vt(a),i}function J_e(e,t){var r=e.not,n="";process.env.NODE_ENV!=="production"&&(n=un('"not" condition should only be `not: {}`.',"Illegal condition:",e)),L4(r)||vt(n);var a=new Z_e;return a.child=nT(r,t),a.child||vt(n),a}function Q_e(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=qe(e),o=e.parser,s=o?sk(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=ye(N4,u)?N4[u]:u,f=e[u],d=s?s(f):f,p=Tae(c,d)||c==="reg"&&new Y_e(d);p||(process.env.NODE_ENV!=="production"&&(r=un('Illegal relational operation: "'+u+'" in condition:',e)),vt(r)),a.push(p)}}a.length||(process.env.NODE_ENV!=="production"&&(r=un("Relational condition must have at least one operator.","Illegal condition:",e)),vt(r));var v=new q_e;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function L4(e){return Ee(e)&&!Lr(e)}var e1e=function(){function e(t,r){this._cond=nT(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function t1e(e,t){return new e1e(e,t)}var r1e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=t1e(e.config,{valueGetterAttrMap:_e({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ye(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=un('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),vt(l));var c=t.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=un("Can not find dimension info via: "+u+`.
117
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
118
+ `,"Illegal condition:",s,`.
119
+ `)),vt(l)),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},aT="";process.env.NODE_ENV!=="production"&&(aT=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var n1e={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=Dt(r);a.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),vt(n));var i=[];M(a,function(c){var f=c.dimension,d=c.order,p=c.parser,v=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+aT),vt(n)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+aT),vt(n)),v&&v!=="min"&&v!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+v+'".'),vt(g)}if(d!=="asc"&&d!=="desc"){var m="";process.env.NODE_ENV!=="production"&&(m='order must be "asc" or "desc" rather than "'+d+'".'),vt(m)}var y=t.getDimensionInfo(f);y||(process.env.NODE_ENV!=="production"&&(n=un("Can not find dimension info via: "+f+`.
120
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
121
+ `,"Illegal config:",c,`.
122
+ `)),vt(n));var _=p?sk(p):null;p&&!_&&(process.env.NODE_ENV!=="production"&&(n=un("Invalid parser name "+p+`.
123
+ `,"Illegal config:",c,`.
124
+ `)),vt(n)),i.push({dimIdx:y.index,parser:_,comparator:new uk(d,v)})});var o=t.sourceFormat;o!==qr&&o!==fa&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),vt(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var p=i[d],v=t.retrieveValueFromItem(c,p.dimIdx),g=t.retrieveValueFromItem(f,p.dimIdx);p.parser&&(v=p.parser(v),g=p.parser(g));var m=p.comparator.evaluate(v,g);if(m!==0)return m}return 0}),{data:s}}};function a1e(e){e.registerTransform(r1e),e.registerTransform(n1e)}var i1e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new vk(this),gk(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),gk(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Si},t}(Ue),o1e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(kt);function s1e(e){e.registerComponentModel(i1e),e.registerComponentView(o1e)}var Ni=mi.CMD;function $c(e,t){return Math.abs(e-t)<1e-5}function iT(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(N,I){a&&a.length>2&&n.push(a),a=[N,I]}function c(N,I,k,P){$c(N,k)&&$c(I,P)||a.push(N,I,k,P,k,P)}function f(N,I,k,P,V,B){var G=Math.abs(I-N),U=Math.tan(G/4)*4/3,W=I<N?-1:1,re=Math.cos(N),le=Math.sin(N),Y=Math.cos(I),X=Math.sin(I),fe=re*V+k,we=le*B+P,de=Y*V+k,pe=X*B+P,Ae=V*U*W,me=B*U*W;a.push(fe-Ae*le,we+me*re,de+Ae*X,pe-me*Y,de,pe)}for(var d,p,v,g,m=0;m<r;){var y=t[m++],_=m===1;switch(_&&(i=t[m],o=t[m+1],s=i,l=o,(y===Ni.L||y===Ni.C||y===Ni.Q)&&(a=[s,l])),y){case Ni.M:i=s=t[m++],o=l=t[m++],u(s,l);break;case Ni.L:d=t[m++],p=t[m++],c(i,o,d,p),i=d,o=p;break;case Ni.C:a.push(t[m++],t[m++],t[m++],t[m++],i=t[m++],o=t[m++]);break;case Ni.Q:d=t[m++],p=t[m++],v=t[m++],g=t[m++],a.push(i+2/3*(d-i),o+2/3*(p-o),v+2/3*(d-v),g+2/3*(p-g),v,g),i=v,o=g;break;case Ni.A:var b=t[m++],S=t[m++],x=t[m++],w=t[m++],C=t[m++],T=t[m++]+C;m+=1;var D=!t[m++];d=Math.cos(C)*x+b,p=Math.sin(C)*w+S,_?(s=d,l=p,u(s,l)):c(i,o,d,p),i=Math.cos(T)*x+b,o=Math.sin(T)*w+S;for(var E=(D?-1:1)*Math.PI/2,A=C;D?A>T:A<T;A+=E){var L=D?Math.max(A+E,T):Math.min(A+E,T);f(A,L,b,S,x,w)}break;case Ni.R:s=i=t[m++],l=o=t[m++],d=s+t[m++],p=l+t[m++],u(d,l),c(d,l,d,p),c(d,p,s,p),c(s,p,s,l),c(s,l,d,l);break;case Ni.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function oT(e,t,r,n,a,i,o,s,l,u){if($c(e,r)&&$c(t,n)&&$c(a,o)&&$c(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,p=s-t,v=Math.sqrt(d*d+p*p);d/=v,p/=v;var g=r-e,m=n-t,y=a-o,_=i-s,b=g*g+m*m,S=y*y+_*_;if(b<f&&S<f){l.push(o,s);return}var x=d*g+p*m,w=-d*y-p*_,C=b-x*x,T=S-w*w;if(C<f&&x>=0&&T<f&&w>=0){l.push(o,s);return}var D=[],E=[];$o(e,r,a,o,.5,D),$o(t,n,i,s,.5,E),oT(D[0],E[0],D[1],E[1],D[2],E[2],D[3],E[3],l,u),oT(D[4],E[4],D[5],E[5],D[6],E[6],D[7],E[7],l,u)}function l1e(e,t){var r=iT(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],p=i[u++],v=i[u++],g=i[u++];oT(s,l,c,f,d,p,v,g,o,t),s=v,l=g}n.push(o)}return n}function k4(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function P4(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=k4([l,u],c?0:1,t),d=(c?s:u)/f.length,p=0;p<f.length;p++)for(var v=(c?u:s)/f[p],g=0;g<f[p];g++){var m={};c?(m.startAngle=i+d*p,m.endAngle=i+d*(p+1),m.r0=n+v*g,m.r=n+v*(g+1)):(m.startAngle=i+v*g,m.endAngle=i+v*(g+1),m.r0=n+d*p,m.r=n+d*(p+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,r.push(m)}}function u1e(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=k4([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var p=e[l]/o[d],v=0;v<o[d];v++){var g={};g[u]=d*f,g[c]=v*p,g[s]=f,g[l]=p,g.x+=e.x,g.y+=e.y,r.push(g)}}function O4(e,t,r,n){return e*n-r*t}function c1e(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=O4(c,f,l,u);if(Math.abs(d)<1e-6)return null;var p=e-a,v=t-i,g=O4(p,v,c,f)/d;return g<0||g>1?null:new $e(g*l+e,g*u+t)}function f1e(e,t,r){var n=new $e;$e.sub(n,r,t),n.normalize();var a=new $e;$e.sub(a,e,t);var i=a.dot(n);return i}function Hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function h1e(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=c1e(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:f1e(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(m,y){return m.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],v=[d],g=[p],i=u.idx+1;i<=c.idx;i++)Hc(v,e[i].slice());Hc(v,p),Hc(v,d);for(var i=c.idx+1;i<=u.idx+n;i++)Hc(g,e[i%n].slice());return Hc(g,d),Hc(g,p),[{points:v},{points:g}]}function R4(e){var t=e.points,r=[],n=[];Uv(t,r,n);var a=new He(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new $e,c=new $e;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),h1e(t,u,c)}function ly(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);ly(e,i[0],a,n),ly(e,i[1],r-a,n)}return n}function d1e(e,t){for(var r=[],n=0;n<t;n++)r.push(vb(e));return r}function p1e(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function v1e(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function g1e(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":u1e(n,t,r),a=et;break;case"sector":P4(n,t,r),a=Kr;break;case"circle":P4({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Kr;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=ee(l1e(e.getUpdatedPathProxy(),o),function(y){return v1e(y)}),l=s.length;if(l===0)ly(R4,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=ee(s,function(y){var _=[],b=[];Uv(y,_,b);var S=(b[1]-_[1])*(b[0]-_[0]);return c+=S,{poly:y,area:S}});f.sort(function(y,_){return _.area-y.area});for(var d=t,u=0;u<l;u++){var p=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(p.area/c*t);v<0||(ly(R4,{points:p.poly},v,r),d-=v)}}a=jr;break}if(!a)return d1e(e,t);for(var g=[],u=0;u<r.length;u++){var m=new a;m.setShape(r[u]),p1e(e,m),g.push(m)}return g}function m1e(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,p=2;p<s;){var v=o[p-2],g=o[p-1],m=o[p++],y=o[p++],_=o[p++],b=o[p++],S=o[p++],x=o[p++];if(d<=0){f.push(m,y,_,b,S,x);continue}for(var w=Math.min(d,c-1)+1,C=1;C<=w;C++){var T=C/w;$o(v,m,_,S,T,a),$o(g,y,b,x,T,i),v=a[3],g=i[3],f.push(a[1],i[1],a[2],i[2],v,g),m=a[5],y=i[5],_=a[6],b=i[6]}d-=w-1}return o===e?[f,t]:[e,f]}function V4(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function y1e(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=m1e(l,u),c=r[0],f=r[1],n=c,a=f):(f=V4(a||l,l),c=l):(c=V4(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function B4(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function _1e(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var p=d===0?c:(c+d-2)%l+2,v=e[p]-r[0],g=e[p+1]-r[1],m=t[d]-n[0],y=t[d+1]-n[1],_=m-v,b=y-g;f+=_*_+b*b}f<i&&(i=f,o=u)}return o}function b1e(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function S1e(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=B4(s),c=B4(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],p=0,v=1/0,g=[],m=s.length;i&&(s=b1e(s));for(var y=_1e(s,l,u,c)*6,_=m-2,b=0;b<_;b+=2){var S=(y+b)%_+2;f[b+2]=s[S]-u[0],f[b+3]=s[S+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var x=n/r,w=-n/2;w<=n/2;w+=x){for(var C=Math.sin(w),T=Math.cos(w),D=0,b=0;b<s.length;b+=2){var E=f[b],A=f[b+1],L=l[b]-c[0],N=l[b+1]-c[1],I=L*T-N*C,k=L*C+N*T;g[b]=I,g[b+1]=k;var P=I-E,V=k-A;D+=P*P+V*V}if(D<v){v=D,p=w;for(var B=0;B<g.length;B++)d[B]=g[B]}}a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-p})}return a}function uy(e){return e.__isCombineMorphing}var F4="__mOriginal_";function cy(e,t,r){var n=F4+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Pd(e,t){var r=F4+t;e[r]&&(e[t]=e[r],e[r]=null)}function z4(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function $4(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=y1e(iT(r),iT(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&z4(i,s),l&&z4(o,l),cy(t,"updateTransform",{replace:u}),t.transform=null;var c=S1e(i,o,10,Math.PI),f=[];cy(t,"buildPath",{replace:function(d){for(var p=t.__morphT,v=1-p,g=[],m=0;m<c.length;m++){var y=c[m],_=y.from,b=y.to,S=y.rotation*p,x=y.fromCp,w=y.toCp,C=Math.sin(S),T=Math.cos(S);Bf(g,x,w,p);for(var D=0;D<_.length;D+=2){var E=_[D],A=_[D+1],L=b[D],N=b[D+1],I=E*v+L*p,k=A*v+N*p;f[D]=I*T-k*C+g[0],f[D+1]=I*C+k*T+g[1]}var P=f[0],V=f[1];d.moveTo(P,V);for(var D=2;D<_.length;){var L=f[D++],N=f[D++],B=f[D++],G=f[D++],U=f[D++],W=f[D++];P===L&&V===N&&B===U&&G===W?d.lineTo(U,W):d.bezierCurveTo(L,N,B,G,U,W),P=U,V=W}}}})}function sT(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;$4(e,t),t.__morphT=0;function i(){Pd(t,"buildPath"),Pd(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Me({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function w1e(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function fy(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=ee(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=ee(i,function(s,l){return{cp:s,z:w1e(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function H4(e){return g1e(e.path,e.count)}function lT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function x1e(e,t,r){var n=[];function a(x){for(var w=0;w<x.length;w++){var C=x[w];uy(C)?a(C.childrenRef()):C instanceof Ze&&n.push(C)}}a(e);var i=n.length;if(!i)return lT();var o=r.dividePath||H4,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),lT();n=fy(n),s=fy(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Qi,d=0;d<i;d++){var p=n[d],v=s[d];v.parent=t,v.copyTransform(f),c||$4(p,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}cy(t,"addSelfToZr",{after:function(x){g(x)}}),cy(t,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function m(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Pd(t,"addSelfToZr"),Pd(t,"removeSelfFromZr")}var y=s.length;if(c)for(var _=y,b=function(){_--,_===0&&(m(),l&&l())},d=0;d<y;d++){var S=c?Me({delay:(r.delay||0)+c(d,y,n[d],s[d]),done:b},r):r;sT(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},Me({during:function(x){for(var w=0;w<y;w++){var C=s[w];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(x)},done:function(){m();for(var x=0;x<e.length;x++)Pd(e[x],"updateTransform");l&&l()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function C1e(e,t,r){var n=t.length,a=[],i=r.dividePath||H4;function o(p){for(var v=0;v<p.length;v++){var g=p[v];uy(g)?o(g.childrenRef()):g instanceof Ze&&a.push(g)}}if(uy(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(vb(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),lT()}a=fy(a),t=fy(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?Me({delay:(r.delay||0)+f(u,n,a[u],t[u])},r):r;sT(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function G4(e){return J(e[0])}function U4(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var T1e={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=vb(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function uT(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=Zu("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;G4(e)&&(u=e,c=t),G4(t)&&(u=t,c=e);function f(y,_,b,S,x){var w=y.many,C=y.one;if(w.length===1&&!x){var T=_?w[0]:C,D=_?C:w[0];if(uy(T))f({many:[T],one:D},!0,b,S,!0);else{var E=s?Me({delay:s(b,S)},l):l;sT(T,D,E),i(T,D,T,D,E)}}else for(var A=Me({dividePath:T1e[r],individualDelay:s&&function(V,B,G,U){return s(V+b,S)}},l),L=_?x1e(w,C,A):C1e(C,w,A),N=L.fromIndividuals,I=L.toIndividuals,k=N.length,P=0;P<k;P++){var E=s?Me({delay:s(P,k)},l):l;i(N[P],I[P],_?w[P]:y.one,_?y.one:w[P],E)}}for(var d=u?u===e:e.length>t.length,p=u?U4(c,u):U4(d?t:e,[d?e:t]),v=0,g=0;g<p.length;g++)v+=p[g].many.length;for(var m=0,g=0;g<p.length;g++)f(p[g],d,m,v),m+=p[g].many.length}function ql(e){if(!e)return[];if(J(e)){for(var t=[],r=0;r<e.length;r++)t.push(ql(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof Ze&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var W4=1e4,D1e=0,Y4=1,X4=2,E1e=at();function A1e(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var a=e.getDimensionInfo(r[n]);if(a&&a.otherDims[t]===0)return r[n]}}function M1e(e,t,r){var n=e.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=e.get(n.name,t);return a&&a.categories[i]||i+""}}function K4(e,t,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=A1e(e,a);if(i){var o=M1e(e,t,i);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function j4(e){var t=[];return M(e,function(r){var n=r.data,a=r.dataGroupId;if(n.count()>W4){process.env.NODE_ENV!=="production"&&Wt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:K4(n,o,a,!1),childGroupId:K4(n,o,a,!0),divide:r.divide,dataIndex:o})}),t}function cT(e,t,r){e.traverse(function(n){n instanceof Ze&&Vt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function fT(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Gc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function N1e(e,t,r){var n=Zu("update",r,t);n&&e.traverse(function(a){if(a instanceof oa){var i=sne(a);i&&a.animateFrom({style:i},n)}})}function I1e(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Z4(e,t,r){var n=j4(e),a=j4(t);function i(b,S,x,w,C){(x||b)&&S.animateFrom({style:x&&x!==b?j(j({},x.style),b.style):b.style},C)}var o=!1,s=D1e,l=_e(),u=_e();n.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=Y4;break}var d=a[c].childGroupId;if(d&&l.get(d)){s=X4;break}}function p(b,S){return function(x){var w=x.data,C=x.dataIndex;return S?w.getId(C):b?s===Y4?x.childGroupId:x.groupId:s===X4?x.childGroupId:x.groupId}}var v=I1e(n,a),g={};if(!v)for(var c=0;c<a.length;c++){var m=a[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(g[y.id]=!0)}function _(b,S){var x=n[S],w=a[b],C=w.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),D=w.data.getItemGraphicEl(w.dataIndex);if(T===D){D&&N1e(D,w.dataIndex,C);return}T&&g[T.id]||D&&(Gc(D),T?(Gc(T),fT(T),o=!0,uT(ql(T),ql(D),w.divide,C,b,i)):cT(D,C,b))}new so(n,a,p(!0,v),p(!1,v),null,"multiple").update(_).updateManyToOne(function(b,S){var x=a[b],w=x.data,C=w.hostModel,T=w.getItemGraphicEl(x.dataIndex),D=ct(ee(S,function(E){return n[E].data.getItemGraphicEl(n[E].dataIndex)}),function(E){return E&&E!==T&&!g[E.id]});T&&(Gc(T),D.length?(M(D,function(E){Gc(E),fT(E)}),o=!0,uT(ql(D),ql(T),x.divide,C,b,i)):cT(T,C,x.dataIndex))}).updateOneToMany(function(b,S){var x=n[S],w=x.data.getItemGraphicEl(x.dataIndex);if(!(w&&g[w.id])){var C=ct(ee(b,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==w}),T=a[b[0]].data.hostModel;C.length&&(M(C,function(D){return Gc(D)}),w?(Gc(w),fT(w),o=!0,uT(ql(w),ql(C),x.divide,T,b[0],i)):M(C,function(D){return cT(D,T,b[0])}))}}).updateManyToMany(function(b,S){new so(S,b,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,w){_(b[x],S[w])}).execute()}).execute(),o&&M(t,function(b){var S=b.data,x=S.hostModel,w=x&&r.getViewOfSeriesModel(x),C=Zu("update",x,0);w&&x.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(T){T instanceof Ze&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function q4(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function J4(e){return J(e)?e.sort().join(","):e}function gs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function L1e(e,t){var r=_e(),n=_e(),a=_e();M(e.oldSeries,function(o,s){var l=e.oldDataGroupIds[s],u=e.oldData[s],c=q4(o),f=J4(c);n.set(f,{dataGroupId:l,data:u}),J(c)&&M(c,function(d){a.set(d,{key:f,dataGroupId:l,data:u})})});function i(o){r.get(o)&&Wt("Duplicated seriesKey in universalTransition "+o)}return M(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=q4(o),c=J4(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),r.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:gs(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:gs(l),data:l}]});else if(J(u)){process.env.NODE_ENV!=="production"&&i(c);var d=[];M(u,function(g){var m=n.get(g);m.data&&d.push({dataGroupId:m.dataGroupId,divide:gs(m.data),data:m.data})}),d.length&&r.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:gs(l)}]})}else{var p=a.get(u);if(p){var v=r.get(p.key);v||(v={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:gs(p.data)}],newSeries:[]},r.set(p.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:gs(l)})}}}}),r}function Q4(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function k1e(e,t,r,n){var a=[],i=[];M(Dt(e.from),function(o){var s=Q4(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:gs(t.oldData[s]),groupIdDim:o.dimension})}),M(Dt(e.to),function(o){var s=Q4(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:gs(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Z4(a,i,n)}function P1e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){M(Dt(n.seriesTransition),function(a){M(Dt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Eg]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=E1e(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(Dt(i),function(p){k1e(p,a,n,r)});else{var o=L1e(a,n);M(o.keys(),function(p){var v=o.get(p);Z4(v.oldSeries,v.newSeries,r)})}M(n.updatedSeries,function(p){p[Eg]&&(p[Eg]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<W4&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}We([Wle]),We([zle]),We([fue,Due,Rue,vce,Dce,hfe,zfe,xhe,Whe,qhe,ode,epe,Tpe,Rpe,Jpe,rve,hve,_ve,Nve,Rve,Yve,Age]),We(Xge),We(_me),We(WV),We(Lme),We(h5),We(Rme),We(Wme),We(Lye),We(qye),We(Td),We(p0e),We(m0e),We(E0e),We(P0e),We(z0e),We(Y0e),We(r_e),We(b_e),We(o4),We(c4),We(z_e),We(D4),We(A4),We(W_e),We(a1e),We(s1e),We(P1e),We(ole);const ez=Object.freeze(Object.defineProperty({__proto__:null,Axis:va,ChartView:yt,ComponentModel:Ue,ComponentView:kt,List:tn,Model:ft,PRIORITY:gP,SeriesModel:Et,color:xee,connect:poe,dataTool:Soe,dependencies:qie,disConnect:voe,disconnect:IP,dispose:goe,env:Xe,extendChartView:Xse,extendComponentModel:Use,extendComponentView:Wse,extendSeriesModel:Yse,format:kse,getCoordinateSystemDimensions:yoe,getInstanceByDom:LS,getInstanceById:moe,getMap:boe,graphic:Lse,helper:Cse,init:IS,innerDrawElementOnCanvas:gS,matrix:tee,number:Nse,parseGeoJSON:QS,parseGeoJson:QS,registerAction:Ha,registerCoordinateSystem:PP,registerLayout:OP,registerLoading:VS,registerLocale:Nb,registerMap:VP,registerPostInit:LP,registerPostUpdate:kP,registerPreprocessor:PS,registerProcessor:OS,registerTheme:kS,registerTransform:BP,registerUpdateLifecycle:Wg,registerVisual:as,setCanvasCreator:_oe,setPlatformAPI:h2,throttle:Mg,time:Ise,use:We,util:Pse,vector:$Q,version:Zie,zrUtil:PQ,zrender:ate},Symbol.toStringTag,{value:"Module"})),O1e={name:"cmLineChart"},R1e=h.defineComponent({...O1e,props:{data:{default:()=>({width:"100%",height:"600px",chartType:"",chartName:"",dataList:[],fieldMessage:{},statisticsType:"",colorList:[],borderColor:"#fff",fieldSum:{},smooth:!1,bShowLegend:!0,orientVal:"horizontal",legendLocation:"left",yRotate:0,showDataZoom:!0,dataZoomHeight:20,dataZoomBottom:10,minDataCount:5,maxLabelLength:5,labelRotate:45})},containerWidth:{default:"100%"}},setup(e,{expose:t}){const r=e;let n=h.ref(""),a=h.ref(""),i=h.ref([]),o=h.ref([]),s=h.ref([]);const l=h.ref(null);let u=null;const c=()=>{var b,S;if(!l.value||!ez)return;u&&u.dispose();const y=((b=l.value.parentElement)==null?void 0:b.offsetWidth)||r.containerWidth,_=((S=l.value.parentElement)==null?void 0:S.offsetHeight)||400;l.value.style.width=y+"px",l.value.style.height=_+"px",u=IS(l.value),d(),setTimeout(()=>{u&&u.resize()},50)},f=h.computed(()=>({graphic:[{type:"text",left:"center",top:10,style:{text:r.data.chartName,fill:r.data.chartNameColor,fontSize:16}}],tooltip:{trigger:"axis",formatter:function(y){if(!(y!=null&&y.length))return"";let _=`<div style="max-width: 300px; word-wrap: break-word;"><b>${y[0].axisValue}</b></div>`;return y.forEach(b=>{const S=`<span style="display:inline-block;margin-right:4px;
125
+ border-radius:50%;width:10px;height:10px;
126
+ background-color:${b.color}"></span>`;_+=`<br/>${S} ${b.seriesName}: ${b.value}`}),_},textStyle:{fontSize:12}},legend:{data:s.value,orient:r.data.orientVal,left:r.data.legendLocation,x:"0px",y:"10px",show:r.data.bShowLegend},xAxis:{type:"category",data:i.value,axisLabel:{interval:i.value.length>10?"auto":0,rotate:r.data.labelRotate||45,fontSize:12,formatter:function(y){const _=r.data.maxLabelLength||5;return y&&y.length>_?y.substring(0,_)+"...":y},overflow:"truncate",ellipsis:"..."}},dataZoom:r.data.showDataZoom&&i.value.length>(r.data.minDataCount||5)?[{type:"slider",show:!0,xAxisIndex:[0],start:0,end:Math.min(100,10/i.value.length*100),height:r.data.dataZoomHeight||20,bottom:r.data.dataZoomBottom||10,handleStyle:{color:"#1890ff"},textStyle:{color:"#666"},showDetail:!0,showDataShadow:!0,realtime:!0,filterMode:"filter"},{type:"inside",xAxisIndex:[0],start:0,end:Math.min(100,10/i.value.length*100),zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0}]:[],yAxis:{type:"value",axisLabel:{rotate:r.data.yRotate}},series:o.value})),d=()=>{u&&u.setOption(f.value,!0)},p=()=>{u&&(console.log("正在执行销毁",u),u.dispose(),u=null),console.log("执行销毁完成",u)},v=()=>{let y=r.data.dataList,_=r.data.fieldMessage,b=r.data.statisticsType,S=r.data.fieldSum;if(i.value=[...new Set(y.map(x=>x[_.sKey]))],b==="1"){let x={name:"",type:r.data.chartType,data:[],color:r.data.colorList[0],smooth:r.data.smooth};x.name=_.sValue;const w=new Map,C=_.sKey;y.forEach(T=>{const D=T[C];if(w.has(D)){const E=w.get(D);E.value+=1}else{const E={[C]:D,name:D,value:1};w.set(D,E)}}),x.data=Array.from(w.values()),o.value=[x],s.value=[x.name]}else if(S.length){let x=[],w=[];for(let C=0;C<S.length;C++){let T=S[C],D={name:"",type:r.data.chartType,color:r.data.colorList[C],data:[],smooth:r.data.smooth};w.push(T.sValue),D.name=T.sValue;const E=_.sKey,A=new Map;y.forEach(L=>{const N=L[E];if(A.has(N)){const I=A.get(N);I.value+=L[T.sKey]}else{const I={[E]:N,name:N,value:L[E]===N?L[T.sKey]:0};A.set(N,I)}}),D.data=Array.from(A.values()),x.push(D)}o.value=x,s.value=w}else o.value=[],s.value=[]},g=()=>{var y;r.data&&((y=r.data.dataList)!=null&&y.length)&&(v(),n.value=r.data.width,a.value=r.data.height,h.nextTick(()=>{!u&&l.value?c():d(),setTimeout(()=>{var _,b;if(u&&l.value){const S=((_=l.value.parentElement)==null?void 0:_.offsetWidth)||r.containerWidth,x=((b=l.value.parentElement)==null?void 0:b.offsetHeight)||400;l.value.style.width=S+"px",l.value.style.height=x+"px",u.resize()}},100)}))},m=h.computed(()=>{let y={width:"",height:""};return y.width=n.value,y.height=a.value,y});return h.onMounted(()=>{r.data&&setTimeout(()=>{g()},100)}),h.onUnmounted(()=>{p()}),h.watch(()=>r.data,(y,_)=>{g()},{deep:!0,immediate:!0}),t({disposeChart:p}),(y,_)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"lineChartRef",ref:l,class:"cmLineChart",style:h.normalizeStyle(m.value)},null,4))}}),V1e={name:"cmPieChart"},B1e=h.defineComponent({...V1e,props:{data:{default:()=>({width:"100%",height:"400px",chartName:"",dataList:[],fieldMessage:{},statisticsType:"",bShowLegend:!0,bShowSeriesLabel:!0,colorList:[],borderColor:"#fff",pieRadius:"0%",orientVal:"horizontal",legendLocation:"left",fieldSum:{}})},containerWidth:{default:"100%"}},setup(e,{expose:t}){let{proxy:r}=h.getCurrentInstance();const n=e;let a=h.ref(""),i=h.ref("");const o=h.ref(null);let s=null;const l=h.ref([]),u=()=>{var y,_;if(!o.value||!ez)return;s&&s.dispose();const g=((y=o.value.parentElement)==null?void 0:y.offsetWidth)||n.containerWidth,m=((_=o.value.parentElement)==null?void 0:_.offsetHeight)||400;o.value.style.width=g+"px",o.value.style.height=m+"px",s=IS(o.value),c(),setTimeout(()=>{s&&s.resize()},50)},c=()=>{if(!s)return;const g={title:{text:n.data.chartName,left:"center"},tooltip:{trigger:"item",formatter:function(m){return Object.keys(n.data.fieldSum).length?m.name+"<br/>"+n.data.fieldSum.sValue+" : "+m.value:m.name+"<br/>"+n.data.fieldMessage.sValue+" : "+m.value}},legend:{orient:n.data.orientVal,left:n.data.legendLocation,x:"0px",y:"10px",show:n.data.bShowLegend},series:[{name:"",type:"pie",data:l.value,avoidLabelOverlap:!0,color:n.data.colorList,label:{show:n.data.bShowSeriesLabel,formatter:"{b}: {@2012} ({d}%)"},itemStyle:{borderColor:n.data.borderColor||"#fff"},radius:[n.data.pieRadius,"70%"],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};s.setOption(g)},f=()=>{s&&(console.log("正在执行销毁",s),s.dispose(),s=null),console.log("执行销毁完成",s)},d=()=>{var b;let g=n.data.dataList,m=n.data.fieldMessage,y=n.data.statisticsType,_=(b=n.data.fieldSum)==null?void 0:b.sKey;if(y==="1"){const S=new Map,x=m.sKey;return g.forEach(w=>{const C=w[x];if(S.has(C)){const T=S.get(C);T.value+=1}else{const T={[x]:C,name:C,value:1};S.set(C,T)}}),Array.from(S.values())}else if(_){const S=m.sKey,x=new Map;return g.forEach(w=>{const C=w[S];if(x.has(C)){const T=x.get(C);T.value+=w[_]}else{const T={[S]:C,name:C,value:w[S]===C?w[_]:0};x.set(C,T)}}),Array.from(x.values())}else return[]},p=()=>{var g;n.data&&((g=n.data.dataList)!=null&&g.length)&&(l.value=d(),a.value=n.data.width,i.value=n.data.height,l.value.length&&h.nextTick(()=>{!s&&o.value?u():c(),setTimeout(()=>{var m,y;if(s&&o.value){const _=((m=o.value.parentElement)==null?void 0:m.offsetWidth)||n.containerWidth,b=((y=o.value.parentElement)==null?void 0:y.offsetHeight)||400;o.value.style.width=_+"px",o.value.style.height=b+"px",s.resize()}},100)}))},v=h.computed(()=>{let g={width:"",height:""};return g.width=a.value,g.height=i.value,g});return h.onMounted(()=>{n.data&&p()}),h.onUnmounted(()=>{f()}),h.watch(()=>n.data,(g,m)=>{p()},{deep:!0,immediate:!0}),t({disposeChart:f}),(g,m)=>(h.openBlock(),h.createElementBlock("div",{ref_key:"pieChartRef",ref:o,class:"cmPieChart",style:h.normalizeStyle(v.value)},null,4))}}),F1e=sn(h.defineComponent({name:"cmTabs",inheritAttrs:!1,__name:"index",setup(e){return h.onMounted(()=>{}),(t,r)=>(h.openBlock(),h.createBlock(h.unref(r7),h.mergeProps(t.$attrs,{class:["custom-tabs",t.$attrs.class],style:t.$attrs.style}),{default:h.withCtx(()=>[h.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16,["class","style"]))}}),[["__scopeId","data-v-95f8c38a"]]),z1e=h.defineComponent({name:"cmTabPane",inheritAttrs:!1,__name:"index",props:{label:{type:String,default:""},name:{type:String,default:""},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(e){const t=e;return h.onMounted(()=>{}),(r,n)=>(h.openBlock(),h.createBlock(h.unref(n7),h.mergeProps(r.$attrs,{label:t.label,name:t.name,disabled:t.disabled,lazy:t.lazy}),{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},16,["label","name","disabled","lazy"]))}}),$1e={class:"custom-splitter-wrapper"},H1e={key:0,class:"toggle-btn-wrapper"},G1e=sn(h.defineComponent({name:"cmSplitter",inheritAttrs:!1,__name:"index",props:{layout:{default:"horizontal"},showToggleBtn:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},setup(e){const t=e,r=h.ref(t.layout);return h.watch(()=>t.layout,n=>{r.value=n}),(n,a)=>(h.openBlock(),h.createElementBlock("div",$1e,[n.showToggleBtn?(h.openBlock(),h.createElementBlock("div",H1e,[h.createVNode(h.unref(L9),null,{default:h.withCtx(()=>[h.createVNode(h.unref(R0),{type:r.value==="horizontal"?"primary":"default",size:"small",onClick:a[0]||(a[0]=i=>r.value="horizontal")},{default:h.withCtx(()=>[h.createVNode(h.unref(Er),null,{default:h.withCtx(()=>[h.createVNode(h.unref(b0))]),_:1}),a[2]||(a[2]=h.createTextVNode(" 水平 "))]),_:1,__:[2]},8,["type"]),h.createVNode(h.unref(R0),{type:r.value==="vertical"?"primary":"default",size:"small",onClick:a[1]||(a[1]=i=>r.value="vertical")},{default:h.withCtx(()=>[h.createVNode(h.unref(Er),null,{default:h.withCtx(()=>[h.createVNode(h.unref(uA))]),_:1}),a[3]||(a[3]=h.createTextVNode(" 垂直 "))]),_:1,__:[3]},8,["type"])]),_:1})])):h.createCommentVNode("",!0),(h.openBlock(),h.createBlock(h.unref(y7),h.mergeProps({key:`splitter-${r.value}`},n.$attrs,{layout:r.value,lazy:t.lazy,class:["custom-splitter",n.$attrs.class],style:n.$attrs.style}),{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},16,["layout","lazy","class","style"]))]))}}),[["__scopeId","data-v-88c3b11c"]]),U1e=h.defineComponent({name:"cmSplitterPanel",inheritAttrs:!1,__name:"index",props:{size:{type:[String,Number],default:""},min:{type:[String,Number],default:""},max:{type:[String,Number],default:""},collapsible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0}},setup(e){const t=e;return h.onMounted(()=>{}),(r,n)=>(h.openBlock(),h.createBlock(h.unref(_7),h.mergeProps(r.$attrs,{size:t.size,min:t.min,max:t.max,collapsible:t.collapsible,resizable:t.resizable}),{default:h.withCtx(()=>[h.renderSlot(r.$slots,"default")]),_:3},16,["size","min","max","collapsible","resizable"]))}}),W1e={class:"cm-upload-container"},Y1e=["onClick"],X1e={key:0,class:"image-preview"},K1e=["src","alt"],j1e={class:"file-name"},Z1e=["onClick"],q1e={key:1,class:"text-preview"},J1e={class:"file-icon"},Q1e={class:"file-name"},ebe=["onClick"],tbe={class:"el-upload__tip"},rbe={class:"dialog-footer"},nbe={style:{"text-align":"center"}},abe=["src","alt"],ibe=h.defineComponent({__name:"index",props:{action:{default:""},sDataDeleteUrl:{default:""},headers:{default:()=>({})},data:{default:()=>({})},accept:{default:".jpg,.jpeg,.png,.gif,.webp,.doc,.docx,.pdf"},limit:{default:10},multiple:{type:Boolean,default:!0},listType:{default:"picture-card"},autoUpload:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},uploadText:{default:$.$ntt("选择文件")},tipText:{default:$.$ntt("支持 jpg/png/gif/webp/doc/docx/pdf 格式")},maxSize:{default:50},showInput:{type:Boolean,default:!0},inputLabel:{default:$.$ntt("类别")},inputPlaceholder:{default:$.$ntt("请输入类别")},inputKey:{default:"category"},defaultValue:{default:$.$ntt("通用")},dialogTitle:{default:$.$ntt("文件上传")},name:{default:"file"}},emits:["success","error","remove","exceed","confirm"],setup(e,{expose:t,emit:r}){let{proxy:n}=h.getCurrentInstance();const a=e,i=r,o=h.ref();h.ref([]);const s=h.ref(a.defaultValue),l=h.ref(!1),u=h.ref(""),c=h.ref(!0),f=h.ref(!1),d=h.ref([]),p=h.computed(()=>{const N={...a.data};return a.showInput&&(N[a.inputKey]=s.value),N});h.computed(()=>a.listType!=="picture-card"?a.listType:"picture-card");const v=N=>{const I=N.substring(N.lastIndexOf(".")).toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].includes(I)};h.watch(s,N=>{console.log("输入框值变化:",N)});const g=N=>{const I=N.name,k=I.substring(I.lastIndexOf(".")).toLowerCase();if(!a.accept.split(",").map(U=>U.trim().toLowerCase()).some(U=>U.startsWith(".")?k===U:N.type.includes(U)))return Hr.error($.$ntt("不支持的文件格式,请上传 jpg/png/gif/webp/doc/docx/pdf 格式的文件")),!1;const B=a.maxSize*1024*1024;if(N.size>B)return Hr.error(`${$.$ntt("文件大小不能超过")} ${a.maxSize}MB`),!1;const G=[".jpg",".jpeg",".png",".gif",".webp",".bmp"];return a.listType==="picture-card"&&G.includes(k),!0},m=(N,I,k)=>{var P;console.log("单个文件上传成功:",{response:N,uploadFile:I,uploadFiles:k}),d.value.push({name:I.name,size:I.size,type:((P=I.raw)==null?void 0:P.type)||"",status:I.status,url:I.url,response:N,uid:I.uid,raw:I.raw}),i("success",{response:N,uploadFile:I,fileList:k}),Hr.success(`${$.$ntt("文件")} ${I.name} ${$.$ntt("上传成功")}`),I.response=N},y=(N,I,k)=>{console.error("上传失败:",{error:N,uploadFile:I,uploadFiles:k}),i("error",{error:N,uploadFile:I,uploadFiles:k}),Hr.error(`${$.$ntt("文件")} ${I.name} ${$.$ntt("上传失败")}`)},_=async N=>{var I;console.log("点击删除文件:",N,"handleRemoveFile");try{await rM.confirm(`${$.$ntt("确定要删除文件")} "${N.name}" 吗?`,$.$ntt("删除确认"),{confirmButtonText:$.$ntt("确定"),cancelButtonText:$.$ntt("取消"),type:"warning"});let k=N.response.data[0].filePath;const P=d.value.findIndex(V=>V.uid===N.uid);if(P>-1&&(d.value.splice(P,1),console.log("已从上传列表中删除文件:",N.name)),o.value){const B=(((I=o.value)==null?void 0:I.uploadFiles)||[]).filter(G=>G.uid!==N.uid);o.value.handleRemove(N,B)}n.$api.deleteUrlData(a.sDataDeleteUrl+`?filePath=${k}`).then(V=>{n.$message.success($.$ntt("操作成功","菜单")),i("remove",{file:N,uploadFiles:filteredFiles})}),Hr.success($.$ntt("文件删除成功"))}catch{console.log("用户取消删除文件")}},b=(N,I)=>{console.log("文件超出限制:",{files:N,uploadFiles:I}),i("exceed",{files:N,uploadFiles:I}),Hr.warning(`${$.$ntt("最多只能上传")} ${a.limit} ${$.$ntt("个文件")}`)},S=(N,I)=>{if(console.log("文件变化:",N.status),(N.status==="ready"||N.status==="uploading")&&N.raw&&!N.url){const k=N.name||"";v(k)&&(N.url=URL.createObjectURL(N.raw),console.log("为图片创建 blob URL 用于缩略图:",N.url))}},x=N=>{var V,B,G;console.log("预览文件:",N);const I=N.name,k=I.substring(I.lastIndexOf(".")).toLowerCase();if(v(I)){const U=N.response;let W=N.url||(U==null?void 0:U.url)||((V=U==null?void 0:U.data)==null?void 0:V.url);!W&&N.raw&&(W=URL.createObjectURL(N.raw)),W?(u.value=W,l.value=!0):Hr.warning($.$ntt("无法获取图片链接"));return}if(k===".pdf"){const U=N.response;let W=N.url||(U==null?void 0:U.url)||((B=U==null?void 0:U.data)==null?void 0:B.url);!W&&N.raw&&(W=URL.createObjectURL(N.raw)),W?window.open(W,"_blank"):Hr.warning($.$ntt("无法获取PDF链接"));return}if([".doc",".docx"].includes(k)){const U=N.response;let W=N.url||(U==null?void 0:U.url)||((G=U==null?void 0:U.data)==null?void 0:G.url);if(!W&&N.raw&&(W=URL.createObjectURL(N.raw)),W){const re=document.createElement("a");re.href=W,re.download=I,document.body.appendChild(re),re.click(),document.body.removeChild(re)}else Hr.warning($.$ntt("无法获取文档链接"));return}Hr.info($.$ntt("不支持预览此类型的文件"))},w=()=>{console.error("图片加载失败:",u.value),l.value=!1,T()},C=()=>{c.value=!1,console.log("图片加载成功")},T=()=>{u.value="",c.value=!0,console.log("已清除预览内容")},D=()=>{f.value=!0},E=()=>{f.value=!1},A=()=>{if(console.log("已上传的文件列表:",d.value),console.log("文件数量:",d.value.length),d.value.length===0){Hr.warning($.$ntt("请先选择并上传文件"));return}i("confirm",{fileList:d.value}),E()},L=()=>{var N;(N=o.value)==null||N.clearFiles(),d.value=[],s.value=a.defaultValue};return t({openUploadDialog:D,closeUploadDialog:E,submit:()=>{var N;return(N=o.value)==null?void 0:N.submit()},clearFiles:()=>{var N;return(N=o.value)==null?void 0:N.clearFiles()},abort:N=>{N&&o.value&&o.value.abort(N)}}),(N,I)=>{const k=h.resolveComponent("el-input"),P=h.resolveComponent("el-form-item"),V=h.resolveComponent("el-icon"),B=h.resolveComponent("el-upload"),G=h.resolveComponent("el-button"),U=h.resolveComponent("el-dialog");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(U,{modelValue:f.value,"onUpdate:modelValue":I[1]||(I[1]=W=>f.value=W),title:N.dialogTitle,width:"800px","close-on-click-modal":!1,onClosed:L},{footer:h.withCtx(()=>[h.createElementVNode("div",rbe,[h.createVNode(G,{onClick:E},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("取消")),1)]),_:1}),h.createVNode(G,{type:"primary",onClick:A},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref($).$ntt("确定")),1)]),_:1})])]),default:h.withCtx(()=>[h.createElementVNode("div",W1e,[N.showInput?(h.openBlock(),h.createBlock(P,{key:0,label:N.inputLabel,class:"upload-input-item"},{default:h.withCtx(()=>[h.createVNode(k,{modelValue:s.value,"onUpdate:modelValue":I[0]||(I[0]=W=>s.value=W),placeholder:N.inputPlaceholder,style:{width:"200px"}},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):h.createCommentVNode("",!0),h.createVNode(B,{ref_key:"uploadRef",ref:o,action:N.action,name:N.name,headers:N.headers,data:p.value,accept:N.accept,limit:N.limit,multiple:N.multiple,"list-type":"picture-card","auto-upload":N.autoUpload,disabled:N.disabled,"on-success":m,"on-error":y,"on-exceed":b,"before-upload":g,"on-preview":x,"on-change":S},{file:h.withCtx(({file:W})=>[h.createElementVNode("div",{class:"custom-file-item",onClick:re=>x(W)},[v(W.name)?(h.openBlock(),h.createElementBlock("div",X1e,[h.createElementVNode("img",{src:W.url,alt:W.name},null,8,K1e),h.createElementVNode("div",j1e,h.toDisplayString(W.name),1),N.disabled?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:h.withModifiers(re=>_(W),["stop"])},[h.createVNode(V,null,{default:h.withCtx(()=>[h.createVNode(h.unref(pA))]),_:1})],8,Z1e))])):(h.openBlock(),h.createElementBlock("div",q1e,[h.createElementVNode("div",J1e,[h.createVNode(V,null,{default:h.withCtx(()=>[h.createVNode(h.unref(lW))]),_:1})]),h.createElementVNode("div",Q1e,h.toDisplayString(W.name),1),N.disabled?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:h.withModifiers(re=>_(W),["stop"])},[h.createVNode(V,null,{default:h.withCtx(()=>[h.createVNode(h.unref(pA))]),_:1})],8,ebe))]))],8,Y1e)]),tip:h.withCtx(()=>[h.createElementVNode("div",tbe,h.toDisplayString(N.tipText),1)]),_:1},8,["action","name","headers","data","accept","limit","multiple","auto-upload","disabled"])])]),_:1},8,["modelValue","title"]),h.createVNode(U,{modelValue:l.value,"onUpdate:modelValue":I[2]||(I[2]=W=>l.value=W),title:h.unref($).$ntt("图片预览"),width:"800px","z-index":3e3,onClosed:T},{default:h.withCtx(()=>[h.createElementVNode("div",nbe,[h.createElementVNode("img",{src:u.value,alt:h.unref($).$ntt("预览图"),style:{"max-width":"100%","max-height":"600px","object-fit":"contain"},onError:w,onLoad:C},null,40,abe)])]),_:1},8,["modelValue","title"])],64)}}}),obe=sn(ibe,[["__scopeId","data-v-b0bb5ed8"]]),sbe={...tq,...zZ,...Object.freeze(Object.defineProperty({__proto__:null,changeTheme:e=>{document.documentElement.setAttribute("components-theme",e),document.documentElement.offsetHeight},getTbHeight:e=>{var t=e;return t?(console.log("dv",window.innerHeight,t.getBoundingClientRect().top),window.innerHeight-t.getBoundingClientRect().top-45):500},updateConfig:e=>{Object.assign($,e)}},Symbol.toStringTag,{value:"Module"}))},lbe={install(e){e.config.globalProperties.$utils=sbe}},ube=[Nn,aM,xY,PY,BY,nY,gq,Cq,mQ,uJ,s2,ZJ,nQ,eQ,cQ,vQ,R1e,B1e,F1e,z1e,G1e,U1e,obe];return{install:function(e,t){if(ube.forEach(r=>{e.component(r.name,r)}),e.use(lbe),t&&t.$ntt&&typeof t.$ntt=="function"){const r=$.createComponentTranslator();t.$ntt=r;try{const n=e.config.globalProperties.$i18n;if(console.log(n,"businessI18n"),n&&n.locale){const a=n.locale.value||n.locale;pE(a)}}catch(n){console.warn("无法同步语言环境:",n)}}Object.assign($,t)}}});
127
+ //# sourceMappingURL=klein-components-vue3.umd.js.map