klein-components-vue3 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,105 @@
1
+ (function(p,Qu){typeof exports=="object"&&typeof module<"u"?module.exports=Qu(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Qu):(p=typeof globalThis<"u"?globalThis:p||self,p["klein-components-vue3"]=Qu(p.Vue))})(this,function(p){"use strict";const Qu=p.defineComponent({name:"BtnRender",props:{render:{type:Function,required:!0},params:{type:null,default:null}},setup(t){return()=>t.render(p.h,t.params)}});function hx(t,e){return function(){return t.apply(e,arguments)}}const{toString:N5}=Object.prototype,{getPrototypeOf:Qg}=Object,{iterator:Nh,toStringTag:dx}=Symbol,Ph=(t=>e=>{const r=N5.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hn=t=>(t=t.toLowerCase(),e=>Ph(e)===t),Oh=t=>e=>typeof e===t,{isArray:cl}=Array,ec=Oh("undefined");function P5(t){return t!==null&&!ec(t)&&t.constructor!==null&&!ec(t.constructor)&&Wr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const px=Hn("ArrayBuffer");function O5(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&px(t.buffer),e}const R5=Oh("string"),Wr=Oh("function"),vx=Oh("number"),Rh=t=>t!==null&&typeof t=="object",V5=t=>t===!0||t===!1,Vh=t=>{if(Ph(t)!=="object")return!1;const e=Qg(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(dx in t)&&!(Nh in t)},B5=Hn("Date"),F5=Hn("File"),z5=Hn("Blob"),$5=Hn("FileList"),G5=t=>Rh(t)&&Wr(t.pipe),H5=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Wr(t.append)&&((e=Ph(t))==="formdata"||e==="object"&&Wr(t.toString)&&t.toString()==="[object FormData]"))},W5=Hn("URLSearchParams"),[U5,Y5,Z5,X5]=["ReadableStream","Request","Response","Headers"].map(Hn),j5=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tc(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),cl(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function gx(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const Io=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mx=t=>!ec(t)&&t!==Io;function em(){const{caseless:t}=mx(this)&&this||{},e={},r=(n,a)=>{const i=t&&gx(e,a)||a;Vh(e[i])&&Vh(n)?e[i]=em(e[i],n):Vh(n)?e[i]=em({},n):cl(n)?e[i]=n.slice():e[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&tc(arguments[n],r);return e}const K5=(t,e,r,{allOwnKeys:n}={})=>(tc(e,(a,i)=>{r&&Wr(a)?t[i]=hx(a,r):t[i]=a},{allOwnKeys:n}),t),q5=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),J5=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Q5=(t,e,r,n)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Qg(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},eF=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},tF=t=>{if(!t)return null;if(cl(t))return t;let e=t.length;if(!vx(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},rF=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Qg(Uint8Array)),nF=(t,e)=>{const n=(t&&t[Nh]).call(t);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},aF=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},iF=Hn("HTMLFormElement"),oF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),yx=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),sF=Hn("RegExp"),_x=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};tc(r,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(n[i]=o||a)}),Object.defineProperties(t,n)},lF=t=>{_x(t,(e,r)=>{if(Wr(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Wr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},uF=(t,e)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return cl(t)?n(t):n(String(t).split(e)),r},cF=()=>{},fF=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function hF(t){return!!(t&&Wr(t.append)&&t[dx]==="FormData"&&t[Nh])}const dF=t=>{const e=new Array(10),r=(n,a)=>{if(Rh(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const i=cl(n)?[]:{};return tc(n,(o,s)=>{const l=r(o,a+1);!ec(l)&&(i[s]=l)}),e[a]=void 0,i}}return n};return r(t,0)},pF=Hn("AsyncFunction"),vF=t=>t&&(Rh(t)||Wr(t))&&Wr(t.then)&&Wr(t.catch),bx=((t,e)=>t?setImmediate:e?((r,n)=>(Io.addEventListener("message",({source:a,data:i})=>{a===Io&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Io.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wr(Io.postMessage)),gF=typeof queueMicrotask<"u"?queueMicrotask.bind(Io):typeof process<"u"&&process.nextTick||bx,j={isArray:cl,isArrayBuffer:px,isBuffer:P5,isFormData:H5,isArrayBufferView:O5,isString:R5,isNumber:vx,isBoolean:V5,isObject:Rh,isPlainObject:Vh,isReadableStream:U5,isRequest:Y5,isResponse:Z5,isHeaders:X5,isUndefined:ec,isDate:B5,isFile:F5,isBlob:z5,isRegExp:sF,isFunction:Wr,isStream:G5,isURLSearchParams:W5,isTypedArray:rF,isFileList:$5,forEach:tc,merge:em,extend:K5,trim:j5,stripBOM:q5,inherits:J5,toFlatObject:Q5,kindOf:Ph,kindOfTest:Hn,endsWith:eF,toArray:tF,forEachEntry:nF,matchAll:aF,isHTMLForm:iF,hasOwnProperty:yx,hasOwnProp:yx,reduceDescriptors:_x,freezeMethods:lF,toObjectSet:uF,toCamelCase:oF,noop:cF,toFiniteNumber:fF,findKey:gx,global:Io,isContextDefined:mx,isSpecCompliantForm:hF,toJSONObject:dF,isAsyncFn:pF,isThenable:vF,setImmediate:bx,asap:gF,isIterable:t=>t!=null&&Wr(t[Nh])};function Xe(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}j.inherits(Xe,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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Sx=Xe.prototype,xx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{xx[t]={value:t}}),Object.defineProperties(Xe,xx),Object.defineProperty(Sx,"isAxiosError",{value:!0}),Xe.from=(t,e,r,n,a,i)=>{const o=Object.create(Sx);return j.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Xe.call(o,t.message,e,r,n,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const mF=null;function tm(t){return j.isPlainObject(t)||j.isArray(t)}function Cx(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function Tx(t,e,r){return t?t.concat(e).map(function(a,i){return a=Cx(a),!r&&i?"["+a+"]":a}).join(r?".":""):e}function yF(t){return j.isArray(t)&&!t.some(tm)}const _F=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Bh(t,e,r){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!j.isUndefined(m[g])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(j.isDate(v))return v.toISOString();if(!l&&j.isBlob(v))throw new Xe("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(v)||j.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(j.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(j.isArray(v)&&yF(v)||(j.isFileList(v)||j.endsWith(g,"[]"))&&(y=j.toArray(v)))return g=Cx(g),y.forEach(function(b,S){!(j.isUndefined(b)||b===null)&&e.append(o===!0?Tx([g],S,i):o===null?g:g+"[]",u(b))}),!1}return tm(v)?!0:(e.append(Tx(m,g,i),u(v)),!1)}const f=[],h=Object.assign(_F,{defaultVisitor:c,convertValue:u,isVisitable:tm});function d(v,g){if(!j.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),j.forEach(v,function(y,_){(!(j.isUndefined(y)||y===null)&&a.call(e,y,j.isString(_)?_.trim():_,g,h))===!0&&d(y,g?g.concat(_):[_])}),f.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Dx(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function rm(t,e){this._pairs=[],t&&Bh(t,this,e)}const Ex=rm.prototype;Ex.append=function(e,r){this._pairs.push([e,r])},Ex.toString=function(e){const r=e?function(n){return e.call(this,n,Dx)}:Dx;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function bF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mx(t,e,r){if(!e)return t;const n=r&&r.encode||bF;j.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(e,r):i=j.isURLSearchParams(e)?e.toString():new rm(e,r).toString(n),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ax{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ix={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SF={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:rm,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},nm=typeof window<"u"&&typeof document<"u",am=typeof navigator=="object"&&navigator||void 0,wF=nm&&(!am||["ReactNative","NativeScript","NS"].indexOf(am.product)<0),xF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CF=nm&&window.location.href||"http://localhost",_r={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nm,hasStandardBrowserEnv:wF,hasStandardBrowserWebWorkerEnv:xF,navigator:am,origin:CF},Symbol.toStringTag,{value:"Module"})),...SF};function TF(t,e){return Bh(t,new _r.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return _r.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function DF(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function EF(t){const e={},r=Object.keys(t);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],e[i]=t[i];return e}function kx(t){function e(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&&j.isArray(a)?a.length:o,l?(j.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!j.isObject(a[o]))&&(a[o]=[]),e(r,n,a[o],i)&&j.isArray(a[o])&&(a[o]=EF(a[o])),!s)}if(j.isFormData(t)&&j.isFunction(t.entries)){const r={};return j.forEachEntry(t,(n,a)=>{e(DF(n),a,r,0)}),r}return null}function MF(t,e,r){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const rc={transitional:Ix,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return a?JSON.stringify(kx(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return TF(e,this.formSerializer).toString();if((s=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bh(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),MF(e)):e}],transformResponse:[function(e){const r=this.transitional||rc.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?Xe.from(s,Xe.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_r.classes.FormData,Blob:_r.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{rc.headers[t]={}});const AF=j.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"]),IF=t=>{const e={};let r,n,a;return t&&t.split(`
2
+ `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||e[r]&&AF[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Lx=Symbol("internals");function nc(t){return t&&String(t).trim().toLowerCase()}function Fh(t){return t===!1||t==null?t:j.isArray(t)?t.map(Fh):String(t)}function kF(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const LF=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function im(t,e,r,n,a){if(j.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function NF(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function PF(t,e){const r=j.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,i,o){return this[n].call(this,e,a,i,o)},configurable:!0})})}let Ur=class{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function i(s,l,u){const c=nc(l);if(!c)throw new Error("header name must be a non-empty string");const f=j.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=Fh(s))}const o=(s,l)=>j.forEach(s,(u,c)=>i(u,c,l));if(j.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(j.isString(e)&&(e=e.trim())&&!LF(e))o(IF(e),r);else if(j.isObject(e)&&j.isIterable(e)){let s={},l,u;for(const c of e){if(!j.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?j.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(s,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=nc(e),e){const n=j.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return kF(a);if(j.isFunction(r))return r.call(this,a,n);if(j.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=nc(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||im(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function i(o){if(o=nc(o),o){const s=j.findKey(n,o);s&&(!r||im(n,n[s],s,r))&&(delete n[s],a=!0)}}return j.isArray(e)?e.forEach(i):i(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!e||im(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const r=this,n={};return j.forEach(this,(a,i)=>{const o=j.findKey(n,i);if(o){r[o]=Fh(a),delete r[i];return}const s=e?NF(i):String(i).trim();s!==i&&delete r[i],r[s]=Fh(a),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return j.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&j.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[Lx]=this[Lx]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=nc(o);n[s]||(PF(a,o),n[s]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};Ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(Ur.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),j.freezeMethods(Ur);function om(t,e){const r=this||rc,n=e||r,a=Ur.from(n.headers);let i=n.data;return j.forEach(t,function(s){i=s.call(r,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function Nx(t){return!!(t&&t.__CANCEL__)}function fl(t,e,r){Xe.call(this,t??"canceled",Xe.ERR_CANCELED,e,r),this.name="CanceledError"}j.inherits(fl,Xe,{__CANCEL__:!0});function Px(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new Xe("Request failed with status code "+r.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function OF(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function RF(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),r[a]=l,n[a]=u;let f=i,h=0;for(;f!==a;)h+=r[f++],f=f%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-o<e)return;const d=c&&u-c;return d?Math.round(h*1e3/d):void 0}}function VF(t,e){let r=0,n=1e3/e,a,i;const o=(u,c=Date.now())=>{r=c,a=null,i&&(clearTimeout(i),i=null),t.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 zh=(t,e,r=3)=>{let n=0;const a=RF(50,250);return VF(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,[e?"download":"upload"]:!0};t(f)},r)},Ox=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Rx=t=>(...e)=>j.asap(()=>t(...e)),BF=_r.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,_r.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(_r.origin),_r.navigator&&/(msie|trident)/i.test(_r.navigator.userAgent)):()=>!0,FF=_r.hasStandardBrowserEnv?{write(t,e,r,n,a,i){const o=[t+"="+encodeURIComponent(e)];j.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),j.isString(n)&&o.push("path="+n),j.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zF(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $F(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vx(t,e,r){let n=!zF(e);return t&&(n||r==!1)?$F(t,e):e}const Bx=t=>t instanceof Ur?{...t}:t;function ko(t,e){e=e||{};const r={};function n(u,c,f,h){return j.isPlainObject(u)&&j.isPlainObject(c)?j.merge.call({caseless:h},u,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function a(u,c,f,h){if(j.isUndefined(c)){if(!j.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function i(u,c){if(!j.isUndefined(c))return n(void 0,c)}function o(u,c){if(j.isUndefined(c)){if(!j.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in t)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(Bx(u),Bx(c),f,!0)};return j.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||a,h=f(t[c],e[c],c);j.isUndefined(h)&&f!==s||(r[c]=h)}),r}const Fx=t=>{const e=ko({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;e.headers=o=Ur.from(o),e.url=Mx(Vx(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(j.isFormData(r)){if(_r.hasStandardBrowserEnv||_r.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(_r.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&BF(e.url))){const u=a&&i&&FF.read(i);u&&o.set(a,u)}return e},GF=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const a=Fx(t);let i=a.data;const o=Ur.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,h,d,v;function g(){d&&d(),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=Ur.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:t,request:m};Px(function(C){r(C),g()},function(C){n(C),g()},w),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 Xe("Request aborted",Xe.ECONNABORTED,t,m)),m=null)},m.onerror=function(){n(new Xe("Network Error",Xe.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||Ix;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),n(new Xe(S,w.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,t,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&j.forEach(o.toJSON(),function(S,w){m.setRequestHeader(w,S)}),j.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),s&&s!=="json"&&(m.responseType=a.responseType),u&&([h,v]=zh(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,d]=zh(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",d)),(a.cancelToken||a.signal)&&(c=b=>{m&&(n(!b||b.type?new fl(null,t,m):b),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const _=OF(a.url);if(_&&_r.protocols.indexOf(_)===-1){n(new Xe("Unsupported protocol "+_+":",Xe.ERR_BAD_REQUEST,t));return}m.send(i||null)})},HF=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||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 Xe?c:new fl(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new Xe(`timeout ${e} of ms exceeded`,Xe.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>j.asap(s),l}},WF=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,a;for(;n<r;)a=n+e,yield t.slice(n,a),n=a},UF=async function*(t,e){for await(const r of YF(t))yield*WF(r,e)},YF=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},zx=(t,e,r,n)=>{const a=UF(t,e);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 h=i+=f;r(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},$h=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$x=$h&&typeof ReadableStream=="function",ZF=$h&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Gx=(t,...e)=>{try{return!!t(...e)}catch{return!1}},XF=$x&&Gx(()=>{let t=!1;const e=new Request(_r.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Hx=64*1024,sm=$x&&Gx(()=>j.isReadableStream(new Response("").body)),Gh={stream:sm&&(t=>t.body)};$h&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Gh[e]&&(Gh[e]=j.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new Xe(`Response type '${e}' is not supported`,Xe.ERR_NOT_SUPPORT,n)})})})(new Response);const jF=async t=>{if(t==null)return 0;if(j.isBlob(t))return t.size;if(j.isSpecCompliantForm(t))return(await new Request(_r.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(j.isArrayBufferView(t)||j.isArrayBuffer(t))return t.byteLength;if(j.isURLSearchParams(t)&&(t=t+""),j.isString(t))return(await ZF(t)).byteLength},KF=async(t,e)=>{const r=j.toFiniteNumber(t.getContentLength());return r??jF(e)},lm={http:mF,xhr:GF,fetch:$h&&(async t=>{let{url:e,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=Fx(t);u=u?(u+"").toLowerCase():"text";let d=HF([a,i&&i.toAbortSignal()],o),v;const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&XF&&r!=="get"&&r!=="head"&&(m=await KF(c,n))!==0){let w=new Request(e,{method:"POST",body:n,duplex:"half"}),x;if(j.isFormData(n)&&(x=w.headers.get("content-type"))&&c.setContentType(x),w.body){const[C,T]=Ox(m,zh(Rx(l)));n=zx(w.body,Hx,C,T)}}j.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(e,{...h,signal:d,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let _=await fetch(v);const b=sm&&(u==="stream"||u==="response");if(sm&&(s||b&&g)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=_[D]});const x=j.toFiniteNumber(_.headers.get("content-length")),[C,T]=s&&Ox(x,zh(Rx(s),!0))||[];_=new Response(zx(_.body,Hx,C,()=>{T&&T(),g&&g()}),w)}u=u||"text";let S=await Gh[j.findKey(Gh,u)||"text"](_,t);return!b&&g&&g(),await new Promise((w,x)=>{Px(w,x,{data:S,headers:Ur.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:v})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new Xe("Network Error",Xe.ERR_NETWORK,t,v),{cause:y.cause||y}):Xe.from(y,y&&y.code,t,v)}})};j.forEach(lm,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Wx=t=>`- ${t}`,qF=t=>j.isFunction(t)||t===null||t===!1,Ux={getAdapter:t=>{t=j.isArray(t)?t:[t];const{length:e}=t;let r,n;const a={};for(let i=0;i<e;i++){r=t[i];let o;if(n=r,!qF(r)&&(n=lm[(o=String(r)).toLowerCase()],n===void 0))throw new Xe(`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=e?i.length>1?`since :
4
+ `+i.map(Wx).join(`
5
+ `):" "+Wx(i[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:lm};function um(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fl(null,t)}function Yx(t){return um(t),t.headers=Ur.from(t.headers),t.data=om.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ux.getAdapter(t.adapter||rc.adapter)(t).then(function(n){return um(t),n.data=om.call(t,t.transformResponse,n),n.headers=Ur.from(n.headers),n},function(n){return Nx(n)||(um(t),n&&n.response&&(n.response.data=om.call(t,t.transformResponse,n.response),n.response.headers=Ur.from(n.response.headers))),Promise.reject(n)})}const Zx="1.9.0",Hh={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Hh[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Xx={};Hh.transitional=function(e,r,n){function a(i,o){return"[Axios v"+Zx+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new Xe(a(o," has been removed"+(r?" in "+r:"")),Xe.ERR_DEPRECATED);return r&&!Xx[o]&&(Xx[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,o,s):!0}},Hh.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function JF(t,e,r){if(typeof t!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let a=n.length;for(;a-- >0;){const i=n[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new Xe("option "+i+" must be "+l,Xe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Xe("Unknown option "+i,Xe.ERR_BAD_OPTION)}}const Wh={assertOptions:JF,validators:Hh},da=Wh.validators;let Lo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ax,response:new Ax}}async request(e,r){try{return await this._request(e,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(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=ko(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Wh.assertOptions(n,{silentJSONParsing:da.transitional(da.boolean),forcedJSONParsing:da.transitional(da.boolean),clarifyTimeoutError:da.transitional(da.boolean)},!1),a!=null&&(j.isFunction(a)?r.paramsSerializer={serialize:a}:Wh.assertOptions(a,{encode:da.function,serialize:da.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Wh.assertOptions(r,{baseUrl:da.spelling("baseURL"),withXsrfToken:da.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&j.merge(i.common,i[r.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Ur.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,h;if(!l){const v=[Yx.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.length,c=Promise.resolve(r);f<h;)c=c.then(v[f++],v[f++]);return c}h=s.length;let d=r;for(f=0;f<h;){const v=s[f++],g=s[f++];try{d=v(d)}catch(m){g.call(this,m);break}}try{c=Yx.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=ko(this.defaults,e);const r=Vx(e.baseURL,e.url,e.allowAbsoluteUrls);return Mx(r,e.params,e.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(e){Lo.prototype[e]=function(r,n){return this.request(ko(n||{},{method:e,url:r,data:(n||{}).data}))}}),j.forEach(["post","put","patch"],function(e){function r(n){return function(i,o,s){return this.request(ko(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Lo.prototype[e]=r(),Lo.prototype[e+"Form"]=r(!0)});let QF=class L5{constructor(e){if(typeof e!="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},e(function(i,o,s){n.reason||(n.reason=new fl(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new L5(function(a){e=a}),cancel:e}}};function ez(t){return function(r){return t.apply(null,r)}}function tz(t){return j.isObject(t)&&t.isAxiosError===!0}const cm={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(cm).forEach(([t,e])=>{cm[e]=t});function jx(t){const e=new Lo(t),r=hx(Lo.prototype.request,e);return j.extend(r,Lo.prototype,e,{allOwnKeys:!0}),j.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return jx(ko(t,a))},r}const zt=jx(rc);zt.Axios=Lo,zt.CanceledError=fl,zt.CancelToken=QF,zt.isCancel=Nx,zt.VERSION=Zx,zt.toFormData=Bh,zt.AxiosError=Xe,zt.Cancel=zt.CanceledError,zt.all=function(e){return Promise.all(e)},zt.spread=ez,zt.isAxiosError=tz,zt.mergeConfig=ko,zt.AxiosHeaders=Ur,zt.formToJSON=t=>kx(j.isHTMLForm(t)?new FormData(t):t),zt.getAdapter=Ux.getAdapter,zt.HttpStatusCode=cm,zt.default=zt;const{Axios:Fpe,AxiosError:zpe,CanceledError:$pe,isCancel:Gpe,CancelToken:Hpe,VERSION:Wpe,all:Upe,Cancel:Ype,isAxiosError:Zpe,spread:Xpe,toFormData:jpe,AxiosHeaders:Kpe,HttpStatusCode:qpe,formToJSON:Jpe,getAdapter:Qpe,mergeConfig:eve}=zt;let H={customUrl:"/hf_pub_api/pbCommon/customDisplayApi",cmExportUrl:"",cmExportHisUrl:"",cmSlDataKey:"",sMainKey:"guid",sDtlToHdrKey:"hdr_guid",bShowCsColumn:!0,iCmTablePageSize:null,$ntt:function(t,e){return t},sAppCode:"",request:{Cookie:"",sign:""},requestToken:"bearer ZGE4NmQwNzctMzQxOS00ZjRkLWJjNTktMzI1NWYyMTE2ZDRh",csResKey:"result.content.0.format",noneBigImg:null,theme:"dark"};const rz={class:"col"},nz={class:"text-name"},az={key:0,style:{color:"#ff0000","margin-left":"2px"}},iz={key:0,class:"input"},oz={key:1,class:"text spHideScroll"},sz={key:1,class:"text-input"},lz={key:2,class:"text-input"},uz={key:3,class:"text-input"},cz={key:4,class:"text-input"},fz={name:"cmCol"},hz=p.defineComponent({...fz,props:{slItem:{},baseData:{},bEditHdr:{type:Boolean},bSearch:{type:Boolean},size:{},bShowBottomLine:{type:Boolean,default:()=>!0}},setup(t){let{proxy:e}=p.getCurrentInstance(),r=t,n=[{value:"EQ",label:H.$ntt("等于")},{value:"LIKE",label:H.$ntt("模糊")}],a=[{value:"GT",label:H.$ntt("大于")},{value:"GTE",label:H.$ntt("大于等于")},{value:"LT",label:H.$ntt("小于")},{value:"LTE",label:H.$ntt("小于等于")}],i=p.ref({}),o=p.computed(()=>!!(r.bEditHdr||r.bSearch));p.watch(()=>r.slItem,(l,u)=>{i.value=l},{deep:!0,immediate:!0});function s(l){}return(l,u)=>{const c=p.resolveComponent("el-col"),f=p.resolveComponent("cmSelectOption"),h=p.resolveComponent("el-input"),d=p.resolveComponent("el-text"),v=p.resolveComponent("cm-select"),g=p.resolveComponent("el-date-picker"),m=p.resolveComponent("el-switch"),y=p.resolveComponent("btn-render"),_=p.resolveComponent("el-row");return p.openBlock(),p.createElementBlock("div",rz,[p.createVNode(_,{gutter:0,class:"col"},{default:p.withCtx(()=>[p.createVNode(c,{span:Number(p.unref(i).iSpan)},{default:p.withCtx(()=>[p.createElementVNode("div",nz,[p.createElementVNode("div",null,p.toDisplayString(p.unref(i).sCaption),1),p.unref(i).bRequired?(p.openBlock(),p.createElementBlock("div",az," *")):p.createCommentVNode("",!0)])]),_:1},8,["span"]),p.createVNode(c,{span:22-Number(p.unref(i).iSpan)},{default:p.withCtx(()=>[p.unref(i).sType=="text"||p.unref(i).sType=="textarea"||p.unref(i).sType=="password"?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["text-input",p.unref(i).bEdit||l.bSearch?"":l.bShowBottomLine?"decoration":""])},[p.unref(i).bEdit||l.bSearch?(p.openBlock(),p.createElementBlock("div",iz,[l.bSearch?(p.openBlock(),p.createBlock(f,{key:0,value:p.unref(i).searchMode,options:p.unref(n),size:l.size,width:"80"},null,8,["value","options","size"])):p.createCommentVNode("",!0),p.createVNode(h,{clearable:"",type:p.unref(i).sType,size:l.size,disabled:!p.unref(o)||p.unref(i).disabled,"show-password":p.unref(i).sType=="password",modelValue:p.unref(i).sValue,"onUpdate:modelValue":u[0]||(u[0]=b=>p.unref(i).sValue=b),rows:p.unref(i).rows,autosize:p.unref(i).autoSize,onInput:s,placeholder:p.unref(i).placeholder?p.unref(i).placeholder:p.unref(H).$ntt("请输入")},null,8,["type","size","disabled","show-password","modelValue","rows","autosize","placeholder"])])):(p.openBlock(),p.createElementBlock("div",oz,[p.createVNode(d,{class:"textSpan"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(i).sValue),1)]),_:1})]))],2)):p.createCommentVNode("",!0),p.unref(i).sType=="select"||p.unref(i).sType=="manySelect"?(p.openBlock(),p.createElementBlock("div",sz,[p.createElementVNode("div",null,[l.bSearch?(p.openBlock(),p.createBlock(f,{key:0,value:p.unref(i).searchMode,options:p.unref(n),size:l.size,width:"80"},null,8,["value","options","size"])):p.createCommentVNode("",!0),p.createVNode(v,{slItem:p.unref(i),sApiUrl:p.unref(i).sSelectApi,disabled:!p.unref(o)||p.unref(i).disabled,"base-data":l.baseData,size:l.size},null,8,["slItem","sApiUrl","disabled","base-data","size"])])])):p.createCommentVNode("",!0),p.unref(i).sType=="date"||p.unref(i).sType=="datetime"||p.unref(i).sType=="daterange"?(p.openBlock(),p.createElementBlock("div",lz,[p.createElementVNode("div",null,[l.bSearch?(p.openBlock(),p.createBlock(f,{key:0,value:p.unref(i).searchMode,options:p.unref(a),size:l.size,width:"80"},null,8,["value","options","size"])):p.createCommentVNode("",!0),p.createVNode(g,{size:l.size,style:{width:"100%"},modelValue:p.unref(i).sValue,"onUpdate:modelValue":u[1]||(u[1]=b=>p.unref(i).sValue=b),"range-separator":p.unref(H).$ntt("-"),disabled:!p.unref(o)||p.unref(i).disabled,type:p.unref(i).sType,placeholder:"请选择日期","start-placeholder":"请选择日期","end-placeholder":"请选择日期"},null,8,["size","modelValue","range-separator","disabled","type"])])])):p.createCommentVNode("",!0),p.unref(i).sType=="switch"?(p.openBlock(),p.createElementBlock("div",uz,[p.createVNode(m,{size:l.size,modelValue:p.unref(i).sValue,"onUpdate:modelValue":u[2]||(u[2]=b=>p.unref(i).sValue=b),disabled:!p.unref(o)||p.unref(i).disabled,"inline-prompt":"","active-text":p.unref(i).activeText,"inactive-text":p.unref(i).inactiveText},null,8,["size","modelValue","disabled","active-text","inactive-text"])])):p.createCommentVNode("",!0),p.unref(i).sType=="render"?(p.openBlock(),p.createElementBlock("div",cz,[p.createVNode(y,{render:p.unref(i).render,params:{bShowEdit:"bShowEdit",item:p.unref(i)}},null,8,["render","params"])])):p.createCommentVNode("",!0)]),_:1},8,["span"])]),_:1})])}}}),Wn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},Kx=Wn(hz,[["__scopeId","data-v-d83d72cb"]]),dz={name:"cmSelect"},pz=p.defineComponent({...dz,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.result.content"}},bDisabled:{type:Boolean,required:!1},size:{type:String,required:!1,default:"default"}},emits:["cmSelectRefresh","onSelectChange"],setup(t,{emit:e}){let r=e,n=t,{proxy:a}=p.getCurrentInstance(),i=p.ref(n.slItem);p.watch(()=>n.baseData,(h,d)=>{h&&!i.value.sValue&&(i.value.sValue=a.$utils.getManyLevelData(h,i.value.sKey))});let o=p.ref([]);s();function s(){i.value.sSelectItems&&(o.value=c(i.value.sSelectItems)),n.sApiUrl&&u()}function l(){r("cmSelectRefresh",i.value,n.baseData),n.sApiUrl&&(i.value.disabled||n.bDisabled||u())}function u(){n.sApiUrl&&a.$api.getUrlData(n.sApiUrl).then(h=>{let d=a.$utils.getManyLevelData(h,n.responseMode);o.value=c(d),i.value.onGetedData&&i.value.onGetedData(d)})}function c(h){let d=[];return h.forEach(v=>{let g={value:a.$utils.getManyLevelData(v,i.value.sSelectKey),label:a.$utils.getManyLevelData(v,i.value.sSelectLabel)};d.push(g)}),d}function f(h){r("onSelectChange",n.baseData,i.value)}return(h,d)=>{const v=p.resolveComponent("el-select-v2");return p.openBlock(),p.createElementBlock("div",{onDblclick:l},[p.createVNode(v,{modelValue:p.unref(i).sValue,"onUpdate:modelValue":d[0]||(d[0]=g=>p.unref(i).sValue=g),placeholder:"Select",clearable:p.unref(i).clearable,disabled:t.disabled,multiple:p.unref(i).sType=="manySelect",filterable:"",size:t.size,onChange:f,options:p.unref(o),"value-key":p.unref(i).sSelectKey},null,8,["modelValue","clearable","disabled","multiple","size","options","value-key"])],32)}}}),vz={class:"borderHdr"},gz={class:"custom-tabs-label"},mz={class:"custom-tabs-label"},yz={class:"controlBtn"},_z={name:"cmEditHdr"},bz=p.defineComponent({..._z,props:{sFilterData:{default:()=>[]},baseData:{},sAnotherButton:{},bCanEdit:{type:Boolean,default:()=>!0},checkData:{},sApiUrl:{},hdrSpan:{default:()=>6},size:{default:()=>"small"},hdrName:{default:()=>H.$ntt("基础信息")},bShowBottomLine:{type:Boolean,default:()=>!0},colHeight:{default:()=>"100%"}},emits:["onSaveSuccess","onBtnClick"],setup(t,{expose:e,emit:r}){const{proxy:n}=p.getCurrentInstance();let a=r;e({editData:y,saveDataFrom:x,setInitBaseData:m,clearBaseData:g});const i=t;let o=p.ref([]),s=p.ref([]),l=p.ref(!1),u={},c=p.ref({});p.watch(()=>i.sFilterData,(C,T)=>{f(C),console.log("监听")},{deep:!0,immediate:!0});function f(C){C.forEach(T=>{T.sType=="textarea"?s.value.push(T):o.value.push(T)}),h()}function h(){s.value.forEach(C=>{let T=n.$utils.getManyLevelData(c.value,C.sKey);C.sValue=T||"",C.rows=C.rows?C.rows:4}),o.value.forEach(C=>{let T=n.$utils.getManyLevelData(c.value,C.sKey);C.sValue=T||""})}let d=p.ref("basicInfo");function v(C,T){}p.onMounted(()=>{c.value=i.baseData,u=n.$utils.deepCopy(i.baseData)}),p.watch(()=>o.value,(C,T)=>{C.forEach(D=>{i.baseData[D.sKey]=D.sValue}),c.value=i.baseData},{deep:!0,immediate:!0});function g(){c.value={},u=n.$utils.deepCopy(c.value),h()}function m(C){p.nextTick(()=>{c.value={...c.value,...C},u=n.$utils.deepCopy(c.value),h()})}function y(){l.value=!0}function _(){if(console.log(c.value),!n.$utils.checkValid(c.value,i.sFilterData))return!1;let C=!0;i.checkData&&(C=i.checkData(c.value)),C&&i.sApiUrl&&n.$api.putUrlData(i.sApiUrl,[c.value]).then(T=>{n.$message.success(H.$ntt("保存成功","菜单")),l.value=!1,a("onSaveSuccess",T),c.value.bNotSave=!1,w(1)})}function b(){l.value=!1,c.value=u,S(u)}function S(C){o.value.forEach(T=>{T.sValue=n.$utils.getManyLevelData(C,T.sKey)}),s.value.forEach(T=>{T.sValue=n.$utils.getManyLevelData(C,T.sKey)})}function w(C){a("onBtnClick",C)}function x(C,T,D,E){if(!n.$utils.checkValid(C,T))return!1;let A=!0;E&&(A=E(c.value)),A&&D&&n.$api.postUrlData(D,[C]).then(I=>{n.$message.success(H.$ntt("保存成功","菜单")),l.value=!1,a("onSaveSuccess",I,C),C.bNotSave=!1,w(2)})}return(C,T)=>{const D=p.resolveComponent("cmCol"),E=p.resolveComponent("el-col"),A=p.resolveComponent("el-row"),I=p.resolveComponent("el-tab-pane"),k=p.resolveComponent("el-tabs"),L=p.resolveComponent("el-button"),N=p.resolveComponent("el-tooltip");return p.openBlock(),p.createElementBlock("div",vz,[p.createVNode(k,{modelValue:p.unref(d),"onUpdate:modelValue":T[0]||(T[0]=P=>p.isRef(d)?d.value=P:d=P),class:"tabsClass",onTabClick:v},{default:p.withCtx(()=>[p.createVNode(I,{label:"",name:"basicInfo"},{label:p.withCtx(()=>[p.createElementVNode("span",gz,[T[1]||(T[1]=p.createElementVNode("div",{class:"borderDiv"},null,-1)),p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt(C.hdrName,"菜单")),1)])]),default:p.withCtx(()=>[p.createVNode(A,null,{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(o),(P,B)=>(p.openBlock(),p.createBlock(E,{key:B,span:C.hdrSpan,style:p.normalizeStyle({height:C.colHeight})},{default:p.withCtx(()=>[p.createVNode(D,{slItem:P,size:C.size,"base-data":p.unref(c),bEditHdr:p.unref(l),bShowBottomLine:C.bShowBottomLine,colHeight:C.colHeight},null,8,["slItem","size","base-data","bEditHdr","bShowBottomLine","colHeight"])]),_:2},1032,["span","style"]))),128))]),_:1})]),_:1}),p.unref(s).length?(p.openBlock(),p.createBlock(I,{key:0,label:"",name:"otherInfo"},{label:p.withCtx(()=>[p.createElementVNode("span",mz,[T[2]||(T[2]=p.createElementVNode("div",{class:"borderDiv"},null,-1)),p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("其他信息","菜单")),1)])]),default:p.withCtx(()=>[p.createVNode(A,null,{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(s),(P,B)=>(p.openBlock(),p.createBlock(E,{key:B,span:24,style:p.normalizeStyle({height:C.colHeight})},{default:p.withCtx(()=>[p.createVNode(D,{slItem:P,size:C.size,"base-data":p.unref(c),bEditHdr:p.unref(l),bShowBottomLine:C.bShowBottomLine,colHeight:C.colHeight},null,8,["slItem","size","base-data","bEditHdr","bShowBottomLine","colHeight"])]),_:2},1032,["style"]))),128))]),_:1})]),_:1})):p.createCommentVNode("",!0)]),_:1},8,["modelValue"]),p.createElementVNode("div",yz,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(C.sAnotherButton,(P,B)=>(p.openBlock(),p.createBlock(N,{key:B,effect:"dark",content:P.sName,placement:"top-start"},{default:p.withCtx(()=>[P.bHide?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(L,{key:0,class:"myButtonClass",type:P.type,icon:P.icon,onClick:P.sClick},null,8,["type","icon","onClick"]))]),_:2},1032,["content"]))),128)),p.createVNode(N,{effect:"dark",content:p.unref(H).$ntt("编辑","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(L,{class:"myButtonClass themeClass",type:"primary",icon:"Edit",onClick:y},null,512),[[p.vShow,!p.unref(l)&&C.bCanEdit]])]),_:1},8,["content"]),p.createVNode(N,{effect:"dark",content:p.unref(H).$ntt("保存","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(L,{class:"myButtonClass themeClass",type:"primary",icon:"Select",onClick:_},null,512),[[p.vShow,p.unref(l)&&C.bCanEdit]])]),_:1},8,["content"]),p.createVNode(N,{effect:"dark",content:p.unref(H).$ntt("取消","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(L,{class:"myButtonClass",type:"info",icon:"CloseBold",onClick:b},null,512),[[p.vShow,p.unref(l)&&C.bCanEdit]])]),_:1},8,["content"])])])}}}),Sz=Wn(bz,[["__scopeId","data-v-38981cec"]]),qx=Symbol(),Uh="el",wz="is-",No=(t,e,r,n,a)=>{let i=`${t}-${e}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},Jx=Symbol("namespaceContextKey"),Qx=t=>{const e=t||(p.getCurrentInstance()?p.inject(Jx,p.ref(Uh)):p.ref(Uh));return p.computed(()=>p.unref(e)||Uh)},pa=(t,e)=>{const r=Qx(e);return{namespace:r,b:(g="")=>No(r.value,t,g,"",""),e:g=>g?No(r.value,t,"",g,""):"",m:g=>g?No(r.value,t,"","",g):"",be:(g,m)=>g&&m?No(r.value,t,g,m,""):"",em:(g,m)=>g&&m?No(r.value,t,"",g,m):"",bm:(g,m)=>g&&m?No(r.value,t,g,"",m):"",bem:(g,m,y)=>g&&m&&y?No(r.value,t,g,m,y):"",is:(g,...m)=>{const y=m.length>=1?m[0]:!0;return g&&y?`${wz}${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}-${t}-${y}`]=g[y]);return m},cssVarBlockName:g=>`--${r.value}-${t}-${g}`}};/**
7
+ * @vue/shared v3.5.16
8
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
+ * @license MIT
10
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ac=()=>{},xz=Object.prototype.hasOwnProperty,Yh=(t,e)=>xz.call(t,e),va=t=>typeof t=="function",cr=t=>typeof t=="string",Li=t=>t!==null&&typeof t=="object",eC=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Cz=/-(\w)/g,Tz=eC(t=>t.replace(Cz,(e,r)=>r?r.toUpperCase():"")),Dz=/\B([A-Z])/g,Ez=eC(t=>t.replace(Dz,"-$1").toLowerCase());var Mz=typeof global=="object"&&global&&global.Object===Object&&global,Az=typeof self=="object"&&self&&self.Object===Object&&self,fm=Mz||Az||Function("return this")(),Ni=fm.Symbol,tC=Object.prototype,Iz=tC.hasOwnProperty,kz=tC.toString,ic=Ni?Ni.toStringTag:void 0;function Lz(t){var e=Iz.call(t,ic),r=t[ic];try{t[ic]=void 0;var n=!0}catch{}var a=kz.call(t);return n&&(e?t[ic]=r:delete t[ic]),a}var Nz=Object.prototype,Pz=Nz.toString;function Oz(t){return Pz.call(t)}var Rz="[object Null]",Vz="[object Undefined]",rC=Ni?Ni.toStringTag:void 0;function hm(t){return t==null?t===void 0?Vz:Rz:rC&&rC in Object(t)?Lz(t):Oz(t)}function dm(t){return t!=null&&typeof t=="object"}var Bz="[object Symbol]";function pm(t){return typeof t=="symbol"||dm(t)&&hm(t)==Bz}function Fz(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}var oc=Array.isArray,nC=Ni?Ni.prototype:void 0,aC=nC?nC.toString:void 0;function iC(t){if(typeof t=="string")return t;if(oc(t))return Fz(t,iC)+"";if(pm(t))return aC?aC.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Zh(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function zz(t){return t}var $z="[object AsyncFunction]",Gz="[object Function]",Hz="[object GeneratorFunction]",Wz="[object Proxy]";function Uz(t){if(!Zh(t))return!1;var e=hm(t);return e==Gz||e==Hz||e==$z||e==Wz}var vm=fm["__core-js_shared__"],oC=function(){var t=/[^.]+$/.exec(vm&&vm.keys&&vm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Yz(t){return!!oC&&oC in t}var Zz=Function.prototype,Xz=Zz.toString;function jz(t){if(t!=null){try{return Xz.call(t)}catch{}try{return t+""}catch{}}return""}var Kz=/[\\^$.*+?()[\]{}|]/g,qz=/^\[object .+?Constructor\]$/,Jz=Function.prototype,Qz=Object.prototype,e4=Jz.toString,t4=Qz.hasOwnProperty,r4=RegExp("^"+e4.call(t4).replace(Kz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function n4(t){if(!Zh(t)||Yz(t))return!1;var e=Uz(t)?r4:qz;return e.test(jz(t))}function a4(t,e){return t==null?void 0:t[e]}function gm(t,e){var r=a4(t,e);return n4(r)?r:void 0}function i4(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var o4=800,s4=16,l4=Date.now;function u4(t){var e=0,r=0;return function(){var n=l4(),a=s4-(n-r);if(r=n,a>0){if(++e>=o4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function c4(t){return function(){return t}}var Xh=function(){try{var t=gm(Object,"defineProperty");return t({},"",{}),t}catch{}}(),f4=Xh?function(t,e){return Xh(t,"toString",{configurable:!0,enumerable:!1,value:c4(e),writable:!0})}:zz,h4=u4(f4),d4=9007199254740991,p4=/^(?:0|[1-9]\d*)$/;function sC(t,e){var r=typeof t;return e=e??d4,!!e&&(r=="number"||r!="symbol"&&p4.test(t))&&t>-1&&t%1==0&&t<e}function v4(t,e,r){e=="__proto__"&&Xh?Xh(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function lC(t,e){return t===e||t!==t&&e!==e}var g4=Object.prototype,m4=g4.hasOwnProperty;function y4(t,e,r){var n=t[e];(!(m4.call(t,e)&&lC(n,r))||r===void 0&&!(e in t))&&v4(t,e,r)}var uC=Math.max;function _4(t,e,r){return e=uC(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,i=uC(n.length-e,0),o=Array(i);++a<i;)o[a]=n[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=n[a];return s[e]=r(o),i4(t,this,s)}}var b4=9007199254740991;function S4(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=b4}var w4="[object Arguments]";function cC(t){return dm(t)&&hm(t)==w4}var fC=Object.prototype,x4=fC.hasOwnProperty,C4=fC.propertyIsEnumerable,hC=cC(function(){return arguments}())?cC:function(t){return dm(t)&&x4.call(t,"callee")&&!C4.call(t,"callee")},T4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D4=/^\w*$/;function E4(t,e){if(oc(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||pm(t)?!0:D4.test(t)||!T4.test(t)||e!=null&&t in Object(e)}var sc=gm(Object,"create");function M4(){this.__data__=sc?sc(null):{},this.size=0}function A4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var I4="__lodash_hash_undefined__",k4=Object.prototype,L4=k4.hasOwnProperty;function N4(t){var e=this.__data__;if(sc){var r=e[t];return r===I4?void 0:r}return L4.call(e,t)?e[t]:void 0}var P4=Object.prototype,O4=P4.hasOwnProperty;function R4(t){var e=this.__data__;return sc?e[t]!==void 0:O4.call(e,t)}var V4="__lodash_hash_undefined__";function B4(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sc&&e===void 0?V4:e,this}function Po(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Po.prototype.clear=M4,Po.prototype.delete=A4,Po.prototype.get=N4,Po.prototype.has=R4,Po.prototype.set=B4;function F4(){this.__data__=[],this.size=0}function jh(t,e){for(var r=t.length;r--;)if(lC(t[r][0],e))return r;return-1}var z4=Array.prototype,$4=z4.splice;function G4(t){var e=this.__data__,r=jh(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():$4.call(e,r,1),--this.size,!0}function H4(t){var e=this.__data__,r=jh(e,t);return r<0?void 0:e[r][1]}function W4(t){return jh(this.__data__,t)>-1}function U4(t,e){var r=this.__data__,n=jh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function hl(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}hl.prototype.clear=F4,hl.prototype.delete=G4,hl.prototype.get=H4,hl.prototype.has=W4,hl.prototype.set=U4;var Y4=gm(fm,"Map");function Z4(){this.size=0,this.__data__={hash:new Po,map:new(Y4||hl),string:new Po}}function X4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Kh(t,e){var r=t.__data__;return X4(e)?r[typeof e=="string"?"string":"hash"]:r.map}function j4(t){var e=Kh(this,t).delete(t);return this.size-=e?1:0,e}function K4(t){return Kh(this,t).get(t)}function q4(t){return Kh(this,t).has(t)}function J4(t,e){var r=Kh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Oo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Oo.prototype.clear=Z4,Oo.prototype.delete=j4,Oo.prototype.get=K4,Oo.prototype.has=q4,Oo.prototype.set=J4;var Q4="Expected a function";function mm(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Q4);var r=function(){var n=arguments,a=e?e.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=t.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(mm.Cache||Oo),r}mm.Cache=Oo;var e3=500;function t3(t){var e=mm(t,function(n){return r.size===e3&&r.clear(),n}),r=e.cache;return e}var r3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n3=/\\(\\)?/g,a3=t3(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(r3,function(r,n,a,i){e.push(a?i.replace(n3,"$1"):n||r)}),e});function i3(t){return t==null?"":iC(t)}function qh(t,e){return oc(t)?t:E4(t,e)?[t]:a3(i3(t))}function ym(t){if(typeof t=="string"||pm(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function dC(t,e){e=qh(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[ym(e[r++])];return r&&r==n?t:void 0}function o3(t,e,r){var n=t==null?void 0:dC(t,e);return n===void 0?r:n}function s3(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}var pC=Ni?Ni.isConcatSpreadable:void 0;function l3(t){return oc(t)||hC(t)||!!(pC&&t&&t[pC])}function u3(t,e,r,n,a){var i=-1,o=t.length;for(r||(r=l3),a||(a=[]);++i<o;){var s=t[i];r(s)?s3(a,s):a[a.length]=s}return a}function c3(t){var e=t==null?0:t.length;return e?u3(t):[]}function f3(t){return h4(_4(t,void 0,c3),t+"")}function h3(t,e){return t!=null&&e in Object(t)}function d3(t,e,r){e=qh(e,t);for(var n=-1,a=e.length,i=!1;++n<a;){var o=ym(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=a?i:(a=t==null?0:t.length,!!a&&S4(a)&&sC(o,a)&&(oc(t)||hC(t)))}function p3(t,e){return t!=null&&d3(t,e,h3)}function vC(t){for(var e=-1,r=t==null?0:t.length,n={};++e<r;){var a=t[e];n[a[0]]=a[1]}return n}function gC(t){return t==null}function v3(t,e,r,n){if(!Zh(t))return t;e=qh(e,t);for(var a=-1,i=e.length,o=i-1,s=t;s!=null&&++a<i;){var l=ym(e[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(a!=o){var c=s[l];u=void 0,u===void 0&&(u=Zh(c)?c:sC(e[a+1])?[]:{})}y4(s,l,u),s=s[l]}return t}function g3(t,e,r){for(var n=-1,a=e.length,i={};++n<a;){var o=e[n],s=dC(t,o);r(s,o)&&v3(i,qh(o,t),s)}return i}function m3(t,e){return g3(t,e,function(r,n){return p3(t,n)})}var y3=f3(function(t,e){return t==null?{}:m3(t,e)});const _m=t=>t===void 0,bm=t=>typeof t=="boolean",Ka=t=>typeof t=="number",Pi=t=>typeof Element>"u"?!1:t instanceof Element,_3=t=>cr(t)?!Number.isNaN(Number(t)):!1;var b3=Object.defineProperty,S3=Object.defineProperties,w3=Object.getOwnPropertyDescriptors,mC=Object.getOwnPropertySymbols,x3=Object.prototype.hasOwnProperty,C3=Object.prototype.propertyIsEnumerable,yC=(t,e,r)=>e in t?b3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T3=(t,e)=>{for(var r in e||(e={}))x3.call(e,r)&&yC(t,r,e[r]);if(mC)for(var r of mC(e))C3.call(e,r)&&yC(t,r,e[r]);return t},D3=(t,e)=>S3(t,w3(e));function E3(t,e){var r;const n=p.shallowRef();return p.watchEffect(()=>{n.value=t()},D3(T3({},e),{flush:(r=void 0)!=null?r:"sync"})),p.readonly(n)}var _C;const fr=typeof window<"u",M3=t=>typeof t=="string",A3=()=>{};fr&&((_C=window==null?void 0:window.navigator)!=null&&_C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Sm(t){return typeof t=="function"?t():p.unref(t)}function I3(t){return t}function wm(t){return p.getCurrentScope()?(p.onScopeDispose(t),!0):!1}function k3(t,e=!0){p.getCurrentInstance()?p.onMounted(t):e?t():p.nextTick(t)}function bC(t,e,r={}){const{immediate:n=!0}=r,a=p.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,t(...u)},Sm(e))}return n&&(a.value=!0,fr&&l()),wm(s),{isPending:p.readonly(a),start:l,stop:s}}function SC(t){var e;const r=Sm(t);return(e=r==null?void 0:r.$el)!=null?e:r}const wC=fr?window:void 0;function Ro(...t){let e,r,n,a;if(M3(t[0])||Array.isArray(t[0])?([r,n,a]=t,e=wC):[e,r,n,a]=t,!e)return A3;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=p.watch(()=>[SC(e),Sm(a)],([c,f])=>{o(),c&&i.push(...r.flatMap(h=>n.map(d=>s(c,h,d,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return wm(u),u}function L3(t,e=!1){const r=p.ref(),n=()=>r.value=!!t();return n(),k3(n,e),r}const xC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},CC="__vueuse_ssr_handlers__";xC[CC]=xC[CC]||{};var TC=Object.getOwnPropertySymbols,N3=Object.prototype.hasOwnProperty,P3=Object.prototype.propertyIsEnumerable,O3=(t,e)=>{var r={};for(var n in t)N3.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&TC)for(var n of TC(t))e.indexOf(n)<0&&P3.call(t,n)&&(r[n]=t[n]);return r};function DC(t,e,r={}){const n=r,{window:a=wC}=n,i=O3(n,["window"]);let o;const s=L3(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=p.watch(()=>SC(t),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return wm(c),{isSupported:s,stop:c}}var EC;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(EC||(EC={}));var R3=Object.defineProperty,MC=Object.getOwnPropertySymbols,V3=Object.prototype.hasOwnProperty,B3=Object.prototype.propertyIsEnumerable,AC=(t,e,r)=>e in t?R3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,F3=(t,e)=>{for(var r in e||(e={}))V3.call(e,r)&&AC(t,r,e[r]);if(MC)for(var r of MC(e))B3.call(e,r)&&AC(t,r,e[r]);return t};F3({linear:I3},{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]});class IC extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function z3(t,e){throw new IC(`[${t}] ${e}`)}function pn(t,e){if(process.env.NODE_ENV!=="production"){const r=cr(t)?new IC(`[${t}] ${e}`):t;console.warn(r)}}const kC={current:0},LC=p.ref(0),NC=2e3,PC=Symbol("elZIndexContextKey"),OC=Symbol("zIndexContextKey"),$3=t=>{const e=p.getCurrentInstance()?p.inject(PC,kC):kC,r=t||(p.getCurrentInstance()?p.inject(OC,void 0):void 0),n=p.computed(()=>{const o=p.unref(r);return Ka(o)?o:NC}),a=p.computed(()=>n.value+LC.value),i=()=>(e.current++,LC.value=e.current,a.value);return!fr&&!p.inject(PC)&&pn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
11
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:a,nextZIndex:i}};var G3={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 H3=t=>(e,r)=>W3(e,r,p.unref(t)),W3=(t,e,r)=>o3(r,t,t).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=e==null?void 0:e[a])!=null?i:`{${a}}`}`}),U3=t=>{const e=p.computed(()=>p.unref(t).name),r=p.isRef(t)?t:p.ref(t);return{lang:e,locale:r,t:H3(t)}},RC=Symbol("localeContextKey"),Y3=t=>{const e=t||p.inject(RC,p.ref());return U3(p.computed(()=>e.value||G3))},VC="__epPropKey",Yt=t=>t,Z3=t=>Li(t)&&!!t[VC],BC=(t,e)=>{if(!Li(t)||Z3(t))return t;const{values:r,required:n,default:a,type:i,validator:o}=t,l={type:i,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),Yh(t,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const h=[...new Set(f)].map(d=>JSON.stringify(d)).join(", ");p.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[VC]:!0};return Yh(t,"default")&&(l.default=a),l},ga=t=>vC(Object.entries(t).map(([e,r])=>[e,BC(r,e)])),FC=["","default","small","large"],xm=BC({type:String,values:FC,required:!1}),zC=Symbol("size"),X3=()=>{const t=p.inject(zC,{});return p.computed(()=>p.unref(t.size)||"")},j3=Symbol("emptyValuesContextKey"),K3=ga({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>va(t)?!t():!t}}),$C=t=>Object.keys(t),Jh=p.ref();function Cm(t,e=void 0){const r=p.getCurrentInstance()?p.inject(qx,Jh):Jh;return t?p.computed(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[t])!=null?a:e}):r}function Qh(t,e){const r=Cm(),n=pa(t,p.computed(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||Uh})),a=Y3(p.computed(()=>{var s;return(s=r.value)==null?void 0:s.locale})),i=$3(p.computed(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||NC})),o=p.computed(()=>{var s;return p.unref(e)||((s=r.value)==null?void 0:s.size)||""});return GC(p.computed(()=>p.unref(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const GC=(t,e,r=!1)=>{var n;const a=!!p.getCurrentInstance(),i=a?Cm():void 0,o=(n=void 0)!=null?n:a?p.provide:void 0;if(!o){pn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const s=p.computed(()=>{const l=p.unref(t);return i!=null&&i.value?q3(i.value,l):l});return o(qx,s),o(RC,p.computed(()=>s.value.locale)),o(Jx,p.computed(()=>s.value.namespace)),o(OC,p.computed(()=>s.value.zIndex)),o(zC,{size:p.computed(()=>s.value.size||"")}),o(j3,p.computed(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(r||!Jh.value)&&(Jh.value=s.value),s},q3=(t,e)=>{const r=[...new Set([...$C(t),...$C(e)])],n={};for(const a of r)n[a]=e[a]!==void 0?e[a]:t[a];return n},Tm="update:modelValue",HC="change",WC="input";var qa=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};const J3="utils/dom/style",UC=(t="")=>t.split(" ").filter(e=>!!e.trim()),YC=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},Dm=(t,e)=>{!t||!e.trim()||t.classList.add(...UC(e))},lc=(t,e)=>{!t||!e.trim()||t.classList.remove(...UC(e))},dl=(t,e)=>{var r;if(!fr||!t||!e)return"";let n=Tz(e);n==="float"&&(n="cssFloat");try{const a=t.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(t,"");return i?i[n]:""}catch{return t.style[n]}};function uc(t,e="px"){if(!t)return"";if(Ka(t)||_3(t))return`${t}${e}`;if(cr(t))return t;pn(J3,"binding value must be a string or number")}let ed;const Q3=t=>{var e;if(!fr)return 0;if(ed!==void 0)return ed;const r=document.createElement("div");r.className=`${t}-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(e=r.parentNode)==null||e.removeChild(r),ed=n-i,ed},td=(t,e)=>{if(t.install=r=>{for(const n of[t,...Object.values(e??{})])r.component(n.name,n)},e)for(const[r,n]of Object.entries(e))t[r]=n;return t},ZC=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),e6=t=>(t.install=ac,t),t6=ga({size:{type:Yt([Number,String])},color:{type:String}}),r6=p.defineComponent({name:"ElIcon",inheritAttrs:!1}),n6=p.defineComponent({...r6,props:t6,setup(t){const e=t,r=pa("icon"),n=p.computed(()=>{const{size:a,color:i}=e;return!a&&!i?{}:{fontSize:_m(a)?void 0:uc(a),"--color":i}});return(a,i)=>(p.openBlock(),p.createElementBlock("i",p.mergeProps({class:p.unref(r).b(),style:p.unref(n)},a.$attrs),[p.renderSlot(a.$slots,"default")],16))}});var a6=qa(n6,[["__file","icon.vue"]]);const vn=td(a6);/*! Element Plus Icons Vue v2.3.1 */var i6=p.defineComponent({name:"ArrowDownBold",__name:"arrow-down-bold",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),XC=i6,o6=p.defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),jC=o6,s6=p.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),l6=s6,u6=p.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),KC=u6,c6=p.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),qC=c6,f6=p.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),JC=f6,h6=p.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),d6=h6,p6=p.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),Em=p6,v6=p.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),rd=v6,g6=p.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),QC=g6,m6=p.defineComponent({name:"View",__name:"view",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),y6=m6,_6=p.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),eT=_6;const Vo=Yt([String,Object,Function]),tT={Close:JC,SuccessFilled:QC,InfoFilled:Em,WarningFilled:eT,CircleCloseFilled:KC},pl={primary:Em,success:QC,warning:eT,error:KC,info:Em},b6={validating:rd,success:l6,error:qC},S6=()=>fr&&/firefox/i.test(window.navigator.userAgent);let Yr;const w6={height:"0",visibility:"hidden",overflow:S6()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},x6=["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 C6(t){const e=window.getComputedStyle(t),r=e.getPropertyValue("box-sizing"),n=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),a=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:x6.map(o=>[o,e.getPropertyValue(o)]),paddingSize:n,borderSize:a,boxSizing:r}}function rT(t,e=1,r){var n;Yr||(Yr=document.createElement("textarea"),document.body.appendChild(Yr));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=C6(t);s.forEach(([f,h])=>Yr==null?void 0:Yr.style.setProperty(f,h)),Object.entries(w6).forEach(([f,h])=>Yr==null?void 0:Yr.style.setProperty(f,h,"important")),Yr.value=t.value||t.placeholder||"";let l=Yr.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Yr.value="";const c=Yr.scrollHeight-a;if(Ka(e)){let f=c*e;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ka(r)){let f=c*r;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(n=Yr.parentNode)==null||n.removeChild(Yr),Yr=void 0,u}const nT=t=>t,T6=ga({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),D6=t=>y3(T6,t),E6=ga({id:{type:String,default:void 0},size:xm,disabled:Boolean,modelValue:{type:Yt([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:Yt([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:Vo},prefixIcon:{type:Vo},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Yt([Object,Array,String]),default:()=>nT({})},autofocus:Boolean,rows:{type:Number,default:2},...D6(["ariaLabel"])}),M6={[Tm]:t=>cr(t),input:t=>cr(t),change:t=>cr(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},A6=["class","style"],I6=/^on[A-Z]/,k6=(t={})=>{const{excludeListeners:e=!1,excludeKeys:r}=t,n=p.computed(()=>((r==null?void 0:r.value)||[]).concat(A6)),a=p.getCurrentInstance();return a?p.computed(()=>{var i;return vC(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!n.value.includes(o)&&!(e&&I6.test(o))))}):(pn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),p.computed(()=>({})))},Mm={prefix:Math.floor(Math.random()*1e4),current:0},L6=Symbol("elIdInjection"),N6=()=>p.getCurrentInstance()?p.inject(L6,Mm):Mm,Am=t=>{const e=N6();!fr&&e===Mm&&pn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
12
+ usage: app.provide(ID_INJECTION_KEY, {
13
+ prefix: number,
14
+ current: number,
15
+ })`);const r=Qx();return E3(()=>p.unref(t)||`${r.value}-id-${e.prefix}-${e.current++}`)},Im=Symbol("formContextKey"),aT=Symbol("formItemContextKey"),iT=()=>{const t=p.inject(Im,void 0),e=p.inject(aT,void 0);return{form:t,formItem:e}},P6=(t,{formItemContext:e,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=p.ref(!1)),n||(n=p.ref(!1));const a=p.ref();let i;const o=p.computed(()=>{var s;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return p.onMounted(()=>{i=p.watch([p.toRef(t,"id"),r],([s,l])=>{const u=s??(l?void 0:Am().value);u!==a.value&&(e!=null&&e.removeInputId&&(a.value&&e.removeInputId(a.value),!(n!=null&&n.value)&&!l&&u&&e.addInputId(u)),a.value=u)},{immediate:!0})}),p.onUnmounted(()=>{i&&i(),e!=null&&e.removeInputId&&a.value&&e.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},oT=t=>{const e=p.getCurrentInstance();return p.computed(()=>{var r,n;return(n=(r=e==null?void 0:e.proxy)==null?void 0:r.$props)==null?void 0:n[t]})},sT=(t,e={})=>{const r=p.ref(void 0),n=e.prop?r:oT("size"),a=e.global?r:X3(),i=e.form?{size:void 0}:p.inject(Im,void 0),o=e.formItem?{size:void 0}:p.inject(aT,void 0);return p.computed(()=>n.value||p.unref(t)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},nd=t=>{const e=oT("disabled"),r=p.inject(Im,void 0);return p.computed(()=>e.value||p.unref(t)||(r==null?void 0:r.disabled)||!1)};function O6(t,{beforeFocus:e,afterFocus:r,beforeBlur:n,afterBlur:a}={}){const i=p.getCurrentInstance(),{emit:o}=i,s=p.shallowRef(),l=nd(),u=p.ref(!1),c=d=>{va(e)&&e(d)||u.value||(u.value=!0,o("focus",d),r==null||r())},f=d=>{var v;va(n)&&n(d)||d.relatedTarget&&((v=s.value)!=null&&v.contains(d.relatedTarget))||(u.value=!1,o("blur",d),a==null||a())},h=()=>{var d,v;(d=s.value)!=null&&d.contains(document.activeElement)&&s.value!==document.activeElement||l.value||(v=t.value)==null||v.focus()};return p.watch([s,l],([d,v])=>{d&&(v?d.removeAttribute("tabindex"):d.setAttribute("tabindex","-1"))}),Ro(s,"focus",c,!0),Ro(s,"blur",f,!0),Ro(s,"click",h,!0),process.env.NODE_ENV==="test"&&p.onMounted(()=>{const d=Pi(t.value)?t.value:document.querySelector("input,textarea");d&&(Ro(d,"focus",c,!0),Ro(d,"blur",f,!0))}),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:f}}const R6=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);function V6({afterComposition:t,emit:e}){const r=p.ref(!1),n=s=>{e==null||e("compositionstart",s),r.value=!0},a=s=>{var l;e==null||e("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,c=u[u.length-1]||"";r.value=!R6(c)},i=s=>{e==null||e("compositionend",s),r.value&&(r.value=!1,p.nextTick(()=>t(s)))};return{isComposing:r,handleComposition:s=>{s.type==="compositionend"?i(s):a(s)},handleCompositionStart:n,handleCompositionUpdate:a,handleCompositionEnd:i}}function B6(t){let e;function r(){if(t.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=t.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));e={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function n(){if(t.value==null||e==null)return;const{value:a}=t.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=e;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)}t.value.setSelectionRange(l,l)}return[r,n]}const lT="ElInput",F6=p.defineComponent({name:lT,inheritAttrs:!1}),z6=p.defineComponent({...F6,props:E6,emits:M6,setup(t,{expose:e,emit:r}){const n=t,a=p.useAttrs(),i=k6(),o=p.useSlots(),s=p.computed(()=>[n.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",d.value),v.is("exceed",$.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")]:V.value&&G.value,[v.b("hidden")]:n.type==="hidden"},a.class]),l=p.computed(()=>[v.e("wrapper"),v.is("focus",T.value)]),{form:u,formItem:c}=iT(),{inputId:f}=P6(n,{formItemContext:c}),h=sT(),d=nd(),v=pa("input"),g=pa("textarea"),m=p.shallowRef(),y=p.shallowRef(),_=p.ref(!1),b=p.ref(!1),S=p.ref(),w=p.shallowRef(n.inputStyle),x=p.computed(()=>m.value||y.value),{wrapperRef:C,isFocused:T,handleFocus:D,handleBlur:E}=O6(x,{beforeFocus(){return d.value},afterBlur(){var ce;n.validateEvent&&((ce=c==null?void 0:c.validate)==null||ce.call(c,"blur").catch(dt=>pn(dt)))}}),A=p.computed(()=>{var ce;return(ce=u==null?void 0:u.statusIcon)!=null?ce:!1}),I=p.computed(()=>(c==null?void 0:c.validateState)||""),k=p.computed(()=>I.value&&b6[I.value]),L=p.computed(()=>b.value?y6:d6),N=p.computed(()=>[a.style]),P=p.computed(()=>[n.inputStyle,w.value,{resize:n.resize}]),B=p.computed(()=>gC(n.modelValue)?"":String(n.modelValue)),V=p.computed(()=>n.clearable&&!d.value&&!n.readonly&&!!B.value&&(T.value||_.value)),G=p.computed(()=>n.showPassword&&!d.value&&!!B.value),Y=p.computed(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!d.value&&!n.readonly&&!n.showPassword),z=p.computed(()=>B.value.length),$=p.computed(()=>!!Y.value&&z.value>Number(n.maxlength)),q=p.computed(()=>!!o.suffix||!!n.suffixIcon||V.value||n.showPassword||Y.value||!!I.value&&A.value),[J,ae]=B6(m);DC(y,ce=>{if(Me(),!Y.value||n.resize!=="both")return;const dt=ce[0],{width:Ya}=dt.contentRect;S.value={right:`calc(100% - ${Ya+15+6}px)`}});const Oe=()=>{const{type:ce,autosize:dt}=n;if(!(!fr||ce!=="textarea"||!y.value))if(dt){const Ya=Li(dt)?dt.minRows:void 0,Ii=Li(dt)?dt.maxRows:void 0,Xu=rT(y.value,Ya,Ii);w.value={overflowY:"hidden",...Xu},p.nextTick(()=>{y.value.offsetHeight,w.value=Xu})}else w.value={minHeight:rT(y.value).minHeight}},Me=(ce=>{let dt=!1;return()=>{var Ya;if(dt||!n.autosize)return;((Ya=y.value)==null?void 0:Ya.offsetParent)===null||(ce(),dt=!0)}})(Oe),he=()=>{const ce=x.value,dt=n.formatter?n.formatter(B.value):B.value;!ce||ce.value===dt||(ce.value=dt)},Ie=async ce=>{J();let{value:dt}=ce.target;if(n.formatter&&n.parser&&(dt=n.parser(dt)),!me.value){if(dt===B.value){he();return}r(Tm,dt),r(WC,dt),await p.nextTick(),he(),ae()}},ue=ce=>{let{value:dt}=ce.target;n.formatter&&n.parser&&(dt=n.parser(dt)),r(HC,dt)},{isComposing:me,handleCompositionStart:nt,handleCompositionUpdate:Ye,handleCompositionEnd:pe}=V6({emit:r,afterComposition:Ie}),He=()=>{J(),b.value=!b.value,setTimeout(ae)},xt=()=>{var ce;return(ce=x.value)==null?void 0:ce.focus()},ar=()=>{var ce;return(ce=x.value)==null?void 0:ce.blur()},Ut=ce=>{_.value=!1,r("mouseleave",ce)},en=ce=>{_.value=!0,r("mouseenter",ce)},Hr=ce=>{r("keydown",ce)},Mo=()=>{var ce;(ce=x.value)==null||ce.select()},Ua=()=>{r(Tm,""),r(HC,""),r("clear"),r(WC,"")};return p.watch(()=>n.modelValue,()=>{var ce;p.nextTick(()=>Oe()),n.validateEvent&&((ce=c==null?void 0:c.validate)==null||ce.call(c,"change").catch(dt=>pn(dt)))}),p.watch(B,()=>he()),p.watch(()=>n.type,async()=>{await p.nextTick(),he(),Oe()}),p.onMounted(()=>{!n.formatter&&n.parser&&pn(lT,"If you set the parser, you also need to set the formatter."),he(),p.nextTick(Oe)}),e({input:m,textarea:y,ref:x,textareaStyle:P,autosize:p.toRef(n,"autosize"),isComposing:me,focus:xt,blur:ar,select:Mo,clear:Ua,resizeTextarea:Oe}),(ce,dt)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass([p.unref(s),{[p.unref(v).bm("group","append")]:ce.$slots.append,[p.unref(v).bm("group","prepend")]:ce.$slots.prepend}]),style:p.normalizeStyle(p.unref(N)),onMouseenter:en,onMouseleave:Ut},[p.createCommentVNode(" input "),ce.type!=="textarea"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createCommentVNode(" prepend slot "),ce.$slots.prepend?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(p.unref(v).be("group","prepend"))},[p.renderSlot(ce.$slots,"prepend")],2)):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{ref_key:"wrapperRef",ref:C,class:p.normalizeClass(p.unref(l))},[p.createCommentVNode(" prefix slot "),ce.$slots.prefix||ce.prefixIcon?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(p.unref(v).e("prefix"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("prefix-inner"))},[p.renderSlot(ce.$slots,"prefix"),ce.prefixIcon?(p.openBlock(),p.createBlock(p.unref(vn),{key:0,class:p.normalizeClass(p.unref(v).e("icon"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(ce.prefixIcon)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],2)],2)):p.createCommentVNode("v-if",!0),p.createElementVNode("input",p.mergeProps({id:p.unref(f),ref_key:"input",ref:m,class:p.unref(v).e("inner")},p.unref(i),{minlength:ce.minlength,maxlength:ce.maxlength,type:ce.showPassword?b.value?"text":"password":ce.type,disabled:p.unref(d),readonly:ce.readonly,autocomplete:ce.autocomplete,tabindex:ce.tabindex,"aria-label":ce.ariaLabel,placeholder:ce.placeholder,style:ce.inputStyle,form:ce.form,autofocus:ce.autofocus,role:ce.containerRole,onCompositionstart:p.unref(nt),onCompositionupdate:p.unref(Ye),onCompositionend:p.unref(pe),onInput:Ie,onChange:ue,onKeydown:Hr}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),p.createCommentVNode(" suffix slot "),p.unref(q)?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(p.unref(v).e("suffix"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("suffix-inner"))},[!p.unref(V)||!p.unref(G)||!p.unref(Y)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.renderSlot(ce.$slots,"suffix"),ce.suffixIcon?(p.openBlock(),p.createBlock(p.unref(vn),{key:0,class:p.normalizeClass(p.unref(v).e("icon"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(ce.suffixIcon)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],64)):p.createCommentVNode("v-if",!0),p.unref(V)?(p.openBlock(),p.createBlock(p.unref(vn),{key:1,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("clear")]),onMousedown:p.withModifiers(p.unref(ac),["prevent"]),onClick:Ua},{default:p.withCtx(()=>[p.createVNode(p.unref(qC))]),_:1},8,["class","onMousedown"])):p.createCommentVNode("v-if",!0),p.unref(G)?(p.openBlock(),p.createBlock(p.unref(vn),{key:2,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("password")]),onClick:He},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(L))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),p.unref(Y)?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.normalizeClass(p.unref(v).e("count"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("count-inner"))},p.toDisplayString(p.unref(z))+" / "+p.toDisplayString(ce.maxlength),3)],2)):p.createCommentVNode("v-if",!0),p.unref(I)&&p.unref(k)&&p.unref(A)?(p.openBlock(),p.createBlock(p.unref(vn),{key:4,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("validateIcon"),p.unref(v).is("loading",p.unref(I)==="validating")])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(k))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],2)],2)):p.createCommentVNode("v-if",!0)],2),p.createCommentVNode(" append slot "),ce.$slots.append?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(p.unref(v).be("group","append"))},[p.renderSlot(ce.$slots,"append")],2)):p.createCommentVNode("v-if",!0)],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createCommentVNode(" textarea "),p.createElementVNode("textarea",p.mergeProps({id:p.unref(f),ref_key:"textarea",ref:y,class:[p.unref(g).e("inner"),p.unref(v).is("focus",p.unref(T))]},p.unref(i),{minlength:ce.minlength,maxlength:ce.maxlength,tabindex:ce.tabindex,disabled:p.unref(d),readonly:ce.readonly,autocomplete:ce.autocomplete,style:p.unref(P),"aria-label":ce.ariaLabel,placeholder:ce.placeholder,form:ce.form,autofocus:ce.autofocus,rows:ce.rows,role:ce.containerRole,onCompositionstart:p.unref(nt),onCompositionupdate:p.unref(Ye),onCompositionend:p.unref(pe),onInput:Ie,onFocus:p.unref(D),onBlur:p.unref(E),onChange:ue,onKeydown:Hr}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),p.unref(Y)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(S.value),class:p.normalizeClass(p.unref(v).e("count"))},p.toDisplayString(p.unref(z))+" / "+p.toDisplayString(ce.maxlength),7)):p.createCommentVNode("v-if",!0)],64))],38))}});var $6=qa(z6,[["__file","input.vue"]]);const G6=td($6),H6='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',W6=t=>process.env.NODE_ENV==="test"?!0:getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,uT=t=>Array.from(t.querySelectorAll(H6)).filter(e=>cT(e)&&W6(e)),cT=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},km="focus-trap.focus-after-trapped",Lm="focus-trap.focus-after-released",U6="focus-trap.focusout-prevented",fT={cancelable:!0,bubbles:!1},Y6={cancelable:!0,bubbles:!1},hT="focusAfterTrapped",dT="focusAfterReleased",Z6=Symbol("elFocusTrap"),Nm=p.ref(),ad=p.ref(0),Pm=p.ref(0);let id=0;const pT=t=>{const e=[],r=document.createTreeWalker(t,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();)e.push(r.currentNode);return e},vT=(t,e)=>{for(const r of t)if(!X6(r,e))return r},X6=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},j6=t=>{const e=pT(t),r=vT(e,t),n=vT(e.reverse(),t);return[r,n]},K6=t=>t instanceof HTMLInputElement&&"select"in t,Oi=(t,e)=>{if(t&&t.focus){const r=document.activeElement;let n=!1;Pi(t)&&!cT(t)&&!t.getAttribute("tabindex")&&(t.setAttribute("tabindex","-1"),n=!0),t.focus({preventScroll:!0}),Pm.value=window.performance.now(),t!==r&&K6(t)&&e&&t.select(),Pi(t)&&n&&t.removeAttribute("tabindex")}};function gT(t,e){const r=[...t],n=t.indexOf(e);return n!==-1&&r.splice(n,1),r}const q6=()=>{let t=[];return{push:n=>{const a=t[0];a&&n!==a&&a.pause(),t=gT(t,n),t.unshift(n)},remove:n=>{var a,i;t=gT(t,n),(i=(a=t[0])==null?void 0:a.resume)==null||i.call(a)}}},J6=(t,e=!1)=>{const r=document.activeElement;for(const n of t)if(Oi(n,e),document.activeElement!==r)return},mT=q6(),Q6=()=>ad.value>Pm.value,od=()=>{Nm.value="pointer",ad.value=window.performance.now()},yT=()=>{Nm.value="keyboard",ad.value=window.performance.now()},e8=()=>(p.onMounted(()=>{id===0&&(document.addEventListener("mousedown",od),document.addEventListener("touchstart",od),document.addEventListener("keydown",yT)),id++}),p.onBeforeUnmount(()=>{id--,id<=0&&(document.removeEventListener("mousedown",od),document.removeEventListener("touchstart",od),document.removeEventListener("keydown",yT))}),{focusReason:Nm,lastUserFocusTimestamp:ad,lastAutomatedFocusTimestamp:Pm}),sd=t=>new CustomEvent(U6,{...Y6,detail:t}),Bo={tab:"Tab",esc:"Escape",delete:"Delete",backspace:"Backspace"};let vl=[];const _T=t=>{t.code===Bo.esc&&vl.forEach(e=>e(t))},t8=t=>{p.onMounted(()=>{vl.length===0&&document.addEventListener("keydown",_T),fr&&vl.push(t)}),p.onBeforeUnmount(()=>{vl=vl.filter(e=>e!==t),vl.length===0&&fr&&document.removeEventListener("keydown",_T)})},r8=p.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[hT,dT,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const r=p.ref();let n,a;const{focusReason:i}=e8();t8(v=>{t.trapped&&!o.paused&&e("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!t.loop&&!t.trapped||o.paused)return;const{code:g,altKey:m,ctrlKey:y,metaKey:_,currentTarget:b,shiftKey:S}=v,{loop:w}=t,x=g===Bo.tab&&!m&&!y&&!_,C=document.activeElement;if(x&&C){const T=b,[D,E]=j6(T);if(D&&E){if(!S&&C===E){const I=sd({focusReason:i.value});e("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),w&&Oi(D,!0))}else if(S&&[D,T].includes(C)){const I=sd({focusReason:i.value});e("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),w&&Oi(E,!0))}}else if(C===T){const I=sd({focusReason:i.value});e("focusout-prevented",I),I.defaultPrevented||v.preventDefault()}}};p.provide(Z6,{focusTrapRef:r,onKeydown:s}),p.watch(()=>t.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),p.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=>{e(hT,v)},u=v=>e(dT,v),c=v=>{const g=p.unref(r);if(!g)return;const m=v.target,y=v.relatedTarget,_=m&&g.contains(m);t.trapped||y&&g.contains(y)||(n=y),_&&e("focusin",v),!o.paused&&t.trapped&&(_?a=m:Oi(a,!0))},f=v=>{const g=p.unref(r);if(!(o.paused||!g))if(t.trapped){const m=v.relatedTarget;!gC(m)&&!g.contains(m)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=sd({focusReason:i.value});e("focusout-prevented",y),y.defaultPrevented||Oi(a,!0)}},0)}else{const m=v.target;m&&g.contains(m)||e("focusout",v)}};async function h(){await p.nextTick();const v=p.unref(r);if(v){mT.push(o);const g=v.contains(document.activeElement)?n:document.activeElement;if(n=g,!v.contains(g)){const y=new Event(km,fT);v.addEventListener(km,l),v.dispatchEvent(y),y.defaultPrevented||p.nextTick(()=>{let _=t.focusStartEl;cr(_)||(Oi(_),document.activeElement!==_&&(_="first")),_==="first"&&J6(pT(v),!0),(document.activeElement===g||_==="container")&&Oi(v)})}}}function d(){const v=p.unref(r);if(v){v.removeEventListener(km,l);const g=new CustomEvent(Lm,{...fT,detail:{focusReason:i.value}});v.addEventListener(Lm,u),v.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Q6()||v.contains(document.activeElement))&&Oi(n??document.body),v.removeEventListener(Lm,u),mT.remove(o)}}return p.onMounted(()=>{t.trapped&&h(),p.watch(()=>t.trapped,v=>{v?h():d()})}),p.onBeforeUnmount(()=>{t.trapped&&d(),r.value&&(r.value.removeEventListener("keydown",s),r.value.removeEventListener("focusin",c),r.value.removeEventListener("focusout",f),r.value=void 0)}),{onKeydown:s}}});function n8(t,e,r,n,a,i){return p.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var a8=qa(r8,[["render",n8],["__file","focus-trap.vue"]]);const i8=ga({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:Yt([String,Object,Array])},offset:{type:Yt(Array),default:[0,0]},badgeClass:{type:String}}),o8=p.defineComponent({name:"ElBadge"}),s8=p.defineComponent({...o8,props:i8,setup(t,{expose:e}){const r=t,n=pa("badge"),a=p.computed(()=>r.isDot?"":Ka(r.value)&&Ka(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),i=p.computed(()=>{var o,s,l,u,c;return[{backgroundColor:r.color,marginRight:uc(-((s=(o=r.offset)==null?void 0:o[0])!=null?s:0)),marginTop:uc((u=(l=r.offset)==null?void 0:l[1])!=null?u:0)},(c=r.badgeStyle)!=null?c:{}]});return e({content:a}),(o,s)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(p.unref(n).b())},[p.renderSlot(o.$slots,"default"),p.createVNode(p.Transition,{name:`${p.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("sup",{class:p.normalizeClass([p.unref(n).e("content"),p.unref(n).em("content",o.type),p.unref(n).is("fixed",!!o.$slots.default),p.unref(n).is("dot",o.isDot),p.unref(n).is("hide-zero",!o.showZero&&r.value===0),o.badgeClass]),style:p.normalizeStyle(p.unref(i))},[p.renderSlot(o.$slots,"content",{value:p.unref(a)},()=>[p.createTextVNode(p.toDisplayString(p.unref(a)),1)])],6),[[p.vShow,!o.hidden&&(p.unref(a)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var l8=qa(s8,[["__file","badge.vue"]]);const u8=td(l8),bT=Symbol("buttonGroupContextKey"),c8=({from:t,replacement:e,scope:r,version:n,ref:a,type:i="API"},o)=>{p.watch(()=>p.unref(o),s=>{s&&pn(r,`[${i}] ${t} is about to be deprecated in version ${n}, please use ${e} instead.
16
+ For more detail, please visit: ${a}
17
+ `)},{immediate:!0})},f8=(t,e)=>{c8({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},p.computed(()=>t.type==="text"));const r=p.inject(bT,void 0),n=Cm("button"),{form:a}=iT(),i=sT(p.computed(()=>r==null?void 0:r.size)),o=nd(),s=p.ref(),l=p.useSlots(),u=p.computed(()=>{var m;return t.type||(r==null?void 0:r.type)||((m=n.value)==null?void 0:m.type)||""}),c=p.computed(()=>{var m,y,_;return(_=(y=t.autoInsertSpace)!=null?y:(m=n.value)==null?void 0:m.autoInsertSpace)!=null?_:!1}),f=p.computed(()=>{var m,y,_;return(_=(y=t.plain)!=null?y:(m=n.value)==null?void 0:m.plain)!=null?_:!1}),h=p.computed(()=>{var m,y,_;return(_=(y=t.round)!=null?y:(m=n.value)==null?void 0:m.round)!=null?_:!1}),d=p.computed(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),v=p.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)===p.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:d,_plain:f,_round:h,shouldAddSpace:v,handleClick:m=>{if(o.value||t.loading){m.stopPropagation();return}t.nativeType==="reset"&&(a==null||a.resetFields()),e("click",m)}}},Om=ga({size:xm,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Vo},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Vo,default:()=>rd},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:Yt([String,Object]),default:"button"}}),h8={click:t=>t instanceof MouseEvent};function hr(t,e){d8(t)&&(t="100%");var r=p8(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function ld(t){return Math.min(1,Math.max(0,t))}function d8(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function p8(t){return typeof t=="string"&&t.indexOf("%")!==-1}function ST(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ud(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Fo(t){return t.length===1?"0"+t:String(t)}function v8(t,e,r){return{r:hr(t,255)*255,g:hr(e,255)*255,b:hr(r,255)*255}}function wT(t,e,r){t=hr(t,255),e=hr(e,255),r=hr(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,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 t:i=(e-r)/l+(e<r?6:0);break;case e:i=(r-t)/l+2;break;case r:i=(t-e)/l+4;break}i/=6}return{h:i,s:o,l:s}}function Rm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*(6*r):r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function g8(t,e,r){var n,a,i;if(t=hr(t,360),e=hr(e,100),r=hr(r,100),e===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+e):r+e-r*e,s=2*r-o;n=Rm(s,o,t+1/3),a=Rm(s,o,t),i=Rm(s,o,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function xT(t,e,r){t=hr(t,255),e=hr(e,255),r=hr(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case t:i=(e-r)/s+(e<r?6:0);break;case e:i=(r-t)/s+2;break;case r:i=(t-e)/s+4;break}i/=6}return{h:i,s:l,v:o}}function m8(t,e,r){t=hr(t,360)*6,e=hr(e,100),r=hr(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),o=r*(1-a*e),s=r*(1-(1-a)*e),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 CT(t,e,r,n){var a=[Fo(Math.round(t).toString(16)),Fo(Math.round(e).toString(16)),Fo(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 y8(t,e,r,n,a){var i=[Fo(Math.round(t).toString(16)),Fo(Math.round(e).toString(16)),Fo(Math.round(r).toString(16)),Fo(_8(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 _8(t){return Math.round(parseFloat(t)*255).toString(16)}function TT(t){return tn(t)/255}function tn(t){return parseInt(t,16)}function b8(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Vm={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 S8(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=C8(t)),typeof t=="object"&&(Ja(t.r)&&Ja(t.g)&&Ja(t.b)?(e=v8(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ja(t.h)&&Ja(t.s)&&Ja(t.v)?(n=ud(t.s),a=ud(t.v),e=m8(t.h,n,a),o=!0,s="hsv"):Ja(t.h)&&Ja(t.s)&&Ja(t.l)&&(n=ud(t.s),i=ud(t.l),e=g8(t.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(r=t.a)),r=ST(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}var w8="[-\\+]?\\d+%?",x8="[-\\+]?\\d*\\.\\d+%?",Ri="(?:".concat(x8,")|(?:").concat(w8,")"),Bm="[\\s|\\(]+(".concat(Ri,")[,|\\s]+(").concat(Ri,")[,|\\s]+(").concat(Ri,")\\s*\\)?"),Fm="[\\s|\\(]+(".concat(Ri,")[,|\\s]+(").concat(Ri,")[,|\\s]+(").concat(Ri,")[,|\\s]+(").concat(Ri,")\\s*\\)?"),Un={CSS_UNIT:new RegExp(Ri),rgb:new RegExp("rgb"+Bm),rgba:new RegExp("rgba"+Fm),hsl:new RegExp("hsl"+Bm),hsla:new RegExp("hsla"+Fm),hsv:new RegExp("hsv"+Bm),hsva:new RegExp("hsva"+Fm),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 C8(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Vm[t])t=Vm[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Un.rgb.exec(t);return r?{r:r[1],g:r[2],b:r[3]}:(r=Un.rgba.exec(t),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Un.hsl.exec(t),r?{h:r[1],s:r[2],l:r[3]}:(r=Un.hsla.exec(t),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Un.hsv.exec(t),r?{h:r[1],s:r[2],v:r[3]}:(r=Un.hsva.exec(t),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Un.hex8.exec(t),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),a:TT(r[4]),format:e?"name":"hex8"}:(r=Un.hex6.exec(t),r?{r:tn(r[1]),g:tn(r[2]),b:tn(r[3]),format:e?"name":"hex"}:(r=Un.hex4.exec(t),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),a:TT(r[4]+r[4]),format:e?"name":"hex8"}:(r=Un.hex3.exec(t),r?{r:tn(r[1]+r[1]),g:tn(r[2]+r[2]),b:tn(r[3]+r[3]),format:e?"name":"hex"}:!1)))))))))}function Ja(t){return!!Un.CSS_UNIT.exec(String(t))}var T8=function(){function t(e,r){e===void 0&&(e=""),r===void 0&&(r={});var n;if(e instanceof t)return e;typeof e=="number"&&(e=b8(e)),this.originalInput=e;var a=S8(e);this.originalInput=e,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 t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),r,n,a,i=e.r/255,o=e.g/255,s=e.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},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=ST(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=xT(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=xT(this.r,this.g,this.b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=wT(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=wT(this.r,this.g,this.b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),CT(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),y8(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(r,", ").concat(n,")"):"rgba(".concat(e,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(r){return"".concat(Math.round(hr(r,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(r){return Math.round(hr(r,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+CT(this.r,this.g,this.b,!1),r=0,n=Object.entries(Vm);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(e===o)return i}return!1},t.prototype.toString=function(e){var r=!!e;e=e??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var r=this.toHsl();return r.l+=e/100,r.l=ld(r.l),new t(r)},t.prototype.brighten=function(e){e===void 0&&(e=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(e/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(e/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(e/100)))),new t(r)},t.prototype.darken=function(e){e===void 0&&(e=10);var r=this.toHsl();return r.l-=e/100,r.l=ld(r.l),new t(r)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var r=this.toHsl();return r.s-=e/100,r.s=ld(r.s),new t(r)},t.prototype.saturate=function(e){e===void 0&&(e=10);var r=this.toHsl();return r.s+=e/100,r.s=ld(r.s),new t(r)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var r=this.toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,new t(r)},t.prototype.mix=function(e,r){r===void 0&&(r=50);var n=this.toRgb(),a=new t(e).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 t(o)},t.prototype.analogous=function(e,r){e===void 0&&(e=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(new t(n));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(new t({h:n,s:a,v:i})),i=(i+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),r=e.h;return[this,new t({h:(r+72)%360,s:e.s,l:e.l}),new t({h:(r+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var r=this.toRgb(),n=new t(e).toRgb(),a=r.a+n.a*(1-r.a);return new t({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})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var r=this.toHsl(),n=r.h,a=[this],i=360/e,o=1;o<e;o++)a.push(new t({h:(n+o*i)%360,s:r.s,l:r.l}));return a},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Vi(t,e=20){return t.mix("#141414",e).toString()}function D8(t){const e=nd(),r=pa("button");return p.computed(()=>{let n={},a=t.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new T8(a),s=t.dark?o.tint(20).toString():Vi(o,20);if(t.plain)n=r.cssVarBlock({"bg-color":t.dark?Vi(o,90):o.tint(90).toString(),"text-color":a,"border-color":t.dark?Vi(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}),e.value&&(n[r.cssVarBlockName("disabled-bg-color")]=t.dark?Vi(o,90):o.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=t.dark?Vi(o,50):o.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=t.dark?Vi(o,80):o.tint(80).toString());else{const l=t.dark?Vi(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}),e.value){const c=t.dark?Vi(o,50):o.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=c,n[r.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=c}}}return n})}const E8=p.defineComponent({name:"ElButton"}),M8=p.defineComponent({...E8,props:Om,emits:h8,setup(t,{expose:e,emit:r}){const n=t,a=D8(n),i=pa("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,_plain:f,_round:h,shouldAddSpace:d,handleClick:v}=f8(n,r),g=p.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",h.value),i.is("circle",n.circle),i.is("text",n.text),i.is("link",n.link),i.is("has-bg",n.bg)]);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:d}),(m,y)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(m.tag),p.mergeProps({ref_key:"_ref",ref:o},p.unref(c),{class:p.unref(g),style:p.unref(a),onClick:p.unref(v)}),{default:p.withCtx(()=>[m.loading?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[m.$slots.loading?p.renderSlot(m.$slots,"loading",{key:0}):(p.openBlock(),p.createBlock(p.unref(vn),{key:1,class:p.normalizeClass(p.unref(i).is("loading"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(p.openBlock(),p.createBlock(p.unref(vn),{key:1},{default:p.withCtx(()=>[m.icon?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(m.icon),{key:0})):p.renderSlot(m.$slots,"icon",{key:1})]),_:3})):p.createCommentVNode("v-if",!0),m.$slots.default?(p.openBlock(),p.createElementBlock("span",{key:2,class:p.normalizeClass({[p.unref(i).em("text","expand")]:p.unref(d)})},[p.renderSlot(m.$slots,"default")],2)):p.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var A8=qa(M8,[["__file","button.vue"]]);const I8={size:Om.size,type:Om.type},k8=p.defineComponent({name:"ElButtonGroup"}),L8=p.defineComponent({...k8,props:I8,setup(t){const e=t;p.provide(bT,p.reactive({size:p.toRef(e,"size"),type:p.toRef(e,"type")}));const r=pa("button");return(n,a)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(p.unref(r).b("group"))},[p.renderSlot(n.$slots,"default")],2))}});var DT=qa(L8,[["__file","button-group.vue"]]);const N8=td(A8,{ButtonGroup:DT});e6(DT);var cd=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(cd||{});const P8=ga({a11y:{type:Boolean,default:!0},locale:{type:Yt(Object)},size:xm,button:{type:Yt(Object)},link:{type:Yt(Object)},experimentalFeatures:{type:Yt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Yt(Object)},zIndex:Number,namespace:{type:String,default:"el"},...K3}),rn={};p.defineComponent({name:"ElConfigProvider",props:P8,setup(t,{slots:e}){const r=GC(t);return p.watch(()=>t.message,n=>{var a,i;Object.assign(rn,(i=(a=r==null?void 0:r.value)==null?void 0:a.message)!=null?i:{},n??{})},{immediate:!0,deep:!0}),()=>p.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const ET=t=>{if(!t)return{onClick:ac,onMousedown:ac,onMouseup:ac};let e=!1,r=!1;return{onClick:o=>{e&&r&&t(o),e=r=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}},O8=ga({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Yt([String,Array,Object])},zIndex:{type:Yt([String,Number])}}),R8={click:t=>t instanceof MouseEvent},V8="overlay";var B8=p.defineComponent({name:"ElOverlay",props:O8,emits:R8,setup(t,{slots:e,emit:r}){const n=pa(V8),a=l=>{r("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=ET(t.customMaskEvent?void 0:a);return()=>t.mask?p.createVNode("div",{class:[n.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:i,onMousedown:o,onMouseup:s},[p.renderSlot(e,"default")],cd.STYLE|cd.CLASS|cd.PROPS,["onClick","onMouseup","onMousedown"]):p.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[p.renderSlot(e,"default")])}});const F8=B8,z8=(t,e,r,n)=>{const a={offsetX:0,offsetY:0},i=(f,h)=>{if(t.value){const{offsetX:d,offsetY:v}=a,g=t.value.getBoundingClientRect(),m=g.left,y=g.top,_=g.width,b=g.height,S=document.documentElement.clientWidth,w=document.documentElement.clientHeight,x=-m+d,C=-y+v,T=S-m-_+d,D=w-y-(b<w?b:0)+v;n!=null&&n.value||(f=Math.min(Math.max(f,x),T),h=Math.min(Math.max(h,C),D)),a.offsetX=f,a.offsetY=h,t.value.style.transform=`translate(${uc(f)}, ${uc(h)})`}},o=f=>{const h=f.clientX,d=f.clientY,{offsetX:v,offsetY:g}=a,m=_=>{const b=v+_.clientX-h,S=g+_.clientY-d;i(b,S)},y=()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)},s=()=>{e.value&&t.value&&(e.value.addEventListener("mousedown",o),window.addEventListener("resize",c))},l=()=>{e.value&&t.value&&(e.value.removeEventListener("mousedown",o),window.removeEventListener("resize",c))},u=()=>{a.offsetX=0,a.offsetY=0,t.value&&(t.value.style.transform="")},c=()=>{const{offsetX:f,offsetY:h}=a;i(f,h)};return p.onMounted(()=>{p.watchEffect(()=>{r.value?s():l()})}),p.onBeforeUnmount(()=>{l()}),{resetPosition:u,updatePosition:c}},$8=(t,e={})=>{p.isRef(t)||z3("[useLockscreen]","You need to pass a ref param to this function");const r=e.ns||pa("popup"),n=p.computed(()=>r.bm("parent","hidden"));if(!fr||YC(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,lc(document.body,n.value))},200)};p.watch(t,l=>{if(!l){s();return}i=!YC(document.body,n.value),i&&(o=document.body.style.width,Dm(document.body,n.value)),a=Q3(r.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=dl(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`)}),p.onScopeDispose(()=>s())},G8=t=>["",...FC].includes(t);function H8(t,e){let r;const n=p.ref(!1),a=p.reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function i(d){a.text=d}function o(){const d=a.parent,v=h.ns;if(!d.vLoadingAddClassList){let g=d.getAttribute("loading-number");g=Number.parseInt(g)-1,g?d.setAttribute("loading-number",g.toString()):(lc(d,v.bm("parent","relative")),d.removeAttribute("loading-number")),lc(d,v.bm("parent","hidden"))}s(),f.unmount()}function s(){var d,v;(v=(d=h.$el)==null?void 0:d.parentNode)==null||v.removeChild(h.$el)}function l(){var d;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(r),r=setTimeout(u,400),a.visible=!1,(d=t.closed)==null||d.call(t))}function u(){if(!n.value)return;const d=a.parent;n.value=!1,d.vLoadingAddClassList=void 0,o()}const c=p.defineComponent({name:"ElLoading",setup(d,{expose:v}){const{ns:g,zIndex:m}=Qh("loading");return v({ns:g,zIndex:m}),()=>{const y=a.spinner||a.svg,_=p.h("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[p.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=a.text?p.h("p",{class:g.b("text")},[a.text]):void 0;return p.h(p.Transition,{name:g.b("fade"),onAfterLeave:u},{default:p.withCtx(()=>[p.withDirectives(p.createVNode("div",{style:{backgroundColor:a.background||""},class:[g.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[p.h("div",{class:g.b("spinner")},[_,b])]),[[p.vShow,a.visible]])])})}}}),f=p.createApp(c);Object.assign(f._context,e??{});const h=f.mount(document.createElement("div"));return{...p.toRefs(a),setText:i,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:h,get $el(){return h.$el}}}let fd;const gl=function(t={}){if(!fr)return;const e=W8(t);if(e.fullscreen&&fd)return fd;const r=H8({...e,closed:()=>{var a;(a=e.closed)==null||a.call(e),e.fullscreen&&(fd=void 0)}},gl._context);U8(e,e.parent,r),MT(e,e.parent,r),e.parent.vLoadingAddClassList=()=>MT(e,e.parent,r);let n=e.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",e.parent.setAttribute("loading-number",n),e.parent.appendChild(r.$el),p.nextTick(()=>r.visible.value=e.visible),e.fullscreen&&(fd=r),r},W8=t=>{var e,r,n,a;let i;return cr(t.target)?i=(e=document.querySelector(t.target))!=null?e:document.body:i=t.target||document.body,{parent:i===document.body||t.body?document.body:i,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:i===document.body&&((r=t.fullscreen)!=null?r:!0),lock:(n=t.lock)!=null?n:!1,customClass:t.customClass||"",visible:(a=t.visible)!=null?a:!0,beforeClose:t.beforeClose,closed:t.closed,target:i}},U8=async(t,e,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(t.fullscreen)r.originalPosition.value=dl(document.body,"position"),r.originalOverflow.value=dl(document.body,"overflow"),a.zIndex=n();else if(t.parent===document.body){r.originalPosition.value=dl(document.body,"position"),await p.nextTick();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${t.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(dl(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${t.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=dl(e,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},MT=(t,e,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?lc(e,n.bm("parent","relative")):Dm(e,n.bm("parent","relative")),t.fullscreen&&t.lock?Dm(e,n.bm("parent","hidden")):lc(e,n.bm("parent","hidden"))};gl._context=null;const hd=Symbol("ElLoading"),AT=(t,e)=>{var r,n,a,i;const o=e.instance,s=d=>Li(e.value)?e.value[d]:void 0,l=d=>{const v=cr(d)&&(o==null?void 0:o[d])||d;return v&&p.ref(v)},u=d=>l(s(d)||t.getAttribute(`element-loading-${Ez(d)}`)),c=(r=s("fullscreen"))!=null?r:e.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:t,body:(a=s("body"))!=null?a:e.modifiers.body,lock:(i=s("lock"))!=null?i:e.modifiers.lock},h=gl(f);h._context=cc._context,t[hd]={options:f,instance:h}},Y8=(t,e)=>{for(const r of Object.keys(e))p.isRef(e[r])&&(e[r].value=t[r])},cc={mounted(t,e){e.value&&AT(t,e)},updated(t,e){const r=t[hd];e.oldValue!==e.value&&(e.value&&!e.oldValue?AT(t,e):e.value&&e.oldValue?Li(e.value)&&Y8(e.value,r.options):r==null||r.instance.close())},unmounted(t){var e;(e=t[hd])==null||e.instance.close(),t[hd]=null}};cc._context=null;const Z8={install(t){gl._context=t._context,cc._context=t._context,t.directive("loading",cc),t.config.globalProperties.$loading=gl},directive:cc,service:gl},IT=["primary","success","info","warning","error"],Pr=nT({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:fr?document.body:void 0}),X8=ga({customClass:{type:String,default:Pr.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Pr.dangerouslyUseHTMLString},duration:{type:Number,default:Pr.duration},icon:{type:Vo,default:Pr.icon},id:{type:String,default:Pr.id},message:{type:Yt([String,Object,Function]),default:Pr.message},onClose:{type:Yt(Function),default:Pr.onClose},showClose:{type:Boolean,default:Pr.showClose},type:{type:String,values:IT,default:Pr.type},plain:{type:Boolean,default:Pr.plain},offset:{type:Number,default:Pr.offset},zIndex:{type:Number,default:Pr.zIndex},grouping:{type:Boolean,default:Pr.grouping},repeatNum:{type:Number,default:Pr.repeatNum}}),j8={destroy:()=>!0},Yn=p.shallowReactive([]),K8=t=>{const e=Yn.findIndex(a=>a.id===t),r=Yn[e];let n;return e>0&&(n=Yn[e-1]),{current:r,prev:n}},q8=t=>{const{prev:e}=K8(t);return e?e.vm.exposed.bottom.value:0},J8=(t,e)=>Yn.findIndex(n=>n.id===t)>0?16:e,Q8=p.defineComponent({name:"ElMessage"}),e$=p.defineComponent({...Q8,props:X8,emits:j8,setup(t,{expose:e,emit:r}){const n=t,{Close:a}=tT,i=p.ref(!1),{ns:o,zIndex:s}=Qh("message"),{currentZIndex:l,nextZIndex:u}=s,c=p.ref(),f=p.ref(!1),h=p.ref(0);let d;const v=p.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=p.computed(()=>{const D=n.type;return{[o.bm("icon",D)]:D&&pl[D]}}),m=p.computed(()=>n.icon||pl[n.type]||""),y=p.computed(()=>q8(n.id)),_=p.computed(()=>J8(n.id,n.offset)+y.value),b=p.computed(()=>h.value+_.value),S=p.computed(()=>({top:`${_.value}px`,zIndex:l.value}));function w(){n.duration!==0&&({stop:d}=bC(()=>{C()},n.duration))}function x(){d==null||d()}function C(){f.value=!1,p.nextTick(()=>{var D;i.value||((D=n.onClose)==null||D.call(n),r("destroy"))})}function T({code:D}){D===Bo.esc&&C()}return p.onMounted(()=>{w(),u(),f.value=!0}),p.watch(()=>n.repeatNum,()=>{x(),w()}),Ro(document,"keydown",T),DC(c,()=>{h.value=c.value.getBoundingClientRect().height}),e({visible:f,bottom:b,close:C}),(D,E)=>(p.openBlock(),p.createBlock(p.Transition,{name:p.unref(o).b("fade"),onBeforeEnter:A=>i.value=!0,onBeforeLeave:D.onClose,onAfterLeave:A=>D.$emit("destroy"),persisted:""},{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",{id:D.id,ref_key:"messageRef",ref:c,class:p.normalizeClass([p.unref(o).b(),{[p.unref(o).m(D.type)]:D.type},p.unref(o).is("closable",D.showClose),p.unref(o).is("plain",D.plain),D.customClass]),style:p.normalizeStyle(p.unref(S)),role:"alert",onMouseenter:x,onMouseleave:w},[D.repeatNum>1?(p.openBlock(),p.createBlock(p.unref(u8),{key:0,value:D.repeatNum,type:p.unref(v),class:p.normalizeClass(p.unref(o).e("badge"))},null,8,["value","type","class"])):p.createCommentVNode("v-if",!0),p.unref(m)?(p.openBlock(),p.createBlock(p.unref(vn),{key:1,class:p.normalizeClass([p.unref(o).e("icon"),p.unref(g)])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(m))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),p.renderSlot(D.$slots,"default",{},()=>[D.dangerouslyUseHTMLString?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),p.createElementVNode("p",{class:p.normalizeClass(p.unref(o).e("content")),innerHTML:D.message},null,10,["innerHTML"])],2112)):(p.openBlock(),p.createElementBlock("p",{key:0,class:p.normalizeClass(p.unref(o).e("content"))},p.toDisplayString(D.message),3))]),D.showClose?(p.openBlock(),p.createBlock(p.unref(vn),{key:2,class:p.normalizeClass(p.unref(o).e("closeBtn")),onClick:p.withModifiers(C,["stop"])},{default:p.withCtx(()=>[p.createVNode(p.unref(a))]),_:1},8,["class","onClick"])):p.createCommentVNode("v-if",!0)],46,["id"]),[[p.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var t$=qa(e$,[["__file","message.vue"]]);let r$=1;const kT=t=>{const e=!t||cr(t)||p.isVNode(t)||va(t)?{message:t}:t,r={...Pr,...e};if(!r.appendTo)r.appendTo=document.body;else if(cr(r.appendTo)){let n=document.querySelector(r.appendTo);Pi(n)||(pn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body),r.appendTo=n}return bm(rn.grouping)&&!r.grouping&&(r.grouping=rn.grouping),Ka(rn.duration)&&r.duration===3e3&&(r.duration=rn.duration),Ka(rn.offset)&&r.offset===16&&(r.offset=rn.offset),bm(rn.showClose)&&!r.showClose&&(r.showClose=rn.showClose),bm(rn.plain)&&!r.plain&&(r.plain=rn.plain),r},n$=t=>{const e=Yn.indexOf(t);if(e===-1)return;Yn.splice(e,1);const{handler:r}=t;r.close()},a$=({appendTo:t,...e},r)=>{const n=`message_${r$++}`,a=e.onClose,i=document.createElement("div"),o={...e,id:n,onClose:()=>{a==null||a(),n$(c)},onDestroy:()=>{p.render(null,i)}},s=p.createVNode(t$,o,va(o.message)||p.isVNode(o.message)?{default:va(o.message)?o.message:()=>o.message}:null);s.appContext=r||ml._context,p.render(s,i),t.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},ml=(t={},e)=>{if(!fr)return{close:()=>{}};const r=kT(t);if(r.grouping&&Yn.length){const a=Yn.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(Ka(rn.max)&&Yn.length>=rn.max)return{close:()=>{}};const n=a$(r,e);return Yn.push(n),n.handler};IT.forEach(t=>{ml[t]=(e={},r)=>{const n=kT(e);return ml({...n,type:t},r)}});function i$(t){const e=[...Yn];for(const r of e)(!t||t===r.props.type)&&r.handler.close()}ml.closeAll=i$,ml._context=null;const fc=ZC(ml,"$message"),zm="_trap-focus-children",zo=[],LT=t=>{var e;if(zo.length===0)return;const r=zo[zo.length-1][zm];if(r.length>0&&t.code===Bo.tab){if(r.length===1){t.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const n=t.shiftKey,a=t.target===r[0],i=t.target===r[r.length-1];if(a&&n&&(t.preventDefault(),r[r.length-1].focus()),i&&!n&&(t.preventDefault(),r[0].focus()),process.env.NODE_ENV==="test"){const o=r.indexOf(t.target);o!==-1&&((e=r[n?o-1:o+1])==null||e.focus())}}},o$={beforeMount(t){t[zm]=uT(t),zo.push(t),zo.length<=1&&document.addEventListener("keydown",LT)},updated(t){p.nextTick(()=>{t[zm]=uT(t)})},unmounted(){zo.shift(),zo.length===0&&document.removeEventListener("keydown",LT)}},s$=p.defineComponent({name:"ElMessageBox",directives:{TrapFocus:o$},components:{ElButton:N8,ElFocusTrap:a8,ElInput:G6,ElOverlay:F8,ElIcon:vn,...tT},inheritAttrs:!1,props:{buttonSize:{type:String,validator:G8},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(t,{emit:e}){const{locale:r,zIndex:n,ns:a,size:i}=Qh("message-box",p.computed(()=>t.buttonSize)),{t:o}=r,{nextZIndex:s}=n,l=p.ref(!1),u=p.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:p.markRaw(rd),cancelButtonLoadingIcon:p.markRaw(rd),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=p.computed(()=>{const P=u.type;return{[a.bm("icon",P)]:P&&pl[P]}}),f=Am(),h=Am(),d=p.computed(()=>{const P=u.type;return u.icon||P&&pl[P]||""}),v=p.computed(()=>!!u.message),g=p.ref(),m=p.ref(),y=p.ref(),_=p.ref(),b=p.ref(),S=p.computed(()=>u.confirmButtonClass);p.watch(()=>u.inputValue,async P=>{await p.nextTick(),t.boxType==="prompt"&&P&&I()},{immediate:!0}),p.watch(()=>l.value,P=>{var B,V;P&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(V=(B=b.value)==null?void 0:B.$el)!=null?V:g.value:y.value=g.value),u.zIndex=s()),t.boxType==="prompt"&&(P?p.nextTick().then(()=>{var G;_.value&&_.value.$el&&(u.autofocus?y.value=(G=k())!=null?G:g.value:y.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const w=p.computed(()=>t.draggable),x=p.computed(()=>t.overflow);z8(g,m,w,x),p.onMounted(async()=>{await p.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",C)}),p.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",C)});function C(){l.value&&(l.value=!1,p.nextTick(()=>{u.action&&e("action",u.action)}))}const T=()=>{t.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},D=ET(T),E=P=>{if(u.inputType!=="textarea")return P.preventDefault(),A("confirm")},A=P=>{var B;t.boxType==="prompt"&&P==="confirm"&&!I()||(u.action=P,u.beforeClose?(B=u.beforeClose)==null||B.call(u,P,u,C):C())},I=()=>{if(t.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 B=u.inputValidator;if(va(B)){const V=B(u.inputValue);if(V===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(cr(V))return u.editorErrorMessage=V,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},k=()=>{var P,B;const V=(P=_.value)==null?void 0:P.$refs;return(B=V==null?void 0:V.input)!=null?B:V==null?void 0:V.textarea},L=()=>{A("close")},N=()=>{t.closeOnPressEscape&&L()};return t.lockScroll&&$8(l),{...p.toRefs(u),ns:a,overlayEvent:D,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:h,btnSize:i,iconComponent:d,confirmButtonClasses:S,rootRef:g,focusStartRef:y,headerRef:m,inputRef:_,confirmRef:b,doClose:C,handleClose:L,onCloseRequested:N,handleWrapperClick:T,handleInputEnter:E,handleAction:A,t:o}}});function l$(t,e,r,n,a,i){const o=p.resolveComponent("el-icon"),s=p.resolveComponent("el-input"),l=p.resolveComponent("el-button"),u=p.resolveComponent("el-focus-trap"),c=p.resolveComponent("el-overlay");return p.openBlock(),p.createBlock(p.Transition,{name:"fade-in-linear",onAfterLeave:f=>t.$emit("vanish"),persisted:""},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(c,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:p.withCtx(()=>[p.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:p.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[p.createVNode(u,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:p.withCtx(()=>[p.createElementVNode("div",{ref:"rootRef",class:p.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:p.normalizeStyle(t.customStyle),tabindex:"-1",onClick:p.withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(p.openBlock(),p.createElementBlock("div",{key:0,ref:"headerRef",class:p.normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(p.openBlock(),p.createBlock(o,{key:0,class:p.normalizeClass([t.ns.e("status"),t.typeClass])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),p.createElementVNode("span",null,p.toDisplayString(t.title),1)],2),t.showClose?(p.openBlock(),p.createElementBlock("button",{key:0,type:"button",class:p.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:p.withKeys(p.withModifiers(f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[p.createVNode(o,{class:p.normalizeClass(t.ns.e("close"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(t.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):p.createCommentVNode("v-if",!0)],2)):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{id:t.contentId,class:p.normalizeClass(t.ns.e("content"))},[p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(p.openBlock(),p.createBlock(o,{key:0,class:p.normalizeClass([t.ns.e("status"),t.typeClass])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),t.hasMessage?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(t.ns.e("message"))},[p.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(p.openBlock(),p.createBlock(p.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):p.createCommentVNode("v-if",!0)],2),p.withDirectives(p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("input"))},[p.createVNode(s,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":f=>t.inputValue=f,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:p.normalizeClass({invalid:t.validateError}),onKeydown:p.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("errormsg")),style:p.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},p.toDisplayString(t.editorErrorMessage),7)],2),[[p.vShow,t.showInput]])],10,["id"]),p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(p.openBlock(),p.createBlock(l,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:p.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:f=>t.handleAction("cancel"),onKeydown:p.withKeys(p.withModifiers(f=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):p.createCommentVNode("v-if",!0),p.withDirectives(p.createVNode(l,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:p.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:f=>t.handleAction("confirm"),onKeydown:p.withKeys(p.withModifiers(f=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[p.vShow,t.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"]),[[p.vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var u$=qa(s$,[["render",l$],["__file","index.vue"]]);const hc=new Map,c$=t=>{let e=document.body;return t.appendTo&&(cr(t.appendTo)&&(e=document.querySelector(t.appendTo)),Pi(t.appendTo)&&(e=t.appendTo),Pi(e)||(pn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body)),e},f$=(t,e,r=null)=>{const n=p.createVNode(u$,t,va(t.message)||p.isVNode(t.message)?{default:va(t.message)?t.message:()=>t.message}:null);return n.appContext=r,p.render(n,e),c$(t).appendChild(e.firstElementChild),n.component},h$=()=>document.createElement("div"),d$=(t,e)=>{const r=h$();t.onVanish=()=>{p.render(null,r),hc.delete(a)},t.onAction=i=>{const o=hc.get(a);let s;t.showInput?s={value:a.inputValue,action:i}:s=i,t.callback?t.callback(s,n.proxy):i==="cancel"||i==="close"?t.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=f$(t,r,e),a=n.proxy;for(const i in t)Yh(t,i)&&!Yh(a.$props,i)&&(i==="closeIcon"&&Li(t[i])?a[i]=p.markRaw(t[i]):a[i]=t[i]);return a.visible=!0,a};function yl(t,e=null){if(!fr)return Promise.reject();let r;return cr(t)||p.isVNode(t)?t={message:t}:r=t.callback,new Promise((n,a)=>{const i=d$(t,e??yl._context);hc.set(i,{options:t,callback:r,resolve:n,reject:a})})}const p$=["alert","confirm","prompt"],v$={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};p$.forEach(t=>{yl[t]=g$(t)});function g$(t){return(e,r,n,a)=>{let i="";return Li(r)?(n=r,i=""):_m(r)?i="":i=r,yl(Object.assign({title:i,message:e,type:"",...v$[t]},n,{boxType:t}),a)}}yl.close=()=>{hc.forEach((t,e)=>{e.doClose()}),hc.clear()},yl._context=null;const Bi=yl;Bi.install=t=>{Bi._context=t._context,t.config.globalProperties.$msgbox=Bi,t.config.globalProperties.$messageBox=Bi,t.config.globalProperties.$alert=Bi.alert,t.config.globalProperties.$confirm=Bi.confirm,t.config.globalProperties.$prompt=Bi.prompt};const m$=Bi,NT=["primary","success","info","warning","error"],y$=ga({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Vo},id:{type:String,default:""},message:{type:Yt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Yt(Function),default:()=>{}},onClose:{type:Yt(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:[...NT,""],default:""},zIndex:Number,closeIcon:{type:Vo,default:JC}}),_$={destroy:()=>!0},b$=p.defineComponent({name:"ElNotification"}),S$=p.defineComponent({...b$,props:y$,emits:_$,setup(t,{expose:e}){const r=t,{ns:n,zIndex:a}=Qh("notification"),{nextZIndex:i,currentZIndex:o}=a,s=p.ref(!1);let l;const u=p.computed(()=>{const _=r.type;return _&&pl[r.type]?n.m(_):""}),c=p.computed(()=>r.type&&pl[r.type]||r.icon),f=p.computed(()=>r.position.endsWith("right")?"right":"left"),h=p.computed(()=>r.position.startsWith("top")?"top":"bottom"),d=p.computed(()=>{var _;return{[h.value]:`${r.offset}px`,zIndex:(_=r.zIndex)!=null?_:o.value}});function v(){r.duration>0&&({stop:l}=bC(()=>{s.value&&m()},r.duration))}function g(){l==null||l()}function m(){s.value=!1}function y({code:_}){_===Bo.delete||_===Bo.backspace?g():_===Bo.esc?s.value&&m():v()}return p.onMounted(()=>{v(),i(),s.value=!0}),Ro(document,"keydown",y),e({visible:s,close:m}),(_,b)=>(p.openBlock(),p.createBlock(p.Transition,{name:p.unref(n).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:S=>_.$emit("destroy"),persisted:""},{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",{id:_.id,class:p.normalizeClass([p.unref(n).b(),_.customClass,p.unref(f)]),style:p.normalizeStyle(p.unref(d)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:_.onClick},[p.unref(c)?(p.openBlock(),p.createBlock(p.unref(vn),{key:0,class:p.normalizeClass([p.unref(n).e("icon"),p.unref(u)])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(c))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{class:p.normalizeClass(p.unref(n).e("group"))},[p.createElementVNode("h2",{class:p.normalizeClass(p.unref(n).e("title")),textContent:p.toDisplayString(_.title)},null,10,["textContent"]),p.withDirectives(p.createElementVNode("div",{class:p.normalizeClass(p.unref(n).e("content")),style:p.normalizeStyle(_.title?void 0:{margin:0})},[p.renderSlot(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),p.createElementVNode("p",{innerHTML:_.message},null,8,["innerHTML"])],2112)):(p.openBlock(),p.createElementBlock("p",{key:0},p.toDisplayString(_.message),1))])],6),[[p.vShow,_.message]]),_.showClose?(p.openBlock(),p.createBlock(p.unref(vn),{key:0,class:p.normalizeClass(p.unref(n).e("closeBtn")),onClick:p.withModifiers(m,["stop"])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(_.closeIcon)))]),_:1},8,["class","onClick"])):p.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[p.vShow,s.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var w$=qa(S$,[["__file","notification.vue"]]);const dd={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},$m=16;let x$=1;const _l=function(t={},e){if(!fr)return{close:()=>{}};(cr(t)||p.isVNode(t))&&(t={message:t});const r=t.position||"top-right";let n=t.offset||0;dd[r].forEach(({vm:c})=>{var f;n+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+$m}),n+=$m;const a=`notification_${x$++}`,i=t.onClose,o={...t,offset:n,id:a,onClose:()=>{C$(a,r,i)}};let s=document.body;Pi(t.appendTo)?s=t.appendTo:cr(t.appendTo)&&(s=document.querySelector(t.appendTo)),Pi(s)||(pn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const l=document.createElement("div"),u=p.createVNode(w$,o,va(o.message)?o.message:p.isVNode(o.message)?()=>o.message:null);return u.appContext=_m(e)?_l._context:e,u.props.onDestroy=()=>{p.render(null,l)},p.render(u,l),dd[r].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};NT.forEach(t=>{_l[t]=(e={},r)=>((cr(e)||p.isVNode(e))&&(e={message:e}),_l({...e,type:t},r))});function C$(t,e,r){const n=dd[e],a=n.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===t});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,s=e.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,h=Number.parseInt(c.style[s],10)-o-$m;f.props.offset=h}}function T$(){for(const t of Object.values(dd))t.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})}_l.closeAll=T$,_l._context=null;const D$=ZC(_l,"$notify"),bl={show:(t,e)=>{fc({message:t,type:e||"info",duration:3e3,grouping:!0})},success:t=>{fc.success({message:t,duration:2e3,grouping:!0})},warning:t=>{fc.warning({message:t,duration:2e3,grouping:!0})},error:t=>{fc.error({message:t,duration:5e3,grouping:!0})},confirm:(t,e=H.$ntt("提示","菜单"))=>m$.confirm(t,e,{confirmButtonText:H.$ntt("确定","菜单"),cancelButtonText:H.$ntt("取消","菜单"),type:"warning"}).then(()=>Promise.resolve()).catch(()=>(fc({type:"info",message:H.$ntt("已取消操作","菜单")}),Promise.reject())),notification:(t,e)=>{D$({title:t,message:e,type:"error"})}},E$={install(t){t.config.globalProperties.$message=bl,t.provide("$message",bl)}},M$={class:"searchClass"},A$=["title"],I$={style:{"margin-top":"-1px",border:"2px solid #f0f0f0",width:"130px","margin-left":"-80px","text-align":"center",background:"white"}},k$={key:1,class:"searchTab"},L$=["onClick"],N$={key:2,class:"unfold"},P$={ref:"searchCol",class:"searchCol"},O$={key:0,class:"fold"},R$=["title"],V$={style:{display:"flex","align-items":"center"}},B$={style:{"margin-left":"15px"}},F$={class:"dialog-footer"},z$={name:"cmSearch"},$$=p.defineComponent({...z$,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"}},emits:["searchClick","onShow","searchFold"],setup(t,{emit:e}){let{proxy:r}=p.getCurrentInstance(),n=e,a=t,i=p.ref(""),o=p.ref(!1),s=p.ref(!0),l=p.ref(!1),u=p.ref(!1),c=p.ref(),f=p.ref({columnSpanNum:"6",rowNum:"3"}),h=p.ref({bCustom:!1,iSpan:6}),d=p.ref(12),v=[{value:"4",label:"6"},{value:"6",label:"4"},{value:"8",label:"3"},{value:"12",label:"2"},{value:"14",label:"1"}],g=p.ref({sKey:"",sSelectKey:"",sSelectLabel:"",sSelectItems:[],searchMode:"",searchKey:"",sValue:""}),m=p.ref(0),y=p.ref([]),_=p.ref([]);p.watch(()=>a.sFilterData,(z,$)=>{y.value=z,S(),b(z)},{deep:!0,immediate:!0});function b(z){let $=[];for(let q=0;q<z.length;q++){let J=z[q];if(J.sType=="Tab"){let ae=J.sKey.indexOf("@");J.searchMode=J.sKey.substring(ae+1),J.searchKey=J.sKey.substring(0,ae),$.push(J);break}}if($[0]){g.value=$[0],console.log($[0],"tab[0");let q=$[0].sSelectKey,J=$[0].sValue;$[0].sSelectItems.forEach((ae,Oe)=>{ae[q]==J&&(m.value=Oe)})}}function S(){let z=[];console.log(y.value,"searchFilterData"),y.value.forEach($=>{const q=$.sKey.indexOf("@");$.searchMode=$.sKey.substring(q+1),$.searchKey=$.sKey.substring(0,q),$._checked&&$.sType!="Tab"&&z.push($)}),r.$utils.sortData(z,"iOrder"),_.value=z.slice(0,d.value),console.log(_,"showFilterData")}let w=p.ref(!1);function x(){w.value=!w.value;let z=[];y.value.forEach($=>{$._checked&&$.sType!="Tab"&&z.push($)}),r.$utils.sortData(z,"iOrder"),w.value?_.value=z:_.value=z.slice(0,d.value),n("searchFold")}let C=p.ref(!1);function T(z){C.value=z,z?r.$refs.searchCol.style="height:0":r.$refs.searchCol.style="height:100%",n("searchFold")}function D(z=""){let $={};if(a.searchType=="GET"){let q="";_.value.forEach(J=>{J.sValue&&($[J.sKey]=J.sValue)}),z?q="&"+z:q=`&${g.value.sKey}=${item.sSelectKey}`,q+="&"+r.$utils.getCmSearchFilter(_.value),n("searchClick",q,$)}if(a.searchType=="POST"){let q=[];console.log(_,"showFilterData"),_.value.forEach(J=>{if(J.sValue){let ae={key:J.searchKey,type:J.searchMode,val:J.sValue};q.push(ae),$[J.sKey]=J.sValue}}),console.log(z,"params",g.value,"searchTabObj"),z?q.push(z):(q.push({key:g.value.searchKey,type:g.value.searchKey,val:g.value.sValue}),console.log(g,"searchTabObj")),n("searchClick",q,$)}}function E(){_.value.forEach(z=>{z.sValue=""})}function A(z,$){console.log(z,"item"),m.value=$,g.value.sValue=z[g.value.sSelectKey];let q;a.searchType=="GET"&&(q=`${g.value.sKey}=${g.value.sValue}`),a.searchType=="POST"&&(q={key:g.value.searchKey,type:g.value.searchMode,val:g.value.sValue}),D(q)}function I(){k()}function k(){L()}function L(){let z=y.value,$=!0;if(c.value){for(let J in c.value)if(J!="columnSpanNum"&&J!="rowNum"){if(!c.value[J]._checked)continue;$=!1;break}N(c.value)}let q=[];for(let J=0;J<z.length;J++){let ae=z[J];ae.bHide||q.push(ae)}for(let J=0;J<q.length;J++){let ae=q[J];if(ae.iOrder=J+1,$)ae._checked=!0;else{let Oe=c.value[ae.sKey];Oe&&(ae._checked=Oe._checked,ae.iOrder=Oe.iOrder)}}r.$utils.sortData(q,"iOrder"),S()}function N(z){let $=z.columnSpanNum,q=z.rowNum,J=4;for(let ae=0;ae<v.length;ae++){let Oe=v[ae];Oe.value==$&&(J=Oe.label)}d.value=q*Number(J),h.value.bCustom=!0,h.value.iSpan=$,f.value.columnSpanNum=$,f.value.rowNum=q}function P(z){r.$utils.sureDelete(H.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{u.value=!1,l.value=!1,z==="filter"&&(c.value=null)})}function B(z,$,q){}function V(z,$,q){if($===1){if(z===0)return;let ae=q[z-1];q[z-1]=q[z],q[z]=ae,G(q);return}if(z===q.length-1)return;let J=q[z+1];q[z+1]=q[z],q[z]=J,G(q)}function G(z){for(let $=0;$<z.length;$++){let q=z[$];q.iOrder=$+1}y.value=z,S()}function Y(){c.value={};for(var z=y.value,$=0;$<z.length;$++){var q=z[$];let J=q.sKey,ae={};ae.sKey=q.sKey,ae._checked=q._checked,ae.iOrder=$+1,c.value[J]=ae}c.value.columnSpanNum=f.value.columnSpanNum,c.value.rowNum=f.value.rowNum,JSON.stringify(c.value)}return p.onMounted(()=>{i.value=a.name+"_"+localStorage.getItem("lang")+"_"+H.sAppCode,I()}),(z,$)=>{const q=p.resolveComponent("el-switch"),J=p.resolveComponent("el-icon"),ae=p.resolveComponent("el-col"),Oe=p.resolveComponent("el-row"),Qe=p.resolveComponent("el-button"),Me=p.resolveComponent("el-button-group"),he=p.resolveComponent("el-option"),Ie=p.resolveComponent("el-select"),ue=p.resolveComponent("el-input"),me=p.resolveComponent("el-table-column"),nt=p.resolveComponent("el-table"),Ye=p.resolveComponent("el-dialog");return p.openBlock(),p.createElementBlock("div",M$,[z.isShowSwitch?(p.openBlock(),p.createElementBlock("span",{key:0,style:{position:"absolute",opacity:"0.8","z-index":"998",right:"-10px",top:"-10px",display:"inline-block"},title:p.unref(H).$ntt("显示/隐藏筛选条件","菜单"),onMouseover:$[2]||($[2]=pe=>p.isRef(o)?o.value=!0:o=!0),onMouseout:$[3]||($[3]=pe=>p.isRef(o)?o.value=!1:o=!1)},[p.createVNode(q,{style:{"margin-right":"20px"},modelValue:p.unref(s),"onUpdate:modelValue":$[0]||($[0]=pe=>p.isRef(s)?s.value=pe:s=pe),"active-color":"var(--switchBgColor)"},null,8,["modelValue"]),p.withDirectives(p.createElementVNode("div",I$,[p.createElementVNode("div",{class:"closeAllItem",onClick:$[1]||($[1]=pe=>p.isRef(l)?l.value=!0:l=!0)},p.toDisplayString(p.unref(H).$ntt("自定义条件展示","菜单")),1)],512),[[p.vShow,p.unref(o)&&p.unref(s)]])],40,A$)):p.createCommentVNode("",!0),p.unref(g).sSelectItems.length?(p.openBlock(),p.createElementBlock("div",k$,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(g).sSelectItems,(pe,He)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass([{"active-class":p.unref(m)==He},"searchBtn"]),key:He,onClick:xt=>A(pe,He)},p.toDisplayString(pe[p.unref(g).sSelectLabel]),11,L$))),128))])):p.createCommentVNode("",!0),p.unref(C)&&p.unref(_).length?(p.openBlock(),p.createElementBlock("div",N$,[p.createVNode(J,null,{default:p.withCtx(()=>[p.createVNode(p.unref(XC),{onClick:$[4]||($[4]=pe=>T(!1))})]),_:1})])):p.createCommentVNode("",!0),p.createElementVNode("div",P$,[p.createVNode(Oe,null,{default:p.withCtx(()=>[p.createVNode(ae,{span:20},{default:p.withCtx(()=>[p.createVNode(Oe,null,{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(_),(pe,He)=>(p.openBlock(),p.createBlock(ae,{key:He,span:p.unref(h).bCustom?Number(p.unref(h).iSpan):z.iSpan,colHeight:z.colHeight,height:40},{default:p.withCtx(()=>[p.createVNode(Kx,{slItem:pe,size:z.size,bSearch:!0},null,8,["slItem","size"])]),_:2},1032,["span","colHeight"]))),128))]),_:1})]),_:1}),p.createVNode(ae,{span:1},{default:p.withCtx(()=>$[12]||($[12]=[p.createElementVNode("div",{class:"separateLine"},null,-1)])),_:1,__:[12]}),z.sFilterData.length&&z.bShowSearch?(p.openBlock(),p.createBlock(ae,{key:0,span:3,style:{display:"flex","flex-direction":"column","justify-content":"center","margin-top":"0px"}},{default:p.withCtx(()=>[p.createVNode(Me,{class:"ml-4"},{default:p.withCtx(()=>[p.createVNode(Qe,{size:"small",class:"btnClass",onClick:$[5]||($[5]=pe=>D())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("搜索","菜单")),1)]),_:1}),p.unref(y).length>p.unref(d)&&p.unref(w)?(p.openBlock(),p.createBlock(Qe,{key:0,size:"small",class:"iconBtn",icon:p.unref(jC),onClick:x},null,8,["icon"])):p.createCommentVNode("",!0),p.unref(y).length>p.unref(d)&&!p.unref(w)?(p.openBlock(),p.createBlock(Qe,{key:1,size:"small",class:"iconBtn",icon:p.unref(XC),onClick:x},null,8,["icon"])):p.createCommentVNode("",!0)]),_:1}),p.createVNode(Me,{class:"ml-4"},{default:p.withCtx(()=>[p.createVNode(Qe,{size:"small",class:"btnClass",onClick:E,style:{"margin-top":"10px"}},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("重置","菜单")),1)]),_:1})]),_:1})]),_:1})):p.createCommentVNode("",!0)]),_:1}),!p.unref(C)&&p.unref(_).length?(p.openBlock(),p.createElementBlock("div",O$,[p.createVNode(J,null,{default:p.withCtx(()=>[p.createVNode(p.unref(jC),{onClick:$[6]||($[6]=pe=>T(!0))})]),_:1})])):p.createCommentVNode("",!0)],512),p.createVNode(Ye,{width:"50%",modelValue:p.unref(l),"onUpdate:modelValue":$[11]||($[11]=pe=>p.isRef(l)?l.value=pe:l=pe),"z-index":1099},{footer:p.withCtx(()=>[p.createElementVNode("div",F$,[p.createVNode(Qe,{onClick:$[10]||($[10]=pe=>p.isRef(l)?l.value=!1:l=!1)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("取消","菜单")),1)]),_:1}),p.createVNode(Qe,{type:"primary",onClick:Y},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("确认","菜单")),1)]),_:1})])]),default:p.withCtx(()=>[p.createElementVNode("div",null,[p.createElementVNode("div",{title:p.unref(H).$ntt("重置","菜单")},[p.createVNode(Qe,{circle:"",icon:"Refresh",onClick:P}),p.createElementVNode("span",null," PS: "+p.toDisplayString(p.unref(H).$ntt("1.可点击“向上”/“向下”调整顺序","菜单")),1)],8,R$),$[13]||($[13]=p.createElementVNode("div",{style:{padding:"10px"}},null,-1)),p.createElementVNode("div",V$,[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("默认显示列数","菜单")),1),p.createVNode(Ie,{modelValue:p.unref(f).columnSpanNum,"onUpdate:modelValue":$[7]||($[7]=pe=>p.unref(f).columnSpanNum=pe),placeholder:"Select",style:{width:"240px","margin-left":"15px"}},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(v),pe=>(p.openBlock(),p.createBlock(he,{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),p.createElementVNode("span",B$,p.toDisplayString(p.unref(H).$ntt("默认显示行数","菜单")),1),p.createVNode(ue,{modelValue:p.unref(f).rowNum,"onUpdate:modelValue":$[8]||($[8]=pe=>p.unref(f).rowNum=pe),style:{width:"240px","margin-left":"15px"}},null,8,["modelValue"])]),$[14]||($[14]=p.createElementVNode("div",{style:{padding:"10px"}},null,-1)),p.createVNode(nt,{border:"",size:"small",height:"300","header-row-class-name":"tbHeader",data:p.unref(y)},{default:p.withCtx(()=>[p.createVNode(me,{label:p.unref(H).$ntt("序号","菜单"),width:"80"},{default:p.withCtx(pe=>[p.createElementVNode("span",null,p.toDisplayString(pe.$index+1),1)]),_:1},8,["label"]),p.createVNode(me,{label:p.unref(H).$ntt("列表项","菜单")},{default:p.withCtx(pe=>[p.createElementVNode("span",null,p.toDisplayString(pe.row.sCaption),1)]),_:1},8,["label"]),p.createVNode(me,{label:p.unref(H).$ntt("是否显示","菜单")},{default:p.withCtx(pe=>[p.createElementVNode("div",null,[p.createVNode(q,{modelValue:pe.row._checked,"onUpdate:modelValue":He=>pe.row._checked=He,size:"large",onChange:$[9]||($[9]=He=>G(p.unref(y)))},{open:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("显示","菜单")),1)]),close:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(me,{label:p.unref(H).$ntt("操作","菜单")},{default:p.withCtx(pe=>[p.createVNode(Qe,{size:"small",link:"",type:"primary",onClick:p.withModifiers(He=>V(pe.$index,1,p.unref(y)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),p.createVNode(Qe,{size:"small",link:"",type:"primary",onClick:p.withModifiers(He=>V(pe.$index,0,p.unref(y)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue"])])}}}),G$=Wn($$,[["__scopeId","data-v-1a7adfa0"]]);var PT={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 pd=0,Gm=null;function H$(){Gm=Z8.service({lock:!0,text:H.$ntt("加载中...","菜单"),spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.4)"})}function W$(){Gm&&Gm.close()}function U$(){pd===0&&H$(),pd++}function Hm(){pd--,pd<=0&&W$()}const Y$={response_error_del(t){const{response:e,code:r}=t,{status:n,statusText:a,data:i}=e||{};let o="错误信息",s="";if(!e&&!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=e.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,h){l.onload=d=>{var g;const v=(g=d.target)==null?void 0:g.result;f(JSON.parse(v))}});o=c.error_title?c.error_title:"服务器异常",s=c.error_detail,bl.notification(o,s)}();return}else Object.keys(i).length===4?(o=i.error_title?i.error_title:"服务器异常",s=i.error_detail):(o="服务器内部错误",s=i);bl.notification(o,s)}},dc=new Date;`${dc.getFullYear()}`,dc.getMonth()+1,`${dc.getDate()}${dc.getHours()}${dc.getMinutes()}`;let Wm=null;Wm=zt.create({baseURL:"",timeout:8e4,headers:{"Content-Type":"application/json",authorization:H.requestToken??"111",Cookie:H.request.Cookie??"111",sign:H.request.sign??"111"}}),Wm.interceptors.request.use(t=>(U$(),t),function(t){return Hm(),Promise.reject(t)}),Wm.interceptors.response.use(t=>{if(Hm(),t.data instanceof Blob){const e=t.headers["content-disposition"];e&&e.split("=").length>1&&decodeURIComponent(e.split("=")[1])}return t.data.status&&(t.data.status===400||t.data.status===401)?Promise.reject(t):t.data.code&&t.data.code!==1?(t.data.code===2003&&sessionStorage.removeItem("header"),Promise.reject(t)):t},t=>(Hm(),Y$.response_error_del(t),Promise.reject(t)));const Z$={key:0,class:"demo-pagination-block positionPage"},X$={name:"cmTableList"},j$=p.defineComponent({...X$,props:{sFilterData:{},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:()=>40},iSpan:{default:()=>4},ManualCurrentChange:{},ManualSizeChange:{},enableFilter:{type:Boolean,default:()=>!0}},emits:["sendGetUrl","getedData"],setup(t,{expose:e,emit:r}){let{proxy:n}=p.getCurrentInstance(),a=r;e({setDataList:m,setPageCount:y,getSelection:_,getDataList:d});let i=t,o=p.ref(1),s=p.ref(20),l=p.ref(0);u();function u(){o.value=i.iCurrentPage??1,s.value=i.iCurrentPageSize??20}function c(S){d(),i.ManualSizeChange&&i.ManualSizeChange(S)}function f(S){d(),i.ManualCurrentChange&&i.ManualCurrentChange(S)}p.onMounted(()=>{i.name+""+localStorage.getItem("lang")+H.sAppCode}),p.watch(()=>i.sDataUrl,(S,w)=>{i.bAutoGetData&&d(),console.log(i.iAnotherHeight,"iAnotherHeight")},{deep:!0,immediate:!0});let h=p.ref([]);function d(){if(!i.sDataUrl)return;let S=!0,w=v(x=>{S=x});if(i.beforeGetDataList&&(S=i.beforeGetDataList(i.sFilterData)),!!S){if(i.methodType==="GET")a("sendGetUrl",w),n.$api.getUrlData(w).then(x=>{g(x)});else if(i.methodType==="POST"){let C={queryParams:n.$utils.getFilterObj(i.sFilterData),page:o.value,size:s.value};console.log(n,"proxy",n.$api,"api"),n.$api.postUrlData(w,C).then(T=>{console.log(T,"res"),g(T)})}}}function v(S){if(i.methodType==="POST")return i.sDataUrl;if(i.getNowOtherDataUrl)return i.getNowOtherDataUrl(i.name,i.sFilterData,S);var w="";i.sPageData.length>0&&i.bShowPage&&(w+="&"+i.sPageData[0]+"="+o.value,w+="&"+i.sPageData[1]+"="+s.value);var x=!0;i.sFilterData&&(w+="&"+n.$utils.getCmSearchFilter(i.sFilterData,()=>{x=!1})),S&&S(x),i.sDataUrl.substring(i.sDataUrl.length-1,i.sDataUrl.length)==="/"&&(w=w.replace("&","?"));let C=i.sDataUrl+w,T=localStorage.getItem(i.name+"_csOrder");return T&&(C.indexOf("csOrderBy")!==-1?C=C.replace("csOrderBy=","csOrderBy="+T+","):C=C+"&csOrderBy="+T),C}function g(S){h.value=[],console.log(i.sPageData,"props.sPageData"),i.sPageData.length>0&&i.sPageData[3]&&i.sPageData[3]!==""?h.value=n.$utils.getManyLevelData(S.data,i.sPageData[3]):h.value=S.data,console.log(h.value,"sDataList"),y(S.data),a("getedData",h,S)}function m(S,w){h.value=S,w&&(o.value=w)}function y(S,w){if(console.log(S,"data",w),S.length&&!w){let C=n.sPageData[2];var x=n.$utils.getManyLevelData(S,C);l.value=x===""?0:parseInt(x)}else S.length&&w?l.value=w:l.value=0;console.log(l.value,"iPageDataCount")}function _(){return n.$refs.cmTableVxe.getSelection()}function b(){n.$refs.cmTableVxe.getTableHeight()}return(S,w)=>{const x=p.resolveComponent("cmSearch"),C=p.resolveComponent("cmTableVxe"),T=p.resolveComponent("el-pagination"),D=p.resolveComponent("el-config-provider");return p.openBlock(),p.createElementBlock("div",null,[p.createVNode(x,{sFilterData:S.sFilterData,onSearchClick:d,name:S.name,isShowSwitch:S.isShowSwitch,size:S.size,iSpan:S.iSpan,onSearchFold:b,searchType:"POST"},null,8,["sFilterData","name","isShowSwitch","size","iSpan"]),p.createVNode(C,{ref:"cmTableVxe",name:S.name,sDataList:p.unref(h),sMainKey:S.sMainKey,"item-list":S.itemList,"s-sum-data":S.sSumData,enableFilter:S.enableFilter,iAnotherHeight:S.iAnotherHeight,bShowCustomColumn:S.bShowCustomColumn,bShowCustomWidth:S.bShowCustomWidth,size:S.size,initRowHeight:S.initRowHeight},null,8,["name","sDataList","sMainKey","item-list","s-sum-data","enableFilter","iAnotherHeight","bShowCustomColumn","bShowCustomWidth","size","initRowHeight"]),S.sPageData.length&&S.bShowPage?(p.openBlock(),p.createElementBlock("div",Z$,[p.createVNode(D,{locale:p.unref(PT)},{default:p.withCtx(()=>[p.createVNode(T,{class:"paginations",background:"",style:{"--el-color-primary":"var(--btnBgColor)"},"current-page":p.unref(o),"onUpdate:currentPage":w[0]||(w[0]=E=>p.isRef(o)?o.value=E:o=E),"page-size":p.unref(s),"onUpdate:pageSize":w[1]||(w[1]=E=>p.isRef(s)?s.value=E:s=E),"page-sizes":[20,50,100,500,1e3,5e3,1e4],size:"small",layout:"total, sizes, prev, pager, next, jumper",total:p.unref(l),onSizeChange:c,onCurrentChange:f},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])):p.createCommentVNode("",!0)])}}}),K$=Wn(j$,[["__scopeId","data-v-330940f8"]]),q$={class:"imgShow"},J$={key:0,class:"img-box"},Q$=["src","imgurl","preview"],eG={key:1},tG={class:"img-box"},rG=["src","imgurl","preview"],OT=Wn(p.defineComponent({__name:"index",props:{sData:{type:Object,required:!0},sUrlKey:{type:String,required:!0}},setup(t){let{proxy:e}=p.getCurrentInstance(),r=t,n=p.computed(()=>H.noneBigImg),a=p.computed(()=>e.$utils.getManyLevelData(r.sData,r.sUrlKey));function i(o){return e.$utils.getImageSrc(o)}return(o,s)=>{const l=p.resolveComponent("el-carousel-item"),u=p.resolveComponent("el-carousel");return p.openBlock(),p.createElementBlock("div",q$,[!p.unref(a)||!p.unref(a).includes(",")?(p.openBlock(),p.createElementBlock("div",J$,[p.createElementVNode("img",{src:i(p.unref(a))||p.unref(n),imgurl:i(p.unref(a))||"none",style:{"max-height":"100%","max-width":"100%",cursor:"pointer"},preview:i(p.unref(a))||p.unref(n)},null,8,Q$)])):(p.openBlock(),p.createElementBlock("div",eG,[p.createVNode(u,{class:"img-box-carousel",interval:5e3,arrow:"always",autoplay:!1,style:{width:"100%"}},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(a).split(","),c=>(p.openBlock(),p.createBlock(l,{key:c,autoplay:!1},{default:p.withCtx(()=>[p.createElementVNode("div",tG,[p.createElementVNode("img",{src:i(c)||p.unref(n),imgurl:i(c)||"none",style:{"max-height":"100%","max-width":"100%",cursor:"pointer"},preview:i(c)||p.unref(n)},null,8,rG)])]),_:2},1024))),128))]),_:1})]))])}}}),[["__scopeId","data-v-b0acb6e7"]]);var nG=20,aG=1,$o=1e6,RT=1e6,iG=-7,oG=21,sG=!1,pc="[big.js] ",Go=pc+"Invalid ",vd=Go+"decimal places",lG=Go+"rounding mode",VT=pc+"Division by zero",yt={},ma=void 0,uG=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function BT(){function t(e){var r=this;if(!(r instanceof t))return e===ma?BT():new t(e);if(e instanceof t)r.s=e.s,r.e=e.e,r.c=e.c.slice();else{if(typeof e!="string"){if(t.strict===!0&&typeof e!="bigint")throw TypeError(Go+"value");e=e===0&&1/e<0?"-0":String(e)}cG(r,e)}r.constructor=t}return t.prototype=yt,t.DP=nG,t.RM=aG,t.NE=iG,t.PE=oG,t.strict=sG,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}function cG(t,e){var r,n,a;if(!uG.test(e))throw Error(Go+"number");for(t.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),a=e.length,n=0;n<a&&e.charAt(n)=="0";)++n;if(n==a)t.c=[t.e=0];else{for(;a>0&&e.charAt(--a)=="0";);for(t.e=r-n-1,t.c=[],r=0;n<=a;)t.c[r++]=+e.charAt(n++)}return t}function Ho(t,e,r,n){var a=t.c;if(r===ma&&(r=t.constructor.RM),r!==0&&r!==1&&r!==2&&r!==3)throw Error(lG);if(e<1)n=r===3&&(n||!!a[0])||e===0&&(r===1&&a[0]>=5||r===2&&(a[0]>5||a[0]===5&&(n||a[1]!==ma))),a.length=1,n?(t.e=t.e-e+1,a[0]=1):a[0]=t.e=0;else if(e<a.length){if(n=r===1&&a[e]>=5||r===2&&(a[e]>5||a[e]===5&&(n||a[e+1]!==ma||a[e-1]&1))||r===3&&(n||!!a[0]),a.length=e,n){for(;++a[--e]>9;)if(a[e]=0,e===0){++t.e,a.unshift(1);break}}for(e=a.length;!a[--e];)a.pop()}return t}function Wo(t,e,r){var n=t.e,a=t.c.join(""),i=a.length;if(e)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 t.s<0&&r?"-"+a:a}yt.abs=function(){var t=new this.constructor(this);return t.s=1,t},yt.cmp=function(t){var e,r=this,n=r.c,a=(t=new r.constructor(t)).c,i=r.s,o=t.s,s=r.e,l=t.e;if(!n[0]||!a[0])return n[0]?i:a[0]?-o:0;if(i!=o)return i;if(e=i<0,s!=l)return s>l^e?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]^e?1:-1;return s==l?0:s>l^e?1:-1},yt.div=function(t){var e=this,r=e.constructor,n=e.c,a=(t=new r(t)).c,i=e.s==t.s?1:-1,o=r.DP;if(o!==~~o||o<0||o>$o)throw Error(vd);if(!a[0])throw Error(VT);if(!n[0])return t.s=i,t.c=[t.e=0],t;var s,l,u,c,f,h=a.slice(),d=s=a.length,v=n.length,g=n.slice(0,s),m=g.length,y=t,_=y.c=[],b=0,S=o+(y.e=e.e-t.e)+1;for(y.s=i,i=S<0?0:S,h.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:h;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[d]||0:g=[n[d]]}while((d++<v||g[0]!==ma)&&i--);return!_[0]&&b!=1&&(_.shift(),y.e--,S--),b>S&&Ho(y,S,r.RM,g[0]!==ma),y},yt.eq=function(t){return this.cmp(t)===0},yt.gt=function(t){return this.cmp(t)>0},yt.gte=function(t){return this.cmp(t)>-1},yt.lt=function(t){return this.cmp(t)<0},yt.lte=function(t){return this.cmp(t)<1},yt.minus=yt.sub=function(t){var e,r,n,a,i=this,o=i.constructor,s=i.s,l=(t=new o(t)).s;if(s!=l)return t.s=-l,i.plus(t);var u=i.c.slice(),c=i.e,f=t.c,h=t.e;if(!u[0]||!f[0])return f[0]?t.s=-l:u[0]?t=new o(i):t.s=1,t;if(s=c-h){for((a=s<0)?(s=-s,n=u):(h=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,t.s=-t.s),(l=(r=f.length)-(e=u.length))>0)for(;l--;)u[e++]=0;for(l=e;r>s;){if(u[--r]<f[r]){for(e=r;e&&!u[--e];)u[e]=9;--u[e],u[r]+=10}u[r]-=f[r]}for(;u[--l]===0;)u.pop();for(;u[0]===0;)u.shift(),--h;return u[0]||(t.s=1,u=[h=0]),t.c=u,t.e=h,t},yt.mod=function(t){var e,r=this,n=r.constructor,a=r.s,i=(t=new n(t)).s;if(!t.c[0])throw Error(VT);return r.s=t.s=1,e=t.cmp(r)==1,r.s=a,t.s=i,e?new n(r):(a=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(t),n.DP=a,n.RM=i,this.minus(r.times(t)))},yt.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},yt.plus=yt.add=function(t){var e,r,n,a=this,i=a.constructor;if(t=new i(t),a.s!=t.s)return t.s=-t.s,a.minus(t);var o=a.e,s=a.c,l=t.e,u=t.c;if(!s[0]||!u[0])return u[0]||(s[0]?t=new i(a):t.s=a.s),t;if(s=s.slice(),e=o-l){for(e>0?(l=o,n=u):(e=-e,n=s),n.reverse();e--;)n.push(0);n.reverse()}for(s.length-u.length<0&&(n=u,u=s,s=n),e=u.length,r=0;e;s[e]%=10)r=(s[--e]=s[e]+u[e]+r)/10|0;for(r&&(s.unshift(r),++l),e=s.length;s[--e]===0;)s.pop();return t.c=s,t.e=l,t},yt.pow=function(t){var e=this,r=new e.constructor("1"),n=r,a=t<0;if(t!==~~t||t<-RT||t>RT)throw Error(Go+"exponent");for(a&&(t=-t);t&1&&(n=n.times(e)),t>>=1,!!t;)e=e.times(e);return a?r.div(n):n},yt.prec=function(t,e){if(t!==~~t||t<1||t>$o)throw Error(Go+"precision");return Ho(new this.constructor(this),t,e)},yt.round=function(t,e){if(t===ma)t=0;else if(t!==~~t||t<-$o||t>$o)throw Error(vd);return Ho(new this.constructor(this),t+this.e+1,e)},yt.sqrt=function(){var t,e,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(pc+"No square root");i=Math.sqrt(+Wo(n,!0,!0)),i===0||i===1/0?(e=n.c.join(""),e.length+o&1||(e+="0"),i=Math.sqrt(e),o=((o+1)/2|0)-(o<0||o&1),t=new a((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+o)):t=new a(i+""),o=t.e+(a.DP+=4);do r=t,t=s.times(r.plus(n.div(r)));while(r.c.slice(0,o).join("")!==t.c.slice(0,o).join(""));return Ho(t,(a.DP-=4)+t.e+1,a.RM)},yt.times=yt.mul=function(t){var e,r=this,n=r.constructor,a=r.c,i=(t=new n(t)).c,o=a.length,s=i.length,l=r.e,u=t.e;if(t.s=r.s==t.s?1:-1,!a[0]||!i[0])return t.c=[t.e=0],t;for(t.e=l+u,o<s&&(e=a,a=i,i=e,u=o,o=s,s=u),e=new Array(u=o+s);u--;)e[u]=0;for(l=s;l--;){for(s=0,u=o+l;u>l;)s=e[u]+i[l]*a[u-l-1]+s,e[u--]=s%10,s=s/10|0;e[u]=s}for(s?++t.e:e.shift(),l=e.length;!e[--l];)e.pop();return t.c=e,t},yt.toExponential=function(t,e){var r=this,n=r.c[0];if(t!==ma){if(t!==~~t||t<0||t>$o)throw Error(vd);for(r=Ho(new r.constructor(r),++t,e);r.c.length<t;)r.c.push(0)}return Wo(r,!0,!!n)},yt.toFixed=function(t,e){var r=this,n=r.c[0];if(t!==ma){if(t!==~~t||t<0||t>$o)throw Error(vd);for(r=Ho(new r.constructor(r),t+r.e+1,e),t=t+r.e+1;r.c.length<t;)r.c.push(0)}return Wo(r,!1,!!n)},yt[Symbol.for("nodejs.util.inspect.custom")]=yt.toJSON=yt.toString=function(){var t=this,e=t.constructor;return Wo(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])},yt.toNumber=function(){var t=+Wo(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(t.toString()))throw Error(pc+"Imprecise conversion");return t},yt.toPrecision=function(t,e){var r=this,n=r.constructor,a=r.c[0];if(t!==ma){if(t!==~~t||t<1||t>$o)throw Error(Go+"precision");for(r=Ho(new n(r),t,e);r.c.length<t;)r.c.push(0)}return Wo(r,t<=r.e||r.e<=n.NE||r.e>=n.PE,!!a)},yt.valueOf=function(){var t=this,e=t.constructor;if(e.strict===!0)throw Error(pc+"valueOf disallowed");return Wo(t,t.e<=e.NE||t.e>=e.PE,!0)};var fG=BT();const hG=()=>{let t=window.navigator.userAgent;if(t.indexOf("MSIE")>=0)return"ie";if(t.indexOf("Firefox")>=0)return"Firefox";if(t.indexOf("Chrome")>=0)return"Chrome";if(t.indexOf("Opera")>=0)return"Opera";if(t.indexOf("Safari")>=0)return"Safari"},dG=(t,e)=>{hG()=="ie"||pG(t,e)},pG=function(){const t="data:application/vnd.ms-excel;base64,",e='<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=t+r(n(e,{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)}}}(),vG=(t,e,r)=>{const n={image:c,text:s,date:l,number:u};let a=t.reduce((f,h)=>(f+=`<th>${h.title}</th>`,f),"");a=`<thead><tr>${a}</tr></thead>`;let i=e.reduce((f,h)=>{const d=t.reduce((v,g)=>(v+=n[g.type||"text"](h[g.key],g),v),"");return f+=`<tr>${d}</tr>`,f},"");i=`<tbody>${i}</tbody>`;const o=a+i;dG(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 h=String(f).indexOf(".")+1,d=String(f).length-h;if(h===0)return`<td style="text-align: center;vnd.ms-excel.numberformat:#,##0">${f}</td>`;{let v="",g=0;for(;g<d;)v+="0",g++;return`<td style="text-align: center;vnd.ms-excel.numberformat:#,##0.${v}">${f}</td>`}}function c(f,h){if(!f)return'<td style="text-align: center"></td>';let d=gG(f);return h=Object.assign({width:70,height:70},h),`<td style="width: ${h.width}px; height: ${h.height}px; text-align: center; vertical-align: middle"><img src="${d}" width=${h.width} height=${h.height}></td>`}};function gG(t){if(!t)return t;let e=window.location.origin;return t.indexOf("https")!==-1?t:t.indexOf("http")!==-1?`${e}/hf_pub_api/loadFile?url=${t}`:`${e}/hf_pub_api`+t}const mG={class:"vxeTableClass"},yG={style:{position:"absolute","z-index":"9",right:"5px",top:"-20px",opacity:"0.8"}},_G={class:"el-dropdown-link"},bG=["title"],SG=["title"],wG={style:{margin:"0 5px"}},xG={slot:"open"},CG={slot:"close"},TG={class:"dialog-footer"},DG={style:{display:"flex"}},EG={style:{width:"24%"}},MG={class:"dialog-footer"},AG={key:0},IG={slot:"open"},kG={slot:"close"},LG={class:"dialog-footer"},NG={name:"cmTableVxe"},PG=p.defineComponent({...NG,props:{name:{},sMainKey:{},sDataList:{},itemList:{},sSumData:{},iAnotherHeight:{},cellStyle:{},rowClassName:{},sAnotherOP:{},exportType:{default:()=>"1"},initRowHeight:{default:()=>40},bShowCustomColumn:{type:Boolean,default:()=>!0},bShowCustomWidth:{type:Boolean,default:()=>!0},align:{default:()=>"center"},enableFilter:{type:Boolean,default:()=>!0}},emits:["selectChange","refreshData"],setup(t,{expose:e,emit:r}){let{proxy:n}=p.getCurrentInstance(),a=r;e({getSelection:me,setDataList:nt,getTableHeight:P});let i=t,o=p.ref([]),s=p.ref([]),l=p.ref(!1),u="",c=[],f=p.ref([]),h=[],d=p.ref(40),v={},g=p.ref([]),m={},y=p.ref(400),_=p.ref(!1),b=p.ref([]),S=p.ref(!1),w=p.ref([]),x=p.ref(!1),C=p.ref(),T=p.ref([]),D=p.ref(0),E=p.ref([]),A=p.ref(""),I=p.ref(!1),k=p.ref(""),L=p.ref(!1);p.watch(()=>i.initRowHeight,(Q,te)=>{Q&&(d.value=i.initRowHeight)},{deep:!0,immediate:!0}),p.watch(()=>i.sDataList,(Q,te)=>{l.value=!0,setTimeout(()=>{o.value=Q,l.value=!1},10),s=n.$utils.deepCopy(Q),pe(),J()},{immediate:!0}),p.watch(()=>i.itemList,(Q,te)=>{B();let re=n.$utils.deepCopy(Q);V(re)},{immediate:!0});let N=p.ref(null);p.onMounted(()=>{P()});function P(){p.nextTick(()=>{y.value=n.$utils.getTbHeight(N.value)+(i.iAnotherHeight??0)})}function B(){var te;let Q=((te=localStorage.getItem("lang"))==null?void 0:te.replace(/"/g,""))??"";u=i.name+"_"+Q+"_"+H.sAppCode}function V(Q){f.value=[],c=[];for(let te=0;te<Q.length;te++){let re=Q[te];(re.bHide===void 0||re.bHide===null)&&(re.bHide=!0),(re.sortable===void 0||re.sortable===null)&&(re.sortable=!0),re.sKey||(re.sKey=n.$utils.generateUUID()),re._checked=!0,re.type==="selection"&&(re.type="checkbox",re.width=70),re.sType==="sSerialNo"&&(re.type="seq",re.sKey="serialNo_"+n.name,re.width=100),G(re),c.push(re)}h=n.$utils.deepCopy(c),Y()}function G(Q){if(Q.render)return Q;switch(Q.sType){case"date":case"dateTime":Q.sValueFormat=(te,re)=>{let be=n.$utils.getManyLevelData(te,Q.sKey);return n.$utils.getFormatDateStr(be,Q.sType)};break;case"dateTimeSecond":Q.sValueFormat=(te,re)=>{let be=n.$utils.getManyLevelData(te,Q.sKey);return n.$utils.getFormatDateStr(be,Q.sType)};break;case"sPicture":d.value=70,Q.render=(te,re)=>te(OT,{sData:re.row,sUrlKey:Q.sKey});break;case"number":Q.render=(te,re)=>{let be=n.$utils.getManyLevelData(re.row,Q.sKey);return be=n.$utils.formatNumberRgx(be),te("div",{style:{textAlign:"right"}},be)};break}Q.sValueFormat&&(Q.render=(te,re)=>{let be="";return Q.sType==="number"&&(be="right"),te("div",{style:{textAlign:be}},Q.sValueFormat(re.row,re.index))})}function Y(){z()}function z(){return v=null,$(),""}function $(){if(v&&Object.keys(v).length)for(let Q=0;Q<c.length;Q++){let te=c[Q],re=te.title;if(v[re]){let be=v[re];be.width&&(te.width=be.width),be.iOrder&&(te.iOrder=be.iOrder),be.fixed&&(be.fixed==="0"?delete te.fixed:te.fixed=be.fixed),be.sOrderType&&(te.sOrderType=be.sOrderType??"0"),(be._checked===!1||be._checked===!0)&&(te._checked=be._checked)}}else c=n.$utils.deepCopy(h);q()}function q(){let Q=n.$utils.deepCopy(c);n.$utils.sortData(Q,"iOrder"),Q&&(c=n.$utils.deepCopy(Q)),g.value=[];for(let te=0;te<c.length;te++){let re=c[te];if(re.sOrderType){let be={field:re.sKey,order:re.sOrderType};g.value.push(be),G(re)}}f.value=n.$utils.deepCopy(c),f.value.forEach(te=>{m[`${te.sKey}`]||(m[`${te.sKey}`]=[])}),J()}function J(){if(!o.value.length)return"";for(let Q in m)for(let te=0;te<o.value.length;te++){let re=o.value[te],be={label:n.$utils.getManyLevelData(re,Q),value:n.$utils.getManyLevelData(re,Q),checked:!1};m[Q].push(be)}for(let Q in m)m[Q]=ae(m[Q],"value")}function ae(Q,te){let re={},be=[];for(let pt=0;pt<Q.length;pt++){let Lt=Q[pt];re[Lt[te]]||(re[Lt[te]]=be.push(Lt))}return be}function Oe({value:Q,row:te},re){return n.$utils.getManyLevelData(te,[re.sKey])===Q}function Qe({columns:Q,data:te}){let re=i.sSumData.sSumColumn,be=Object.keys(re);return[Q.map((Lt,sr)=>sr===0?"合计":be.includes(Lt.field)?Me(te,Lt.field):null)]}function Me(Q,te){let re="";return Q.forEach(be=>{re=new fG(Number(re)).plus(Number(n.$utils.getManyLevelData(be,te)?n.$utils.getManyLevelData(be,te):0)).toString()}),re}function he(Q){let te=Q.column;v||(v={});let re=n.$utils.getKeyByLang(te.title);re||(re="noTitle");let be=v[re];be||(be={}),be.width=te.resizeWidth,v[re]=be,_.value=!0,$()}function Ie({row:Q,rowIndex:te}){if(i.rowClassName)return i.rowClassName(Q,te)}function ue({checked:Q,row:te,rowIndex:re}){let be=n.$utils.deepCopy(n.$refs[i.name+"_ref"].getCheckboxRecords());b.value=be,a("selectChange",be,Q,te,re)}function me(){return n.$refs[i.name+"_ref"].getCheckboxRecords()}function nt(Q){o.value=Q}function Ye({sortList:Q}){let te=[],re=[],be=n.$utils.deepCopy(o.value);if(Q.length)for(let Lt=0;Lt<Q.length;Lt++){let sr=Q[Lt];sr.order==="asc"?(re.push(sr.field),te.push("1")):sr.order==="desc"&&(re.push(sr.field),te.push("0"))}else be=n.$utils.deepCopy(s);let pt=n.$utils.deepCopy(n.$utils.arrayObjectSort(be,re,te));o.value=pt}function pe(){let Q=n.$utils.deepCopy(m);for(let te in Q)Q[te]=[];m=Q}function He(){S.value=!0,w.value=n.$utils.deepCopy(f.value)}function xt(){let Q=Object.keys(v).length?JSON.stringify(v):JSON.stringify(JSON.parse(v));n.$api.postUrlData(H.customUrl+"/?name="+u+"&type=table",{data:Q}).then(()=>{n.$utils.setLocalOrderBy(u,v),a("refreshData"),localStorage.setItem(`${u}_table`,JSON.stringify(v)),$(),n.$message.success("操作成功"),_.value=!1,S.value=!1})}function ar(){A.value=i.exportType;let Q=n.$utils.deepCopy(f.value);Ut(Q),ce(),I.value=!0}function Ut(Q){let te=Q.filter(be=>be.type!=="checkbox"&&be.sKey!=="action"),re=[];for(let be=0;be<te.length;be++)te[be]._bChecked=!0,re.push(te[be]);E.value=re}function en(){Mo(),I.value=!1}function Hr(){I.value=!1,A.value="1"}function Mo(){const Q=i.itemList;let te=n.$utils.deepCopy(o.value);for(let re=0;re<Q.length;re++){let be=Q[re];if(be.sType=="date"){let pt=be.sKey;for(let Lt=0;Lt<te.length;Lt++){let sr=te[Lt];sr[pt]&&(sr[pt]=n.$utils.formatDate(sr[pt]))}}}Ua(te)}function Ua(Q){if(!Q)return;let te=k.value?k.value:i.name;if(!E.value.length){let jt=n.$utils.deepCopy(f.value);Ut(jt)}let re=p.markRaw(E.value),be=[];for(let jt=0;jt<re.length;jt++)re[jt]._bChecked&&be.push(re[jt]);let pt=be;var Lt=[];for(let jt=0;jt<pt.length;jt++){let lr=pt[jt];if(!lr.sChild&&lr.sKey){let Za=lr.sType==="sPicture"?"image":lr.sType==="number"?"number":lr.sType==="date"?"date":"text",ha={title:lr.title,key:lr.sKey,type:Za};lr.imgWidth&&(ha.width=lr.imgWidth),lr.imgHeight&&(ha.height=lr.imgHeight),Lt.push(ha);continue}}var sr=[];for(let jt=0;jt<Q.length;jt++){let lr=Q[jt],Za={};for(let ha=0;ha<pt.length;ha++){let yr=pt[ha];if(!yr.sChild){let ki=yr.sKey;if(ki==="serialNo_"+i.name){Za[ki]=jt+1;continue}if(yr.sValueFormat){Za[ki]=yr.sValueFormat(lr,jt);continue}Za[ki]=n.$utils.getManyLevelData(lr,yr.sKey)}}sr.push(Za)}vG(Lt,sr,te),A.value="1"}function ce(){L.value=!0}function dt(){E.value.forEach(Q=>{L.value?Q._bChecked=!0:Q._bChecked=!1})}function Ya(){let Q=!0;for(let te=0;te<E.value.length;te++)E.value[te]._bChecked||(Q=!1);L.value=Q}function Ii(){v||(v={});for(var Q=w.value,te=0;te<Q.length;te++){var re=Q[te];let be=n.$utils.getKeyByLang(re.title),pt=v[be];if(pt){let Lt=pt.width;pt=re,pt.width=Lt}else pt=re;pt.iOrder=te+1,v[be]=pt}xt()}function Xu(){n.$message.confirm(H.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{S.value=!1,v={},xt()}).catch(()=>{n.$message.show(H.$ntt("已取消操作","菜单"))})}function kh(Q){for(let te=0;te<Q.length;te++){let re=Q[te];re.iOrder=te+1}w.value[0]=Q[0]}function qg(Q,te,re){if(te===1){if(Q===0)return;let pt=re[Q-1];re[Q-1]=re[Q],re[Q]=pt,kh(re);return}if(Q===re.length-1)return;let be=re[Q+1];re[Q+1]=re[Q],re[Q]=be,kh(re)}function sx(Q,te){D.value=Q,T.value=te,C.value="",x.value=!0}function lx(){if(Number(C.value)<1||Number(C.value)>T.value.length)return n.$message.warning(`当前可输入范围为:1 ~ ${T.value.length}`),"";let Q=T.value[D.value];w.value.splice(D.value,1),w.value.splice(Number(C.value)-1,0,Q)}return(Q,te)=>{const re=p.resolveComponent("el-button"),be=p.resolveComponent("el-text"),pt=p.resolveComponent("el-dropdown-item"),Lt=p.resolveComponent("el-dropdown-menu"),sr=p.resolveComponent("el-dropdown"),jt=p.resolveComponent("el-badge"),lr=p.resolveComponent("btn-render"),Za=p.resolveComponent("vxe-column"),ha=p.resolveComponent("vxe-table"),yr=p.resolveComponent("el-table-column"),ki=p.resolveComponent("el-switch"),Xa=p.resolveComponent("el-radio"),Lh=p.resolveComponent("el-radio-group"),Jg=p.resolveComponent("el-table"),ju=p.resolveComponent("el-dialog"),ll=p.resolveComponent("el-input"),Ao=p.resolveComponent("el-checkbox");return p.openBlock(),p.createElementBlock("div",mG,[p.createElementVNode("div",{ref_key:"dvTbMainTable",ref:N,class:"data_list"},[p.createElementVNode("div",yG,[p.createVNode(sr,{placement:"bottom-start"},{dropdown:p.withCtx(()=>[p.createVNode(Lt,{slot:"dropdown"},{default:p.withCtx(()=>[p.createVNode(pt,{onClick:He},{default:p.withCtx(()=>[p.createVNode(be,{size:"small"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("自定义列展示","菜单")),1)]),_:1})]),_:1}),p.createVNode(pt,{onClick:ar},{default:p.withCtx(()=>[p.createVNode(be,{size:"small"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("当前页导出Excel","菜单")),1)]),_:1})]),_:1}),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(Q.sAnotherOP,(Se,ur)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:ur},[Se.bHide?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(pt,{key:0,onClick:Se.sClick},{default:p.withCtx(()=>[p.createVNode(be,{size:"small"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(Se.sCaption),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",_G,[Q.bShowCustomColumn?(p.openBlock(),p.createBlock(re,{key:0,icon:"Operation",circle:""})):p.createCommentVNode("",!0)])]),_:1})]),p.unref(_)&&Q.bShowCustomWidth?(p.openBlock(),p.createElementBlock("span",{key:0,style:{position:"absolute","z-index":"9",right:"45px",opacity:"0.8",top:"-12px"},title:p.unref(H).$ntt("保存列宽","菜单")},[p.createVNode(jt,null,{default:p.withCtx(()=>[p.createVNode(re,{icon:"Check",onClick:xt,circle:""})]),_:1})],8,bG)):p.createCommentVNode("",!0),p.createElementVNode("div",{style:p.normalizeStyle({height:`${p.unref(y)}px`})},[p.createVNode(ha,{ref:Q.name+"_ref",border:"",size:"mini",height:"100%","show-overflow":"","auto-resize":"",data:p.unref(o),"empty-text":p.unref(H).$ntt("暂无数据"),"column-config":{resizable:!0},loading:p.unref(l),"scroll-y":{enabled:!0},stripe:"",align:Q.align,"row-config":{useKey:!0,isHover:!0,keyField:"guid"},"cell-config":{height:p.unref(d)},onResizableChange:he,"cell-style":Q.cellStyle,"max-height":1e3,"show-footer":!!(Q.sSumData&&Q.sSumData.sSumColumn),"footer-method":Qe,"row-class-name":Ie,"checkbox-config":{checkField:"_checked",checkRowKeys:p.unref(b)},"sort-config":{defaultSort:p.unref(g),trigger:"cell",remote:!0},onSortChange:Ye,onCheckboxAll:ue,onCheckboxChange:ue},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(f),(Se,ur)=>(p.openBlock(),p.createBlock(Za,{key:Se.sKey+"_"+ur,type:Se.type,field:Se.sKey,title:Se.title,fixed:Se.fixed,width:Se.width,"min-width":Se.minWidth,sortable:Se.sortable,visible:Se._checked&&Se.bHide,filters:Q.enableFilter?p.unref(m)[Se.sKey]:null,"filter-method":Q.enableFilter?({value:O,row:R})=>Oe({value:O,row:R},Se):()=>!0},p.createSlots({_:2},[Se.render?{name:"default",fn:p.withCtx(({row:O,rowIndex:R,$rowIndex:U})=>[p.createVNode(lr,{render:Se.render,params:{row:O,index:U,col:Se,colIndex:ur}},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),p.createVNode(ju,{modelValue:p.unref(S),"onUpdate:modelValue":te[2]||(te[2]=Se=>p.isRef(S)?S.value=Se:S=Se),title:p.unref(H).$ntt("自定义列","菜单"),width:"60%"},{footer:p.withCtx(()=>[p.createElementVNode("div",TG,[p.createVNode(re,{onClick:te[1]||(te[1]=Se=>p.isRef(S)?S.value=!1:S=!1)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("取消","菜单")),1)]),_:1}),p.createVNode(re,{type:"primary",onClick:Ii},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("确认","菜单")),1)]),_:1})])]),default:p.withCtx(()=>[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"jc",style:{"margin-bottom":"5px"},title:p.unref(H).$ntt("重置","菜单")},[p.createVNode(re,{circle:"",icon:"Refresh",onClick:Xu}),p.createElementVNode("span",wG,p.toDisplayString(p.unref(H).$ntt("1.点击按钮即可重置","菜单")),1),p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("2.选中后可上下拖拽调整顺序","菜单")),1)],8,SG),p.createVNode(Jg,{border:"","header-row-class-name":"tbHeader",width:"100%",size:"small",data:p.unref(w)},{default:p.withCtx(()=>[p.createVNode(yr,{label:p.unref(H).$ntt("序号","菜单"),width:"60"},{default:p.withCtx(Se=>[p.createElementVNode("span",null,p.toDisplayString(Se.$index+1),1)]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("列表项","菜单"),"min-width":"120"},{default:p.withCtx(Se=>[p.createElementVNode("span",null,p.toDisplayString(Se.row.title),1)]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("是否显示","菜单"),width:"80"},{default:p.withCtx(Se=>[p.createElementVNode("div",null,[p.createVNode(ki,{modelValue:Se.row._checked,"onUpdate:modelValue":ur=>Se.row._checked=ur,onOnChange:te[0]||(te[0]=ur=>kh(p.unref(w)))},{default:p.withCtx(()=>[p.createElementVNode("span",xG,p.toDisplayString(p.unref(H).$ntt("显示","菜单")),1),p.createElementVNode("span",CG,p.toDisplayString(p.unref(H).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("以此列排序","菜单"),width:"180"},{default:p.withCtx(Se=>[p.createElementVNode("div",null,[p.createVNode(Lh,{modelValue:Se.row.sOrderType,"onUpdate:modelValue":ur=>Se.row.sOrderType=ur,size:"small"},{default:p.withCtx(()=>[p.createVNode(Xa,{value:"0"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("无","菜单")),1)]),_:1}),p.createVNode(Xa,{value:"asc"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("正序","菜单")),1)]),_:1}),p.createVNode(Xa,{value:"desc"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("倒序","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("是否固定","菜单"),width:"180"},{default:p.withCtx(Se=>[p.createElementVNode("div",null,[p.createVNode(Lh,{modelValue:Se.row.fixed,"onUpdate:modelValue":ur=>Se.row.fixed=ur,size:"small"},{default:p.withCtx(()=>[p.createVNode(Xa,{value:"0"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("否","菜单")),1)]),_:1}),p.createVNode(Xa,{value:"left"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("左侧","菜单")),1)]),_:1}),p.createVNode(Xa,{value:"right"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("右侧","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("操作","菜单"),width:"220"},{default:p.withCtx(Se=>[p.createVNode(re,{size:"small",link:"",type:"primary",onClick:p.withModifiers(ur=>qg(Se.$index,1,p.unref(w)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),p.createVNode(re,{size:"small",link:"",type:"primary",onClick:p.withModifiers(ur=>qg(Se.$index,0,p.unref(w)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"]),p.createVNode(re,{size:"small",link:"",type:"primary",onClick:p.withModifiers(ur=>sx(Se.$index,p.unref(w)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("自定义序列","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue","title"]),p.createVNode(ju,{modelValue:p.unref(x),"onUpdate:modelValue":te[5]||(te[5]=Se=>p.isRef(x)?x.value=Se:x=Se),title:p.unref(H).$ntt("调整序列","菜单"),width:"500",draggable:""},{footer:p.withCtx(()=>[p.createElementVNode("div",MG,[p.createVNode(re,{onClick:te[4]||(te[4]=Se=>p.isRef(x)?x.value=!1:x=!1)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("取消","菜单")),1)]),_:1}),p.createVNode(re,{type:"primary",onClick:lx},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("确认","菜单")),1)]),_:1})])]),default:p.withCtx(()=>[p.createElementVNode("div",DG,[p.createElementVNode("p",EG,p.toDisplayString(p.unref(H).$ntt("调整序列至:","菜单")),1),p.createVNode(ll,{size:"small",modelValue:p.unref(C),"onUpdate:modelValue":te[3]||(te[3]=Se=>p.isRef(C)?C.value=Se:C=Se)},null,8,["modelValue"])])]),_:1},8,["modelValue","title"]),p.createVNode(ju,{modelValue:p.unref(I),"onUpdate:modelValue":te[9]||(te[9]=Se=>p.isRef(I)?I.value=Se:I=Se),title:p.unref(H).$ntt("导出当前excel","菜单"),width:"500",draggable:""},{footer:p.withCtx(()=>[p.createElementVNode("div",LG,[p.createVNode(re,{onClick:Hr},{default:p.withCtx(()=>te[10]||(te[10]=[p.createTextVNode("Cancel")])),_:1,__:[10]}),p.createVNode(re,{type:"primary",onClick:en},{default:p.withCtx(()=>te[11]||(te[11]=[p.createTextVNode(" Confirm ")])),_:1,__:[11]})])]),default:p.withCtx(()=>[p.createElementVNode("div",null,[p.createVNode(Lh,{modelValue:p.unref(A),"onUpdate:modelValue":te[7]||(te[7]=Se=>p.isRef(A)?A.value=Se:A=Se)},{default:p.withCtx(()=>[p.createVNode(Xa,{value:"1"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("全部导出","菜单")),1)]),_:1}),p.createVNode(Xa,{value:"2"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("自定义导出","菜单")),1)]),_:1}),p.unref(A)==="2"?(p.openBlock(),p.createBlock(Ao,{key:0,modelValue:p.unref(L),"onUpdate:modelValue":te[6]||(te[6]=Se=>p.isRef(L)?L.value=Se:L=Se),onChange:dt},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("全选","菜单")),1)]),_:1},8,["modelValue"])):p.createCommentVNode("",!0)]),_:1},8,["modelValue"]),p.createVNode(ll,{type:"text",modelValue:p.unref(k),"onUpdate:modelValue":te[8]||(te[8]=Se=>p.isRef(k)?k.value=Se:k=Se),style:{"margin-top":"5px"},placeholder:p.unref(H).$ntt("请输入excel文件名")},null,8,["modelValue","placeholder"]),p.unref(A)==2?(p.openBlock(),p.createBlock(Jg,{key:0,style:{"margin-top":"5px"},border:"","header-row-class-name":"tbHeader",width:"70","max-height":"600",data:p.unref(E)},{default:p.withCtx(()=>[p.createVNode(yr,{label:p.unref(H).$ntt("序号","菜单")},{default:p.withCtx(Se=>[p.createElementVNode("span",null,p.toDisplayString(Se.$index+1),1)]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("列表项","菜单")},{default:p.withCtx(Se=>[Se.row.type!=="checkbox"?(p.openBlock(),p.createElementBlock("span",AG,p.toDisplayString(Se.row.title),1)):p.createCommentVNode("",!0)]),_:1},8,["label"]),p.createVNode(yr,{label:p.unref(H).$ntt("是否导出","菜单")},{default:p.withCtx(Se=>[p.createElementVNode("div",null,[p.createVNode(ki,{modelValue:Se.row._bChecked,"onUpdate:modelValue":ur=>Se.row._bChecked=ur,onChange:Ya},{default:p.withCtx(()=>[p.createElementVNode("span",IG,p.toDisplayString(p.unref(H).$ntt("导出","菜单")),1),p.createElementVNode("span",kG,p.toDisplayString(p.unref(H).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"])]),_:1},8,["data"])):p.createCommentVNode("",!0)])]),_:1},8,["modelValue","title"])])}}}),OG=Wn(PG,[["__scopeId","data-v-b0dc46da"]]),RG={class:"btnAll"},VG={key:0,style:{display:"flex","justify-content":"space-around","align-items":"center","margin-right":"10px"}},BG={key:1},FG={key:2},zG={key:1},$G={key:1},GG={key:3},HG={class:p.normalizeClass("titleClass")},WG={class:"el-dropdown-link"},UG=["title"],YG=["id"],ZG={key:0},XG={key:1},jG={key:0},KG={key:1},qG={key:2},JG={key:3},QG={key:4,style:{width:"50px",height:"50px",border:"1px dashed #dddddd",display:"flex",alignItems:"center",justifyContent:"center"}},eH=["onClick","src"],tH={key:5},rH={key:6},nH={key:7},aH={key:8,class:"showMore"},iH={style:{display:"flex","align-items":"center"},class:"actionBtn"},oH={key:0},sH={key:1},lH={key:2,style:{display:"flex","align-items":"center"}},uH={key:0,class:"pageDiv"},cH=["src"],fH={class:"customerColumn"},hH=["title"],dH={style:{margin:"0 5px"}},pH={slot:"open"},vH={slot:"close"},gH={class:"dialog-footer"},mH={style:{display:"flex"}},yH={style:{width:"24%"}},_H={class:"dialog-footer"},bH={name:"cmEditDtl"},SH=p.defineComponent({...bH,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:()=>[]},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:()=>["iPageIndex","iPageSize","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:()=>50},sAnotherOP:{}},emits:["onSelectionChange","refreshData","cellClick","toggleExpandChangeEvent","onIpFoucs","onIpBlur","onIpKeyDown","cmSelectRefresh","beforeEditItem","onDeleteBtnClick","onSaveSuccess","onGetedData","onSaveBtnClick","onAddDtlBtnClick","beforeEditAll","onCancelEdit","onDeleteAllBtnClick","onDeleteSuccess","onPageSizeChange","onPageIndexChange"],setup(t,{expose:e,emit:r}){let n=r;e({getDataList:Ao,setDataList:ju,getShowData:Za});let{proxy:a}=p.getCurrentInstance(),i=t,o=p.ref(""),s=p.ref(300),l=p.ref(300),u=[5,10,20,50,100,500,2e3,1e4],c=p.ref(1),f=p.ref(20),h=p.ref(0),d=p.ref([]),v=p.ref([]),g=p.ref([]),m=p.ref([]),y=p.ref([]),_=p.ref([]),b=p.ref(!1),S=p.ref({}),w=p.ref(!1),x=p.ref([]),C=p.ref(!1),T=p.ref(""),D=p.ref(0),E=p.ref([]),A=p.ref([]),I=p.ref(0),k=p.ref(0),L={checkMethod:({row:O})=>O.hasOwnProperty("bCanSelectCheckBox")?O.bCanSelectCheckBox:!0},N=p.ref(!1),P=p.ref(""),B=p.computed(()=>{let O=!1;for(let R=0;R<d.value.length;R++)if(d.value[R].bEditItem){O=!0;break}return O}),V=p.computed(()=>{let O=0;for(let R=0;R<d.value.length&&!(d.value[R].bEditItem&&(O+=1,O>=2));R++);return O>=2});p.watch(()=>i.name,(O,R)=>{G()},{immediate:!0,deep:!0}),p.watch(()=>i.sDefaultPageSize,(O,R)=>{u.includes(O)&&(f.value=O)},{immediate:!0}),p.watch(()=>i.sDataCaption,(O,R)=>{Ie(O)},{immediate:!0,deep:!0}),p.watch(()=>i.sDataUrl,(O,R)=>{},{immediate:!0,deep:!0}),p.watch(()=>v.value,(O,R)=>{},{immediate:!0,deep:!0});function G(){let R=(localStorage.getItem("lang")??"").replace(/"/g,"");o.value=i.name+"_"+R+"_"+H.sAppCode}let Y=p.ref(null);p.onMounted(()=>{let O=a.$utils.getTbHeight(Y.value);O=O<200?200:O,i.bMaxHeight?l.value=O+i.iAnotherHeight:l.value=300,s.value=l.value});function z(O){let R=[];for(let U in O){let ee=O[U],Te=$(U,ee);J(Te),R.push(Te)}new Promise((U,ee)=>{q(R).then(()=>{U(R)})}).then(U=>{y.value=U,_.value=a.$utils.deepCopy(U)})}function $(O,R){let U={sKey:O,sType:R.sType,sCaption:R.sCaption,sFixed:R.sFixed,fixed:R.sFixed,minWidth:R.minWidth,width:R.iWidth||R.width,iWidth:R.iWidth||R.width,bEdit:R.bEdit?R.bEdit:!1,disabled:R.disabled,bRequired:R.bRequired,render:R.render,hdrRender:R.hdrRender,sResKey:R.sResKey,sSelectApi:R.sSelectApi,sSelectItems:R.sSelectItems??[],sSelectKey:R.sSelectKey,sSelectLabel:R.sSelectLabel,sShowKey:R.sShowKey,clearable:R.clearable,bVirtualRender:!0,sOnChange:R.sOnChange,sValueFormat:R.sValueFormat,onCreate:R.onCreate,bAllowCreate:R.bAllowCreate,_checked:R._checked,bHide:!1,sortable:!0};return(R.bVirtualRender===!1||R.bVirtualRender===!0)&&(U.bVirtualRender=R.bVirtualRender),(R.bHide===!1||R.bHide===!0)&&(U.bHide=R.bHide),(R.sortable===!1||R.sortable===!0)&&(R.sortable=R.sortable),U}function q(O){const R=[];for(let U=0;U<O.length;U++){let ee=O[U];if(ee.sSelectApi){let Te=a.$api.getUrlData(ee.sSelectApi).then(Ze=>{ee.sSelectItems=Ze.data.result.content});R.push(Te)}else ee.sSelectItems=ee.sSelectItems??[]}return Promise.all(R)}function J(O){if(O.render)return O;switch(O.sType){case"date":case"dateTime":O.sValueFormat=(R,U)=>{let ee=a.$utils.getManyLevelData(R,O.sKey);return a.$utils.getFormatDateStr(ee,O.sType)};break;case"number":O.render=(R,U)=>{let ee=a.$utils.getManyLevelData(U.row,O.sKey);return ee=a.$utils.formatNumberRgx(ee),R("div",{style:{textAlign:"right"}},ee)};break}O.sValueFormat&&(O.render=(R,U)=>{var Te,Ze;let ee="";return O.sType==="number"&&(ee="right"),R("el-tooltip",{props:{content:`${H.$ntt(((Te=O.sValueFormat)==null?void 0:Te.call(O,U.row,U.index))??"")}`,placement:"top"}},[R("div",{class:"showMore",style:{textAlign:ee}},((Ze=O.sValueFormat)==null?void 0:Ze.call(O,U.row,U.index))??"")])})}function ae(O){d.value.forEach(R=>{R.bChecked=O.checked}),Qe()}function Oe(O){d.value[O.$rowIndex].bChecked=O.checked,Qe()}function Qe(){let O=Me();n("onSelectionChange",O)}function Me(){return a.$refs.cmEditDtl.getCheckboxRecords()}function he(O){const{columns:R,data:U}=O,ee=[];return R.forEach((Te,Ze)=>{if(Ze===0)ee[Ze]=H.$ntt("合计","菜单");else{const Ge=U.map(mt=>Number(a.$utils.getManyLevelData(mt,Te.property)));if(Ge.every(mt=>isNaN(mt)))ee[Ze]="";else{let mt=!0;if(Object.keys(i.sumColumn).length&&(i.sumColumn[Te.property]?mt=!0:mt=!1),!mt){ee[Ze]="";return}let Bt=i.sumColumn[Te.property];ee[Ze]=Ge.reduce((Kt,ja)=>{const ul=Number(ja);return isNaN(ul)?Kt:Kt+ja},0),Bt.iFixedCount?(ee[Ze]=parseFloat(ee[Ze].toFixed(Bt.iFixedCount)),ee[Ze]=ee[Ze].toLocaleString(void 0,{minimumFractionDigits:Bt.iFixedCount})):ee[Ze]=ee[Ze].toLocaleString()}}}),[ee]}function Ie(O){for(let R in O)O[R]._checked=!0;z(O)}function ue(O){let R=a.$utils.deepCopy(O);a.$utils.sortData(R,"iOrder"),R&&(O=a.$utils.deepCopy(R)),A.value=[];for(let ee=0;ee<O.length;ee++){let Te=O[ee];if(Te.sOrderType){let Ze={field:Te.sKey,order:Te.sOrderType};A.value.push(Ze),J(Te)}}let U={};O.forEach(ee=>{U[ee.sKey]||(U[ee.sKey]=ee)}),z(U)}function me(){}function nt(O,R){O||(O=i.sDataCaption);let U=[];if(S.value&&Object.keys(S.value).length)for(let ee in O){let Te=O[ee];Te.sKey=ee,Te._checked=!0;let Ze=Te.sCaption;if(S.value[Ze]){let Ge=S.value[Ze];Ge.iWidth=Te.iWidth,Ge.iOrder&&(Te.iOrder=Ge.iOrder),Ge.fixed&&(Ge.fixed==="0"?delete Te.sFixed:Te.sFixed=Ge.fixed),Ge.sOrderType&&(Te.sOrderType=Ge.sOrderType),(Ge._checked===!1||Ge._checked===!0)&&(Te._checked=Ge._checked)}U.push(Te)}else{let ee={};for(let Te in O){let Ze=O[Te];Ze.sKey=Te,Ze._checked=!0,U.push(Ze),ee[Ze.sCaption]=Ze}S.value=ee}ue(U)}function Ye(){w.value=!0,x.value=a.$utils.deepCopy(_.value)}function pe(){a.$utils.sureDelete(H.$ntt("此操作将恢复初始状态,是否确定?","菜单")).then(()=>{w.value=!1,S.value={}})}function He(O,R,U){if(R===1){if(O===0)return;let Te=U[O-1];U[O-1]=U[O],U[O]=Te,en(U);return}if(O===U.length-1)return;let ee=U[O+1];U[O+1]=U[O],U[O]=ee,en(U)}function xt(O,R){D.value=O,E.value=R,T.value="",C.value=!0}function ar(){if(Number(T.value)<1||T.value>E.value.length)return a.$message.warning(`当前可输入范围为:1 ~ ${E.value.length}`),"";let O=E.value[D.value];x.value.splice(D.value,1),x.value.splice(Number(T.value)-1,0,O)}function Ut(){S.value||(S.value={});for(var O=x.value,R=0;R<O.length;R++){var U=O[R];let ee=a.$utils.getKeyByLang(U.sCaption),Te=S.value[ee];if(Te){let Ze=Te.iWidth;Te=U,Te.width=Ze}else Te=U;Te.iOrder=R+1,S.value[ee]=Te}}function en(O){for(let R=0;R<O.length;R++){let U=O[R];U.iOrder=R+1}x.value=O}function Hr(O){console.log(O);try{let R=null,U=O.$event.clipboardData||window.Clipboard;U||(U=O.originalEvent.clipboardData),console.log(U,"clipboardData"),R=U.getData("Text"),console.log(R,"复制过来的内容"),R&&!R.includes(`\r
18
+ `)&&(R=R+`\r
19
+ `);let ee=R.split(`\r
20
+ `),Te=[];for(let Ge=0;Ge<ee.length;Ge++){let mt=[],Bt=ee[Ge].split(" ");for(let Kt=0;Kt<Bt.length;Kt++)Bt[Kt]&&mt.push(Bt[Kt]);mt.length&&Te.push(mt)}if(console.log(Te,"rows"),Te.length===1&&Te[0].length===1)return"";O.preventDefault(),O.stopPropagation();let Ze=[];_.value.forEach(Ge=>{if(Ge._checked&&!Ge.bHide){let mt={key:Ge.sKey,value:void 0},Bt=Ge.sKey;Ge.sType==="text"&&Ge.bEdit&&!Ge.disabled&&(Bt=`${Ge.sKey}_bCanEidt_`,mt.key=Bt),Ze.push(mt)}});for(let Ge=0;Ge<Te.length&&!(I.value+Ge>d.value.length-1);Ge++){let mt={};if(mt=JSON.parse(JSON.stringify(d.value[I.value+Ge])),!mt.bEditItem)continue;let Bt=0,Kt=1;i.bShowChecked&&(Kt=2);for(let ja=0;ja<Ze.length;ja++){let ul=Ze[ja].key;if(!Te[Ge][Bt]){Bt=Bt+1;continue}let ux=new RegExp("_bCanEidt_"),cx=ul.replace(ux,"");k.value<=Kt&&(ul.indexOf("_bCanEidt_")!=-1&&(mt[cx]=Te[Ge][Bt]),Bt=Bt+1),Kt=Kt+1}d.value[I.value+Ge]=mt}}catch{a.$message.error("请选择粘贴位置")}}function Mo(O){I.value=O.$rowIndex,k.value=O.$columnIndex,n("cellClick",O)}function Ua({row:O,expanded:R}){n("toggleExpandChangeEvent",O,R)}function ce({sortList:O}){let R=!0;if(R=dt(),!R)return a.$message.error(H.$ntt("请先保存数据")),a.$refs.cmEditDtl.clearSort(),"";let U=[],ee=[],Te=a.$utils.deepCopy(d.value);if(O.length)for(let Ze=0;Ze<O.length;Ze++){let Ge=O[Ze];Ge.order==="asc"?(ee.push(Ge.field),U.push("1")):Ge.order==="desc"&&(ee.push(Ge.field),U.push("0"))}else Te=a.$utils.deepCopy(g.value);ju(a.$utils.arrayObjectSort(Te,ee,U))}function dt(){for(let O=0;O<d.value.length;O++)if(d.value[O].bEditItem)return!1;return!0}function Ya({$rowIndex:O,column:R,columnIndex:U,$columnIndex:ee,$event:Te}){for(let mt=0;mt<_.value.length;mt++)if(a.$utils.getManyLevelData(_.value[mt],"sKey")===a.$utils.getManyLevelData(R,"property")){_.value[mt].iWidth=R.renderWidth;break}b.value=!0;let Ze={},Ge=a.$utils.deepCopy(_.value);for(let mt=0;mt<Ge.length;mt++){let Bt=Ge[mt],Kt=Bt.sKey;Ze[Kt]=Bt}nt(Ze)}function Ii(O,R,U,ee){O.sOnChange&&O.sOnChange(R,U,O,ee),(O.sType==="text"||O.sType==="number")&&i.sumColumn&&p.nextTick(()=>{a.$refs.cmEditDtl.updateFooter()})}function Xu(O,R,U,ee){n("onIpFoucs",O,R,U,ee)}function kh(O,R,U,ee){n("onIpBlur",O,R,U,ee)}function qg(O){n("onIpKeyDown",O.$event)}function sx(O){return typeof O=="string"&&O.includes("-")?"yyyy-MM-dd":"timestamp"}function lx(O){O&&(O=a.$utils.getImageSrc(O),P.value=O,N.value=!0)}function Q(O,R){n("cmSelectRefresh",O,R)}function te(O,R,U){if(R.sValueFormat)return R.sValueFormat(O);let ee=a.$utils.getManyLevelData(O,R.sShowKey?R.sShowKey:U);return ee&&R.sType==="text"?ee.toString():ee&&R.sType==="number"?a.$utils.formatNumberRgx(ee):ee&&R.sType==="date"?a.$utils.getFormatDateStr(ee,"date"):ee&&R.sType==="dateTime"?a.$utils.getFormatDateStr(ee,"dateTime"):ee}function re(O,R){O.bCannotEdit||(n("beforeEditItem",O),O.bEditItem=!0,ll())}function be(O,R){if(O.bCannotDelete)return;if(!O[i.sMainKey]){a.$message.error(H.$ntt("sMainKey错误","菜单"));return}let U=i.bDeleteModel?H.$ntt("此操作将删除, 是否继续?","菜单"):H.$ntt("此操作将取消启用, 是否继续?","菜单");a.$utils.sureDelete(U).then(()=>{n("onDeleteBtnClick",[O]),!(i.beforeDeleteData&&!i.beforeDeleteData([O]))&&i.sDataUrl&&a.$api.deleteUrlData(i.sDataUrl,{guids:[O[i.sMainKey]]}).then(ee=>{a.$message.success(H.$ntt("操作成功","菜单")),i.bDeleteModel?d.value.splice(R,1):Ao(!0),n("onSaveSuccess")})})}function pt(O,R){let U=O;if(i.beforeCopyItem&&(U=i.beforeCopyItem(O,R)),!U)return"";let ee=a.$utils.deepCopy(U);delete ee[i.sMainKey],delete ee._X_ROW_KEY,ee.bEditItem=!0,ee.bNowAdd=!0,i.copyPushIndex?d.value.splice(i.copyPushIndex(R),0,ee):d.value.push(ee)}function Lt(O,R){sr([O])}function sr(O){if(i.hdrData&&i.hdrData.bNotSave){a.$message.error(H.$ntt("请先保存表头","菜单"));return}if(!(!O||O.length===0)){for(let R=0;R<O.length;R++){let U=O[R];for(let ee in i.sDataCaption){let Te=i.sDataCaption[ee];if(Te.sType==="date"&&(U[ee]=a.$utils.getStringDate(U[ee])),!!Te.bRequired&&(!U[ee]&&U[ee]!==0||U[ee].length===0)){a.$message.error(a.$utils.joinStr(H.$ntt("[1]是必须的","菜单"),Te.sCaption));return}}}n("onSaveBtnClick",O),!(i.beforeSaveData&&!i.beforeSaveData(O))&&i.sDataSaveUrl&&a.$api.putUrlData(i.sDataSaveUrl,O).then(R=>{a.$message.success(H.$ntt("保存成功","菜单")),Ao(),n("onSaveSuccess",R)})}}function jt(O,R){O.bNowAdd?d.value.splice(R,1):d.value[R]=a.$utils.deepCopy(m.value[O.sourceIndex]),ll()}function lr(O){if(i.iAddType===1){let R={};if(i.sAnotherAddKey)for(let U in i.sAnotherAddKey)R[U]=i.sAnotherAddKey[U];if(R.guid=a.$utils.generateUUID(),R.bNowAdd=!0,R.bEditItem=!0,i.beforeAddItem&&!i.beforeAddItem(R))return;d.value.unshift(R),n("onAddDtlBtnClick",O);return}n("onAddDtlBtnClick")}function Za(){return d.value}function ha(){n("beforeEditAll");for(let O=0;O<d.value.length;O++){let R=d.value[O];R.bCannotEdit||(R.bEditItem=!0)}ll()}function yr(){let O=d.value.length-1;for(let R=O;R>=0;R--){let U=d.value[R];U.bEditItem&&(!U[i.sMainKey]||U.bNowAdd?d.value.splice(R,1):(d.value[R]=a.$utils.deepCopy(m.value[U.sourceIndex]),ll()))}n("onCancelEdit",d.value)}function ki(){let O=[],R=a.$utils.deepCopy(d.value);for(let U=0;U<R.length;U++)R[U].bEditItem&&O.push(R[U]);sr(O)}function Xa(){if(!Me().length)return a.$message.error(H.$ntt("请先选择数据","菜单")),"";a.$utils.sureDelete().then(()=>{let R=[];for(let ee=0;ee<d.value.length;ee++){let Te=d.value[ee];if(Te.bChecked){if(Te.bNowAdd){d.value.splice(ee,1),ee--;continue}R.push(Te)}}if(R.length===0)return;if(i.beforeDeleteData&&!i.beforeDeleteData(R)){n("onDeleteAllBtnClick",R);return}if(!i.sDataDeleteUrl)return;let U=R.reduce((ee,Te)=>(ee.push(Te[i.sMainKey]),ee),[]);a.$api.deleteUrlData(i.sDataDeleteUrl,{guids:U}).then(()=>{a.$message.success(H.$ntt("操作成功","菜单")),Ao(!0),n("onDeleteSuccess")})})}function Lh(O){f.value=O,n("onPageSizeChange",f.value,c.value),Ao(!0)}function Jg(O){c.value=O,n("onPageIndexChange",f.value,c.value),Ao(!0)}function ju(O){let R=[];O.forEach((U,ee)=>{U.bNowAdd||(U.sourceIndex=ee,U.bEditItem=U.bEditItem?U.bEditItem:!1,R.push(JSON.parse(JSON.stringify(U))))}),R.forEach(U=>{U.bEditItem=!1}),d.value=a.$utils.deepCopy(O),v.value=a.$utils.deepCopy(O),m.value=a.$utils.deepCopy(R)}function ll(){let O=[];for(let R=0;R<d.value.length;R++)O.push(d.value[R]);d.value=O}function Ao(O){if(d.value=[],g.value=[],v.value=[],m.value=[],!i.sDataUrl)return"";if(O||(c.value=1),i.methodType=="GET"){let R="";i.sPageData.length>0&&i.bShowPage&&(R+="&"+i.sPageData[0]+"="+c.value,R+="&"+i.sPageData[1]+"="+(i.bShowPage?f.value:1e4)),i.sFilterData.length&&(R+="&"+a.$utils.getCmSearchFilter(i.sFilterData,()=>{})),i.sDataUrl.indexOf("?")===-1&&(R=R.replace("&","?")),a.$api.getUrlData(i.sDataUrl+R).then(U=>{Se(U)})}else if(i.methodType=="POST"){let U={queryParams:a.$utils.getFilterObj(i.sFilterData),pageNo:c.value,pageSize:f.value};a.$api.postUrlData(i.sDataUrl,U).then(ee=>{Se(ee)})}}function Se(O){let R=[];if(i.sPageData[3]!==""){R=a.$utils.getManyLevelData(O.data,i.sPageData[3]);let U=a.$utils.getManyLevelData(O.data,i.sPageData[2]);h.value=U===""?0:parseInt(U)}if(!R)return a.$message.error(H.$ntt("数据读取错误,请检查分页代码","菜单")),"";R.forEach((U,ee)=>{U.bChecked=!1,U.sourceIndex=ee,U.bEditItem=!1}),d.value=R,v.value=R,g.value=R,m.value=a.$utils.deepCopy(R),i.bHeightByData&&ur(R),n("onGetedData",d.value,O)}function ur(O){let R=O.length*i.rowHeight;R<s.value?l.value=R+i.rowHeight+40:l.value=s.value}return(O,R)=>{const U=p.resolveComponent("el-button"),ee=p.resolveComponent("el-tooltip"),Te=p.resolveComponent("el-text"),Ze=p.resolveComponent("el-dropdown-item"),Ge=p.resolveComponent("el-dropdown-menu"),mt=p.resolveComponent("el-dropdown"),Bt=p.resolveComponent("el-badge"),Kt=p.resolveComponent("vxe-column"),ja=p.resolveComponent("btn-render"),ul=p.resolveComponent("el-input"),ux=p.resolveComponent("el-date-picker"),cx=p.resolveComponent("el-color-picker"),Epe=p.resolveComponent("cm-select"),A5=p.resolveComponent("el-switch"),Mpe=p.resolveComponent("vxe-table"),Ape=p.resolveComponent("el-pagination"),Ipe=p.resolveComponent("el-config-provider"),fx=p.resolveComponent("el-dialog"),Ku=p.resolveComponent("el-table-column"),qu=p.resolveComponent("el-radio"),I5=p.resolveComponent("el-radio-group"),kpe=p.resolveComponent("el-table");return p.openBlock(),p.createElementBlock("div",{style:{"overflow-x":"auto",position:"relative","overflow-y":"hidden"},class:"fixed-scroll-error editCard",ref_key:"dvTbMain",ref:Y},[p.createElementVNode("div",RG,[O.showMoreBtnInfo&&O.showMoreBtnInfo.length?(p.openBlock(),p.createElementBlock("div",VG,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(O.showMoreBtnInfo,(X,Nt)=>(p.openBlock(),p.createElementBlock("div",{key:Nt},[p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt(X.tooltip,"菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{onClick:et=>X.click(),type:"primary",icon:X.icon,style:{cursor:"pointer",height:"26px",width:"30px"}},null,8,["onClick","icon"])]),_:2},1032,["content"])]))),128))])):p.createCommentVNode("",!0),O.bShowAddBtn&&O.bCanEdit?(p.openBlock(),p.createElementBlock("div",BG,[p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("添加明细","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{onClick:R[0]||(R[0]=X=>lr(-1)),type:"primary",icon:"CirclePlusFilled",style:{cursor:"pointer",height:"26px",width:"30px"}})]),_:1},8,["content"])])):p.createCommentVNode("",!0),!p.unref(B)&&O.bCanEditAll&&O.bCanEdit?(p.openBlock(),p.createElementBlock("div",FG,[p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("编辑全部","菜单"),placement:"top-start"},{default:p.withCtx(()=>[O.bShowEditAll?(p.openBlock(),p.createBlock(U,{key:0,onClick:R[1]||(R[1]=X=>ha()),type:"primary",icon:"Edit",style:{cursor:"pointer",height:"26px",width:"30px"}})):(p.openBlock(),p.createElementBlock("span",zG))]),_:1},8,["content"]),p.createVNode(ee,{class:"item",effect:"dark",content:O.bDeleteModel?p.unref(H).$ntt("批量删除","菜单"):p.unref(H).$ntt("批量取消启用","菜单"),placement:"top-start"},{default:p.withCtx(()=>[O.bShowChecked&&O.bShowDeleteBtn?(p.openBlock(),p.createBlock(U,{key:0,onClick:R[2]||(R[2]=X=>Xa()),type:"primary",icon:O.bDeleteModel?"Delete":"TurnOff",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}},null,8,["icon"])):(p.openBlock(),p.createElementBlock("span",$G))]),_:1},8,["content"])])):p.unref(B)?(p.openBlock(),p.createElementBlock("div",GG,[p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("批量保存","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{onClick:R[3]||(R[3]=X=>ki()),type:"primary",icon:"Select",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}})]),_:1},8,["content"]),p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("批量取消","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{onClick:R[4]||(R[4]=X=>yr()),type:"primary",icon:"CloseBold",style:{cursor:"pointer",height:"26px",width:"30px",padding:"0"}})]),_:1},8,["content"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",HG,[p.createVNode(mt,null,{dropdown:p.withCtx(()=>[p.createVNode(Ge,{slot:"dropdown"},{default:p.withCtx(()=>[p.createVNode(Ze,{onClick:Ye},{default:p.withCtx(()=>[p.createVNode(Te,{size:"small"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("自定义列展示","菜单")),1)]),_:1})]),_:1}),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(O.sAnotherOP,(X,Nt)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:Nt},[X.bHide?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(Ze,{key:0,onClick:X.sClick},{default:p.withCtx(()=>[p.createVNode(Te,{size:"small"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(X.sCaption),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",WG,[p.createVNode(U,{icon:"Operation",circle:""})])]),_:1})]),p.unref(b)?(p.openBlock(),p.createElementBlock("span",{key:0,style:{position:"absolute","z-index":"9",right:"250px",opacity:"0.8"},title:p.unref(H).$ntt("保存列宽","菜单")},[p.createVNode(Bt,null,{default:p.withCtx(()=>[p.createVNode(U,{icon:"Check",onClick:me,circle:""})]),_:1})],8,UG)):p.createCommentVNode("",!0),p.createElementVNode("div",{style:p.normalizeStyle({"margin-top":"5px",height:`${p.unref(l)}px`}),id:O.name+"_iv_table"},[p.createVNode(Mpe,{ref:"cmEditDtl",align:O.allAlign,size:"small",height:"87%",border:"","empty-text":p.unref(H).$ntt("暂无数据"),"show-overflow":"",loading:!1,"scroll-y":{enabled:!0,gt:0},"column-config":{resizable:!0},"row-config":{useKey:!0,isHover:!0},"cell-config":{height:O.rowHeight},data:p.unref(d),onCheckboxAll:ae,onCheckboxChange:Oe,"show-footer":O.bShowSum,"footer-method":he,onPaste:R[5]||(R[5]=X=>Hr(X)),onCellClick:Mo,onToggleRowExpand:Ua,"max-height":O.tableMaxHeight,"cell-style":O.cellStyle,"sort-config":{defaultSort:p.unref(A),trigger:"cell",remote:!0},onSortChange:ce,onResizableChange:Ya,"checkbox-config":p.unref(L)},{default:p.withCtx(()=>[p.createVNode(Kt,{visible:O.bShowChecked,type:"checkbox",width:"60",fixed:O.leftFixed},null,8,["visible","fixed"]),p.createVNode(Kt,{type:"seq",title:"序号",width:"60",fixed:O.leftFixed},null,8,["fixed"]),p.createVNode(Kt,{type:"expand",width:"80",fixed:O.leftFixed,visible:O.rowOtherData.hasOwnProperty("render")},{content:p.withCtx(({row:X,rowIndex:Nt,$rowIndex:et,column:Ju,fixed:Ft})=>[O.rowOtherData.hasOwnProperty("render")?(p.openBlock(),p.createElementBlock("div",ZG,[p.createVNode(ja,{render:O.rowOtherData.render,params:{row:X,index:Nt,col:Ju,colIndex:Nt}},null,8,["render","params"])])):p.createCommentVNode("",!0)]),_:1},8,["fixed","visible"]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(_),(X,Nt)=>(p.openBlock(),p.createBlock(Kt,{visible:!!(X._checked&&!X.bHide),key:X.sKey+"_"+X.sCaption+"_"+Nt,field:X.sKey,title:X.sCaption,fixed:X.sFixed,width:X.width,"min-width":X.minWidth,sortable:X.sortable,"show-overflow":""},{header:p.withCtx(({column:et,columnIndex:Ju,$rowIndex:Ft})=>[X.hdrRender?(p.openBlock(),p.createBlock(ja,{key:0,render:X.hdrRender,params:{row:et,index:Ft,col:X,colIndex:Nt}},null,8,["render","params"])):(p.openBlock(),p.createElementBlock("span",XG,p.toDisplayString(X.sCaption),1)),p.withDirectives(p.createElementVNode("span",null," *",512),[[p.vShow,X.bRequired]])]),default:p.withCtx(({row:et,rowIndex:Ju,$rowIndex:Ft})=>[X.render&&X.sType!=="date"&&X.sType!=="dateTime"&&X.sType!=="number"&&X.sType!=="sPicture"?(p.openBlock(),p.createElementBlock("div",jG,[p.createVNode(ja,{render:X.render,params:{row:et,index:Ft,col:X,colIndex:Nt}},null,8,["render","params"])])):(X.sType==="text"||X.sType==="number")&&et.bEditItem&&X.bEdit?(p.openBlock(),p.createElementBlock("div",KG,[p.createVNode(ul,{modelValue:et[X.sKey],"onUpdate:modelValue":Nr=>et[X.sKey]=Nr,disabled:X.disabled||X.bEditRow,type:X.sType,placeholder:X.placeholder,onChange:Nr=>Ii(X,et,Ft),onFocus:Nr=>Xu(X,et,Ft,Nt),onBlur:Nr=>kh(X,et,Ft,Nt),onKeydown:qg,ref_for:!0,ref:`input_${Ft}_${Nt}`,size:"default"},null,8,["modelValue","onUpdate:modelValue","disabled","type","placeholder","onChange","onFocus","onBlur"])])):(X.sType==="date"||X.sType==="dateTime")&&et.bEditItem&&X.bEdit?(p.openBlock(),p.createElementBlock("div",qG,[p.createVNode(ux,{style:{width:"100%"},modelValue:et[X.sKey],"onUpdate:modelValue":Nr=>et[X.sKey]=Nr,type:X.sType=="dateTime"?"datetime":X.sType,placeholder:p.unref(H).$ntt("选择日期","菜单"),format:"yyyy-MM-dd","value-format":sx(et[X.sKey]),size:"small",onChange:Nr=>Ii(X,et,Ft)},null,8,["modelValue","onUpdate:modelValue","type","placeholder","value-format","onChange"])])):X.sType==="color"?(p.openBlock(),p.createElementBlock("div",JG,[X.sType==="color"?(p.openBlock(),p.createBlock(cx,{key:0,disabled:!et.bEditItem||X.disabled,modelValue:et[X.sKey],"onUpdate:modelValue":Nr=>et[X.sKey]=Nr},null,8,["disabled","modelValue","onUpdate:modelValue"])):p.createCommentVNode("",!0)])):X.sType==="sPicture"?(p.openBlock(),p.createElementBlock("div",QG,[p.createElementVNode("img",{onClick:Nr=>lx(p.unref(a).$utils.getManyLevelData(et,X.sKey)),src:p.unref(a).$utils.getManyLevelData(et,X.sKey)?p.unref(a).$utils.getManyLevelData(et,X.sKey).indexOf("http")===-1?"hf_pub_api"+p.unref(a).$utils.getManyLevelData(et,X.sKey):p.unref(a).$utils.getManyLevelData(et,X.sKey):"",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,eH)])):X.sType==="select"||X.sType==="manySelect"?(p.openBlock(),p.createElementBlock("div",tH,[p.createVNode(Epe,{bDisabled:!et.bEditItem||X.disabled,slItem:X,baseData:et,sApiUrl:X.sSelectApi,onCmSelectRefresh:Q,onOnSelectChange:(Nr,k5)=>{Ii(X,et,Ft,k5)}},null,8,["bDisabled","slItem","baseData","sApiUrl","onOnSelectChange"])])):X.sType==="switch"?(p.openBlock(),p.createElementBlock("div",rH,[p.createVNode(A5,{disabled:!et.bEditItem||X.disabled||!X.bEdit,modelValue:et[X.sKey],"onUpdate:modelValue":Nr=>et[X.sKey]=Nr,onOnChange:Nr=>Ii(X,et,Ft)},null,8,["disabled","modelValue","onUpdate:modelValue","onOnChange"])])):X.sValueFormat&&X.sType==="text"?(p.openBlock(),p.createElementBlock("div",nH,[p.createElementVNode("span",null,p.toDisplayString(X.sValueFormat(et)),1)])):(p.openBlock(),p.createElementBlock("span",aH,p.toDisplayString(te(et,X,X.sKey)),1))]),_:2},1032,["visible","field","title","fixed","width","min-width","sortable"]))),128)),p.createVNode(Kt,{field:"action",visible:O.bShowActionColumn,title:"操作",fixed:O.rightFixed,"min-width":O.AnotherActionWidth},{default:p.withCtx(({row:X,rowIndex:Nt,$rowIndex:et})=>{var Ju;return[p.createElementVNode("div",iH,[!X.bEditItem&&O.bCanEdit?(p.openBlock(),p.createElementBlock("div",oH,[p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("编辑","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:p.normalizeClass(["rowIcon",X.bCannotEdit?"row-edit-btn-disabled":""]),icon:"Edit",onClick:Ft=>re(X)},null,8,["onClick","class"])]),_:2},1032,["content"]),p.createVNode(ee,{class:"item",effect:"dark",content:O.bDeleteModel?p.unref(H).$ntt("删除","菜单"):p.unref(H).$ntt("取消启用","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createElementVNode("template",null,[O.bShowDeleteBtn&&X.bUsable?(p.openBlock(),p.createBlock(U,{key:0,class:p.normalizeClass(["rowIcon",X.bCannotDelete?"row-delete-btn-disabled":""]),icon:O.bDeleteModel?"Delete":"TurnOff",onClick:Ft=>be(X,et),style:{color:"darkred"}},null,8,["icon","class","onClick"])):p.createCommentVNode("",!0)])]),_:2},1032,["content"]),O.bCopyRow?(p.openBlock(),p.createBlock(ee,{key:0,class:"item",effect:"dark",content:p.unref(H).$ntt("复制","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:"rowIcon",icon:"CopyDocument",onClick:Ft=>pt(X,et)},null,8,["onClick"])]),_:2},1032,["content"])):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0),X.bEditItem?(p.openBlock(),p.createElementBlock("div",sH,[p.unref(V)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(ee,{key:0,class:"item",effect:"dark",content:p.unref(H).$ntt("保存","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:"rowIcon",icon:"Select",onClick:Ft=>Lt(X)},null,8,["onClick"])]),_:2},1032,["content"])),p.createVNode(ee,{class:"item",effect:"dark",content:p.unref(H).$ntt("取消","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:"rowIcon",icon:"CloseBold",onClick:Ft=>jt(X,et),style:{color:"darkred"}},null,8,["onClick"])]),_:2},1032,["content"]),O.bCopyRow?(p.openBlock(),p.createBlock(ee,{key:1,class:"item",effect:"dark",content:p.unref(H).$ntt("复制","菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:"rowIcon",icon:"CopyDocument",onClick:Ft=>pt(X,et)},null,8,["onClick"])]),_:2},1032,["content"])):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0),(Ju=O.sAnotherRowActionBtns)!=null&&Ju.length?(p.openBlock(),p.createElementBlock("div",lH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(O.sAnotherRowActionBtns,(Ft,Nr)=>(p.openBlock(),p.createElementBlock("div",{key:Nr},[Ft.bShow?(p.openBlock(),p.createBlock(ee,{key:0,class:"item",effect:"dark",content:p.unref(H).$ntt(`${Ft.sName}`,"菜单"),placement:"top-start"},{default:p.withCtx(()=>[p.createVNode(U,{class:"rowIcon",icon:Ft.icon,onClick:k5=>Ft.sClick(X,et)},null,8,["icon","onClick"])]),_:2},1032,["content"])):p.createCommentVNode("",!0)]))),128))])):p.createCommentVNode("",!0)])]}),_:1},8,["visible","fixed","min-width"])]),_:1},8,["align","empty-text","cell-config","data","show-footer","max-height","cell-style","sort-config","checkbox-config"]),O.sPageData.length>0&&O.bShowPage?(p.openBlock(),p.createElementBlock("div",uH,[p.createVNode(Ipe,{locale:p.unref(PT)},{default:p.withCtx(()=>[p.createVNode(Ape,{total:p.unref(h),class:"paginations",size:"small",layout:"total, sizes, prev, pager, next, jumper","current-page":p.unref(c),"onUpdate:currentPage":R[6]||(R[6]=X=>p.isRef(c)?c.value=X:c=X),"page-size":p.unref(f),"onUpdate:pageSize":R[7]||(R[7]=X=>p.isRef(f)?f.value=X:f=X),"page-sizes":p.unref(u),onCurrentChange:Jg,onSizeChange:Lh},null,8,["total","current-page","page-size","page-sizes"])]),_:1},8,["locale"])])):p.createCommentVNode("",!0)],12,YG),p.createVNode(fx,{title:p.unref(H).$ntt("查看大图","菜单"),modelValue:p.unref(N),"onUpdate:modelValue":R[8]||(R[8]=X=>p.isRef(N)?N.value=X:N=X)},{default:p.withCtx(()=>[p.createElementVNode("div",null,[p.unref(N)?(p.openBlock(),p.createElementBlock("img",{key:0,src:p.unref(P),style:{width:"100%"}},null,8,cH)):p.createCommentVNode("",!0)])]),_:1},8,["title","modelValue"]),p.createVNode(fx,{modelValue:p.unref(w),"onUpdate:modelValue":R[10]||(R[10]=X=>p.isRef(w)?w.value=X:w=X),title:p.unref(H).$ntt("自定义列","菜单"),width:"60%","align-center":""},{footer:p.withCtx(()=>[p.createElementVNode("div",gH,[p.createVNode(U,{onClick:R[9]||(R[9]=X=>p.isRef(w)?w.value=!1:w=!1)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("取消","菜单")),1)]),_:1}),p.createVNode(U,{type:"primary",onClick:Ut},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("确定","菜单")),1)]),_:1})])]),default:p.withCtx(()=>[p.createElementVNode("div",fH,[p.createElementVNode("div",{class:"jc",style:{"margin-bottom":"5px"},title:p.unref(H).$ntt("重置","菜单")},[p.createVNode(U,{circle:"",icon:"Refresh",onClick:pe}),p.createElementVNode("span",dH,p.toDisplayString(p.unref(H).$ntt("1.点击按钮即可重置","菜单")),1),p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("2.选中后可上下拖拽调整顺序","菜单")),1)],8,hH),p.createVNode(kpe,{border:"","header-row-class-name":"tbHeader",width:"100%",size:"small",data:p.unref(x)},{default:p.withCtx(()=>[p.createVNode(Ku,{label:p.unref(H).$ntt("序号","菜单"),width:"60"},{default:p.withCtx(X=>[p.createElementVNode("span",null,p.toDisplayString(X.$index+1),1)]),_:1},8,["label"]),p.createVNode(Ku,{label:p.unref(H).$ntt("列表项","菜单"),"min-width":"120"},{default:p.withCtx(X=>[p.createElementVNode("span",null,p.toDisplayString(X.row.sCaption),1)]),_:1},8,["label"]),p.createVNode(Ku,{label:p.unref(H).$ntt("是否显示","菜单"),width:"80"},{default:p.withCtx(X=>[p.createElementVNode("div",null,[p.createVNode(A5,{modelValue:X.row._checked,"onUpdate:modelValue":Nt=>X.row._checked=Nt,size:"large"},{default:p.withCtx(()=>[p.createElementVNode("span",pH,p.toDisplayString(p.unref(H).$ntt("显示","菜单")),1),p.createElementVNode("span",vH,p.toDisplayString(p.unref(H).$ntt("隐藏","菜单")),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(Ku,{label:p.unref(H).$ntt("以此列排序","菜单"),width:"180"},{default:p.withCtx(X=>[p.createElementVNode("div",null,[p.createVNode(I5,{modelValue:X.row.sOrderType,"onUpdate:modelValue":Nt=>X.row.sOrderType=Nt,size:"small"},{default:p.withCtx(()=>[p.createVNode(qu,{value:"0"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("无","菜单")),1)]),_:1}),p.createVNode(qu,{value:"asc"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("正序","菜单")),1)]),_:1}),p.createVNode(qu,{value:"desc"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("倒序","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(Ku,{label:p.unref(H).$ntt("是否固定","菜单"),width:"180"},{default:p.withCtx(X=>[p.createElementVNode("div",null,[p.createVNode(I5,{modelValue:X.row.fixed,"onUpdate:modelValue":Nt=>X.row.fixed=Nt,size:"small"},{default:p.withCtx(()=>[p.createVNode(qu,{value:"0"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("否","菜单")),1)]),_:1}),p.createVNode(qu,{value:"left"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("左侧","菜单")),1)]),_:1}),p.createVNode(qu,{value:"right"},{default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt("右侧","菜单")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])]),_:1},8,["label"]),p.createVNode(Ku,{label:p.unref(H).$ntt("操作","菜单"),width:"300"},{default:p.withCtx(X=>[p.createVNode(U,{size:"small",type:"text",onClick:p.withModifiers(Nt=>He(X.$index,1,p.unref(x)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向上↑","菜单")),1)]),_:2},1032,["onClick"]),p.createVNode(U,{size:"small",type:"text",onClick:p.withModifiers(Nt=>He(X.$index,0,p.unref(x)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("向下↓","菜单")),1)]),_:2},1032,["onClick"]),p.createVNode(U,{size:"small",type:"text",onClick:p.withModifiers(Nt=>xt(X.$index,p.unref(x)),["stop"])},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("自定义序列","菜单")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1},8,["modelValue","title"]),p.createVNode(fx,{title:p.unref(H).$ntt("数据","菜单"),modelValue:p.unref(C),"onUpdate:modelValue":R[13]||(R[13]=X=>p.isRef(C)?C.value=X:C=X)},{footer:p.withCtx(()=>[p.createElementVNode("div",_H,[p.createVNode(U,{onClick:R[12]||(R[12]=X=>p.isRef(C)?C.value=!1:C=!1)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("取消","菜单")),1)]),_:1}),p.createVNode(U,{type:"primary",onClick:ar},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(H).$ntt("确定","菜单")),1)]),_:1})])]),default:p.withCtx(()=>[p.createElementVNode("div",mH,[p.createElementVNode("p",yH,p.toDisplayString(p.unref(H).$ntt("调整序列至:","菜单")),1),p.createVNode(ul,{size:"small",modelValue:p.unref(T),"onUpdate:modelValue":R[11]||(R[11]=X=>p.isRef(T)?T.value=X:T=X)},null,8,["modelValue"])])]),_:1},8,["title","modelValue"])],512)}}}),wH=Wn(SH,[["__scopeId","data-v-6b591026"]]),xH={class:"btnContain"},CH={name:"cmButton"},TH=p.defineComponent({...CH,props:{btnList:{},size:{default:()=>"small"}},setup(t){let{proxy:e}=p.getCurrentInstance();return(r,n)=>{const a=p.resolveComponent("el-button");return p.openBlock(),p.createElementBlock("div",xH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.btnList,(i,o)=>(p.openBlock(),p.createElementBlock("div",{class:"btnGroup",key:o},[p.createVNode(a,{class:"btnClass",size:r.size,onClick:s=>i.sClick(p.unref(H))},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(i.sName),1)]),_:2},1032,["size","onClick"])]))),128))])}}}),DH=Wn(TH,[["__scopeId","data-v-3101da73"]]),EH={name:"selectDialog"},MH=p.defineComponent({...EH,props:{title:{default:()=>"单据详情"},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:()=>-40},beforeClose:{},iSpan:{default:()=>4},size:{default:()=>"small"},initRowHeight:{default:()=>40}},emits:["beforeClose","saveConfirmData"],setup(t,{expose:e,emit:r}){e({showDrawer:o,closeDrawer:u});let n=r,{proxy:a}=p.getCurrentInstance(),i=t;function o(){console.log(a.$refs,"proxy.$refs.cmDialog"),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("请选择数据"),!1;n("saveConfirmData",c)}function u(){a.$refs.selectDialog.closeDrawer()}return(c,f)=>{const h=p.resolveComponent("cmTableList"),d=p.resolveComponent("cmDialog");return p.openBlock(),p.createBlock(d,{ref:"selectDialog",title:c.title,beforeClose:s,onSaveConfirmData:l},{content:p.withCtx(()=>[p.createVNode(h,{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:60,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"])}}}),AH=Wn(MH,[["__scopeId","data-v-3ef48b96"]]),IH={class:"my_drawer"},kH={key:0,class:"footer"},LH={name:"cmDialog"},NH=p.defineComponent({...LH,props:{title:{default:"单据信息"},beforeClose:{},bShowFooter:{default:()=>!0}},emits:["saveConfirmData"],setup(t,{expose:e,emit:r}){e({showDrawer:s,closeDrawer:f});let n=r,a=t,i=p.ref(!1),o=[{sName:"取消",sClick:()=>{u()}},{sName:"确认",sClick:()=>{c()}}];function s(){i.value=!0}function l(){if(a.beforeClose&&!a.beforeClose())return!1;i.value=!1}function u(){l()}function c(){n("saveConfirmData")}function f(){i.value=!1}return(h,d)=>{const v=p.resolveComponent("cmButton"),g=p.resolveComponent("el-drawer");return p.openBlock(),p.createElementBlock("div",IH,[p.createVNode(g,{modelValue:p.unref(i),"onUpdate:modelValue":d[0]||(d[0]=m=>p.isRef(i)?i.value=m:i=m),direction:"rtl","before-close":l,"append-to-body":!1,"show-close":!0,size:"100%"},{header:p.withCtx(()=>[p.renderSlot(h.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(p.unref(a).title),1)],!0),p.renderSlot(h.$slots,"header",{},void 0,!0)]),default:p.withCtx(()=>[p.renderSlot(h.$slots,"content",{},void 0,!0)]),footer:p.withCtx(()=>[h.bShowFooter?(p.openBlock(),p.createElementBlock("div",kH,[p.createVNode(v,{btnList:p.unref(o)},null,8,["btnList"])])):p.createCommentVNode("",!0)]),_:3},8,["modelValue"])])}}}),PH=Wn(NH,[["__scopeId","data-v-d3d76f9f"]]),OH={class:"borderHdr"},RH={class:"custom-tabs-label"},VH={name:"cmHdrBorder"},BH=p.defineComponent({...VH,props:{hdrName:{default:()=>"基础信息"}},setup(t){return(e,r)=>(p.openBlock(),p.createElementBlock("div",OH,[p.createElementVNode("span",RH,[r[0]||(r[0]=p.createElementVNode("div",{class:"borderDiv"},null,-1)),p.createElementVNode("span",null,p.toDisplayString(p.unref(H).$ntt(e.hdrName,"菜单")),1)])]))}}),FH=Wn(BH,[["__scopeId","data-v-54358e20"]]),zH={name:"cmSelectOption"},$H=p.defineComponent({...zH,props:{value:{},options:{},size:{default:()=>"small"},disabled:{type:Boolean,default:()=>!1},width:{default:()=>240}},setup(t){let e=t,r=p.ref("");return p.watch(()=>e.value,(n,a)=>{r.value=n},{deep:!0,immediate:!0}),(n,a)=>{const i=p.resolveComponent("el-option"),o=p.resolveComponent("el-select");return p.openBlock(),p.createElementBlock("div",null,[p.createVNode(o,{modelValue:p.unref(r),"onUpdate:modelValue":a[0]||(a[0]=s=>p.isRef(r)?r.value=s:r=s),placeholder:"Select",size:n.size,disabled:n.disabled,style:p.normalizeStyle(`width: ${Number(n.width)}px`),"collapse-tags-tooltip":!0,"collapse-tags":!0},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.options,s=>(p.openBlock(),p.createBlock(i,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size","disabled","style"])])}}});/*! *****************************************************************************
21
+ Copyright (c) Microsoft Corporation.
22
+
23
+ Permission to use, copy, modify, and/or distribute this software for any
24
+ purpose with or without fee is hereby granted.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
27
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
28
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
29
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
30
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
31
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32
+ PERFORMANCE OF THIS SOFTWARE.
33
+ ***************************************************************************** */var Um=function(t,e){return Um=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])},Um(t,e)};function F(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Um(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var GH=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),HH=function(){function t(){this.browser=new GH,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Fe=new HH;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fe.wxa=!0,Fe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fe.worker=!0:!Fe.hasGlobalWindow||"Deno"in window?(Fe.node=!0,Fe.svgSupported=!0):WH(navigator.userAgent,Fe);function WH(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var Ym=12,FT="sans-serif",Fi=Ym+"px "+FT,UH=20,YH=100,ZH="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function XH(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-UH)/YH;e[n]=a}return e}var jH=XH(ZH),Zn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Zn.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Fi),t.measureText(r);r=r||"",n=n||Fi;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Ym,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=jH[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function zT(t){for(var e in Zn)t[e]&&(Zn[e]=t[e])}var $T=mn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),GT=mn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Sl=Object.prototype.toString,gd=Array.prototype,KH=gd.forEach,qH=gd.filter,Zm=gd.slice,JH=gd.map,HT=(function(){}).constructor,md=HT?HT.prototype:null,Xm="__proto__",QH=2311;function jm(){return QH++}function gn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function we(t){if(t==null||typeof t!="object")return t;var e=t,r=Sl.call(t);if(r==="[object Array]"){if(!wl(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=we(t[n])}}else if(GT[r]){if(!wl(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!$T[r]&&!wl(t)&&!zi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Xm&&(e[o]=we(t[o]))}return e}function ke(t,e,r){if(!ve(e)||!ve(t))return r?we(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Xm){var a=t[n],i=e[n];ve(i)&&ve(a)&&!Z(i)&&!Z(a)&&!zi(i)&&!zi(a)&&!qm(i)&&!qm(a)&&!wl(i)&&!wl(a)?ke(a,i,r):(r||!(n in t))&&(t[n]=we(e[n]))}return t}function yd(t,e){for(var r=t[0],n=1,a=t.length;n<a;n++)r=ke(r,t[n],e);return r}function W(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Xm&&(t[r]=e[r]);return t}function ye(t,e,r){for(var n=$e(e),a=0,i=n.length;a<i;a++){var o=n[a];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var eW=Zn.createCanvas;function Re(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Km(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function It(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else ye(t,e,r)}function dr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function M(t,e,r){if(t&&e)if(t.forEach&&t.forEach===KH)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function K(t,e,r){if(!t)return[];if(!e)return _d(t);if(t.map&&t.map===JH)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function mn(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function tt(t,e,r){if(!t)return[];if(!e)return _d(t);if(t.filter&&t.filter===qH)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function WT(t,e,r){if(t&&e){for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}}function $e(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function tW(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Zm.call(arguments)))}}var oe=md&&de(md.bind)?md.call.bind(md.bind):tW;function Ae(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Zm.call(arguments)))}}function Z(t){return Array.isArray?Array.isArray(t):Sl.call(t)==="[object Array]"}function de(t){return typeof t=="function"}function ie(t){return typeof t=="string"}function vc(t){return Sl.call(t)==="[object String]"}function Ke(t){return typeof t=="number"}function ve(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function qm(t){return!!$T[Sl.call(t)]}function br(t){return!!GT[Sl.call(t)]}function zi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function gc(t){return t.colorStops!=null}function UT(t){return t.image!=null}function Jm(t){return Sl.call(t)==="[object RegExp]"}function $i(t){return t!==t}function Pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function De(t,e){return t??e}function nn(t,e,r){return t??e??r}function _d(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Zm.apply(t,e)}function bd(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function _e(t,e){if(!t)throw new Error(e)}function yn(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var YT="__ec_primitive__";function mc(t){t[YT]=!0}function wl(t){return t[YT]}var rW=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return $e(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),ZT=typeof Map=="function";function nW(){return ZT?new Map:new rW}var XT=function(){function t(e){var r=Z(e);this.data=nW();var n=this;e instanceof t?e.each(a):e&&M(e,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return ZT?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function fe(t){return new XT(t)}function xl(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function yc(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&W(r,e),r}function Qm(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function le(t,e){return t.hasOwnProperty(e)}function kt(){}var _c=180/Math.PI;const aW=Object.freeze(Object.defineProperty({__proto__:null,HashMap:XT,RADIAN_TO_DEGREE:_c,assert:_e,bind:oe,clone:we,concatArray:xl,createCanvas:eW,createHashMap:fe,createObject:yc,curry:Ae,defaults:ye,disableUserSelect:Qm,each:M,eqNaN:$i,extend:W,filter:tt,find:WT,guid:jm,hasOwn:le,indexOf:Re,inherits:Km,isArray:Z,isArrayLike:dr,isBuiltInObject:qm,isDom:zi,isFunction:de,isGradientObject:gc,isImagePatternObject:UT,isNumber:Ke,isObject:ve,isPrimitive:wl,isRegExp:Jm,isString:ie,isStringSafe:vc,isTypedArray:br,keys:$e,logError:gn,map:K,merge:ke,mergeAll:yd,mixin:It,noop:kt,normalizeCssArray:bd,reduce:mn,retrieve:Pt,retrieve2:De,retrieve3:nn,setAsPrimitive:mc,slice:_d,trim:yn},Symbol.toStringTag,{value:"Module"}));function Gi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Sr(t,e){return t[0]=e[0],t[1]=e[1],t}function ya(t){return[t[0],t[1]]}function jT(t,e,r){return t[0]=e,t[1]=r,t}function ey(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Sd(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Hi(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function bc(t){return Math.sqrt(ty(t))}var iW=bc;function ty(t){return t[0]*t[0]+t[1]*t[1]}var oW=ty;function sW(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function lW(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function uW(t,e){return t[0]*e[0]+t[1]*e[1]}function Sc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Uo(t,e){var r=bc(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function wd(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qa=wd;function KT(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Wi=KT;function cW(t,e){return t[0]=-e[0],t[1]=-e[1],t}function wc(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function ir(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function ei(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function ti(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const fW=Object.freeze(Object.defineProperty({__proto__:null,add:ey,applyTransform:ir,clone:ya,copy:Sr,create:Gi,dist:Qa,distSquare:Wi,distance:wd,distanceSquare:KT,div:lW,dot:uW,len:bc,lenSquare:ty,length:iW,lengthSquare:oW,lerp:wc,max:ti,min:ei,mul:sW,negate:cW,normalize:Uo,scale:Sc,scaleAndAdd:Sd,set:jT,sub:Hi},Symbol.toStringTag,{value:"Module"}));var Cl=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),hW=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Cl(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new Cl(r,e),"drag",e.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 Cl(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Cl(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Cl(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Cl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),_n=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],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(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],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(e,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(e),this},t}(),dW=Math.log(2);function ry(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/dW);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var v=1<<h;v&a||(f+=(d%2?-1:1)*t[r][h]*ry(t,e-1,c,u,a|v,i),d++)}return i[o]=f,f}function qT(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=ry(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)*ry(r,7,o===0?1:0,1<<o,1<<s,n)/a*e[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 JT="___zrEVENTSAVED",ny=[];function pW(t,e,r,n,a){return ay(ny,e,n,a,!0)&&ay(t,r,ny[0],ny[1])}function ay(t,e,r,n,a){if(e.getBoundingClientRect&&Fe.domSupported&&!QT(e)){var i=e[JT]||(e[JT]={}),o=vW(e,i),s=gW(o,i,a);if(s)return s(t,r,n),!0}return!1}function vW(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return r}function gW(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&i&&h===i[f]&&d===i[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?qT(s,o):qT(o,s))}function QT(t){return t.nodeName.toUpperCase()==="CANVAS"}var mW=/([&<>"'])/g,yW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function wr(t){return t==null?"":(t+"").replace(mW,function(e,r){return yW[r]})}var _W=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,iy=[],bW=Fe.browser.firefox&&+Fe.browser.version.split(".")[0]<39;function oy(t,e,r,n){return r=r||{},n?eD(t,e,r):bW&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):eD(t,e,r),r}function eD(t,e,r){if(Fe.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(QT(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(ay(iy,t,n,a)){r.zrX=iy[0],r.zrY=iy[1];return}}r.zrX=r.zrY=0}function sy(t){return t||window.event}function bn(t,e,r){if(e=sy(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&oy(t,o,e,r)}else{oy(t,e,e,r);var i=SW(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_W.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function SW(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function ly(t,e,r,n){t.addEventListener(e,r,n)}function wW(t,e,r,n){t.removeEventListener(e,r,n)}var ri=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function tD(t){return t.which===2||t.which===3}var xW=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=oy(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in uy)if(uy.hasOwnProperty(r)){var n=uy[r](this._track,e);if(n)return n}},t}();function rD(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function CW(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var uy={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=rD(n)/rD(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=CW(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Zr(){return[1,0,0,1,0,0]}function xc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function xd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _a(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function Xn(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ui(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(r),f=Math.cos(r);return t[0]=a*f+s*c,t[1]=-a*c+s*f,t[2]=i*f+l*c,t[3]=-i*c+f*l,t[4]=f*(o-n[0])+c*(u-n[1])+n[0],t[5]=f*(u-n[1])-c*(o-n[0])+n[1],t}function Cd(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Yo(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}function nD(t){var e=Zr();return xd(e,t),e}const TW=Object.freeze(Object.defineProperty({__proto__:null,clone:nD,copy:xd,create:Zr,identity:xc,invert:Yo,mul:_a,rotate:Ui,scale:Cd,translate:Xn},Symbol.toStringTag,{value:"Module"}));var Ne=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}(),Td=Math.min,Dd=Math.max,Zo=new Ne,Xo=new Ne,jo=new Ne,Ko=new Ne,Cc=new Ne,Tc=new Ne,Pe=function(){function t(e,r,n,a){n<0&&(e=e+n,n=-n),a<0&&(r=r+a,a=-a),this.x=e,this.y=r,this.width=n,this.height=a}return t.prototype.union=function(e){var r=Td(e.x,this.x),n=Td(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Dd(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Dd(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=Zr();return Xn(i,i,[-r.x,-r.y]),Cd(i,i,[n,a]),Xn(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(i<l||u<a||s<c||f<o);if(r){var d=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?Ne.set(Tc,-g,0):Ne.set(Tc,m,0)):b<d&&(d=b,g<m?Ne.set(Cc,g,0):Ne.set(Cc,-m,0)),s<c||f<o?S>v&&(v=S,y<_?Ne.set(Tc,0,-y):Ne.set(Tc,0,_)):b<d&&(d=b,y<_?Ne.set(Cc,0,y):Ne.set(Cc,0,-_))}return r&&Ne.copy(r,h?Cc:Tc),h},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Zo.x=jo.x=r.x,Zo.y=Ko.y=r.y,Xo.x=Ko.x=r.x+r.width,Xo.y=jo.y=r.y+r.height,Zo.transform(n),Ko.transform(n),Xo.transform(n),jo.transform(n),e.x=Td(Zo.x,Xo.x,jo.x,Ko.x),e.y=Td(Zo.y,Xo.y,jo.y,Ko.y);var l=Dd(Zo.x,Xo.x,jo.x,Ko.x),u=Dd(Zo.y,Xo.y,jo.y,Ko.y);e.width=l-e.x,e.height=u-e.y},t}(),aD="silent";function DW(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:EW}}function EW(){ri(this.event)}var MW=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_n),Dc=function(){function t(e,r){this.x=e,this.y=r}return t}(),AW=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cy=new Pe(0,0,0,0),iD=function(t){F(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new Dc(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new MW,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new hW(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(AW,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=sD(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 Dc(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)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Dc(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=DW(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)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Dc(r,n);if(oD(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Pe(r-u,n-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(cy.copy(h.getBoundingRect()),h.transform&&cy.applyTransform(h.transform),cy.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=d)for(var y=0;y<g;y+=v){var _=r+m*Math.cos(y),b=n+m*Math.sin(y);if(oD(s,o,_,b,a),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xW);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 Dc;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(_n);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){iD.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=sD(this,r,n),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Qa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function IW(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?aD:!0}return!1}function oD(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=IW(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==aD)){e.target=o;break}}}function sD(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var lD=32,Ec=7;function kW(t){for(var e=0;t>=lD;)e|=t&1,t>>=1;return t+e}function uD(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;LW(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function LW(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function cD(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function fy(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l<s&&i(t,e[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(t,e[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(t,e[r+c])>0?o=c+1:l=c}return l}function hy(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;l<s&&i(t,e[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(t,e[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(t,e[r+c])<0?l=c:o=c+1}return l}function NW(t,e){var r=Ec,n,a,i=0,o=[];n=[],a=[];function s(d,v){n[i]=d,a[i]=v,i+=1}function l(){for(;i>1;){var d=i-2;if(d>=1&&a[d-1]<=a[d]+a[d+1]||d>=2&&a[d-2]<=a[d]+a[d-1])a[d-1]<a[d+1]&&d--;else if(a[d]>a[d+1])break;c(d)}}function u(){for(;i>1;){var d=i-2;d>0&&a[d-1]<a[d+1]&&d--,c(d)}}function c(d){var v=n[d],g=a[d],m=n[d+1],y=a[d+1];a[d]=g+y,d===i-3&&(n[d+1]=n[d+2],a[d+1]=a[d+2]),i--;var _=hy(t[m],t,v,g,0,e);v+=_,g-=_,g!==0&&(y=fy(t[v+g-1],t,m,y,y-1,e),y!==0&&(g<=y?f(v,g,m,y):h(v,g,m,y)))}function f(d,v,g,m){var y=0;for(y=0;y<v;y++)o[y]=t[d+y];var _=0,b=g,S=d;if(t[S++]=t[b++],--m===0){for(y=0;y<v;y++)t[S+y]=o[_+y];return}if(v===1){for(y=0;y<m;y++)t[S+y]=t[b+y];t[S+m]=o[_];return}for(var w=r,x,C,T;;){x=0,C=0,T=!1;do if(e(t[b],o[_])<0){if(t[S++]=t[b++],C++,x=0,--m===0){T=!0;break}}else if(t[S++]=o[_++],x++,C=0,--v===1){T=!0;break}while((x|C)<w);if(T)break;do{if(x=hy(t[b],o,_,v,0,e),x!==0){for(y=0;y<x;y++)t[S+y]=o[_+y];if(S+=x,_+=x,v-=x,v<=1){T=!0;break}}if(t[S++]=t[b++],--m===0){T=!0;break}if(C=fy(o[_],t,b,m,0,e),C!==0){for(y=0;y<C;y++)t[S+y]=t[b+y];if(S+=C,b+=C,m-=C,m===0){T=!0;break}}if(t[S++]=o[_++],--v===1){T=!0;break}w--}while(x>=Ec||C>=Ec);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),v===1){for(y=0;y<m;y++)t[S+y]=t[b+y];t[S+m]=o[_]}else{if(v===0)throw new Error;for(y=0;y<v;y++)t[S+y]=o[_+y]}}function h(d,v,g,m){var y=0;for(y=0;y<m;y++)o[y]=t[g+y];var _=d+v-1,b=m-1,S=g+m-1,w=0,x=0;if(t[S--]=t[_--],--v===0){for(w=S-(m-1),y=0;y<m;y++)t[w+y]=o[y];return}if(m===1){for(S-=v,_-=v,x=S+1,w=_+1,y=v-1;y>=0;y--)t[x+y]=t[w+y];t[S]=o[b];return}for(var C=r;;){var T=0,D=0,E=!1;do if(e(o[b],t[_])<0){if(t[S--]=t[_--],T++,D=0,--v===0){E=!0;break}}else if(t[S--]=o[b--],D++,T=0,--m===1){E=!0;break}while((T|D)<C);if(E)break;do{if(T=v-hy(o[b],t,d,v,v-1,e),T!==0){for(S-=T,_-=T,v-=T,x=S+1,w=_+1,y=T-1;y>=0;y--)t[x+y]=t[w+y];if(v===0){E=!0;break}}if(t[S--]=o[b--],--m===1){E=!0;break}if(D=m-fy(t[_],o,0,m,m-1,e),D!==0){for(S-=D,b-=D,m-=D,x=S+1,w=b+1,y=0;y<D;y++)t[x+y]=o[w+y];if(m<=1){E=!0;break}}if(t[S--]=t[_--],--v===0){E=!0;break}C--}while(T>=Ec||D>=Ec);if(E)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(S-=v,_-=v,x=S+1,w=_+1,y=v-1;y>=0;y--)t[x+y]=t[w+y];t[S]=o[b]}else{if(m===0)throw new Error;for(w=S-(m-1),y=0;y<m;y++)t[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ed(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<lD){i=uD(t,r,n,e),cD(t,r,n,r+i,e);return}var o=NW(t,e),s=kW(a);do{if(i=uD(t,r,n,e),i<s){var l=a;l>s&&(l=s),cD(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var an=1,Mc=2,Tl=4,fD=!1;function dy(){fD||(fD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hD(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var PW=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hD}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Ed(n,hD)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=an),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var c=e;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(dy(),c.z=0),isNaN(c.z2)&&(dy(),c.z2=0),isNaN(c.zlevel)&&(dy(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=Re(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Md;Md=Fe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ac={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ac.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ac.bounceIn(t*2)*.5:Ac.bounceOut(t*2-1)*.5+.5}},Ad=Math.pow,Yi=Math.sqrt,Id=1e-8,dD=1e-4,pD=Yi(3),kd=1/3,ba=Gi(),Sn=Gi(),Dl=Gi();function Zi(t){return t>-Id&&t<Id}function vD(t){return t>Id||t<-Id}function qt(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function gD(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function Ld(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Zi(c)&&Zi(f))if(Zi(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[d++]=v)}else{var g=f*f-4*c*h;if(Zi(g)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(i[d++]=v),y>=0&&y<=1&&(i[d++]=y)}else if(g>0){var _=Yi(g),b=c*s+1.5*o*(-f+_),S=c*s+1.5*o*(-f-_);b<0?b=-Ad(-b,kd):b=Ad(b,kd),S<0?S=-Ad(-S,kd):S=Ad(S,kd);var v=(-s-(b+S))/(3*o);v>=0&&v<=1&&(i[d++]=v)}else{var w=(2*c*s-3*o*f)/(2*Yi(c*c*c)),x=Math.acos(w)/3,C=Yi(c),T=Math.cos(x),v=(-s-2*C*T)/(3*o),y=(-s+C*(T+pD*Math.sin(x)))/(3*o),D=(-s+C*(T-pD*Math.sin(x)))/(3*o);v>=0&&v<=1&&(i[d++]=v),y>=0&&y<=1&&(i[d++]=y),D>=0&&D<=1&&(i[d++]=D)}}return d}function mD(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Zi(o)){if(vD(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Zi(c))a[0]=-i/(2*o);else if(c>0){var f=Yi(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function Xi(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function yD(t,e,r,n,a,i,o,s,l,u,c){var f,h=.005,d=1/0,v,g,m,y;ba[0]=l,ba[1]=u;for(var _=0;_<1;_+=.05)Sn[0]=qt(t,r,a,o,_),Sn[1]=qt(e,n,i,s,_),m=Wi(ba,Sn),m<d&&(f=_,d=m);d=1/0;for(var b=0;b<32&&!(h<dD);b++)v=f-h,g=f+h,Sn[0]=qt(t,r,a,o,v),Sn[1]=qt(e,n,i,s,v),m=Wi(Sn,ba),v>=0&&m<d?(f=v,d=m):(Dl[0]=qt(t,r,a,o,g),Dl[1]=qt(e,n,i,s,g),y=Wi(Dl,ba),g<=1&&y<d?(f=g,d=y):h*=.5);return c&&(c[0]=qt(t,r,a,o,f),c[1]=qt(e,n,i,s,f)),Yi(d)}function OW(t,e,r,n,a,i,o,s,l){for(var u=t,c=e,f=0,h=1/l,d=1;d<=l;d++){var v=d*h,g=qt(t,r,a,o,v),m=qt(e,n,i,s,v),y=g-u,_=m-c;f+=Math.sqrt(y*y+_*_),u=g,c=m}return f}function or(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function py(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function RW(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Zi(i)){if(vD(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Zi(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yi(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function _D(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ic(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function bD(t,e,r,n,a,i,o,s,l){var u,c=.005,f=1/0;ba[0]=o,ba[1]=s;for(var h=0;h<1;h+=.05){Sn[0]=or(t,r,a,h),Sn[1]=or(e,n,i,h);var d=Wi(ba,Sn);d<f&&(u=h,f=d)}f=1/0;for(var v=0;v<32&&!(c<dD);v++){var g=u-c,m=u+c;Sn[0]=or(t,r,a,g),Sn[1]=or(e,n,i,g);var d=Wi(Sn,ba);if(g>=0&&d<f)u=g,f=d;else{Dl[0]=or(t,r,a,m),Dl[1]=or(e,n,i,m);var y=Wi(Dl,ba);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=or(t,r,a,u),l[1]=or(e,n,i,u)),Yi(f)}function VW(t,e,r,n,a,i,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=or(t,r,a,h),v=or(e,n,i,h),g=d-s,m=v-l;u+=Math.sqrt(g*g+m*m),s=d,l=v}return u}var BW=/cubic-bezier\(([0-9,\.e ]+)\)/;function vy(t){var e=t&&BW.exec(t);if(e){var r=e[1].split(","),n=+yn(r[0]),a=+yn(r[1]),i=+yn(r[2]),o=+yn(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ld(0,n,i,1,l,s)&&qt(0,a,o,1,s[0])}}}var FW=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||kt,this.ondestroy=e.ondestroy||kt,this.onrestart=e.onrestart||kt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=de(e)?e:Ac[e]||vy(e)},t}(),SD=function(){function t(e){this.value=e}return t}(),zW=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new SD(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),kc=function(){function t(e){this._list=new zW,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==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 SD(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),wD={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jn(t){return t=Math.round(t),t<0?0:t>255?255:t}function $W(t){return t=Math.round(t),t<0?0:t>360?360:t}function Lc(t){return t<0?0:t>1?1:t}function gy(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?jn(parseFloat(e)/100*255):jn(parseInt(e,10))}function qo(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Lc(parseFloat(e)/100):Lc(parseFloat(e))}function my(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function ji(t,e,r){return t+(e-t)*r}function wn(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function yy(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var xD=new kc(20),Nd=null;function El(t,e){Nd&&yy(Nd,e),Nd=xD.put(t,Nd||e.slice())}function Or(t,e){if(t){e=e||[];var r=xD.get(t);if(r)return yy(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in wD)return yy(e,wD[n]),El(t,e),e;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)){wn(e,0,0,0,1);return}return wn(e,(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),El(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){wn(e,0,0,0,1);return}return wn(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),El(t,e),e}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?wn(e,+u[0],+u[1],+u[2],1):wn(e,0,0,0,1);c=qo(u.pop());case"rgb":if(u.length>=3)return wn(e,gy(u[0]),gy(u[1]),gy(u[2]),u.length===3?c:qo(u[3])),El(t,e),e;wn(e,0,0,0,1);return;case"hsla":if(u.length!==4){wn(e,0,0,0,1);return}return u[3]=qo(u[3]),_y(u,e),El(t,e),e;case"hsl":if(u.length!==3){wn(e,0,0,0,1);return}return _y(u,e),El(t,e),e;default:return}}wn(e,0,0,0,1)}}function _y(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=qo(t[1]),a=qo(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],wn(e,jn(my(o,i,r+1/3)*255),jn(my(o,i,r)*255),jn(my(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function GW(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,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-e)/6+o/2)/o,f=((i-r)/6+o/2)/o,h=((i-n)/6+o/2)/o;e===i?l=h-f:r===i?l=1/3+c-h:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function Pd(t,e){var r=Or(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Kn(r,r.length===4?"rgba":"rgb")}}function HW(t){var e=Or(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Nc(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return r[0]=jn(ji(o[0],s[0],l)),r[1]=jn(ji(o[1],s[1],l)),r[2]=jn(ji(o[2],s[2],l)),r[3]=Lc(ji(o[3],s[3],l)),r}}var WW=Nc;function by(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=Or(e[a]),s=Or(e[i]),l=n-a,u=Kn([jn(ji(o[0],s[0],l)),jn(ji(o[1],s[1],l)),jn(ji(o[2],s[2],l)),Lc(ji(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var UW=by;function Ml(t,e,r,n){var a=Or(t);if(t)return a=GW(a),e!=null&&(a[0]=$W(e)),r!=null&&(a[1]=qo(r)),n!=null&&(a[2]=qo(n)),Kn(_y(a),"rgba")}function Pc(t,e){var r=Or(t);if(r&&e!=null)return r[3]=Lc(e),Kn(r,"rgba")}function Kn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Oc(t,e){var r=Or(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function YW(){return Kn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var CD=new kc(100);function Od(t){if(ie(t)){var e=CD.get(t);return e||(e=Pd(t,-.1),CD.put(t,e)),e}else if(gc(t)){var r=W({},t);return r.colorStops=K(t.colorStops,function(n){return{offset:n.offset,color:Pd(n.color,-.1)}}),r}return t}const ZW=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Nc,fastMapToColor:WW,lerp:by,lift:Pd,liftColor:Od,lum:Oc,mapToColor:UW,modifyAlpha:Pc,modifyHSL:Ml,parse:Or,random:YW,stringify:Kn,toHex:HW},Symbol.toStringTag,{value:"Module"}));var Rd=Math.round;function Rc(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Or(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var TD=1e-4;function Ki(t){return t<TD&&t>-TD}function Vd(t){return Rd(t*1e3)/1e3}function Sy(t){return Rd(t*1e4)/1e4}function XW(t){return"matrix("+Vd(t[0])+","+Vd(t[1])+","+Vd(t[2])+","+Vd(t[3])+","+Sy(t[4])+","+Sy(t[5])+")"}var jW={left:"start",right:"end",center:"middle",middle:"middle"};function KW(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function qW(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function JW(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function DD(t){return t&&!!t.image}function QW(t){return t&&!!t.svgElement}function wy(t){return DD(t)||QW(t)}function ED(t){return t.type==="linear"}function MD(t){return t.type==="radial"}function AD(t){return t&&(t.type==="linear"||t.type==="radial")}function Bd(t){return"url(#"+t+")"}function ID(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function kD(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*_c,a=De(t.scaleX,1),i=De(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Rd(o*_c)+"deg, "+Rd(s*_c)+"deg)"),l.join(" ")}var eU=function(){return Fe.hasGlobalWindow&&de(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&gn("Base64 isn't natively supported in the current environment."),null}}(),xy=Array.prototype.slice;function ni(t,e,r){return(e-t)*r+t}function Cy(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=ni(e[i],r[i],n);return t}function tU(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=ni(e[o][s],r[o][s],n)}return t}function Fd(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function LD(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function rU(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,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 nU(t,e,r){var n=t,a=e;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]:xy.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 Vc(t){if(dr(t)){var e=t.length;if(dr(t[0])){for(var r=[],n=0;n<e;n++)r.push(xy.call(t[n]));return r}return xy.call(t)}return t}function zd(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function aU(t){return dr(t&&t[0])?2:1}var $d=0,Gd=1,ND=2,Bc=3,Ty=4,Dy=5,PD=6;function OD(t){return t===Ty||t===Dy}function Hd(t){return t===Gd||t===ND}var Fc=[0,0,0,0],iU=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=PD,l=r;if(dr(r)){var u=aU(r);s=u,(u===1&&!Ke(r[0])||u===2&&!Ke(r[0][0]))&&(o=!0)}else if(Ke(r)&&!$i(r))s=$d;else if(ie(r))if(!isNaN(+r))s=$d;else{var c=Or(r);c&&(l=c,s=Bc)}else if(gc(r)){var f=W({},l);f.colorStops=K(r.colorStops,function(d){return{offset:d.offset,color:Or(d.color)}}),ED(r)?s=Ty:MD(r)&&(s=Dy),l=f}i===0?this.valType=s:(s!==this.valType||s===PD)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=de(n)?n:Ac[n]||vy(n)),a.push(h),h},t.prototype.prepare=function(e,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=Hd(a),u=OD(a),c=0;c<i;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/e,s||(l&&c!==i-1?nU(h,d,a):u&&rU(h.colorStops,d.colorStops))}if(!s&&a!==Dy&&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===$d?n[c].additiveValue=n[c].value-v:a===Bc?n[c].additiveValue=Fd([],n[c].value,v,-1):Hd(a)&&(n[c].additiveValue=a===Gd?Fd([],n[c].value,v,-1):LD([],n[c].value,v,-1))}},t.prototype.step=function(e,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===Bc,c,f=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=h(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=h(c-1,s-2)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-d.percent,y=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var _=n?this._additiveValue:u?Fc:e[l];if((Hd(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=y<1?d.rawValue:v.rawValue;else if(Hd(i))i===Gd?Cy(_,d[a],v[a],y):tU(_,d[a],v[a],y);else if(OD(i)){var b=d[a],S=v[a],w=i===Ty;e[l]={type:w?"linear":"radial",x:ni(b.x,S.x,y),y:ni(b.y,S.y,y),colorStops:K(b.colorStops,function(C,T){var D=S.colorStops[T];return{offset:ni(C.offset,D.offset,y),color:zd(Cy([],C.color,D.color,y))}}),global:S.global},w?(e[l].x2=ni(b.x2,S.x2,y),e[l].y2=ni(b.y2,S.y2,y)):e[l].r=ni(b.r,S.r,y)}else if(u)Cy(_,d[a],v[a],y),n||(e[l]=zd(_));else{var x=ni(d[a],v[a],y);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===$d?e[n]=e[n]+a:r===Bc?(Or(e[n],Fc),Fd(Fc,Fc,a,1),e[n]=zd(Fc)):r===Gd?Fd(e[n],e[n],a,1):r===ND&&LD(e[n],e[n],a,1)},t}(),Ey=function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){gn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,$e(r),n)},t.prototype.whenWithKeys=function(e,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 iU(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===Bc&&u&&(u=zd(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Vc(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Vc(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){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 h=new FW({life:a,loop:this._loop,delay:this._delay||0,onframe:function(d){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,d);var y=r._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return K(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[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},t.prototype.saveTo=function(e,r,n){if(e){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&&(e[i]=Vc(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||$e(e);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,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function Al(){return new Date().getTime()}var oU=function(t){F(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Al()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Md(n),!r._paused&&r.update())}Md(n)},e.prototype.start=function(){this._running||(this._time=Al(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Al(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Al()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new Ey(r,n.loop);return this.addAnimator(a),a},e}(_n),sU=300,My=Fe.domSupported,Ay=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=K(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}}(),RD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},VD=!1;function Iy(t){var e=t.pointerType;return e==="pen"||e==="touch"}function lU(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ky(t){t&&(t.zrByTouch=!0)}function uU(t,e){return bn(t.dom,new cU(t,e),!0)}function BD(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var cU=function(){function t(e,r){this.stopPropagation=kt,this.stopImmediatePropagation=kt,this.preventDefault=kt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),qn={mousedown:function(t){t=bn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=bn(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=bn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=bn(this.dom,t);var e=t.toElement||t.relatedTarget;BD(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){VD=!0,t=bn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){VD||(t=bn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=bn(this.dom,t),ky(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qn.mousemove.call(this,t),qn.mousedown.call(this,t)},touchmove:function(t){t=bn(this.dom,t),ky(t),this.handler.processGesture(t,"change"),qn.mousemove.call(this,t)},touchend:function(t){t=bn(this.dom,t),ky(t),this.handler.processGesture(t,"end"),qn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<sU&&qn.click.call(this,t)},pointerdown:function(t){qn.mousedown.call(this,t)},pointermove:function(t){Iy(t)||qn.mousemove.call(this,t)},pointerup:function(t){qn.mouseup.call(this,t)},pointerout:function(t){Iy(t)||qn.mouseout.call(this,t)}};M(["click","dblclick","contextmenu"],function(t){qn[t]=function(e){e=bn(this.dom,e),this.trigger(t,e)}});var Ly={pointermove:function(t){Iy(t)||Ly.mousemove.call(this,t)},pointerup:function(t){Ly.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function fU(t,e){var r=e.domHandlers;Fe.pointerEventsSupported?M(Ay.pointer,function(n){Wd(e,n,function(a){r[n].call(t,a)})}):(Fe.touchEventsSupported&&M(Ay.touch,function(n){Wd(e,n,function(a){r[n].call(t,a),lU(e)})}),M(Ay.mouse,function(n){Wd(e,n,function(a){a=sy(a),e.touching||r[n].call(t,a)})}))}function hU(t,e){Fe.pointerEventsSupported?M(RD.pointer,r):Fe.touchEventsSupported||M(RD.mouse,r);function r(n){function a(i){i=sy(i),BD(t,i.target)||(i=uU(t,i),e.domHandlers[n].call(t,i))}Wd(e,n,a,{capture:!0})}}function Wd(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,ly(t.domTarget,e,r,n)}function Ny(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&wW(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var FD=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),dU=function(t){F(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new FD(r,qn),My&&(a._globalHandlerScope=new FD(document,Ly)),fU(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Ny(this._localHandlerScope),My&&Ny(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,My&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?hU(this,n):Ny(n)}},e}(_n),zD=1;Fe.hasGlobalWindow&&(zD=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ud=zD,Py=.4,Oy="#333",Ry="#ccc",pU="#eee",$D=xc,GD=5e-5;function Jo(t){return t>GD||t<-GD}var Qo=[],Il=[],Vy=Zr(),By=Math.abs,ai=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Jo(this.rotation)||Jo(this.x)||Jo(this.y)||Jo(this.scaleX-1)||Jo(this.scaleY-1)||Jo(this.skewX)||Jo(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&($D(n),this.invTransform=null);return}n=n||Zr(),r?this.getLocalTransform(n):$D(n),e&&(r?_a(n,e,n):xd(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qo);var n=Qo[0]<0?-1:1,a=Qo[1]<0?-1:1,i=((Qo[0]-n)*r+n)/Qo[0]||0,o=((Qo[1]-a)*r+a)/Qo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Zr(),Yo(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Zr(),_a(Il,e.invTransform,r),r=Il);var n=this.originX,a=this.originY;(n||a)&&(Vy[4]=n,Vy[5]=a,_a(Il,r,Vy),Il[4]-=n,Il[5]-=a,r=Il),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&ir(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&ir(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&By(e[0]-1)>1e-10&&By(e[3]-1)>1e-10?Math.sqrt(By(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){HD(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var v=n+s,g=a+l;r[4]=-v*i-h*g*o,r[5]=-g*o-d*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=d*i,r[2]=h*o,u&&Ui(r,r,u),r[4]+=n+c,r[5]+=a+f,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Sa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function HD(t,e){for(var r=0;r<Sa.length;r++){var n=Sa[r];t[n]=e[n]}}var WD={};function on(t,e){e=e||Fi;var r=WD[e];r||(r=WD[e]=new kc(500));var n=r.get(t);return n==null&&(n=Zn.measureText(t,e).width,r.put(t,n)),n}function UD(t,e,r,n){var a=on(t,e),i=Yd(e),o=$c(0,a,r),s=kl(0,i,n),l=new Pe(o,s,a,i);return l}function zc(t,e,r,n){var a=((t||"")+"").split(`
34
+ `),i=a.length;if(i===1)return UD(a[0],e,r,n);for(var o=new Pe(0,0,0,0),s=0;s<a.length;s++){var l=UD(a[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function $c(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function kl(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Yd(t){return on("国",t)}function Jn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Zd(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.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+=Jn(n[0],r.width),u+=Jn(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 t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var Fy="__zr_normal__",zy=Sa.concat(["ignore"]),vU=mn(Sa,function(t,e){return t[e]=!0,t},{ignore:!1}),Ll={},gU=new Pe(0,0,0,0),Xd=function(){function t(e){this.id=jm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,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=gU;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ll,n,c):Zd(Ll,n,c),i.x=Ll.x,i.y=Ll.y,o=Ll.align,s=Ll.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=Jn(f[0],c.width),d=Jn(f[1],c.height)),u=!0,i.originX=-i.x+h+(a?0:c.x),i.originY=-i.y+d+(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|=an,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ry:Oy},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Or(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,Kn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},W(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(ve(e))for(var n=e,a=$e(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Fy)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,zy)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Fy,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Fy,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Re(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){gn("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,r,n,c),h&&h.useState(e,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~an),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,r,h),m&&m.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~an)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Re(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=Re(a,e),o=Re(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];W(r,i),i.textConfig&&(n=n||{},W(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=W({},a?this.textConfig:n.textConfig),W(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<zy.length;c++){var f=zy[c],h=i&&vU[f];r&&r[f]!=null?h?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new ai,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),W(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=an;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){gn('Property "'+e+'" is not existed in element '+this.id);return}var i=new Ey(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Re(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){$y(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){$y(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=$y(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=an;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(e,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(h){c[s]=h}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();It(Xd,_n),It(Xd,ai);function $y(t,e,r,n,a){r=r||{};var i=[];YD(t,"",t,e,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 h=0;h<i.length;h++){var d=i[h];c&&d.done(c),f&&d.aborted(f),r.force&&d.duration(r.duration),d.start(r.easing)}return i}function Gy(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function mU(t){return dr(t[0])}function yU(t,e,r){if(dr(e[r]))if(dr(t[r])||(t[r]=[]),br(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Gy(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(mU(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Gy(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Gy(i,a,o);i.length=a.length}else t[r]=e[r]}function _U(t,e){return t===e||dr(t)&&dr(e)&&bU(t,e)}function bU(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function YD(t,e,r,n,a,i,o,s){for(var l=$e(n),u=a.duration,c=a.delay,f=a.additive,h=a.setToFinal,d=!ve(i),v=t.animators,g=[],m=0;m<l.length;m++){var y=l[m],_=n[y];if(_!=null&&r[y]!=null&&(d||i[y]))if(ve(_)&&!dr(_)&&!gc(_)){if(e){s||(r[y]=_,t.updateDuringAnimation(e));continue}YD(t,y,r[y],_,a,i&&i[y],o,s)}else g.push(y);else s||(r[y]=_,t.updateDuringAnimation(e),g.push(y))}var b=g.length;if(!f&&b)for(var S=0;S<v.length;S++){var w=v[S];if(w.targetName===e){var x=w.stopTracks(g);if(x){var C=Re(v,w);v.splice(C,1)}}}if(a.force||(g=tt(g,function(A){return!_U(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={},h&&(T={});for(var S=0;S<b;S++){var y=g[S];D[y]=r[y],h?T[y]=n[y]:r[y]=n[y]}}else if(h){E={};for(var S=0;S<b;S++){var y=g[S];E[y]=Vc(r[y]),yU(r,n,y)}}var w=new Ey(r,!1,!1,f?tt(v,function(I){return I.targetName===e}):null);w.targetName=e,a.scope&&(w.scope=a.scope),h&&T&&w.whenWithKeys(0,T,g),E&&w.whenWithKeys(0,E,g),w.whenWithKeys(u??500,s?D:n,g).delay(c||0),t.addAnimator(w,e),o.push(w)}}var Ce=function(t){F(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=Re(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.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},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Re(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.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},e.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},e.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},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Pe(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?(Pe.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Xd);Ce.prototype.type="group";/*!
35
+ * ZRender, a high performance 2d drawing library.
36
+ *
37
+ * Copyright (c) 2013, Baidu Inc.
38
+ * All rights reserved.
39
+ *
40
+ * LICENSE
41
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
42
+ */var Gc={},es={};function SU(t){delete es[t]}function wU(t){if(!t)return!1;if(typeof t=="string")return Oc(t,1)<Py;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=Oc(e[a].color,1);return r/=n,r<Py}return!1}var xU=function(){function t(e,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=e;var i=new PW,o=n.renderer||"canvas";if(Gc[o]||(o=$e(Gc)[0]),process.env.NODE_ENV!=="production"&&!Gc[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Gc[o](r,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Fe.node&&!Fe.worker&&!l?new dU(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Fe.touchEventsSupported:!!c,h=44,d;f&&(d=De(n.pointerSize,h)),this.handler=new iD(i,s,u,s.root,d),this.animation=new oU({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=wU(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Al();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Al();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Ce&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,SU(this.id))},t}();function Hy(t,e){var r=new xU(jm(),t,e);return es[r.id]=r,r}function CU(t){t.dispose()}function TU(){for(var t in es)es.hasOwnProperty(t)&&es[t].dispose();es={}}function DU(t){return es[t]}function ZD(t,e){Gc[t]=e}var Wy;function XD(t){if(typeof Wy=="function")return Wy(t)}function jD(t){Wy=t}var EU="5.6.1";const MU=Object.freeze(Object.defineProperty({__proto__:null,dispose:CU,disposeAll:TU,getElementSSRData:XD,getInstance:DU,init:Hy,registerPainter:ZD,registerSSRDataGetter:jD,version:EU},Symbol.toStringTag,{value:"Module"}));var KD=1e-4,qD=20;function AU(t){return t.replace(/^\s+|\s+$/g,"")}function at(t,e,r,n){var a=e[0],i=e[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(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}function ne(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return ie(t)?AU(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Mt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),qD),t=(+t).toFixed(e),r?t:+t}function sn(t){return t.sort(function(e,r){return e-r}),t}function Qn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return jd(t)}function jd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Uy(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function IU(t,e,r){if(!t[e])return 0;var n=JD(t,r);return n[e]||0}function JD(t,e){var r=mn(t,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=K(t,function(d){return(isNaN(d)?0:d)/r*n*100}),i=n*100,o=K(a,function(d){return Math.floor(d)}),s=mn(o,function(d,v){return d+v},0),l=K(a,function(d,v){return d-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return K(o,function(d){return d/n})}function kU(t,e){var r=Math.max(Qn(t),Qn(e)),n=t+e;return r>qD?n:Mt(n,r)}var Yy=9007199254740991;function Zy(t){var e=Math.PI*2;return(t%e+e)%e}function Nl(t){return t>-KD&&t<KD}var LU=/^(?:(\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 ln(t){if(t instanceof Date)return t;if(ie(t)){var e=LU.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function QD(t){return Math.pow(10,Hc(t))}function Hc(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Xy(t,e){var r=Hc(t),n=Math.pow(10,r),a=t/n,i;return e?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,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Kd(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function jy(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;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 wa(t){var e=parseFloat(t);return e==t&&(e!==0||!ie(t)||t.indexOf("x")<=0)?e:NaN}function qd(t){return!isNaN(wa(t))}function eE(){return Math.round(Math.random()*9)}function tE(t,e){return e===0?t:tE(e,t%e)}function rE(t,e){return t==null?e:e==null?t:t*e/tE(t,e)}var NU="[ECharts] ",nE={},PU=typeof console<"u"&&console.warn&&console.log;function Jd(t,e,r){if(PU){if(r){if(nE[e])return;nE[e]=!0}console[t](NU+e)}}function OU(t,e){Jd("log",t,e)}function Ct(t,e){Jd("warn",t,e)}function pr(t,e){Jd("error",t,e)}function xn(t){process.env.NODE_ENV!=="production"&&Jd("warn","DEPRECATED: "+t,!0)}function Ot(t,e,r){process.env.NODE_ENV!=="production"&&xn((r?"["+r+"]":"")+(t+" is deprecated, use "+e+" instead."))}function Rr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];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":$i(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":de(a)?"function () { ... }":Jm(a)?a+"":null};r=K(t,function(a){if(ie(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 it(t){throw new Error(t)}function aE(t,e,r){return(e-t)*r+t}var iE="series\0",oE="\0_ec_\0";function ut(t){return t instanceof Array?t:t==null?[]:[t]}function ts(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var sE=["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 Pl(t){return ve(t)&&!Z(t)&&!(t instanceof Date)?t.value:t}function RU(t){return ve(t)&&!(t instanceof Array)}function lE(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=fe();M(e,function(l,u){if(!ve(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!fE(l.id)&&cE(l.id),l.name!=null&&!fE(l.name)&&cE(l.name))});var s=VU(t,o,r);return(n||a)&&BU(s,t,o,e),n&&FU(s,e),n||a?zU(s,e,a):i&&$U(s,e),GU(s),s}function VU(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||Ol(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function BU(t,e,r,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Wc(a.id),s=r.get(o);if(s!=null){var l=t[s];_e(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function FU(t,e){M(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!Ol(r)&&!Ol(i)&&uE("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function zU(t,e,r){M(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||Ol(a.existing)||a.existing&&n.id!=null&&!uE("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function $U(t,e){M(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function GU(t){var e=fe();M(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),M(t,function(r){var n=r.newOption;_e(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(ve(i)){if(o.name=i.name!=null?Wc(i.name):a?a.name:iE+n,a)o.id=Wc(a.id);else if(i.id!=null)o.id=Wc(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function uE(t,e,r){var n=Zt(e[t],null),a=Zt(r[t],null);return n!=null&&a!=null&&n===a}function Wc(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return Zt(t,"")}function Zt(t,e){return t==null?e:ie(t)?t:Ke(t)||vc(t)?t+"":e}function cE(t){process.env.NODE_ENV!=="production"&&Ct("`"+t+"` is invalid id or name. Must be a string or number.")}function fE(t){return vc(t)||qd(t)}function Ky(t){var e=t.name;return!!(e&&e.indexOf(iE))}function Ol(t){return t&&t.id!=null&&Wc(t.id).indexOf(oE)===0}function HU(t){return oE+t}function WU(t,e,r){M(t,function(n){var a=n.newOption;ve(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=UU(e,a,n.existing,r))})}function UU(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function YU(t,e){var r={},n={};return a(t||[],r),a(e||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Zt(o[u].seriesId,null);if(f==null)return;for(var h=ut(o[u].dataIndex),d=l&&l[f],v=0,g=h.length;v<g;v++){var m=h[v];d&&d[m]?d[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 rs(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Z(e.dataIndex)?K(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Z(e.name)?K(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function je(){var t="__ec_inner_"+ZU++;return function(e){return e[t]||(e[t]={})}}var ZU=eE();function Uc(t,e,r){var n=qy(e,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=Yc(t,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 qy(t,e){var r;if(ie(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=fe(),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||e&&e.includeMainTypes&&Re(e.includeMainTypes,c)<0)){o=o||!!c;var h=a.get(c)||a.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var $t={useDefault:!0,enableAll:!1,enableNone:!1},XU={useDefault:!1,enableAll:!0,enableNone:!0};function Yc(t,e,r,n){n=n||$t;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=t.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(_e(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(_e(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function hE(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function jU(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function KU(t){return t==="auto"?Fe.domSupported?"html":"richText":t||"html"}function Jy(t,e){var r=fe(),n=[];return M(t,function(a){var i=e(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function dE(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Ke(n)){var o=aE(r||0,n,a);return Mt(o,i?Math.max(Qn(r||0),Qn(n)):e)}else{if(ie(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 h=t.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,v=u[f],o=aE(d,v,a);s[f]=Mt(o,i?Math.max(Qn(d),Qn(v)):e)}}return s}}var qU=".",ns="___EC__COMPONENT__CONTAINER___",pE="___EC__EXTENDED_CLASS___";function xa(t){var e={main:"",sub:""};if(t){var r=t.split(qU);e.main=r[0]||"",e.sub=r[1]||""}return e}function JU(t){_e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function QU(t){return!!(t&&t[pE])}function Qy(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&M(e,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return e9(n)?a=function(i){F(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Km(a,this)),W(a.prototype,r),a[pE]=!0,a.extend=this.extend,a.superCall=n9,a.superApply=a9,a.superClass=n,a}}function e9(t){return de(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function vE(t,e){t.extend=e.extend}var t9=Math.round(Math.random()*10);function r9(t){var e=["__\0is_clz",t9++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&_e(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function n9(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function a9(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Qd(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){JU(a),n.prototype.type=a;var i=xa(a);if(!i.sub)process.env.NODE_ENV!=="production"&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==ns){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[ns]&&(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},t.getClassesByMainType=function(n){var a=xa(n),i=[],o=e[a.main];return o&&o[ns]?M(o,function(s,l){l!==ns&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=xa(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return M(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=xa(n),i=e[a.main];return i&&i[ns]};function r(n){var a=e[n.main];return(!a||!a[ns])&&(a=e[n.main]={},a[ns]=!0),a}}function as(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&Re(a,l)>=0||i&&Re(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var i9=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],o9=as(i9),s9=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return o9(this,e,r)},t}(),e0=new kc(50);function l9(t){if(typeof t=="string"){var e=e0.get(t);return e&&e.image}else return t}function t0(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=e0.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!ep(e)&&i.pending.push(o)):(e=Zn.loadImage(t,gE,gE),e.__zrImageSrc=t,e0.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function gE(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ep(t){return t&&t.width&&t.height}var r0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u9(t,e,r,n,a){var i={};return mE(i,t,e,r,n,a),i.text}function mE(t,e,r,n,a,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
43
+ `);i=yE(r,n,a,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)_E(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
44
+ `),t.isTruncated=s}function yE(t,e,r,n){n=n||{};var a=W({},n);a.font=e,r=De(r,"..."),a.maxIterations=De(n.maxIterations,2);var i=a.minChar=De(n.minChar,0);a.cnCharWidth=on("国",e);var o=a.ascCharWidth=on("a",e);a.placeholder=De(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=on(r,e);return u>s&&(r="",u=0),s=t-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=t,a}function _E(t,e,r){var n=r.containerWidth,a=r.font,i=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var o=on(e,a);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?c9(e,i,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=on(e,a)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function c9(t,e,r,n){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var s=t.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function f9(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,a=e.font,i=r==="truncate",o=Yd(a),s=De(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(r==="break"||r==="breakAll")?h=t?SE(t,e.font,f,r==="breakAll",0).lines:[]:h=t?t.split(`
45
+ `):[];var d=h.length*s,v=De(e.height,d);if(d>v&&u){var g=Math.floor(v/s);c=c||h.length>g,h=h.slice(0,g)}if(t&&i&&f!=null)for(var m=yE(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},_=0;_<h.length;_++)_E(y,h[_],m),h[_]=y.textLine,c=c||y.isTruncated;for(var b=v,S=0,_=0;_<h.length;_++)S=Math.max(on(h[_],a),S);f==null&&(f=S);var w=S;return n&&(b+=n[0]+n[2],w+=n[1]+n[3],f+=n[1]+n[3]),l&&(w=f),{lines:h,height:v,outerWidth:w,outerHeight:b,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:d,width:f,isTruncated:c}}var h9=function(){function t(){}return t}(),bE=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),d9=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function p9(t,e){var r=new d9;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=r0.lastIndex=0,l;(l=r0.exec(t))!=null;){var u=l.index;u>s&&n0(r,t.substring(s,u),e,o),n0(r,l[2],e,o,l[1]),s=r0.lastIndex}s<t.length&&n0(r,t.substring(s,t.length),e,o);var c=[],f=0,h=0,d=e.padding,v=i==="truncate",g=e.lineOverflow==="truncate",m={};function y(Y,z,$){Y.width=z,Y.lineHeight=$,f+=$,h=Math.max(h,z)}e:for(var _=0;_<r.lines.length;_++){for(var b=r.lines[_],S=0,w=0,x=0;x<b.tokens.length;x++){var C=b.tokens[x],T=C.styleName&&e.rich[C.styleName]||{},D=C.textPadding=T.padding,E=D?D[1]+D[3]:0,A=C.font=T.font||e.font;C.contentHeight=Yd(A);var I=De(T.height,C.contentHeight);if(C.innerHeight=I,D&&(I+=D[0]+D[2]),C.height=I,C.lineHeight=nn(T.lineHeight,e.lineHeight,I),C.align=T&&T.align||e.align,C.verticalAlign=T&&T.verticalAlign||"middle",g&&a!=null&&f+C.lineHeight>a){var k=r.lines.length;x>0?(b.tokens=b.tokens.slice(0,x),y(b,w,S),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<k;break e}var L=T.width,N=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")C.percentWidth=L,c.push(C),C.contentWidth=on(C.text,A);else{if(N){var P=T.backgroundColor,B=P&&P.image;B&&(B=l9(B),ep(B)&&(C.width=Math.max(C.width,B.width*I/B.height)))}var V=v&&n!=null?n-w:null;V!=null&&V<C.width?!N||V<E?(C.text="",C.width=C.contentWidth=0):(mE(m,C.text,V-E,A,e.ellipsis,{minChar:e.truncateMinChar}),C.text=m.text,r.isTruncated=r.isTruncated||m.isTruncated,C.width=C.contentWidth=on(C.text,A)):C.contentWidth=on(C.text,A)}C.width+=E,w+=C.width,T&&(S=Math.max(S,C.lineHeight))}y(b,w,S)}r.outerWidth=r.width=De(n,h),r.outerHeight=r.height=De(a,f),r.contentHeight=f,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var _=0;_<c.length;_++){var C=c[_],G=C.percentWidth;C.width=parseInt(G,10)/100*r.width}return r}function n0(t,e,r,n,a){var i=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,c,f;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Jn(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(c=e.split(`
46
+ `),u=!0),n.accumWidth=v}else{var g=SE(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+d,f=g.linesWidths,c=g.lines}}else c=e.split(`
47
+ `);for(var m=0;m<c.length;m++){var y=c[m],_=new h9;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:on(y,l),!m&&!u){var b=(s[s.length-1]||(s[0]=new bE)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||i)&&b.push(_)}else s.push(new bE([_]))}}function v9(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var g9=mn(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function m9(t){return v9(t)?!!g9[t]:!0}function SE(t,e,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var h=t.charAt(f);if(h===`
48
+ `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=on(h,e),v=n?!1:!m9(h);if(i.length?c+d>r:a+c+d>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=h,c=d)):v?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}c+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=t,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 a0="__zr_style_"+Math.round(Math.random()*10),is={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};is[a0]=!0;var wE=["z","z2","invisible"],y9=["invisible"],Cn=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=$e(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&_9(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},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.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 Pe(0,0,0,0)),n?Pe.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},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Pe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:W(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Mc,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Mc)},e.prototype.styleUpdated=function(){this.__dirty&=~Mc},e.prototype.createStyle=function(r){return yc(is,r)},e.prototype.useStyle=function(r){r[a0]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[a0]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,wE)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.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=$e(c),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var v=$e(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?y9:wE,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype._mergeStyle=function(r,n){return W(r,n),r},e.prototype.getAnimationStyleProps=function(){return tp},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=an|Mc}(),e}(Xd),i0=new Pe(0,0,0,0),o0=new Pe(0,0,0,0);function _9(t,e,r){return i0.copy(t.getBoundingRect()),t.transform&&i0.applyTransform(t.transform),o0.width=e,o0.height=r,!i0.intersect(o0)}var Xr=Math.min,jr=Math.max,s0=Math.sin,l0=Math.cos,os=Math.PI*2,rp=Gi(),np=Gi(),ap=Gi();function ip(t,e,r){if(t.length!==0){for(var n=t[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],a=Xr(a,n[0]),i=jr(i,n[0]),o=Xr(o,n[1]),s=jr(s,n[1]);e[0]=a,e[1]=o,r[0]=i,r[1]=s}}function xE(t,e,r,n,a,i){a[0]=Xr(t,r),a[1]=Xr(e,n),i[0]=jr(t,r),i[1]=jr(e,n)}var CE=[],TE=[];function b9(t,e,r,n,a,i,o,s,l,u){var c=mD,f=qt,h=c(t,r,a,o,CE);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=f(t,r,a,o,CE[d]);l[0]=Xr(v,l[0]),u[0]=jr(v,u[0])}h=c(e,n,i,s,TE);for(var d=0;d<h;d++){var g=f(e,n,i,s,TE[d]);l[1]=Xr(g,l[1]),u[1]=jr(g,u[1])}l[0]=Xr(t,l[0]),u[0]=jr(t,u[0]),l[0]=Xr(o,l[0]),u[0]=jr(o,u[0]),l[1]=Xr(e,l[1]),u[1]=jr(e,u[1]),l[1]=Xr(s,l[1]),u[1]=jr(s,u[1])}function S9(t,e,r,n,a,i,o,s){var l=_D,u=or,c=jr(Xr(l(t,r,a),1),0),f=jr(Xr(l(e,n,i),1),0),h=u(t,r,a,c),d=u(e,n,i,f);o[0]=Xr(t,a,h),o[1]=Xr(e,i,d),s[0]=jr(t,a,h),s[1]=jr(e,i,d)}function w9(t,e,r,n,a,i,o,s,l){var u=ei,c=ti,f=Math.abs(a-i);if(f%os<1e-4&&f>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(rp[0]=l0(a)*r+t,rp[1]=s0(a)*n+e,np[0]=l0(i)*r+t,np[1]=s0(i)*n+e,u(s,rp,np),c(l,rp,np),a=a%os,a<0&&(a=a+os),i=i%os,i<0&&(i=i+os),a>i&&!o?i+=os:a<i&&o&&(a+=os),o){var h=i;i=a,a=h}for(var d=0;d<i;d+=Math.PI/2)d>a&&(ap[0]=l0(d)*r+t,ap[1]=s0(d)*n+e,u(s,ap,s),c(l,ap,l))}var vt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ss=[],ls=[],Ca=[],qi=[],Ta=[],Da=[],u0=Math.min,c0=Math.max,us=Math.cos,cs=Math.sin,ii=Math.abs,f0=Math.PI,Ji=f0*2,h0=typeof Float32Array<"u",Zc=[];function d0(t){var e=Math.round(t/f0*1e8)/1e8;return e%2*f0}function p0(t,e){var r=d0(t[0]);r<0&&(r+=Ji);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=Ji?a=r+Ji:e&&r-a>=Ji?a=r-Ji:!e&&r>a?a=r+(Ji-d0(r-a)):e&&r<a&&(a=r-(Ji-d0(a-r))),t[0]=r,t[1]=a}var Ea=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=ii(n/Ud/e)||0,this._uy=ii(n/Ud/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(vt.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=ii(e-this._xi),a=ii(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(vt.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(vt.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(vt.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),Zc[0]=a,Zc[1]=i,p0(Zc,o),a=Zc[0],i=Zc[1];var s=i-a;return this.addData(vt.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=us(i)*n+e,this._yi=cs(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(vt.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(vt.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&h0&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();h0&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},t.prototype.addData=function(e,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,h0&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ca[0]=Ca[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,qi[0]=qi[1]=Da[0]=Da[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],a=r,i=n),s){case vt.M:r=a=e[o++],n=i=e[o++],Ta[0]=a,Ta[1]=i,Da[0]=a,Da[1]=i;break;case vt.L:xE(r,n,e[o],e[o+1],Ta,Da),r=e[o++],n=e[o++];break;case vt.C:b9(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ta,Da),r=e[o++],n=e[o++];break;case vt.Q:S9(r,n,e[o++],e[o++],e[o],e[o+1],Ta,Da),r=e[o++],n=e[o++];break;case vt.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],d=e[o++],v=e[o++]+d;o+=1;var g=!e[o++];l&&(a=us(d)*f+u,i=cs(d)*h+c),w9(u,c,f,h,d,v,g,Ta,Da),r=us(v)*f+u,n=cs(v)*h+c;break;case vt.R:a=r=e[o++],i=n=e[o++];var m=e[o++],y=e[o++];xE(a,i,a+m,i+y,Ta,Da);break;case vt.Z:r=a,n=i;break}ei(Ca,Ca,Ta),ti(qi,qi,Da)}return o===0&&(Ca[0]=Ca[1]=qi[0]=qi[1]=0),new Pe(Ca[0],Ca[1],qi[0]-Ca[0],qi[1]-Ca[1])},t.prototype._calculateLength=function(){var e=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,h=0;h<r;){var d=e[h++],v=h===1;v&&(i=e[h],o=e[h+1],s=i,l=o);var g=-1;switch(d){case vt.M:i=s=e[h++],o=l=e[h++];break;case vt.L:{var m=e[h++],y=e[h++],_=m-i,b=y-o;(ii(_)>n||ii(b)>a||h===r-1)&&(g=Math.sqrt(_*_+b*b),i=m,o=y);break}case vt.C:{var S=e[h++],w=e[h++],m=e[h++],y=e[h++],x=e[h++],C=e[h++];g=OW(i,o,S,w,m,y,x,C,10),i=x,o=C;break}case vt.Q:{var S=e[h++],w=e[h++],m=e[h++],y=e[h++];g=VW(i,o,S,w,m,y,10),i=m,o=y;break}case vt.A:var T=e[h++],D=e[h++],E=e[h++],A=e[h++],I=e[h++],k=e[h++],L=k+I;h+=1,v&&(s=us(I)*E+T,l=cs(I)*A+D),g=c0(E,A)*u0(Ji,Math.abs(k)),i=us(L)*E+T,o=cs(L)*A+D;break;case vt.R:{s=i=e[h++],l=o=e[h++];var N=e[h++],P=e[h++];g=N*2+P*2;break}case vt.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},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,h,d=r<1,v,g,m=0,y=0,_,b=0,S,w;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,_=r*g,!_)))e:for(var x=0;x<o;){var C=n[x++],T=x===1;switch(T&&(u=n[x],c=n[x+1],s=u,l=c),C!==vt.L&&b>0&&(e.lineTo(S,w),b=0),C){case vt.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case vt.L:{f=n[x++],h=n[x++];var D=ii(f-u),E=ii(h-c);if(D>a||E>i){if(d){var A=v[y++];if(m+A>_){var I=(_-m)/A;e.lineTo(u*(1-I)+f*I,c*(1-I)+h*I);break e}m+=A}e.lineTo(f,h),u=f,c=h,b=0}else{var k=D*D+E*E;k>b&&(S=f,w=h,b=k)}break}case vt.C:{var L=n[x++],N=n[x++],P=n[x++],B=n[x++],V=n[x++],G=n[x++];if(d){var A=v[y++];if(m+A>_){var I=(_-m)/A;Xi(u,L,P,V,I,ss),Xi(c,N,B,G,I,ls),e.bezierCurveTo(ss[1],ls[1],ss[2],ls[2],ss[3],ls[3]);break e}m+=A}e.bezierCurveTo(L,N,P,B,V,G),u=V,c=G;break}case vt.Q:{var L=n[x++],N=n[x++],P=n[x++],B=n[x++];if(d){var A=v[y++];if(m+A>_){var I=(_-m)/A;Ic(u,L,P,I,ss),Ic(c,N,B,I,ls),e.quadraticCurveTo(ss[1],ls[1],ss[2],ls[2]);break e}m+=A}e.quadraticCurveTo(L,N,P,B),u=P,c=B;break}case vt.A:var Y=n[x++],z=n[x++],$=n[x++],q=n[x++],J=n[x++],ae=n[x++],Oe=n[x++],Qe=!n[x++],Me=$>q?$:q,he=ii($-q)>.001,Ie=J+ae,ue=!1;if(d){var A=v[y++];m+A>_&&(Ie=J+ae*(_-m)/A,ue=!0),m+=A}if(he&&e.ellipse?e.ellipse(Y,z,$,q,Oe,J,Ie,Qe):e.arc(Y,z,Me,J,Ie,Qe),ue)break e;T&&(s=us(J)*$+Y,l=cs(J)*q+z),u=us(Ie)*$+Y,c=cs(Ie)*q+z;break;case vt.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var me=n[x++],nt=n[x++];if(d){var A=v[y++];if(m+A>_){var Ye=_-m;e.moveTo(f,h),e.lineTo(f+u0(Ye,me),h),Ye-=me,Ye>0&&e.lineTo(f+me,h+u0(Ye,nt)),Ye-=nt,Ye>0&&e.lineTo(f+c0(me-Ye,0),h+nt),Ye-=me,Ye>0&&e.lineTo(f,h+c0(nt-Ye,0));break e}m+=A}e.rect(f,h,me,nt);break;case vt.Z:if(d){var A=v[y++];if(m+A>_){var I=(_-m)/A;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}m+=A}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=vt,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Qi(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function x9(t,e,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>i+f&&c>s+f||c<e-f&&c<n-f&&c<i-f&&c<s-f||u>t+f&&u>r+f&&u>a+f&&u>o+f||u<t-f&&u<r-f&&u<a-f&&u<o-f)return!1;var h=yD(t,e,r,n,a,i,o,s,u,c,null);return h<=f/2}function DE(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var c=bD(t,e,r,n,a,i,s,l,null);return c<=u/2}var EE=Math.PI*2;function un(t){return t%=EE,t<0&&(t+=EE),t}var Xc=Math.PI*2;function C9(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Xc<1e-4)return!0;if(i){var f=n;n=un(a),a=un(f)}else n=un(n),a=un(a);n>a&&(a+=Xc);var h=Math.atan2(l,s);return h<0&&(h+=Xc),h>=n&&h<=a||h+Xc>=n&&h+Xc<=a}function oi(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var eo=Ea.CMD,fs=Math.PI*2,T9=1e-4;function D9(t,e){return Math.abs(t-e)<T9}var Vr=[-1,-1,-1],Tn=[-1,-1];function E9(){var t=Tn[0];Tn[0]=Tn[1],Tn[1]=t}function M9(t,e,r,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var c=Ld(e,n,i,s,u,Vr);if(c===0)return 0;for(var f=0,h=-1,d=void 0,v=void 0,g=0;g<c;g++){var m=Vr[g],y=m===0||m===1?.5:1,_=qt(t,r,a,o,m);_<l||(h<0&&(h=mD(e,n,i,s,Tn),Tn[1]<Tn[0]&&h>1&&E9(),d=qt(e,n,i,s,Tn[0]),h>1&&(v=qt(e,n,i,s,Tn[1]))),h===2?m<Tn[0]?f+=d<e?y:-y:m<Tn[1]?f+=v<d?y:-y:f+=s<v?y:-y:m<Tn[0]?f+=d<e?y:-y:f+=s<d?y:-y)}return f}function A9(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=RW(e,n,i,s,Vr);if(l===0)return 0;var u=_D(e,n,i);if(u>=0&&u<=1){for(var c=0,f=or(e,n,i,u),h=0;h<l;h++){var d=Vr[h]===0||Vr[h]===1?.5:1,v=or(t,r,a,Vr[h]);v<o||(Vr[h]<u?c+=f<e?d:-d:c+=i<f?d:-d)}return c}else{var d=Vr[0]===0||Vr[0]===1?.5:1,v=or(t,r,a,Vr[0]);return v<o?0:i<e?d:-d}}function I9(t,e,r,n,a,i,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Vr[0]=-l,Vr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=fs-1e-4){n=0,a=fs;var c=i?1:-1;return o>=Vr[0]+t&&o<=Vr[1]+t?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=fs,a+=fs);for(var h=0,d=0;d<2;d++){var v=Vr[d];if(v+t>o){var g=Math.atan2(s,v),c=i?1:-1;g<0&&(g=fs+g),(g>=n&&g<=a||g+fs>=n&&g+fs<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),h+=c)}}return h}function ME(t,e,r,n,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,h,d,v=0;v<o;){var g=i[v++],m=v===1;switch(g===eo.M&&v>1&&(r||(s+=oi(l,u,c,f,n,a))),m&&(l=i[v],u=i[v+1],c=l,f=u),g){case eo.M:c=i[v++],f=i[v++],l=c,u=f;break;case eo.L:if(r){if(Qi(l,u,i[v],i[v+1],e,n,a))return!0}else s+=oi(l,u,i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case eo.C:if(r){if(x9(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=M9(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 eo.Q:if(r){if(DE(l,u,i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=A9(l,u,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case eo.A:var y=i[v++],_=i[v++],b=i[v++],S=i[v++],w=i[v++],x=i[v++];v+=1;var C=!!(1-i[v++]);h=Math.cos(w)*b+y,d=Math.sin(w)*S+_,m?(c=h,f=d):s+=oi(l,u,h,d,n,a);var T=(n-y)*S/b+y;if(r){if(C9(y,_,S,w,w+x,C,e,T,a))return!0}else s+=I9(y,_,S,w,w+x,C,T,a);l=Math.cos(w+x)*b+y,u=Math.sin(w+x)*S+_;break;case eo.R:c=l=i[v++],f=u=i[v++];var D=i[v++],E=i[v++];if(h=c+D,d=f+E,r){if(Qi(c,f,h,f,e,n,a)||Qi(h,f,h,d,e,n,a)||Qi(h,d,c,d,e,n,a)||Qi(c,d,c,f,e,n,a))return!0}else s+=oi(h,f,h,d,n,a),s+=oi(c,d,c,f,n,a);break;case eo.Z:if(r){if(Qi(l,u,c,f,e,n,a))return!0}else s+=oi(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!D9(u,f)&&(s+=oi(l,u,c,f,n,a)||0),s!==0}function k9(t,e,r){return ME(t,0,!1,e,r)}function L9(t,e,r,n){return ME(t,e,!0,r,n)}var op=ye({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},is),N9={style:ye({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tp.style)},v0=Sa.concat(["invisible","culling","z","z2","zlevel","parent"]),ze=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.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<v0.length;++s)a[v0[s]]=this[v0[s]];a.__dirty|=an}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=$e(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?W(this.style,s):this.useStyle(s):o==="shape"?W(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ie(r)){var n=Oc(r,0);return n>.5?Oy:n>.2?pU:Ry}else if(r)return Ry}return Oy},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ie(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Oc(r,0)<Py;if(i===o)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Tl},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Ea(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Tl)&&(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},e.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)),L9(s,l/u,r,n)))return!0}if(this.hasFill())return k9(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Tl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:W(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Tl)},e.prototype.createStyle=function(r){return yc(op,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=W({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.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=W({},a.shape),W(u,n.shape)):(u=W({},i?this.shape:a.shape),W(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=W({},this.shape);for(var c={},f=$e(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype.getAnimationStyleProps=function(){return N9},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){F(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 we(r.style)},o.prototype.getDefaultShape=function(){return we(r.shape)},o}(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=an|Mc|Tl}(),e}(Cn),P9=ye({strokeFirst:!0,font:Fi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},op),Rl=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return yc(P9,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=zc(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},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Cn);Rl.prototype.type="tspan";var O9=ye({x:0,y:0},is),R9={style:ye({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tp.style)};function V9(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Jt=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return yc(O9,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=V9(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return R9},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Pe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Cn);Jt.prototype.type="image";function B9(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.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),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-u),u!==0&&t.arc(r+a-u,n+i-u,u,0,Math.PI/2),t.lineTo(r+c,n+i),c!==0&&t.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Vl=Math.round;function AE(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(Vl(n*2)===Vl(a*2)&&(t.x1=t.x2=hs(n,s,!0)),Vl(i*2)===Vl(o*2)&&(t.y1=t.y2=hs(i,s,!0))),t}}function IE(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=hs(n,s,!0),t.y=hs(a,s,!0),t.width=Math.max(hs(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(hs(a+o,s,!1)-t.y,o===0?0:1)),t}}function hs(t,e,r){if(!e)return t;var n=Vl(t*2);return(n+Vl(e))%2===0?n/2:(n+(r?1:-1))/2}var F9=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),z9={},We=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new F9},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=IE(z9,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?B9(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ze);We.prototype.type="rect";var kE={fill:"#000"},LE=2,$9={style:ye({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},tp.style)},Ue=function(t){F(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kE,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,W9(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Pe(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},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||kE},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return W(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=$e(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},W(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return $9},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Fi,a=r.padding,i=$E(r),o=f9(i,r),s=g0(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,d=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=kl(m,o.contentHeight,_);if(s||a){var w=$c(g,c,y),x=kl(m,u,_);s&&this._renderBackground(r,r,w,x,c,u)}S+=d/2,a&&(b=zE(g,y,a),_==="top"?S+=a[0]:_==="bottom"&&(S-=a[2]));for(var C=0,T=!1,D=FE("fill"in r?r.fill:(T=!0,v.fill)),E=BE("stroke"in r?r.stroke:!l&&(!v.autoStroke||T)?(C=LE,v.stroke):null),A=r.textShadowBlur>0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),k=o.calculatedLineHeight,L=0;L<h.length;L++){var N=this._getOrCreateChild(Rl),P=N.createStyle();N.useStyle(P),P.text=h[L],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,OE(P,r),S+=d,I&&N.setBoundingRect(new Pe($c(P.x,f,P.textAlign),kl(P.y,k,P.textBaseline),f,k))}},e.prototype._updateRichTexts=function(){var r=this.style,n=$E(r),a=p9(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,h=r.align||f.align,d=r.verticalAlign||f.verticalAlign;this.isTruncated=!!a.isTruncated;var v=$c(u,o,h),g=kl(c,s,d),m=v,y=g;l&&(m+=l[3],y+=l[0]);var _=m+i;g0(r)&&this._renderBackground(r,r,v,g,o,s);for(var b=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var w=a.lines[S],x=w.tokens,C=x.length,T=w.lineHeight,D=w.width,E=0,A=m,I=_,k=C-1,L=void 0;E<C&&(L=x[E],!L.align||L.align==="left");)this._placeToken(L,r,T,y,A,"left",b),D-=L.width,A+=L.width,E++;for(;k>=0&&(L=x[k],L.align==="right");)this._placeToken(L,r,T,y,I,"right",b),D-=L.width,I-=L.width,k--;for(A+=(i-(A-m)-(_-I)-D)/2;E<=k;)L=x[E],this._placeToken(L,r,T,y,A+L.width/2,"center",b),A+=L.width,E++;y+=T}},e.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 h=!r.isLineHolder&&g0(u);h&&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 d=!!u.backgroundColor,v=r.textPadding;v&&(o=zE(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Rl),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,_=!1,b=0,S=FE("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,y.fill)),w=BE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||_)?(b=LE,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,x&&(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||Fi,m.opacity=nn(u.opacity,n.opacity,1),OE(m,u),w&&(m.lineWidth=nn(u.lineWidth,n.lineWidth,b),m.lineDash=De(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=w),S&&(m.fill=S);var C=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new Pe($c(m.x,C,m.textAlign),kl(m.y,T,m.textBaseline),C,T))},e.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,d=r.borderRadius,v=this,g,m;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(We),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=d,g.dirtyShape()}if(h){var _=g.style;_.fill=l||null,_.fillOpacity=De(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Jt),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=De(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=nn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return RE(r)&&(n=[r.fontStyle,r.fontWeight,PE(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&yn(n)||r.textFont||r.font},e}(Cn),G9={left:!0,right:1,center:1},H9={top:1,bottom:1,middle:1},NE=["fontStyle","fontWeight","fontSize","fontFamily"];function PE(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Ym+"px":t+"px"}function OE(t,e){for(var r=0;r<NE.length;r++){var n=NE[r],a=e[n];a!=null&&(t[n]=a)}}function RE(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function W9(t){return VE(t),M(t.rich,VE),t}function VE(t){if(t){t.font=Ue.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||G9[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||H9[r]?r:"top";var n=t.padding;n&&(t.padding=bd(t.padding))}}function BE(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function FE(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function zE(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function $E(t){var e=t.text;return e!=null&&(e+=""),e}function g0(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ee=je(),m0=function(t,e,r,n){if(n){var a=Ee(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Ee(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},GE=1,HE={},WE=je(),y0=je(),_0=0,jc=1,sp=2,Br=["emphasis","blur","select"],Kc=["normal","emphasis","blur","select"],Bl=10,U9=9,ds="highlight",lp="downplay",qc="select",up="unselect",Jc="toggleSelect";function Fl(t){return t!=null&&t!=="none"}function cp(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function UE(t){cp(t,"emphasis",sp)}function YE(t){t.hoverState===sp&&cp(t,"normal",_0)}function b0(t){cp(t,"blur",jc)}function ZE(t){t.hoverState===jc&&cp(t,"normal",_0)}function Y9(t){t.selected=!0}function Z9(t){t.selected=!1}function XE(t,e,r){e(t,r)}function si(t,e,r){XE(t,e,r),t.isGroup&&t.traverse(function(n){XE(n,e,r)})}function fp(t,e){switch(e){case"emphasis":t.hoverState=sp;break;case"normal":t.hoverState=_0;break;case"blur":t.hoverState=jc;break;case"select":t.selected=!0}}function X9(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function j9(t,e,r,n){var a=r&&Re(r,"select")>=0,i=!1;if(t instanceof ze){var o=WE(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Fl(s)||Fl(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=W({},n),u=W({},u),u.fill=s):!Fl(u.fill)&&Fl(s)?(i=!0,n=W({},n),u=W({},u),u.fill=Od(s)):!Fl(u.stroke)&&Fl(l)&&(i||(n=W({},n),u=W({},u)),u.stroke=Od(l)),n.style=u}}if(n&&n.z2==null){i||(n=W({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??Bl)}return n}function K9(t,e,r){if(r&&r.z2==null){r=W({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??U9)}return r}function q9(t,e,r){var n=Re(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:X9(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=W({},r),o=W({opacity:n?a:i.opacity*.1},o),r.style=o),r}function S0(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return j9(this,t,e,r);if(t==="blur")return q9(this,t,r);if(t==="select")return K9(this,t,r)}return r}function ps(t){t.stateProxy=S0;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=S0),r&&(r.stateProxy=S0)}function jE(t,e){!e2(t,e)&&!t.__highByOuter&&si(t,UE)}function KE(t,e){!e2(t,e)&&!t.__highByOuter&&si(t,YE)}function li(t,e){t.__highByOuter|=1<<(e||0),si(t,UE)}function ui(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&si(t,YE)}function qE(t){si(t,b0)}function w0(t){si(t,ZE)}function JE(t){si(t,Y9)}function QE(t){si(t,Z9)}function e2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function t2(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=y0(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){ZE(u)}),s&&r.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function x0(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&w0(h)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),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 h=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!h||e==="series"&&c)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(m){m.__highByOuter&&c&&e==="self"||b0(m)}),dr(e))i(u.getData(),e);else if(ve(e))for(var v=$e(e),g=0;g<v.length;g++)i(u.getData(v[g]),e[v[g]]);l.push(u),y0(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 C0(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){y0(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){b0(i)})}}}function J9(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(!a){process.env.NODE_ENV!=="production"&&pr("Unknown dataType "+e.dataType);return}var i=rs(a,e);i=(Z(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=Ee(o);x0(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&x0(n,c,f,r)}}function T0(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);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"&&!ro(s[u])&&pr("param should be highDownDispatcher"),Ee(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Q9(t,e,r){process.env.NODE_ENV!=="production"&&!ro(t)&&pr("param should be highDownDispatcher");var n=Ee(t),a=T0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&C0(n.componentMainType,n.componentIndex,r),M(i,function(s){return jE(s,e)})):(x0(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&C0(n.componentMainType,n.componentIndex,r),jE(t,e))}function e7(t,e,r){process.env.NODE_ENV!=="production"&&!ro(t)&&pr("param should be highDownDispatcher"),t2(r);var n=Ee(t),a=T0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?M(a,function(i){return KE(i,e)}):KE(t,e)}function t7(t,e,r){if(E0(e)){var n=e.dataType,a=t.getData(n),i=rs(a,e);Z(i)||(i=[i]),t[e.type===Jc?"toggleSelect":e.type===qc?"select":"unselect"](i,n)}}function r2(t){var e=t.getAllData();M(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?JE(i):QE(i)})})}function r7(t){var e=[];return t.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),e.push(s)}})}),e}function to(t,e,r){vs(t,!0),si(t,ps),D0(t,e,r)}function n7(t){vs(t,!1)}function Tt(t,e,r,n){n?n7(t):to(t,e,r)}function D0(t,e,r){var n=Ee(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var n2=["emphasis","blur","select"],a7={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vr(t,e,r,n){r=r||"itemStyle";for(var a=0;a<n2.length;a++){var i=n2[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=n?n(o):o[a7[r]]()}}function vs(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function ro(t){return!!(t&&t.__highDownDispatcher)}function i7(t,e,r){var n=Ee(t);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=r}function o7(t){var e=HE[t];return e==null&&GE<=32&&(e=HE[t]=GE++),e}function E0(t){var e=t.type;return e===qc||e===up||e===Jc}function a2(t){var e=t.type;return e===ds||e===lp}function s7(t){var e=WE(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var zl=Ea.CMD,l7=[[],[],[]],i2=Math.sqrt,u7=Math.atan2;function o2(t,e){if(e){var r=t.data,n=t.len(),a,i,o,s,l,u,c=zl.M,f=zl.C,h=zl.L,d=zl.R,v=zl.A,g=zl.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case h:i=1;break;case f:i=3;break;case g:i=2;break;case v:var m=e[4],y=e[5],_=i2(e[0]*e[0]+e[1]*e[1]),b=i2(e[2]*e[2]+e[3]*e[3]),S=u7(-e[1]/b,e[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 d:u[0]=r[o++],u[1]=r[o++],ir(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ir(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var w=l7[l];w[0]=r[o++],w[1]=r[o++],ir(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var M0=Math.sqrt,hp=Math.sin,dp=Math.cos,Qc=Math.PI;function s2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function A0(t,e){return(t[0]*e[0]+t[1]*e[1])/(s2(t)*s2(e))}function l2(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(A0(t,e))}function u2(t,e,r,n,a,i,o,s,l,u,c){var f=l*(Qc/180),h=dp(f)*(t-r)/2+hp(f)*(e-n)/2,d=-1*hp(f)*(t-r)/2+dp(f)*(e-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=M0(v),s*=M0(v));var g=(a===i?-1:1)*M0((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=g*o*d/s,y=g*-s*h/o,_=(t+r)/2+dp(f)*m-hp(f)*y,b=(e+n)/2+hp(f)*m+dp(f)*y,S=l2([1,0],[(h-m)/o,(d-y)/s]),w=[(h-m)/o,(d-y)/s],x=[(-1*h-m)/o,(-1*d-y)/s],C=l2(w,x);if(A0(w,x)<=-1&&(C=Qc),A0(w,x)>=1&&(C=0),C<0){var T=Math.round(C/Qc*1e6)/1e6;C=Qc*2+T%2*Qc}c.addData(u,_,b,o,s,S,C,f,i)}var c7=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function h7(t){var e=new Ea;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=Ea.CMD,l=t.match(c7);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(f7)||[],v=d.length,g=0;g<v;g++)d[g]=parseFloat(d[g]);for(var m=0;m<v;){var y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,T=r,D=n,E=void 0,A=void 0;switch(f){case"l":r+=d[m++],n+=d[m++],h=s.L,e.addData(h,r,n);break;case"L":r=d[m++],n=d[m++],h=s.L,e.addData(h,r,n);break;case"m":r+=d[m++],n+=d[m++],h=s.M,e.addData(h,r,n),a=r,i=n,f="l";break;case"M":r=d[m++],n=d[m++],h=s.M,e.addData(h,r,n),a=r,i=n,f="L";break;case"h":r+=d[m++],h=s.L,e.addData(h,r,n);break;case"H":r=d[m++],h=s.L,e.addData(h,r,n);break;case"v":n+=d[m++],h=s.L,e.addData(h,r,n);break;case"V":n=d[m++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),r=d[m-2],n=d[m-1];break;case"c":h=s.C,e.addData(h,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n),r+=d[m-2],n+=d[m-1];break;case"S":y=r,_=n,E=e.len(),A=e.data,o===s.C&&(y+=r-A[E-4],_+=n-A[E-3]),h=s.C,T=d[m++],D=d[m++],r=d[m++],n=d[m++],e.addData(h,y,_,T,D,r,n);break;case"s":y=r,_=n,E=e.len(),A=e.data,o===s.C&&(y+=r-A[E-4],_+=n-A[E-3]),h=s.C,T=r+d[m++],D=n+d[m++],r+=d[m++],n+=d[m++],e.addData(h,y,_,T,D,r,n);break;case"Q":T=d[m++],D=d[m++],r=d[m++],n=d[m++],h=s.Q,e.addData(h,T,D,r,n);break;case"q":T=d[m++]+r,D=d[m++]+n,r+=d[m++],n+=d[m++],h=s.Q,e.addData(h,T,D,r,n);break;case"T":y=r,_=n,E=e.len(),A=e.data,o===s.Q&&(y+=r-A[E-4],_+=n-A[E-3]),r=d[m++],n=d[m++],h=s.Q,e.addData(h,y,_,r,n);break;case"t":y=r,_=n,E=e.len(),A=e.data,o===s.Q&&(y+=r-A[E-4],_+=n-A[E-3]),r+=d[m++],n+=d[m++],h=s.Q,e.addData(h,y,_,r,n);break;case"A":b=d[m++],S=d[m++],w=d[m++],x=d[m++],C=d[m++],T=r,D=n,r=d[m++],n=d[m++],h=s.A,u2(T,D,r,n,x,C,b,S,w,h,e);break;case"a":b=d[m++],S=d[m++],w=d[m++],x=d[m++],C=d[m++],T=r,D=n,r+=d[m++],n+=d[m++],h=s.A,u2(T,D,r,n,x,C,b,S,w,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),r=a,n=i),o=h}return e.toStatic(),e}var c2=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(ze);function f2(t){return t.setData!=null}function h2(t,e){var r=h7(t),n=W({},e);return n.buildPath=function(a){if(f2(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){o2(r,a),this.dirtyShape()},n}function d2(t,e){return new c2(h2(t,e))}function d7(t,e){var r=h2(t,e),n=function(a){F(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(c2);return n}function p7(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var o=new ze(e);return o.createPathProxy(),o.buildPath=function(s){if(f2(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function I0(t,e){e=e||{};var r=new ze;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?o2(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var v7=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Ma=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new v7},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(ze);Ma.prototype.type="circle";var g7=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),ef=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new g7},e.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()},e}(ze);ef.prototype.type="ellipse";var p2=Math.PI,k0=p2*2,gs=Math.sin,$l=Math.cos,m7=Math.acos,xr=Math.atan2,v2=Math.abs,tf=Math.sqrt,rf=Math.max,Aa=Math.min,ea=1e-4;function y7(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,f=s-i,h=f*l-c*u;if(!(h*h<ea))return h=(c*(e-i)-f*(t-a))/h,[t+h*l,e+h*u]}function pp(t,e,r,n,a,i,o){var s=t-r,l=e-n,u=(o?i:-i)/tf(s*s+l*l),c=u*l,f=-u*s,h=t+c,d=e+f,v=r+c,g=n+f,m=(h+v)/2,y=(d+g)/2,_=v-h,b=g-d,S=_*_+b*b,w=a-i,x=h*g-v*d,C=(b<0?-1:1)*tf(rf(0,w*w*S-x*x)),T=(x*b-_*C)/S,D=(-x*_-b*C)/S,E=(x*b+_*C)/S,A=(-x*_+b*C)/S,I=T-m,k=D-y,L=E-m,N=A-y;return I*I+k*k>L*L+N*N&&(T=E,D=A),{cx:T,cy:D,x0:-c,y0:-f,x1:T*(a/w-1),y1:D*(a/w-1)}}function _7(t){var e;if(Z(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function b7(t,e){var r,n=rf(e.r,0),a=rf(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,d=v2(u-l),v=d>k0&&d%k0;if(v>ea&&(d=v),!(n>ea))t.moveTo(c,f);else if(d>k0-ea)t.moveTo(c+n*$l(l),f+n*gs(l)),t.arc(c,f,n,l,u,!h),a>ea&&(t.moveTo(c+a*$l(u),f+a*gs(u)),t.arc(c,f,a,u,l,h));else{var g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,T=void 0,D=void 0,E=void 0,A=void 0,I=void 0,k=void 0,L=void 0,N=n*$l(l),P=n*gs(l),B=a*$l(u),V=a*gs(u),G=d>ea;if(G){var Y=e.cornerRadius;Y&&(r=_7(Y),g=r[0],m=r[1],y=r[2],_=r[3]);var z=v2(n-a)/2;if(b=Aa(z,y),S=Aa(z,_),w=Aa(z,g),x=Aa(z,m),D=C=rf(b,S),E=T=rf(w,x),(C>ea||T>ea)&&(A=n*$l(u),I=n*gs(u),k=a*$l(l),L=a*gs(l),d<p2)){var $=y7(N,P,k,L,A,I,B,V);if($){var q=N-$[0],J=P-$[1],ae=A-$[0],Oe=I-$[1],Qe=1/gs(m7((q*ae+J*Oe)/(tf(q*q+J*J)*tf(ae*ae+Oe*Oe)))/2),Me=tf($[0]*$[0]+$[1]*$[1]);D=Aa(C,(n-Me)/(Qe+1)),E=Aa(T,(a-Me)/(Qe-1))}}}if(!G)t.moveTo(c+N,f+P);else if(D>ea){var he=Aa(y,D),Ie=Aa(_,D),ue=pp(k,L,N,P,n,he,h),me=pp(A,I,B,V,n,Ie,h);t.moveTo(c+ue.cx+ue.x0,f+ue.cy+ue.y0),D<C&&he===Ie?t.arc(c+ue.cx,f+ue.cy,D,xr(ue.y0,ue.x0),xr(me.y0,me.x0),!h):(he>0&&t.arc(c+ue.cx,f+ue.cy,he,xr(ue.y0,ue.x0),xr(ue.y1,ue.x1),!h),t.arc(c,f,n,xr(ue.cy+ue.y1,ue.cx+ue.x1),xr(me.cy+me.y1,me.cx+me.x1),!h),Ie>0&&t.arc(c+me.cx,f+me.cy,Ie,xr(me.y1,me.x1),xr(me.y0,me.x0),!h))}else t.moveTo(c+N,f+P),t.arc(c,f,n,l,u,!h);if(!(a>ea)||!G)t.lineTo(c+B,f+V);else if(E>ea){var he=Aa(g,E),Ie=Aa(m,E),ue=pp(B,V,A,I,a,-Ie,h),me=pp(N,P,k,L,a,-he,h);t.lineTo(c+ue.cx+ue.x0,f+ue.cy+ue.y0),E<T&&he===Ie?t.arc(c+ue.cx,f+ue.cy,E,xr(ue.y0,ue.x0),xr(me.y0,me.x0),!h):(Ie>0&&t.arc(c+ue.cx,f+ue.cy,Ie,xr(ue.y0,ue.x0),xr(ue.y1,ue.x1),!h),t.arc(c,f,a,xr(ue.cy+ue.y1,ue.cx+ue.x1),xr(me.cy+me.y1,me.cx+me.x1),h),he>0&&t.arc(c+me.cx,f+me.cy,he,xr(me.y1,me.x1),xr(me.y0,me.x0),!h))}else t.lineTo(c+B,f+V),t.arc(c,f,a,u,l,h)}t.closePath()}}}var S7=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Cr=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new S7},e.prototype.buildPath=function(r,n){b7(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ze);Cr.prototype.type="sector";var w7=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Gl=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new w7},e.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)},e}(ze);Gl.prototype.type="ring";function x7(t,e,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 h=0,d=t.length;h<d;h++)ei(c,c,t[h]),ti(f,f,t[h]);ei(c,c,n[0]),ti(f,f,n[1])}for(var h=0,d=t.length;h<d;h++){var v=t[h];if(r)l=t[h?h-1:d-1],u=t[(h+1)%d];else if(h===0||h===d-1){a.push(ya(t[h]));continue}else l=t[h-1],u=t[h+1];Hi(i,u,l),Sc(i,i,e);var g=wd(v,l),m=wd(v,u),y=g+m;y!==0&&(g/=y,m/=y),Sc(o,i,-g),Sc(s,i,m);var _=ey([],v,o),b=ey([],v,s);n&&(ti(_,_,c),ei(_,_,f),ti(b,b,c),ei(b,b,f)),a.push(_),a.push(b)}return r&&a.push(a.shift()),a}function g2(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=x7(a,n,r,e.smoothConstraint);t.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];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var C7=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Tr=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new C7},e.prototype.buildPath=function(r,n){g2(r,n,!0)},e}(ze);Tr.prototype.type="polygon";var T7=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Dr=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new T7},e.prototype.buildPath=function(r,n){g2(r,n,!1)},e}(ze);Dr.prototype.type="polyline";var D7={},E7=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Xt=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new E7},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=AE(D7,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))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(ze);Xt.prototype.type="line";var Kr=[],M7=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function m2(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?gD:qt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?gD:qt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?py:or)(t.x1,t.cpx1,t.x2,e),(r?py:or)(t.y1,t.cpy1,t.y2,e)]}var Hl=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new M7},e.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,h=n.percent;h!==0&&(r.moveTo(a,i),c==null||f==null?(h<1&&(Ic(a,l,o,h,Kr),l=Kr[1],o=Kr[2],Ic(i,u,s,h,Kr),u=Kr[1],s=Kr[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Xi(a,l,c,o,h,Kr),l=Kr[1],c=Kr[2],o=Kr[3],Xi(i,u,f,s,h,Kr),u=Kr[1],f=Kr[2],s=Kr[3]),r.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(r){return m2(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=m2(this.shape,r,!0);return Uo(n,n)},e}(ze);Hl.prototype.type="bezier-curve";var A7=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),nf=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new A7},e.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)},e}(ze);nf.prototype.type="arc";var vp=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.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)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ze.prototype.getBoundingRect.call(this)},e}(ze),y2=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),Wl=function(t){F(e,t);function e(r,n,a,i,o,s){var l=t.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 e}(y2),L0=function(t){F(e,t);function e(r,n,a,i,o){var s=t.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 e}(y2),ms=[0,0],ys=[0,0],gp=new Ne,mp=new Ne,yp=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ne;for(var n=0;n<2;n++)this._axes[n]=new Ne;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.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);Ne.sub(a[0],n[1],n[0]),Ne.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])},t.prototype.intersect=function(e,r){var n=!0,a=!r;return gp.set(1/0,1/0),mp.set(0,0),!this._intersectCheckOneSide(this,e,gp,mp,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,gp,mp,a,-1)&&(n=!1,a)||a||Ne.copy(r,n?gp:mp),n},t.prototype._intersectCheckOneSide=function(e,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,ms),this._getProjMinMaxOnAxis(l,r._corners,ys),ms[1]<ys[0]||ms[0]>ys[1]){if(s=!1,i)return s;var c=Math.abs(ys[0]-ms[1]),f=Math.abs(ms[0]-ys[1]);Math.min(c,f)>a.len()&&(c<f?Ne.scale(a,u,-c*o):Ne.scale(a,u,f*o))}else if(n){var c=Math.abs(ys[0]-ms[1]),f=Math.abs(ms[0]-ys[1]);Math.min(c,f)<n.len()&&(c<f?Ne.scale(n,u,c*o):Ne.scale(n,u,-f*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},t}(),I7=[],_2=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Pe(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(I7)),r.union(i)}this._rect=r}return this._rect},e.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},e}(Cn),b2=je();function Ul(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=De(n.duration,200),c=De(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),de(f)&&(f=f(r,a)),de(u)&&(u=u(r));var h={duration:u||0,delay:f,easing:c};return h}else return null}function N0(t,e,r,n,a,i,o){var s=!1,l;de(a)?(o=i,i=a,a=null):ve(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=Ul(t,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function Je(t,e,r,n,a,i){N0("update",t,e,r,n,a,i)}function St(t,e,r,n,a,i){N0("enter",t,e,r,n,a,i)}function Yl(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function no(t,e,r,n,a,i){Yl(t)||N0("leave",t,e,r,n,a,i)}function S2(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),no(t,{style:{opacity:0}},e,r,n)}function af(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||S2(a,e,r,n)}):S2(t,e,r,n)}function ta(t){b2(t).oldStyle=t.style}function k7(t){return b2(t).oldStyle}var _p=Math.max,bp=Math.min,P0={};function w2(t){return ze.extend(t)}var L7=d7;function x2(t,e){return L7(t,e)}function Dn(t,e){P0[t]=e}function Sp(t){if(P0.hasOwnProperty(t))return P0[t]}function of(t,e,r,n){var a=d2(t,e);return r&&(n==="center"&&(r=C2(r,a.getBoundingRect())),R0(a,r)),a}function O0(t,e,r){var n=new Jt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(C2(e,i))}}});return n}function C2(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var cn=p7;function R0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Zl(t,e){return AE(t,t,{lineWidth:e}),t}function N7(t){return IE(t.shape,t.shape,t.style),t}var wp=hs;function ao(t,e){for(var r=xc([]);t&&t!==e;)_a(r,t.getLocalTransform(),r),t=t.parent;return r}function ra(t,e,r){return e&&!dr(e)&&(e=ai.getLocalTransform(e)),r&&(e=Yo([],e)),ir([],t,e)}function xp(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=ra(i,e,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function T2(t){return!t.isGroup}function P7(t){return t.shape!=null}function sf(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){T2(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return P7(o)&&(s.shape=W({},o.shape)),s}var i=n(t);e.traverse(function(o){if(T2(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Je(o,l,r,Ee(o).dataIndex)}}})}function V0(t,e){return K(t,function(r){var n=r[0];n=_p(n,e.x),n=bp(n,e.x+e.width);var a=r[1];return a=_p(a,e.y),a=bp(a,e.y+e.height),[n,a]})}function D2(t,e){var r=_p(t.x,e.x),n=bp(t.x+t.width,e.x+e.width),a=_p(t.y,e.y),i=bp(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Xl(t,e,r){var n=W({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),ye(a,r),new Jt(n)):of(t.replace("path://",""),n,r,"center")}function lf(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(E2(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function E2(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,f=s-i,h=B0(c,f,l,u);if(O7(h))return!1;var d=t-a,v=e-i,g=B0(d,v,l,u)/h;if(g<0||g>1)return!1;var m=B0(d,v,c,f)/h;return!(m<0||m>1)}function B0(t,e,r,n){return t*n-r*e}function O7(t){return t<=1e-6&&t>=-1e-6}function _s(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=ie(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&M($e(l),function(c){le(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ee(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ye({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function M2(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function io(t,e){if(t)if(Z(t))for(var r=0;r<t.length;r++)M2(t[r],e);else M2(t,e)}Dn("circle",Ma),Dn("ellipse",ef),Dn("sector",Cr),Dn("ring",Gl),Dn("polygon",Tr),Dn("polyline",Dr),Dn("rect",We),Dn("line",Xt),Dn("bezierCurve",Hl),Dn("arc",nf);const bs=Object.freeze(Object.defineProperty({__proto__:null,Arc:nf,BezierCurve:Hl,BoundingRect:Pe,Circle:Ma,CompoundPath:vp,Ellipse:ef,Group:Ce,Image:Jt,IncrementalDisplayable:_2,Line:Xt,LinearGradient:Wl,OrientedBoundingRect:yp,Path:ze,Point:Ne,Polygon:Tr,Polyline:Dr,RadialGradient:L0,Rect:We,Ring:Gl,Sector:Cr,Text:Ue,applyTransform:ra,clipPointsByRect:V0,clipRectByRect:D2,createIcon:Xl,extendPath:x2,extendShape:w2,getShapeClass:Sp,getTransform:ao,groupTransition:sf,initProps:St,isElementRemoved:Yl,lineLineIntersect:E2,linePolygonIntersect:lf,makeImage:O0,makePath:of,mergePath:cn,registerShape:Dn,removeElement:no,removeElementWithFadeOut:af,resizePath:R0,setTooltipConfig:_s,subPixelOptimize:wp,subPixelOptimizeLine:Zl,subPixelOptimizeRect:N7,transformDirection:xp,traverseElements:io,updateProps:Je},Symbol.toStringTag,{value:"Module"}));var Cp={};function A2(t,e){for(var r=0;r<Br.length;r++){var n=Br[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function F0(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=de(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<Br.length;u++){var c=Br[u],f=e[c];l[c]=De(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function gr(t,e,r,n){r=r||Cp;for(var a=t instanceof Ue,i=!1,o=0;o<Kc.length;o++){var s=e[Kc[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new Ue,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=F0(r,e),c=e.normal,f=!!c.getShallow("show"),h=gt(c,n&&n.normal,r,!1,!a);h.text=u.normal,a||t.setTextConfig(Tp(c,r,!1));for(var o=0;o<Br.length;o++){var d=Br[o],s=e[d];if(s){var v=l.ensureState(d),g=!!De(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=gt(s,n&&n[d],r,!0,!a),v.style.text=u[d],!a){var m=t.ensureState(d);m.textConfig=Tp(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),r.enableTextSetter&&(jl(l).setLabelText=function(y){var _=F0(r,e,y);A2(l,_)})}else l&&(l.ignore=!0);t.dirty()}function Qt(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Br.length;n++){var a=Br[n];r[a]=t.getModel([a,e])}return r}function gt(t,e,r,n,a){var i={};return R7(i,t,r,n,a),e&&W(i,e),i}function Tp(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=De(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.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=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function R7(t,e,r,n,a){r=r||Cp;var i=e.ecModel,o=i&&i.option.textStyle,s=V7(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);N2(l[u]={},c,o,r,n,a,!1,!0)}}l&&(t.rich=l);var f=e.get("overflow");f&&(t.overflow=f);var h=e.get("minMargin");h!=null&&(t.margin=h),N2(t,e,o,r,n,a,!0,!1)}function V7(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Cp).rich;if(r){e=e||{};for(var n=$e(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var I2=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],k2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],L2=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function N2(t,e,r,n,a,i,o,s){r=!a&&r||Cp;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=De(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Ot("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Ot("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var h=De(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var d=De(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var v=De(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(t.opacity=f),!a&&!i&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<I2.length;g++){var m=I2[g],y=De(e.getShallow(m),r[m]);y!=null&&(t[m]=y)}for(var g=0;g<k2.length;g++){var m=k2[g],y=e.getShallow(m);y!=null&&(t[m]=y)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!o||!n.disableBox){for(var g=0;g<L2.length;g++){var m=L2[g],y=e.getShallow(m);y!=null&&(t[m]=y)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Ot("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Ot("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function z0(t,e){var r=e&&e.getModel("textStyle");return yn([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var jl=je();function P2(t,e,r,n){if(t){var a=jl(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function O2(t,e,r,n,a){var i=jl(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=De(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=dE(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=F0({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);A2(t,h)}t.percent=0,(i.prevValue==null?St:Je)(t,{percent:1},n,e,null,u)}var B7=["textStyle","color"],$0=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],G0=new Ue,F7=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(B7):null)},t.prototype.getFont=function(){return z0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<$0.length;n++)r[$0[n]]=this.getShallow($0[n]);return G0.useStyle(r),G0.update(),G0.getBoundingRect()},t}(),R2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],z7=as(R2),$7=function(){function t(){}return t.prototype.getLineStyle=function(e){return z7(this,e)},t}(),V2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],G7=as(V2),H7=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return G7(this,e,r)},t}(),rt=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){ke(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(we(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Fe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Qy(rt),r9(rt),It(rt,$7),It(rt,H7),It(rt,s9),It(rt,F7);var W7=Math.round(Math.random()*10);function Kl(t){return[t||"",W7++].join("_")}function U7(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=xa(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=xa(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function Y7(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,f=u.noEntryList,h={};for(M(i,function(_){h[_]=!0});f.length;){var d=f.pop(),v=c[d],g=!!h[d];g&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),M(v.successor,g?y:m)}M(h,function(){var _="";throw process.env.NODE_ENV!=="production"&&(_=Rr("Circular dependency may exists: ",h,i,o)),new Error(_)});function m(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function y(_){h[_]=!0,m(_)}};function r(i){var o={},s=[];return M(i,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),M(f,function(h){Re(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);Re(d.successor,h)<0&&d.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){Re(o,l)>=0&&s.push(l)}),s}}function oo(t,e){return ke(ke({},t,!0),e,!0)}const Z7={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:". "}}}},X7={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 Dp="ZH",H0="EN",ql=H0,Ep={},W0={},B2=Fe.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ql).toUpperCase();return t.indexOf(Dp)>-1?Dp:ql}():ql;function U0(t,e){t=t.toUpperCase(),W0[t]=new rt(e),Ep[t]=e}function j7(t){if(ie(t)){var e=Ep[t.toUpperCase()]||{};return t===Dp||t===H0?we(e):ke(we(e),we(Ep[ql]),!1)}else return ke(we(t),we(Ep[ql]),!1)}function Y0(t){return W0[t]}function K7(){return W0[ql]}U0(H0,Z7),U0(Dp,X7);var Z0=1e3,X0=Z0*60,uf=X0*60,En=uf*24,F2=En*365,cf={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}"},Mp="{yyyy}-{MM}-{dd}",z2={year:"{yyyy}",month:"{yyyy}-{MM}",day:Mp,hour:Mp+" "+cf.hour,minute:Mp+" "+cf.minute,second:Mp+" "+cf.second,millisecond:cf.none},j0=["year","month","day","hour","minute","second","millisecond"],$2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Fr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Jl(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function q7(t){return t===Jl(t)}function J7(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ff(t,e,r,n){var a=ln(t),i=a[K0(r)](),o=a[Ql(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[Ap(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[hf(r)](),f=(c-1)%12+1,h=a[Ip(r)](),d=a[kp(r)](),v=a[Lp(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof rt?n:Y0(n||B2)||K7(),_=y.getModel("time"),b=_.get("month"),S=_.get("monthAbbr"),w=_.get("dayOfWeek"),x=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Fr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Fr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Fr(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Fr(v,3)).replace(/{S}/g,v+"")}function Q7(t,e,r,n,a){var i=null;if(ie(r))i=r;else if(de(r))i=r(t.value,e,{level:t.level});else{var o=W({},cf);if(t.level>0)for(var s=0;s<j0.length;++s)o[j0[s]]="{primary|"+o[j0[s]]+"}";var l=r?r.inherit===!1?r:ye(r,o):o,u=G2(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=$2.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Z(i)){var f=t.level==null?0:t.level>=0?t.level:i.length+t.level;f=Math.min(f,i.length-1),i=i[f]}}return ff(new Date(t.value),i,a,n)}function G2(t,e){var r=ln(t),n=r[Ql(e)]()+1,a=r[Ap(e)](),i=r[hf(e)](),o=r[Ip(e)](),s=r[kp(e)](),l=r[Lp(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,d=h&&a===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function H2(t,e,r){var n=Ke(t)?ln(t):t;switch(e=e||G2(t,r),e){case"year":return n[K0(r)]();case"half-year":return n[Ql(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ql(r)]()+1)/4);case"month":return n[Ql(r)]();case"day":return n[Ap(r)]();case"half-day":return n[hf(r)]()/24;case"hour":return n[hf(r)]();case"minute":return n[Ip(r)]();case"second":return n[kp(r)]();case"millisecond":return n[Lp(r)]()}}function K0(t){return t?"getUTCFullYear":"getFullYear"}function Ql(t){return t?"getUTCMonth":"getMonth"}function Ap(t){return t?"getUTCDate":"getDate"}function hf(t){return t?"getUTCHours":"getHours"}function Ip(t){return t?"getUTCMinutes":"getMinutes"}function kp(t){return t?"getUTCSeconds":"getSeconds"}function Lp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function eY(t){return t?"setUTCFullYear":"setFullYear"}function W2(t){return t?"setUTCMonth":"setMonth"}function U2(t){return t?"setUTCDate":"setDate"}function Y2(t){return t?"setUTCHours":"setHours"}function Z2(t){return t?"setUTCMinutes":"setMinutes"}function X2(t){return t?"setUTCSeconds":"setSeconds"}function j2(t){return t?"setUTCMilliseconds":"setMilliseconds"}function tY(t,e,r,n,a,i,o,s){var l=new Ue({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function q0(t){if(!qd(t))return ie(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function J0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ss=bd;function Q0(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&yn(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?ln(t):t;if(isNaN(+l)){if(s)return"-"}else return ff(l,n,r)}if(e==="ordinal")return vc(t)?a(t):Ke(t)&&i(t)?t+"":"-";var u=wa(t);return i(u)?q0(u):vc(t)?a(t):typeof t=="boolean"?t+"":"-"}var K2=["a","b","c","d","e","f","g"],e_=function(t,e){return"{"+t+(e??"")+"}"};function t_(t,e,r){Z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=K2[i];t=t.replace(e_(o),e_(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(e_(K2[l],s),r?wr(u):u)}return t}function rY(t,e,r){return M(e,function(n,a){t=t.replace("{"+a+"}",n)}),t}function q2(t,e){var r=ie(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=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:'+wr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wr(n)+";"+(e||"")+'"></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 nY(t,e,r){process.env.NODE_ENV!=="production"&&Ot("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
49
+ yyyy`);var n=ln(e),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 t=t.replace("MM",Fr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Fr(i%100+"",2)).replace("dd",Fr(s,2)).replace("d",s).replace("hh",Fr(l,2)).replace("h",l).replace("mm",Fr(u,2)).replace("m",u).replace("ss",Fr(c,2)).replace("s",c).replace("SSS",Fr(f,3)),t}function aY(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function ws(t,e){return e=e||"transparent",ie(t)?t:ve(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Np(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Pp=M,J2=["left","right","top","bottom","width","height"],xs=[["width","left","right"],["height","top","bottom"]];function r_(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),d,v;if(t==="horizontal"){var g=c.width+(h?-h.x+c.x:0);d=i+g,d>n||l.newline?(i=0,d=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.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(),t==="horizontal"?i=d+r:o=v+r)})}var Cs=r_;Ae(r_,"vertical"),Ae(r_,"horizontal");function iY(t,e,r){var n=e.width,a=e.height,i=ne(t.left,n),o=ne(t.top,a),s=ne(t.right,n),l=ne(t.bottom,a);return(isNaN(i)||isNaN(parseFloat(t.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=a),r=Ss(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Gt(t,e,r){r=Ss(r||0);var n=e.width,a=e.height,i=ne(t.left,n),o=ne(t.top,a),s=ne(t.right,n),l=ne(t.bottom,a),u=ne(t.width,n),c=ne(t.height,a),f=r[2]+r[0],h=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(c)&&(c=a-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-c-f),t.left||t.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-h;break}switch(t.top||t.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-h-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new Pe(i+r[3],o+r[0],u,c);return v.margin=r,v}function Op(t,e,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||t,i.x=t.x,i.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new Pe(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Gt(ye({width:u.width,height:u.height},e),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=d):(i.x+=h,i.y+=d),i===t&&t.markRedraw(),!0}function oY(t,e){return t[xs[e][0]]!=null||t[xs[e][1]]!=null&&t[xs[e][2]]!=null}function df(t){var e=t.layoutMode||t.constructor.layoutMode;return ve(e)?e:e?{type:e}:null}function so(t,e,r){var n=r&&r.ignoreSize;!Z(n)&&(n=[n,n]);var a=o(xs[0],0),i=o(xs[1],1);u(xs[0],t,a),u(xs[1],t,i);function o(c,f){var h={},d=0,v={},g=0,m=2;if(Pp(c,function(b){v[b]=t[b]}),Pp(c,function(b){s(e,b)&&(h[b]=v[b]=e[b]),l(h,b)&&d++,l(v,b)&&g++}),n[f])return l(e,c[1])?v[c[2]]=null:l(e,c[2])&&(v[c[1]]=null),v;if(g===m||!d)return v;if(d>=m)return h;for(var y=0;y<c.length;y++){var _=c[y];if(!s(h,_)&&s(t,_)){h[_]=t[_];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){Pp(c,function(d){f[d]=h[d]})}}function eu(t){return Q2({},t)}function Q2(t,e){return e&&t&&Pp(J2,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var sY=je(),Ve=function(t){F(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Kl("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=df(this),i=a?eu(r):{},o=n.getTheme();ke(r,o.get(this.mainType)),ke(r,this.getDefaultOption()),a&&so(r,i,a)},e.prototype.mergeOption=function(r,n){ke(this.option,r,!0);var a=df(this);a&&so(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!QU(r))return r.defaultOption;var n=sY(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=ke(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Yc(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(rt);vE(Ve,rt),Qd(Ve),U7(Ve),Y7(Ve,lY);function lY(t){var e=[];return M(Ve.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=K(e,function(r){return xa(r).main}),t!=="dataset"&&Re(e,"dataset")<=0&&e.unshift("dataset"),e}var eM="";typeof navigator<"u"&&(eM=navigator.platform||"");var tu="rgba(0, 0, 0, 0.2)";const uY={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:eM.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 n_=fe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Mn="original",Er="arrayRows",An="objectRows",Ia="keyedColumns",ci="typedArray",tM="unknown",ka="column",ru="row",mr={Must:1,Might:2,Not:3},rM=je();function cY(t){rM(t).datasetMap=fe()}function nM(t,e,r){var n={},a=i_(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,l=rM(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),M(t,function(g,m){var y=ve(g)?g:t[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=v(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(t,function(g,m){var y=g.name,_=v(g);if(c==null){var b=h.valueWayDim;d(n[y],b,_),d(o,b,_),h.valueWayDim+=_}else if(c===m)d(n[y],0,_),d(i,0,_);else{var b=h.categoryWayDim;d(n[y],b,_),d(o,b,_),h.categoryWayDim+=_}});function d(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 a_(t,e,r){var n={},a=i_(t);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===An||i===Ia)&&M(o,function(c,f){(ve(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],d=0,v=Math.min(5,r);d<v;d++){var g=iM(e.data,i,e.seriesLayoutBy,o,e.startIndex,d);h.push(g);var m=g===mr.Not;if(m&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!m&&h[c.n]===mr.Not)&&(c.n=d),y(c)&&h[c.n]!==mr.Not)return c;m||(g===mr.Might&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v)&&(f.n=d))}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 i_(t){var e=t.get("data",!0);if(!e)return Yc(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},$t).models[0]}function fY(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Yc(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},$t).models}function aM(t,e){return iM(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function iM(t,e,r,n,a,i){var o,s=5;if(br(t))return mr.Not;var l,u;if(n){var c=n[i];ve(c)?(l=c.name,u=c.type):ie(c)&&(l=c)}if(u!=null)return u==="ordinal"?mr.Must:mr.Not;if(e===Er){var f=t;if(r===ru){for(var h=f[i],d=0;d<(h||[]).length&&d<s;d++)if((o=S(h[a+d]))!=null)return o}else for(var d=0;d<f.length&&d<s;d++){var v=f[a+d];if(v&&(o=S(v[i]))!=null)return o}}else if(e===An){var g=t;if(!l)return mr.Not;for(var d=0;d<g.length&&d<s;d++){var m=g[d];if(m&&(o=S(m[l]))!=null)return o}}else if(e===Ia){var y=t;if(!l)return mr.Not;var h=y[l];if(!h||br(h))return mr.Not;for(var d=0;d<h.length&&d<s;d++)if((o=S(h[d]))!=null)return o}else if(e===Mn)for(var _=t,d=0;d<_.length&&d<s;d++){var m=_[d],b=Pl(m);if(!Z(b))return mr.Not;if((o=S(b[i]))!=null)return o}function S(w){var x=ie(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?mr.Might:mr.Not;if(x&&w!=="-")return mr.Must}return mr.Not}var o_=fe();function hY(t,e){_e(o_.get(t)==null&&e),o_.set(t,e)}function dY(t,e,r){var n=o_.get(e);if(!n)return r;var a=n(t);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)_e(Ol(a[i]));return r.concat(a)}var oM=je(),pY=je(),s_=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=ut(this.get("color",!0)),i=this.get("colorLayer",!0);return sM(this,oM,a,i,e,r,n)},t.prototype.clearColorPalette=function(){gY(this,oM)},t}();function l_(t,e,r,n){var a=ut(t.get(["aria","decal","decals"]));return sM(t,pY,a,null,e,r,n)}function vY(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function sM(t,e,r,n,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:vY(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 gY(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Rp,pf,lM,u_="\0_ec_inner",uM=1,mY={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"},yY={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"},Vp={};function _Y(t){M(t,function(e,r){if(!Ve.hasClass(r)){var n=mY[r];n&&!Vp[n]&&(pr("Component "+r+` is used but not imported.
50
+ import { `+n+` } from 'echarts/components';
51
+ echarts.use([`+n+"]);"),Vp[n]=!0)}})}var c_=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new rt(i),this._locale=new rt(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(_e(r!=null,"option is null/undefined"),_e(r[u_]!==uM,"please use chart.getOption()"));var i=hM(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,hM(n))},e.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"&&_Y(o),!this.option||r==="recreate"?lM(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},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=fe(),u=n&&n.replaceMergeMainTypeMap;cY(this),M(r,function(f,h){f!=null&&(Ve.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?we(f):ke(a[h],f,!0))}),u&&u.each(function(f,h){Ve.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ve.topologicalTravel(s,Ve.getAllClassMainTypes(),c,this);function c(f){var h=dY(this,f,ut(r[f])),d=i.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=lE(d,h,v);WU(g,f,Ve),a[f]=null,i.set(f,null),o.set(f,0);var m=[],y=[],_=0,b,S;M(g,function(w,x){var C=w.existing,T=w.newOption;if(!T)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var D=f==="series",E=Ve.getClass(f,w.keyInfo.subType,!D);if(!E){if(process.env.NODE_ENV!=="production"){var A=w.keyInfo.subType,I=yY[A];Vp[A]||(Vp[A]=!0,pr(I?"Series "+A+` is used but not imported.
52
+ import { `+I+` } from 'echarts/charts';
53
+ echarts.use([`+I+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(b){process.env.NODE_ENV!=="production"&&(S||(Ct("Currently only one tooltip component is allowed."),S=!0));return}b=!0}if(C&&C.constructor===E)C.name=w.keyInfo.name,C.mergeOption(T,this),C.optionUpdated(T,!1);else{var k=W({componentIndex:x},w.keyInfo);C=new E(T,this,this,k),W(C,k),w.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"&&Rp(this)}this._seriesIndices||Rp(this)},e.prototype.getOption=function(){var r=we(this.option);return M(r,function(n,a){if(Ve.hasClass(a)){for(var i=ut(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ol(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[u_],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var 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]}}},e.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(ut(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=cM("id",i,s):o!=null?l=cM("name",o,s):l=tt(s,function(u){return!!u}),fM(l,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):tt(this._componentsMap.get(a),function(u){return!!u});return l(fM(o,r));function s(u){var c=a+"Index",f=a+"Id",h=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:a,index:u[c],id:u[f],name:u[h]}:null}function l(u){return r.filter?tt(u,r.filter):u}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(de(r)){var o=n,s=r;i.each(function(f,h){for(var d=0;f&&d<f.length;d++){var v=f[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=ie(r)?i.get(r):ve(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Zt(r,null);return tt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return tt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return tt(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){pf(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){pf(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return M(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return pf(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){pf(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=fe(a)},e.prototype.restoreData=function(r){Rp(this);var n=this._componentsMap,a=[];n.each(function(i,o){Ve.hasClass(o)&&a.push(o)}),Ve.topologicalTravel(a,Ve.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!bY(o,r))&&o.restoreData()})})},e.internalField=function(){Rp=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=fe(n)},pf=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},lM=function(r,n){r.option={},r.option[u_]=uM,r._componentsMap=fe({series:[]}),r._componentsCount=fe();var a=n.aria;ve(a)&&a.enabled==null&&(a.enabled=!0),SY(n,r._theme.option),ke(n,uY,!1),r._mergeOption(n,null)}}(),e}(rt);function bY(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function SY(t,e){var r=t.color&&!t.colorLayer;M(e,function(n,a){a==="colorLayer"&&r||Ve.hasClass(a)||(typeof n=="object"?t[a]=t[a]?ke(t[a],n,!1):we(n):t[a]==null&&(t[a]=n))})}function cM(t,e,r){if(Z(e)){var n=fe();return M(e,function(i){if(i!=null){var o=Zt(i,null);o!=null&&n.set(i,!0)}}),tt(r,function(i){return i&&n.get(i[t])})}else{var a=Zt(e,null);return tt(r,function(i){return i&&a!=null&&i[t]===a})}}function fM(t,e){return e.hasOwnProperty("subType")?tt(t,function(r){return r&&r.subType===e.subType}):t}function hM(t){var e=fe();return t&&M(ut(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&_e(Ve.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}It(c_,s_);var wY=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],dM=function(){function t(e){M(wY,function(r){this[r]=oe(e[r],e)},this)}return t}(),f_={},Ts=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];M(f_,function(a,i){var o=a.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){M(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){f_[e]=r},t.get=function(e){return f_[e]},t}(),xY=/^(min|max)?(.+)$/,CY=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(M(ut(e.series),function(o){o&&o.data&&br(o.data)&&mc(o.data)}),M(ut(e.dataset),function(o){o&&o.source&&br(o.source)&&mc(o.source)})),e=we(e);var a=this._optionBackup,i=TY(e,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},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],we(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=we(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){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++)DY(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!MY(o,this._currentMediaIndices)&&(s=K(o,function(c){return we(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function TY(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(t.options=t.media=null),i=t),c&&(Z(u)?M(u,function(d){process.env.NODE_ENV!=="production"&&d&&!d.option&&ve(d.query)&&ve(d.query.option)&&pr("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),d&&d.option&&(d.query?n.push(d):a||(a=d))}):process.env.NODE_ENV!=="production"&&pr("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(i),M(l,function(d){return h(d)}),M(n,function(d){return h(d.option)});function h(d){M(e,function(v){v(d,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function DY(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return M(t,function(i,o){var s=o.match(xY);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();EY(n[u],i,l)||(a=!1)}}),a}function EY(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function MY(t,e){return t.join(",")===e.join(",")}var In=M,vf=ve,pM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function h_(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=pM.length;r<n;r++){var a=pM[r],i=e.normal,o=e.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&Ot("itemStyle.normal."+a,a),t[a]=t[a]||{},t[a].normal?ke(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&Ot("itemStyle.emphasis."+a,"emphasis."+a),t[a]=t[a]||{},t[a].emphasis?ke(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Mr(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&xn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,ye(t[e],n)):t[e]=n),a&&(process.env.NODE_ENV!=="production"&&xn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function gf(t){Mr(t,"itemStyle"),Mr(t,"lineStyle"),Mr(t,"areaStyle"),Mr(t,"label"),Mr(t,"labelLine"),Mr(t,"upperLabel"),Mr(t,"edgeLabel")}function Ht(t,e){var r=vf(t)&&t[e],n=vf(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&xn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=sE.length;a<i;a++){var o=sE[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function kn(t){t&&(gf(t),Ht(t,"label"),t.emphasis&&Ht(t.emphasis,"label"))}function AY(t){if(vf(t)){h_(t),gf(t),Ht(t,"label"),Ht(t,"upperLabel"),Ht(t,"edgeLabel"),t.emphasis&&(Ht(t.emphasis,"label"),Ht(t.emphasis,"upperLabel"),Ht(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(h_(e),kn(e));var r=t.markLine;r&&(h_(r),kn(r));var n=t.markArea;n&&kn(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!br(i))for(var o=0;o<i.length;o++)kn(i[o]);M(t.categories,function(u){gf(u)})}if(a&&!br(a))for(var o=0;o<a.length;o++)kn(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)kn(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Z(l[o])?(kn(l[o][0]),kn(l[o][1])):kn(l[o]);t.type==="gauge"?(Ht(t,"axisLabel"),Ht(t,"title"),Ht(t,"detail")):t.type==="treemap"?(Mr(t.breadcrumb,"itemStyle"),M(t.levels,function(u){gf(u)})):t.type==="tree"&&gf(t.leaves)}}function fi(t){return Z(t)?t:t?[t]:[]}function vM(t){return(Z(t)?t[0]:t)||{}}function IY(t,e){In(fi(t.series),function(n){vf(n)&&AY(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),In(r,function(n){In(fi(t[n]),function(a){a&&(Ht(a,"axisLabel"),Ht(a.axisPointer,"label"))})}),In(fi(t.parallel),function(n){var a=n&&n.parallelAxisDefault;Ht(a,"axisLabel"),Ht(a&&a.axisPointer,"label")}),In(fi(t.calendar),function(n){Mr(n,"itemStyle"),Ht(n,"dayLabel"),Ht(n,"monthLabel"),Ht(n,"yearLabel")}),In(fi(t.radar),function(n){Ht(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&xn("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"&&xn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&In(n.indicator,function(a){a.text&&Ot("text","name","radar.indicator")})}),In(fi(t.geo),function(n){vf(n)&&(kn(n),In(fi(n.regions),function(a){kn(a)}))}),In(fi(t.timeline),function(n){kn(n),Mr(n,"label"),Mr(n,"itemStyle"),Mr(n,"controlStyle",!0);var a=n.data;Z(a)&&M(a,function(i){ve(i)&&(Mr(i,"label"),Mr(i,"itemStyle"))})}),In(fi(t.toolbox),function(n){Mr(n,"iconStyle"),In(n.feature,function(a){Mr(a,"iconStyle")})}),Ht(vM(t.axisPointer),"label"),Ht(vM(t.tooltip).axisPointer,"label")}function kY(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function LY(t,e,r,n){for(var a=e.split(","),i=t,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 gM(t){t&&M(NY,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var NY=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],PY=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],d_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mf(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<d_.length;r++){var n=d_[r][1],a=d_[r][0];e[n]!=null&&(e[a]=e[n],process.env.NODE_ENV!=="production"&&Ot(n,a))}}function mM(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Ot("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function yM(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Ot("downplay","blur","sunburst"))}function OY(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Ot("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function _M(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&_M(t[r].children,e)}function bM(t,e){IY(t,e),t.series=ut(t.series),M(t.series,function(r){if(ve(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&Ot("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&Ot("clockWise","clockwise")),mM(r.label);var a=r.data;if(a&&!br(a))for(var i=0;i<a.length;i++)mM(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Ot("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=kY(r,"pointer.color");o!=null&&LY(r,"itemStyle.color",o)}else if(n==="bar"){mf(r),mf(r.backgroundStyle),mf(r.emphasis);var a=r.data;if(a&&!br(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(mf(a[i]),mf(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"&&Ot("highlightPolicy","emphasis.focus","sunburst"))),yM(r),_M(r.data,yM)}else n==="graph"||n==="sankey"?OY(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&Ot("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&xn("`mapLocation` is not used anymore."),ye(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Ot("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),gM(r)}}),t.dataRange&&(t.visualMap=t.dataRange),M(PY,function(r){var n=t[r];n&&(Z(n)||(n=[n]),M(n,function(a){gM(a)}))})}function RY(t){var e=fe();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.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)}}),e.each(VY)}function VY(t){M(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return a;var d,v;s?v=o.getRawIndex(f):d=o.get(e.stackedByDimension,f);for(var g=NaN,m=r-1;m>=0;m--){var y=t[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,d)),v>=0){var _=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=kU(h,_),g=_;break}}}return n[0]=h,n[1]=g,n})})}var Bp=function(){function t(e){this.data=e.data||(e.sourceFormat===Ia?{}:[]),this.sourceFormat=e.sourceFormat||tM,this.seriesLayoutBy=e.seriesLayoutBy||ka,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&aM(this,n)===mr.Must&&(a.type="ordinal")}}return t}();function p_(t){return t instanceof Bp}function v_(t,e,r){r=r||SM(t);var n=e.seriesLayoutBy,a=FY(t,r,n,e.sourceHeader,e.dimensions),i=new Bp({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:we(e)});return i}function g_(t){return new Bp({data:t,sourceFormat:br(t)?ci:Mn})}function BY(t){return new Bp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:we(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function SM(t){var e=tM;if(br(t))e=ci;else if(Z(t)){t.length===0&&(e=Er);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(Z(a)||br(a)){e=Er;break}else if(ve(a)){e=An;break}}}}else if(ve(t)){for(var i in t)if(le(t,i)&&dr(t[i])){e=Ia;break}}return e}function FY(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:wM(a),startIndex:o,dimensionsDetectedCount:i};if(e===Er){var s=t;n==="auto"||n==null?xM(function(u){u!=null&&u!=="-"&&(ie(u)?o==null&&(o=1):o=0)},r,s,10):o=Ke(n)?n:n?1:0,!a&&o===1&&(a=[],xM(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===ru?s.length:s[0]?s[0].length:null}else if(e===An)a||(a=zY(t));else if(e===Ia)a||(a=[],M(t,function(u,c){a.push(c)}));else if(e===Mn){var l=Pl(t[0]);i=Z(l)&&l.length||1}else e===ci&&process.env.NODE_ENV!=="production"&&_e(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:wM(a),dimensionsDetectedCount:i}}function zY(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return $e(r)}function wM(t){if(t){var e=fe();return K(t,function(r,n){r=ve(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=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function xM(t,e,r,n){if(e===ru)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function CM(t){var e=t.sourceFormat;return e===An||e===Ia}var Ds,Es,Ms,TM,DM,EM=function(){function t(e,r){var n=p_(e)?e:g_(e);this._source=n;var a=this._data=n.data;if(n.sourceFormat===ci){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}DM(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;DM=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=TM[y_(u,c)];if(process.env.NODE_ENV!=="production"&&_e(d,"Invalide sourceFormat: "+u),W(o,d),u===ci)o.getItem=r,o.count=a,o.fillStorage=n;else{var v=AM(u,c);o.getItem=oe(v,null,s,f,h);var g=kM(u,c);o.count=oe(g,null,s,f,h)}};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,h=0;h<f;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],m=s-o,y=l[h],_=0;_<m;_++){var b=c[_*f+h];y[o+_]=b,b<v&&(v=b),b>g&&(g=b)}d[0]=v,d[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};TM=(e={},e[Er+"_"+ka]={pure:!0,appendData:i},e[Er+"_"+ru]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[An]={pure:!0,appendData:i},e[Ia]={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])})}},e[Mn]={appendData:i},e[ci]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&_e(br(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),MM=function(t,e,r,n){return t[n]},$Y=(Ds={},Ds[Er+"_"+ka]=function(t,e,r,n){return t[n+e]},Ds[Er+"_"+ru]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ds[An]=MM,Ds[Ia]=function(t,e,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=t[s];i[o]=l?l[n]:null}return i},Ds[Mn]=MM,Ds);function AM(t,e){var r=$Y[y_(t,e)];return process.env.NODE_ENV!=="production"&&_e(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var IM=function(t,e,r){return t.length},GY=(Es={},Es[Er+"_"+ka]=function(t,e,r){return Math.max(0,t.length-e)},Es[Er+"_"+ru]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Es[An]=IM,Es[Ia]=function(t,e,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=t[n];return a?a.length:0},Es[Mn]=IM,Es);function kM(t,e){var r=GY[y_(t,e)];return process.env.NODE_ENV!=="production"&&_e(r,'Do not support count on "'+t+'", "'+e+'".'),r}var m_=function(t,e,r){return t[e]},HY=(Ms={},Ms[Er]=m_,Ms[An]=function(t,e,r){return t[r]},Ms[Ia]=m_,Ms[Mn]=function(t,e,r){var n=Pl(t);return n instanceof Array?n[e]:n},Ms[ci]=m_,Ms);function LM(t){var e=HY[t];return process.env.NODE_ENV!=="production"&&_e(e,'Do not support get value on "'+t+'".'),e}function y_(t,e){return t===Er?t+"_"+e:t}function nu(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return LM(i)(n,o,s)}else{var l=n;return i===Mn&&(l=Pl(n)),l}}}}var WY=/\{@(.+?)\}/g,Fp=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",d=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Z(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(de(i))return l.status=r,l.dimensionIndex=a,i(l);if(ie(i)){var c=t_(i,l);return c.replace(WY,function(f,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&pr("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var g=nu(s,e,v);if(o&&Z(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return nu(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function NM(t){var e,r;return ve(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Rr(t)):e=t,{text:e,frag:r}}function yf(t){return new UY(t)}var UY=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var 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(e&&e.modBy),u=e&&e.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 h=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&_e(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&_e(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d<v)){var g=this._progress;if(Z(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],d,v,l,u);else this._doProgress(g,d,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&_e(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){PM.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:PM.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&_e(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),PM=function(){var t,e,r,n,a,i={reset:function(l,u,c,f){e=l,t=u,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<n?l:e;return e++,u}}();function lo(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Ke(t)&&t!=null&&t!=="-"&&(t=+ln(t)),t==null||t===""?NaN:Number(t))}var YY=fe({number:function(t){return parseFloat(t)},time:function(t){return+ln(t)},trim:function(t){return ie(t)?yn(t):t}});function OM(t){return YY.get(t)}var RM={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},ZY=function(){function t(e,r){if(!Ke(r)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),it(n)}this._opFn=RM[e],this._rvalFloat=wa(r)}return t.prototype.evaluate=function(e){return Ke(e)?this._opFn(e,this._rvalFloat):this._opFn(wa(e),this._rvalFloat)},t}(),VM=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Ke(e)?e:wa(e),a=Ke(r)?r:wa(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ie(e),l=ie(r);s&&(n=l?e:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),XY=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=wa(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=wa(e)===this._rvalFloat)}return this._isEQ?r:!r},t}();function jY(t,e){return t==="eq"||t==="ne"?new XY(t==="eq",e):le(RM,t)?new ZY(t,e):null}var KY=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return lo(e,r)},t}();function qY(t,e){var r=new KY,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==ka&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),it(o));var s=[],l={},u=t.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="";le(l,y)&&(process.env.NODE_ENV!=="production"&&(b='dimension name "'+y+'" duplicated.'),it(b)),l[y]=_}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=AM(a,ka);e.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,i,s,g)},r.getRawData=oe(JY,null,t)),r.cloneRawData=oe(QY,null,t);var h=kM(a,ka);r.count=oe(h,null,n,i,s);var d=LM(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 d(g,m,y.name)}};return r.getDimensionInfo=oe(eZ,null,s,l),r.cloneAllDimensionInfo=oe(tZ,null,s),r}function JY(t){var e=t.sourceFormat;if(!__(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),it(r)}return t.data}function QY(t){var e=t.sourceFormat,r=t.data;if(!__(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),it(n)}if(e===Er){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===An){for(var a=[],i=0,o=r.length;i<o;i++)a.push(W({},r[i]));return a}}function eZ(t,e,r){if(r!=null){if(Ke(r)||!isNaN(r)&&!le(e,r))return t[r];if(le(e,r))return e[r]}}function tZ(t){return we(t)}var BM=fe();function rZ(t){t=we(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),it(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),it(r));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,BM.set(e,t)}function nZ(t,e,r){var n=ut(t),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),it(i));for(var o=0,s=a;o<s;o++){var l=n[o];e=aZ(l,e,r,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function aZ(t,e,r,n){var a="";e.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),it(a)),ve(t)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof t+"."),it(a));var i=t.type,o=BM.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),it(a));var s=K(e,function(c){return qY(c,o)}),l=ut(o.transform({upstream:s[0],upstreamList:s,config:we(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=K(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Rr(c.data),"- transform result dimensions:",Rr(c.dimensions)].join(`
54
+ `)}).join(`
55
+ `);OU(u)}return K(l,function(c,f){var h="";ve(c)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),it(h)),c.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),it(h));var d=SM(c.data);__(d)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),it(h));var v,g=e[0];if(g&&f===0&&!c.dimensions){var m=g.startIndex;m&&(c.data=g.data.slice(0,m).concat(c.data)),v={seriesLayoutBy:ka,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:ka,sourceHeader:0,dimensions:c.dimensions};return v_(c.data,v,null)})}function __(t){return t===Er||t===An}var zp="undefined",iZ=typeof Uint32Array===zp?Array:Uint32Array,oZ=typeof Uint16Array===zp?Array:Uint16Array,FM=typeof Int32Array===zp?Array:Int32Array,zM=typeof Float64Array===zp?Array:Float64Array,$M={float:zM,int:FM,ordinal:Array,number:Array,time:zM},b_;function au(t){return t>65535?iZ:oZ}function iu(){return[1/0,-1/0]}function sZ(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function GM(t,e,r,n,a){var i=$M[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(n)}var S_=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fe()}return t.prototype.initData=function(e,r,n){process.env.NODE_ENV!=="production"&&_e(de(e.getItem)&&de(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=b_[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=CM(a);this._dimensions=K(r,function(s){return process.env.NODE_ENV!=="production"&&o&&_e(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new $M[r||"float"](this._rawCount),this._rawExtent[i]=iu(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=iu());for(var l=i[e],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"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&_e(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++){var c=a[u];GM(n,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,v=0;v<i;v++){var c=a[v],g=b_.arrayRows.call(this,e[d]||f,c.property,d,v);n[v][h]=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}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=iu()),GM(i,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,l);else for(var h=[],d=e;d<r;d++){h=a.getItem(d,h);for(var v=0;v<s;v++){var g=i[v],m=this._dimValueGetter(h,u[v],d,v);g[d]=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=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],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},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var a=this._chunks,i=a[e],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 h=this.getRawIndex(c),d=r-i[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=au(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=au(n._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],f=n._chunks,h=0;h<a;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var g=f[c][v];d=r(g,h)}else{for(var m=0;m<l;m++)s[m]=f[e[m]][v];s[m]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=$e(e),i=a.length;if(!i)return this;var o=r.count(),s=au(r._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],h=e[c][1],d=r._chunks,v=!1;if(!r._indices){var g=0;if(i===1){for(var m=d[a[0]],y=0;y<n;y++){var _=m[y];(_>=f&&_<=h||isNaN(_))&&(l[u++]=g),g++}v=!0}else if(i===2){for(var m=d[a[0]],b=d[a[1]],S=e[a[1]][0],w=e[a[1]][1],y=0;y<n;y++){var _=m[y],x=b[y];(_>=f&&_<=h||isNaN(_))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=g),g++}v=!0}}if(!v)if(i===1)for(var y=0;y<o;y++){var C=r.getRawIndex(y),_=d[a[0]][C];(_>=f&&_<=h||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],_=d[E][C];(_<e[E][0]||_>e[E][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=iu();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),d=0;d<o;d++)l[d]=a[r[d]][h];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];_&&(_[h]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,d=new(au(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[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),w=i[S];isNaN(w)||(_+=w)}_/=m-g;var x=v,C=Math.min(v+l,o),T=v-1,D=i[u];c=-1,h=x;for(var E=-1,A=0,b=x;b<C;b++){var S=this.getRawIndex(b),w=i[S];if(isNaN(w)){A++,E<0&&(E=S);continue}f=Math.abs((T-y)*(w-D)-(T-b)*(_-D)),f>c&&(c=f,h=S)}A>0&&A<C-x&&(d[s++]=Math.min(E,h),h=Math.max(E,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),l=new(au(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,h=o[this.getRawIndex(f)],d=c,v=o[this.getRawIndex(d)],g=i;c+i>s&&(g=s-c);for(var m=0;m<g;m++){var y=this.getRawIndex(c+m),_=o[y];_<h&&(h=_,f=c+m),_>v&&(v=_,d=c+m)}var b=this.getRawIndex(f),S=this.getRawIndex(d);f<d?(l[u++]=b,l[u++]=S):(l[u++]=S,l[u++]=b)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),f=i._rawExtent[e]=iu(),h=new(au(this._rawCount))(Math.ceil(c/l)),d=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),h[d++]=_}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.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[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=iu();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&mn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?sZ(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=we(this._extent),e._rawExtent=we(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return lo(r[i],this._dimensions[i])}b_={arrayRows:e,objectRows:function(r,n,a,i){return lo(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return lo(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}(),HM=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(_f(e)){var o=e,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=br(s)?ci:Mn,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=De(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=De(f.sourceHeader,h.sourceHeader),g=De(f.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||g;a=m?[v_(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:g},l)]:[]}else{var y=e;if(n){var _=this._applyTransform(r);a=_.sourceList,i=_.upstreamSignList}else{var b=y.get("source",!0);a=[v_(b,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&_e(a&&i),this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&_e(a!=null||n!=null),a!=null){var i="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),UM(i))}var o,s=[],l=[];return M(e,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),UM(f)),s.push(c),l.push(u._getVersionSign())}),n?o=nZ(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[BY(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&_e(_f(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];_f(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new S_,s.initData(new EM(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(_f(e)){var r=i_(e);return r?[r.getSourceManager()]:[]}else return K(fY(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(_f(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function WM(t){var e=t.option.transform;e&&mc(t.option.transform)}function _f(t){return t.mainType==="series"}function UM(t){throw new Error(t)}var lZ="line-height:1";function YM(t){var e=t.lineHeight;return e==null?lZ:"line-height:"+wr(e+"")+"px"}function ZM(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+wr(n+"")+"px;color:"+wr(r)+";font-weight:"+wr(a+""),valueStyle:"font-size:"+wr(o+"")+"px;color:"+wr(i)+";font-weight:"+wr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var uZ=[0,10,20,30],cZ=["",`
56
+ `,`
57
+
58
+ `,`
59
+
60
+
61
+ `];function er(t,e){return e.type=t,e}function w_(t){return t.type==="section"}function XM(t){return w_(t)?fZ:hZ}function jM(t){if(w_(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return M(t.blocks,function(a){var i=jM(a);i>=e&&(e=i+ +(n&&(!i||w_(a)&&!a.noHeader)))}),e}return 0}function fZ(t,e,r,n){var a=e.noHeader,i=dZ(jM(e)),o=[],s=e.blocks||[];_e(!s||Z(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(le(u,l)){var c=new VM(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=e.valueFormatter,_=XM(g)(y?W(W({},t),{valueFormatter:y}):t,g,m>0?i.html:0,n);_!=null&&o.push(_)});var f=t.renderMode==="richText"?o.join(i.richText):x_(n,o.join(""),a?r:i.html);if(a)return f;var h=Q0(e.header,"ordinal",t.useUTC),d=ZM(n,t.renderMode).nameStyle,v=YM(n);return t.renderMode==="richText"?qM(t,h,d)+i.richText+f:x_(n,'<div style="'+d+";"+v+';">'+wr(h)+"</div>"+f,r)}function hZ(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(S){return S=Z(S)?S:[S],K(S,function(w,x){return Q0(w,Z(d)?d[x]:d,u)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),h=i?"":Q0(l,"ordinal",u),d=e.valueType,v=o?[]:c(e.value,e.dataIndex),g=!s||!i,m=!s&&i,y=ZM(n,a),_=y.nameStyle,b=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":qM(t,h,_))+(o?"":gZ(t,v,g,m,b)):x_(n,(s?"":f)+(i?"":pZ(h,!s,_))+(o?"":vZ(v,g,m,b)),r)}}function KM(t,e,r,n,a,i){if(t){var o=XM(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function dZ(t){return{html:uZ[t],richText:cZ[t]}}function x_(t,e,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=YM(t);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function pZ(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+wr(t)+"</span>"}function vZ(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=Z(t)?t:[t],'<span style="'+i+";"+n+'">'+K(t,function(o){return wr(o)}).join("&nbsp;&nbsp;")+"</span>"}function qM(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function gZ(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Z(e)?e.join(" "):e,i)}function JM(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ws(n)}function QM(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var C_=function(){function t(){this.richTextStyles={},this._nextStyleNameId=eE()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=q2({color:r,type:e,renderMode:n,markerId:a});return ie(i)?i:(process.env.NODE_ENV!=="production"&&_e(a),this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Z(r)?M(r,function(i){return W(n,i)}):W(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();function eA(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=Z(s),u=JM(e,r),c,f,h,d;if(o>1||l&&!o){var v=mZ(s,e,r,i,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);d=c=nu(a,r,i[0]),f=g.type}else d=c=l?s[0]:s;var m=Ky(e),y=m&&e.name||"",_=a.getName(r),b=n?y:_;return er("section",{header:y,noHeader:n||!m,sortParam:d,blocks:[er("nameValue",{markerType:"item",markerColor:u,name:b,noName:!yn(b),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function mZ(t,e,r,n,a){var i=e.getData(),o=mn(t,function(f,h,d){var v=i.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(nu(i,r,f),f)}):M(t,c);function c(f,h){var d=i.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(er("nameValue",{markerType:"subItem",markerColor:a,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var uo=je();function $p(t,e){return t.getName(e)||t.getId(e)}var Gp="__universalTransitionEnabled",ct=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=yf({count:_Z,reset:bZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=uo(this).sourceManager=new HM(this);i.prepareSource();var o=this.getInitialData(r,a);rA(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&_e(o,"getInitialData returned invalid data."),uo(this).dataBeforeProcessed=o,tA(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=df(this),i=a?eu(r):{},o=this.subType;Ve.hasClass(o)&&(o+="Series"),ke(r,n.getTheme().get(this.subType)),ke(r,this.getDefaultOption()),ts(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&so(r,i,a)},e.prototype.mergeOption=function(r,n){r=ke(this.option,r,!0),this.fillDataTextStyle(r.data);var a=df(this);a&&so(this.option,r,a);var i=uo(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);rA(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,uo(this).dataBeforeProcessed=o,tA(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!br(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&ts(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=T_(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return uo(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=T_(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}uo(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return fe(r)},e.prototype.getSourceManager=function(){return uo(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return uo(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,a){return eA({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Fe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=s_.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var 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=$p(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=$e(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[$p(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Gp])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){ve(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],h=$p(r,f);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var d=n[l-1],h=$p(r,d);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(d),i)}}},e.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)}},e.registerClass=function(r){return Ve.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Ve);It(ct,Fp),It(ct,s_),vE(ct,Ve);function tA(t){var e=t.name;Ky(t)||(t.name=yZ(t)||e)}function yZ(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return M(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function _Z(t){return t.model.getRawData().count()}function bZ(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),SZ}function SZ(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function rA(t,e){M(xl(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ae(wZ,e))})}function wZ(t,e){var r=T_(t);return r&&r.setOutputEnd((e||this).count()),e}function T_(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var _t=function(){function t(){this.group=new Ce,this.uid=Kl("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Qy(_t),Qd(_t);function ou(){var t=je();return function(e){var r=t(e),n=e.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 nA=je(),xZ=ou(),st=function(){function t(){this.group=new Ce,this.uid=Kl("viewChart"),this.renderTask=yf({plan:CZ,reset:TZ}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&pr("Unknown dataType "+a.dataType);return}iA(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&pr("Unknown dataType "+a.dataType);return}iA(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){io(this.group,e)},t.markUpdateMethod=function(e,r){nA(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function aA(t,e,r){t&&ro(t)&&(e==="emphasis"?li:ui)(t,r)}function iA(t,e,r){var n=rs(t,e),a=e&&e.highlightKey!=null?o7(e.highlightKey):null;n!=null?M(ut(n),function(i){aA(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){aA(i,r,a)})}Qy(st,["dispose"]),Qd(st);function CZ(t){return xZ(t.model)}function TZ(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&nA(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,a),DZ[l]}var DZ={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Hp="\0__throttleOriginMethod",oA="\0__throttleRate",sA="\0__throttleType";function Wp(t,e,r){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var g=c||e,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 h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function su(t,e,r,n){var a=t[e];if(a){var i=a[Hp]||a,o=a[sA],s=a[oA];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=Wp(i,r,n==="debounce"),a[Hp]=i,a[sA]=n,a[oA]=r}return a}}function bf(t,e){var r=t[e];r&&r[Hp]&&(r.clear&&r.clear(),t[e]=r[Hp])}var lA=je(),uA={itemStyle:as(V2,!0),lineStyle:as(R2,!0)},EZ={lineStyle:"stroke",itemStyle:"fill"};function cA(t,e){var r=t.visualStyleMapper||uA[e];return r||(console.warn("Unknown style type '"+e+"'."),uA.itemStyle)}function fA(t,e){var r=t.visualDrawType||EZ[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var MZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=cA(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=fA(t,n),u=o[l],c=de(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||de(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||de(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var g=t.getDataParams(v),m=W({},o);m[l]=c(g),d.setItemVisual(v,"style",m)}}}},Sf=new rt,AZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=cA(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Sf.option=l[n];var u=a(Sf),c=o.ensureUniqueItemVisual(s,"style");W(c,u),Sf.option.decal&&(o.setItemVisual(s,"decal",Sf.option.decal),Sf.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},IZ={performRawSeries:!0,overallReset:function(t){var e=fe();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),lA(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=lA(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=fA(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 h=i.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},Up=Math.PI;function kZ(t,e){e=e||{},ye(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new We({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new Ue({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new We({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new nf({shape:{startAngle:-Up/2,endAngle:-Up/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Up*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Up*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},r.resize(),r}var hA=function(){function t(e,r,n,a){this._stageTaskMap=fe(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=fe();e.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)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),_e(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,a.block);v.each(function(m){m.perform(g)}),h.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},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=fe(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var h=f.uid,d=s.set(h,o&&o.get(h)||yf({plan:RZ,reset:VZ,count:FZ}));d.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,d)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||yf({reset:LZ});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=fe(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,d="";process.env.NODE_ENV!=="production"&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),_e(!e.createOnAllSeries,d),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)||(h=!0,yf({reset:NZ,onDirty:OZ})));y.context={model:g,overallProgress:f},y.agent=o,y.__block=f,i._pipe(g,y)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return de(e)&&(e={overallReset:e,seriesType:zZ(e)}),e.uid=Kl("stageHandler"),r&&(e.visualType=r),e},t}();function LZ(t){t.overallReset(t.ecModel,t.api,t.payload)}function NZ(t){return t.overallProgress&&PZ}function PZ(){this.agent.dirty(),this.getDownstream().dirty()}function OZ(){this.agent&&this.agent.dirty()}function RZ(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function VZ(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ut(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,n){return dA(n)}):BZ}var BZ=dA(0);function dA(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function FZ(t){return t.data.count()}function zZ(t){Yp=null;try{t(wf,pA)}catch{}return Yp}var wf={},pA={},Yp;vA(wf,c_),vA(pA,dM),wf.eachSeriesByType=wf.eachRawSeriesByType=function(t){Yp=t},wf.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Yp=t.subType)};function vA(t,e){for(var r in e.prototype)t[r]=kt}var gA=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $Z={color:gA,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],gA]};var Ar="#B9B8CE",mA="#100C2A",Zp=function(){return{axisLine:{lineStyle:{color:Ar}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},yA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_A={darkMode:!0,color:yA,backgroundColor:mA,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ar},pageTextStyle:{color:Ar}},textStyle:{color:Ar},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ar}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ar},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:Ar}},timeline:{lineStyle:{color:Ar},label:{color:Ar},controlStyle:{color:Ar,borderColor:Ar}},calendar:{itemStyle:{color:mA},dayLabel:{color:Ar},monthLabel:{color:Ar},yearLabel:{color:Ar}},timeAxis:Zp(),logAxis:Zp(),valueAxis:Zp(),categoryAxis:Zp(),line:{symbol:"circle"},graph:{color:yA},gauge:{title:{color:Ar},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ar},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};_A.categoryAxis.splitLine.show=!1;var GZ=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(ie(e)){var i=xa(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,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(e,r.otherQuery,a,i));function c(f,h,d,v){return f[d]==null||h[v||d]===f[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),D_=["symbol","symbolSize","symbolRotate","symbolOffset"],bA=D_.concat(["symbolKeepAspect"]),HZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<D_.length;o++){var s=D_[o],l=t.get(s);de(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(W({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=$e(a);function c(f,h){for(var d=t.getRawValue(h),v=t.getDataParams(h),g=0;g<u.length;g++){var m=u[g];f.setItemVisual(h,m,a[m](d,v))}}return{dataEach:i?c:null}}},WZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<bA.length;s++){var l=bA[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function E_(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function xf(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function SA(t,e,r,n){switch(r){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function wA(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}M([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=W({},a),process.env.NODE_ENV!=="production"&&Ot(a.type,n[1]),o.dispatchAction(W(a,{type:n[1],seriesIndex:r(i,a)}))})})}function lu(t,e,r,n,a){var i=t+e;r.isSilent(i)||(process.env.NODE_ENV!=="production"&&xn("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(),h=rs(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Z(h)?f.getName(h[0]):f.getName(h),selected:ie(l)?l:W({},l)})}}))}function UZ(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(lu("map","selectchanged",e,a,n),lu("pie","selectchanged",e,a,n)):n.fromAction==="select"?(lu("map","selected",e,a,n),lu("pie","selected",e,a,n)):n.fromAction==="unselect"&&(lu("map","unselected",e,a,n),lu("pie","unselected",e,a,n))})}function As(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var YZ=Math.round(Math.random()*9),ZZ=typeof Object.defineProperty=="function",XZ=function(){function t(){this._id="__ec_inner_"+YZ++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return ZZ?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),jZ=ze.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),KZ=ze.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),qZ=ze.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.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),h=Math.cos(u),d=o*.6,v=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-f*d,l+s+h*d,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-c+f*d,l+s+h*d,r-c,l+s),t.closePath()}}),JZ=ze.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),QZ={line:Xt,rect:We,roundRect:We,square:We,circle:Ma,diamond:KZ,pin:qZ,arrow:JZ,triangle:jZ},eX={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},Xp={};M(QZ,function(t,e){Xp[e]=new t});var tX=ze.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Zd(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=Xp[n];a||(n="rect",a=Xp[n]),eX[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function rX(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Rt(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=O0(t.slice(8),new Pe(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?l=of(t.slice(7),{},new Pe(e,r,n,a),o?"center":"cover"):l=new tX({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=rX,i&&l.setColor(i),l}function uu(t){return Z(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Is(t,e){if(t!=null)return Z(t)||(t=[t,t]),[ne(t[0],e[0])||0,ne(De(t[1],t[0]),e[1])||0]}function ks(t){return isFinite(t)}function nX(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.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=ks(n)?n:0,a=ks(a)?a:1,i=ks(i)?i:0,o=ks(o)?o:0;var s=t.createLinearGradient(n,i,a,o);return s}function aX(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=ks(o)?o:.5,s=ks(s)?s:.5,l=l>=0&&ks(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function M_(t,e,r){for(var n=e.type==="radial"?aX(t,e,r):nX(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function iX(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function jp(t){return parseInt(t,10)}function cu(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||jp(s[n])||jp(t.style[n]))-(jp(s[i])||0)-(jp(s[o])||0)|0}function oX(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ke(t)?[t]:Z(t)?t:null}function A_(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&oX(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=K(r,function(i){return i/a}),n/=a)}return[r,n]}var sX=new Ea(!0);function Kp(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function xA(t){return typeof t=="string"&&t!=="none"}function qp(t){var e=t.fill;return e!=null&&e!=="none"}function CA(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function TA(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function I_(t,e,r){var n=t0(e.image,e.__image,r);if(ep(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*_c),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function lX(t,e,r,n){var a,i=Kp(r),o=qp(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||sX,f=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,g=i&&!!d.colorStops,m=o&&!!h.image,y=i&&!!d.image,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0;(v||g)&&(x=e.getBoundingRect()),v&&(_=f?M_(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(b=f?M_(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(S=f||!e.__canvasFillPattern?I_(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=f||!e.__canvasStrokePattern?I_(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?t.fillStyle=_:m&&(S?t.fillStyle=S:o=!1),g?t.strokeStyle=b:y&&(w?t.strokeStyle=w:i=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var T,D;t.setLineDash&&r.lineDash&&(a=A_(e),T=a[0],D=a[1]);var E=!0;(u||f&Tl)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=D),n||(r.strokeFirst?(i&&TA(t,r),o&&CA(t,r)):(o&&CA(t,r),i&&TA(t,r))),T&&t.setLineDash([])}function uX(t,e,r){var n=e.__image=t0(r.image,e.__image,e,e.onload);if(!(!n||!ep(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.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,h=s-c;t.drawImage(n,u,c,f,h,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function cX(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||Fi,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=A_(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(Kp(r)&&t.strokeText(a,r.x,r.y),qp(r)&&t.fillText(a,r.x,r.y)):(qp(r)&&t.fillText(a,r.x,r.y),Kp(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var DA=["shadowBlur","shadowOffsetX","shadowOffsetY"],EA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function MA(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){qr(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?is.opacity:o}(n||e.blend!==r.blend)&&(i||(qr(t,a),i=!0),t.globalCompositeOperation=e.blend||is.blend);for(var s=0;s<DA.length;s++){var l=DA[s];(n||e[l]!==r[l])&&(i||(qr(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(qr(t,a),i=!0),t.shadowColor=e.shadowColor||is.shadowColor),i}function AA(t,e,r,n,a){var i=Cf(e,a.inHover),o=n?null:r&&Cf(r,a.inHover)||{};if(i===o)return!1;var s=MA(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(qr(t,a),s=!0),xA(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(qr(t,a),s=!0),xA(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(qr(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(qr(t,a),s=!0),t.lineWidth=u)}for(var c=0;c<EA.length;c++){var f=EA[c],h=f[0];(n||i[h]!==o[h])&&(s||(qr(t,a),s=!0),t[h]=i[h]||f[1])}return s}function fX(t,e,r,n,a){return MA(t,Cf(e,a.inHover),r&&Cf(r,a.inHover),n,a)}function IA(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function hX(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),IA(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function dX(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var kA=1,LA=2,NA=3,PA=4;function pX(t){var e=qp(t),r=Kp(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function qr(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Cf(t,e){return e&&t.__hoverStyle||t.style}function k_(t,e){Ls(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ls(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~an,e.__isRendered=!1;return}var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||iX(i,o))&&(o&&o.length&&(qr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(qr(t,r),t.save(),hX(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof ze&&e.autoBatch&&pX(e.style);s||dX(a,u.transform)?(qr(t,r),IA(t,e)):c||qr(t,r);var f=Cf(e,r.inHover);e instanceof ze?(r.lastDrawType!==kA&&(l=!0,r.lastDrawType=kA),AA(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),lX(t,e,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):e instanceof Rl?(r.lastDrawType!==NA&&(l=!0,r.lastDrawType=NA),AA(t,e,u,l,r),cX(t,e,f)):e instanceof Jt?(r.lastDrawType!==LA&&(l=!0,r.lastDrawType=LA),fX(t,e,u,l,r),uX(t,e,f)):e.getTemporalDisplayables&&(r.lastDrawType!==PA&&(l=!0,r.lastDrawType=PA),vX(t,e,r)),c&&n&&qr(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function vX(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ls(t,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(),Ls(t,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var L_=new XZ,OA=new kc(100),RA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fu(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&L_.delete(t);var i=L_.get(t);if(i)return i;var o=ye(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,L_.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],f=!0,h=0;h<RA.length;++h){var d=o[RA[h]];if(d!=null&&!Z(d)&&!ie(d)&&!Ke(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var v;if(f){v=c.join(",")+(a?"-svg":"");var g=OA.get(v);g&&(a?u.svgElement=g:u.image=g)}var m=BA(o.dashArrayX),y=gX(o.dashArrayY),_=VA(o.symbol),b=mX(m),S=FA(y),w=!a&&Zn.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),T;w&&(w.width=C.width*r,w.height=C.height*r,T=w.getContext("2d")),E(),f&&OA.put(v,w||x),u.image=w,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var A=1,I=0,k=b.length;I<k;++I)A=rE(A,b[I]);for(var L=1,I=0,k=_.length;I<k;++I)L=rE(L,_[I].length);A*=L;var N=S*b.length*_.length;if(process.env.NODE_ENV!=="production"){var P=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&P("maxTileWidth"),N>o.maxTileHeight&&P("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var A=0,I=0;I<y.length;++I)A+=y[I];if(A<=0)return;for(var k=-S,L=0,N=0,P=0;k<C.height;){if(L%2===0){for(var B=N/2%_.length,V=0,G=0,Y=0;V<C.width*2;){for(var z=0,I=0;I<m[P].length;++I)z+=m[P][I];if(z<=0)break;if(G%2===0){var $=(1-o.symbolSize)*.5,q=V+m[P][G]*$,J=k+y[L]*$,ae=m[P][G]*o.symbolSize,Oe=y[L]*o.symbolSize,Qe=Y/2%_[B].length;Me(q,J,ae,Oe,_[B][Qe])}V+=m[P][G],++Y,++G,G===m[P].length&&(G=0)}++P,P===m.length&&(P=0)}k+=y[L],++N,++L,L===y.length&&(L=0)}function Me(he,Ie,ue,me,nt){var Ye=a?1:r,pe=Rt(nt,he*Ye,Ie*Ye,ue*Ye,me*Ye,o.color,o.symbolKeepAspect);if(a){var He=n.painter.renderOneToVNode(pe);He&&x.children.push(He)}else k_(T,pe)}}}}function VA(t){if(!t||t.length===0)return[["rect"]];if(ie(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ie(t[r])){e=!1;break}if(e)return VA([t]);for(var n=[],r=0;r<t.length;++r)ie(t[r])?n.push([t[r]]):n.push(t[r]);return n}function BA(t){if(!t||t.length===0)return[[0,0]];if(Ke(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Ke(t[n])){r=!1;break}if(r)return BA([t]);for(var a=[],n=0;n<t.length;++n)if(Ke(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=K(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function gX(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Ke(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function mX(t){return K(t,function(e){return FA(e)})}function FA(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function yX(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=fu(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=fu(a,e)}}})}var na=new _n,Jp={};function _X(t,e){process.env.NODE_ENV!=="production"&&Jp[t]&&pr("Already has an implementation of "+t+"."),Jp[t]=e}function zA(t){return process.env.NODE_ENV!=="production"&&(Jp[t]||pr("Implementation of "+t+" doesn't exists.")),Jp[t]}var bX="5.6.0",SX={zrender:"5.6.1"},wX=1,xX=800,CX=900,TX=1e3,DX=2e3,EX=5e3,$A=1e3,MX=1100,N_=2e3,GA=3e3,AX=4e3,Qp=4500,IX=4600,kX=5e3,LX=6e3,HA=7e3,WA={PROCESSOR:{FILTER:TX,SERIES_FILTER:xX,STATISTIC:EX},VISUAL:{LAYOUT:$A,PROGRESSIVE_LAYOUT:MX,GLOBAL:N_,CHART:GA,POST_CHART_LAYOUT:IX,COMPONENT:AX,BRUSH:kX,CHART_ITEM:Qp,ARIA:LX,DECAL:HA}},Ir="__flagInMainProcess",Jr="__pendingUpdate",P_="__needsUpdateStatus",UA=/^[a-zA-Z0-9_]+$/,O_="__connectUpdateStatus",YA=0,NX=1,PX=2;function ZA(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){fn(this.id);return}return jA(this,t,e)}}function XA(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return jA(this,t,e)}}function jA(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),_n.prototype[e].apply(t,r)}var KA=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_n),qA=KA.prototype;qA.on=XA("on"),qA.off=XA("off");var hu,R_,ev,co,V_,B_,F_,Tf,Df,JA,QA,z_,eI,tv,tI,rI,Ln,nI,rv=function(t){F(e,t);function e(r,n,a){var i=t.call(this,new GZ)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},ie(n)&&(n=aI[n]),i._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Fe.hasGlobalWindow?window:global;u&&(o=De(u.__ECHARTS__DEFAULT__RENDERER__,o),s=De(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=De(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr&&jD(function(d){var v=Ee(d),g=v.dataIndex;if(g!=null){var m=fe();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=Hy(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:De(a.useDirtyRect,l),useCoarsePointer:De(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Wp(oe(c.flush,c),17),n=we(n),n&&bM(n,!0),i._theme=n,i._locale=j7(a.locale||B2),i._coordSysMgr=new Ts;var f=i._api=tI(i);function h(d,v){return d.__prio-v.__prio}return Ed(av,h),Ed(G_,h),i._scheduler=new hA(i,f,G_,av),i._messageCenter=new KA,i._initEvents(),i.resize=oe(i.resize,i),c.animation.on("frame",i._onframe,i),JA(c,i),QA(c,i),mc(i),i}return e.prototype._onframe=function(){if(!this._disposed){nI(this);var r=this._scheduler;if(this[Jr]){var n=this[Jr].silent;this[Ir]=!0;try{hu(this),co.update.call(this,null,this[Jr].updateParams)}catch(l){throw this[Ir]=!1,this[Jr]=null,l}this._zr.flush(),this[Ir]=!1,this[Jr]=null,Tf.call(this,n),Df.call(this,n)}else if(r.unfinished){var a=wX,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),B_(this,i),r.performVisualTasks(i),tv(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(this[Ir]){process.env.NODE_ENV!=="production"&&pr("`setOption` should not be called during main process.");return}if(this._disposed){fn(this.id);return}var i,o,s;if(ve(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ir]=!0,!this._model||n){var l=new CY(this._api),u=this._theme,c=this._model=new c_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},H_);var f={seriesTransition:s,optionChanged:!0};if(a)this[Jr]={silent:i,updateParams:f},this[Ir]=!1,this.getZr().wakeUp();else{try{hu(this),co.update.call(this,null,f)}catch(h){throw this[Jr]=null,this[Ir]=!1,h}this._ssr||this._zr.flush(),this[Jr]=null,this[Ir]=!1,Tf.call(this,i),Df.call(this,i)}},e.prototype.setTheme=function(){xn("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&Ot("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(Fe.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){fn(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},e.prototype.getConnectedDataURL=function(r){if(this._disposed){fn(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(iv[a]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();M(Ns,function(b,S){if(b.group===a){var w=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(we(r)),x=b.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:w,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,g=f-u,m=Zn.createCanvas(),y=Hy(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:g}),n){var _="";return M(h,function(b){var S=b.left-l,w=b.top-u;_+='<g transform="translate('+S+","+w+')">'+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 We({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),M(h,function(b){var S=new Jt({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return V_(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return V_(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){fn(this.id);return}var a=this._model,i,o=Uc(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"&&Ct(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Ct(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=Uc(a,r,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||Ct("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?E_(s,l,n):xf(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;M(OX,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&As(s,function(v){var g=Ee(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=W({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(h&&d)&&Ct("model or view can not be found by params"),l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),M(Ef,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)}),UZ(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){fn(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){fn(this.id);return}this._disposed=!0;var r=this.getDom();r&&hE(this.getDom(),U_,"");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 Ns[n.id]},e.prototype.resize=function(r){if(this[Ir]){process.env.NODE_ENV!=="production"&&pr("`resize` should not be called during main process.");return}if(this._disposed){fn(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[Jr]&&(i==null&&(i=this[Jr].silent),a=!0,this[Jr]=null),this[Ir]=!0;try{a&&hu(this),co.update.call(this,{type:"resize",animation:W({duration:0},r&&r.animation)})}catch(o){throw this[Ir]=!1,o}this[Ir]=!1,Tf.call(this,i),Df.call(this,i)}},e.prototype.showLoading=function(r,n){if(this._disposed){fn(this.id);return}if(ve(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!W_[r]){process.env.NODE_ENV!=="production"&&Ct("Loading effects "+r+" not exists.");return}var a=W_[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){fn(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=W({},r);return n.type=Ef[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){fn(this.id);return}if(ve(n)||(n={silent:!!n}),!!nv[r.type]&&this._model){if(this[Ir]){this._pendingActions.push(r);return}var a=n.silent;F_.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Fe.browser.weChat&&this._throttledZrFlush(),Tf.call(this,a),Df.call(this,a)}},e.prototype.updateLabelLayout=function(){na.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){fn(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&_e(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){hu=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),R_(f,!0),R_(f,!1),h.plan()},R_=function(f,h){for(var d=f._model,v=f._scheduler,g=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,_=f._api,b=0;b<g.length;b++)g[b].__alive=!1;h?d.eachComponent(function(x,C){x!=="series"&&S(C)}):d.eachSeries(S);function S(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,D=!C&&m[T];if(!D){var E=xa(x.type),A=h?_t.getClass(E.main,E.sub):st.getClass(E.sub);process.env.NODE_ENV!=="production"&&_e(A,E.sub+" does not exist."),D=new A,D.init(d,_),m[T]=D,g.push(D),y.add(D.group)}x.__viewId=D.__id=T,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&v.prepareView(D,x,d,_)}for(var b=0;b<g.length;){var w=g[b];w.__alive?b++:(!h&&w.renderTask.dispose(),y.remove(w.group),w.dispose(d,_),g.splice(b,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ev=function(f,h,d,v,g){var m=f._model;if(m.setUpdatePayload(d),!v){M([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[v+"Id"]=d[v+"Id"],y[v+"Index"]=d[v+"Index"],y[v+"Name"]=d[v+"Name"];var _={mainType:v,query:y};g&&(_.subType=g);var b=d.excludeSeriesId,S;b!=null&&(S=fe(),M(ut(b),function(x){var C=Zt(x,null);C!=null&&S.set(C,!0)})),m&&m.eachComponent(_,function(x){var C=S&&S.get(x.id)!=null;if(!C)if(a2(d))if(x instanceof ct)d.type===ds&&!d.notBlur&&!x.get(["emphasis","disabled"])&&J9(x,d,f._api);else{var T=T0(x.mainType,x.componentIndex,d.name,f._api),D=T.focusSelf,E=T.dispatchers;d.type===ds&&D&&!d.notBlur&&C0(x.mainType,x.componentIndex,f._api),E&&M(E,function(A){d.type===ds?li(A):ui(A)})}else E0(d)&&x instanceof ct&&(t7(x,d,f._api),r2(x),Ln(f))},f),m&&m.eachComponent(_,function(x){var C=S&&S.get(x.id)!=null;C||w(f[v==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function w(x){x&&x.__alive&&x[h]&&x[h](x.__model,m,f._api,d)}},co={prepareAndUpdate:function(f){hu(this),co.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,v=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(f),y.restoreData(d,f),y.performSeriesTasks(d),m.create(d,v),y.performDataProcessorTasks(d,f),B_(this,d),m.update(d,v),r(d),y.performVisualTasks(d,f),z_(this,d,v,f,h);var _=d.get("backgroundColor")||"transparent",b=d.get("darkMode");g.setBackgroundColor(_),b!=null&&b!=="auto"&&g.setDarkMode(b),na.trigger("afterupdate",d,v)}},updateTransform:function(f){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(f);var g=[];d.eachComponent(function(y,_){if(y!=="series"){var b=h.getViewOfComponentModel(_);if(b&&b.__alive)if(b.updateTransform){var S=b.updateTransform(_,d,v,f);S&&S.update&&g.push(b)}else g.push(b)}});var m=fe();d.eachSeries(function(y){var _=h._chartsMap[y.__viewId];if(_.updateTransform){var b=_.updateTransform(y,d,v,f);b&&b.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:m}),tv(this,d,v,f,{},m),na.trigger("afterupdate",d,v)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),st.markUpdateMethod(f,"updateView"),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),z_(this,h,this._api,f,{}),na.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(v){v.getData().clearAllVisual()}),st.markUpdateMethod(f,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,g){if(v!=="series"){var m=h.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,d,h._api,f)}}),d.eachSeries(function(v){var g=h._chartsMap[v.__viewId];g.updateVisual(v,d,h._api,f)}),na.trigger("afterupdate",d,this._api))},updateLayout:function(f){co.update.call(this,f)}},V_=function(f,h,d,v){if(f._disposed){fn(f.id);return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=Uc(g,d),b=0;b<m.length;b++){var S=m[b];if(S[h]&&(y=S[h](g,_,v))!=null)return y}process.env.NODE_ENV!=="production"&&Ct("No coordinate system that supports "+h+" found by the given finder.")},B_=function(f,h){var d=f._chartsMap,v=f._scheduler;h.eachSeries(function(g){v.updateStreamModes(g,d[g.__viewId])})},F_=function(f,h){var d=this,v=this.getModel(),g=f.type,m=f.escapeConnect,y=nv[g],_=y.actionInfo,b=(_.update||"update").split(":"),S=b.pop(),w=b[0]!=null&&xa(b[0]);this[Ir]=!0;var x=[f],C=!1;f.batch&&(C=!0,x=K(f.batch,function(L){return L=ye(W({},L),f),L.batch=null,L}));var T=[],D,E=E0(f),A=a2(f);if(A&&t2(this._api),M(x,function(L){if(D=y.action(L,d._model,d._api),D=D||W({},L),D.type=_.event||D.type,T.push(D),A){var N=qy(f),P=N.queryOptionMap,B=N.mainTypeSpecified,V=B?P.keys()[0]:"series";ev(d,S,L,V),Ln(d)}else E?(ev(d,S,L,"series"),Ln(d)):w&&ev(d,S,L,w.main,w.sub)}),S!=="none"&&!A&&!E&&!w)try{this[Jr]?(hu(this),co.update.call(this,f),this[Jr]=null):co[S].call(this,f)}catch(L){throw this[Ir]=!1,L}if(C?D={type:_.event||g,escapeConnect:m,batch:T}:D=T[0],this[Ir]=!1,!h){var I=this._messageCenter;if(I.trigger(D.type,D),E){var k={type:"selectchanged",escapeConnect:m,selected:r7(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(k.type,k)}}},Tf=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();F_.call(this,d,f)}},Df=function(f){!f&&this.trigger("updated")},JA=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[Jr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},QA=function(f,h){f.on("mouseover",function(d){var v=d.target,g=As(v,ro);g&&(Q9(g,d,h._api),Ln(h))}).on("mouseout",function(d){var v=d.target,g=As(v,ro);g&&(e7(g,d,h._api),Ln(h))}).on("click",function(d){var v=d.target,g=As(v,function(_){return Ee(_).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=Ee(g);h._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function n(f){var h=[],d=[],v=!1;if(f.eachComponent(function(_,b){var S=b.get("zlevel")||0,w=b.get("z")||0,x=b.getZLevelKey();v=v||!!x,(_==="series"?d:h).push({zlevel:S,z:w,idx:b.componentIndex,type:_,key:x})}),v){var g=h.concat(d),m,y;Ed(g,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),M(g,function(_){var b=f.getComponent(_.type,_.idx),S=_.zlevel,w=_.key;m!=null&&(S=Math.max(m,S)),w?(S===m&&w!==y&&S++,y=w):y&&(S===m&&S++,y=""),m=S,b.setZLevel(S)})}}z_=function(f,h,d,v,g){n(h),eI(f,h,d,v,g),M(f._chartsViews,function(m){m.__alive=!1}),tv(f,h,d,v,g),M(f._chartsViews,function(m){m.__alive||m.remove(h,d)})},eI=function(f,h,d,v,g,m){M(m||f._componentsViews,function(y){var _=y.__model;u(_,y),y.render(_,h,d,v),s(_,y),c(_,y)})},tv=function(f,h,d,v,g,m){var y=f._scheduler;g=W(g||{},{updatedSeries:h.getSeries()}),na.trigger("series:beforeupdate",h,d,g);var _=!1;h.eachSeries(function(b){var S=f._chartsMap[b.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,v),u(b,S),m&&m.get(b.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(_=!0),S.group.silent=!!b.get("silent"),o(b,S),r2(b)}),y.unfinished=_||y.unfinished,na.trigger("series:layoutlabels",h,d,g),na.trigger("series:transition",h,d,g),h.eachSeries(function(b){var S=f._chartsMap[b.__viewId];s(b,S),c(b,S)}),i(f,h),na.trigger("series:afterupdate",h,d,g)},Ln=function(f){f[P_]=!0,f.getZr().wakeUp()},nI=function(f){f[P_]&&(f.getZr().storage.traverse(function(h){Yl(h)||a(h)}),f[P_]=!1)};function a(f){for(var h=[],d=f.currentStates,v=0;v<d.length;v++){var g=d[v];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}f.selected&&f.states.select&&h.push("select"),f.hoverState===sp&&f.states.emphasis?h.push("emphasis"):f.hoverState===jc&&f.states.blur&&h.push("blur"),f.useStates(h)}function i(f,h){var d=f._zr,v=d.storage,g=0;v.traverse(function(m){m.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!Fe.node&&!Fe.worker&&h.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,h){var d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,d,v,-1/0),!0})}}function l(f,h,d,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],h,d,v),v);else f.z=h,f.zlevel=d,v=Math.max(f.z2,v);if(g&&(g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+2)),m){var S=f.textGuideLineConfig;m.z=h,m.zlevel=d,isFinite(v)&&(m.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,h){h.eachRendered(function(d){if(!Yl(d)){var v=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=d.get("duration"),m=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Yl(y))return;if(y instanceof ze&&s7(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)}})}tI=function(f){return new(function(h){F(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},d.prototype.enterEmphasis=function(v,g){li(v,g),Ln(f)},d.prototype.leaveEmphasis=function(v,g){ui(v,g),Ln(f)},d.prototype.enterBlur=function(v){qE(v),Ln(f)},d.prototype.leaveBlur=function(v){w0(v),Ln(f)},d.prototype.enterSelect=function(v){JE(v),Ln(f)},d.prototype.leaveSelect=function(v){QE(v),Ln(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}(dM))(f)},rI=function(f){function h(d,v){for(var g=0;g<d.length;g++){var m=d[g];m[O_]=v}}M(Ef,function(d,v){f._messageCenter.on(v,function(g){if(iv[f.group]&&f[O_]!==YA){if(g&&g.escapeConnect)return;var m=f.makeActionFromEvent(g),y=[];M(Ns,function(_){_!==f&&_.group===f.group&&y.push(_)}),h(y,YA),M(y,function(_){_[O_]!==NX&&_.dispatchAction(m)}),h(y,PX)}})})}}(),e}(_n),$_=rv.prototype;$_.on=ZA("on"),$_.off=ZA("off"),$_.one=function(t,e,r){var n=this;xn("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var OX=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function fn(t){process.env.NODE_ENV!=="production"&&Ct("Instance "+t+" has been disposed")}var nv={},Ef={},G_=[],H_=[],av=[],aI={},W_={},Ns={},iv={},RX=+new Date-0,VX=+new Date-0,U_="_echarts_instance_";function Y_(t,e,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var a=Z_(t);if(a)return process.env.NODE_ENV!=="production"&&Ct("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&zi(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null))&&Ct("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 rv(t,e,r);return i.id="ec_"+RX++,Ns[i.id]=i,n&&hE(t,U_,i.id),rI(i),na.trigger("afterinit",i),i}function BX(t){if(Z(t)){var e=t;t=null,M(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+VX++,M(e,function(r){r.group=t})}return iv[t]=!0,t}function iI(t){iv[t]=!1}var FX=iI;function zX(t){ie(t)?t=Ns[t]:t instanceof rv||(t=Z_(t)),t instanceof rv&&!t.isDisposed()&&t.dispose()}function Z_(t){return Ns[jU(t,U_)]}function $X(t){return Ns[t]}function X_(t,e){aI[t]=e}function j_(t){Re(H_,t)<0&&H_.push(t)}function K_(t,e){q_(G_,t,e,DX)}function oI(t){ov("afterinit",t)}function sI(t){ov("afterupdate",t)}function ov(t,e){na.on(t,e)}function aa(t,e,r){de(e)&&(r=e,e="");var n=ve(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Ef[e]&&(_e(UA.test(n)&&UA.test(e)),nv[n]||(nv[n]={action:r,actionInfo:t}),Ef[e]=n)}function lI(t,e){Ts.register(t,e)}function GX(t){var e=Ts.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function uI(t,e){q_(av,t,e,$A,"layout")}function fo(t,e){q_(av,t,e,GA,"visual")}var cI=[];function q_(t,e,r,n,a){if((de(e)||ve(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");M(t,function(o){_e(o.__raw!==r)})}if(!(Re(cI,r)>=0)){cI.push(r);var i=hA.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function J_(t,e){W_[t]=e}function HX(t){process.env.NODE_ENV!=="production"&&xn("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),zT({createCanvas:t})}function fI(t,e,r){var n=zA("registerMap");n&&n(t,e,r)}function WX(t){var e=zA("getMap");return e&&e(t)}var hI=rZ;fo(N_,MZ),fo(Qp,AZ),fo(Qp,IZ),fo(N_,HZ),fo(Qp,WZ),fo(HA,yX),j_(bM),K_(CX,RY),J_("default",kZ),aa({type:ds,event:ds,update:ds},kt),aa({type:lp,event:lp,update:lp},kt),aa({type:qc,event:qc,update:qc},kt),aa({type:up,event:up,update:up},kt),aa({type:Jc,event:Jc,update:Jc},kt),X_("light",$Z),X_("dark",_A);var UX={},dI=[],YX={registerPreprocessor:j_,registerProcessor:K_,registerPostInit:oI,registerPostUpdate:sI,registerUpdateLifecycle:ov,registerAction:aa,registerCoordinateSystem:lI,registerLayout:uI,registerVisual:fo,registerTransform:hI,registerLoading:J_,registerMap:fI,registerImpl:_X,PRIORITY:WA,ComponentModel:Ve,ComponentView:_t,SeriesModel:ct,ChartView:st,registerComponentModel:function(t){Ve.registerClass(t)},registerComponentView:function(t){_t.registerClass(t)},registerSeriesModel:function(t){ct.registerClass(t)},registerChartView:function(t){st.registerClass(t)},registerSubTypeDefaulter:function(t,e){Ve.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ZD(t,e)}};function Be(t){if(Z(t)){M(t,function(e){Be(e)});return}Re(dI,t)>=0||(dI.push(t),de(t)&&(t={install:t}),t.install(YX))}function Mf(t){return t==null?0:t.length||1}function pI(t){return t}var hi=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||pI,this._newKeyGetter=a||pI,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Mf(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)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,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=Mf(u),h=Mf(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=Mf(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}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Mf(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),ZX=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function XX(t,e){var r={},n=r.encode={},a=fe(),i=[],o=[],s={};M(t.dimensions,function(h){var d=t.getDimensionInfo(h),v=d.coordDim;if(v){process.env.NODE_ENV!=="production"&&_e(n_.get(v)==null);var g=d.coordDimIndex;Q_(n,v)[g]=h,d.isExtraCoord||(a.set(v,1),jX(d.type)&&(i[0]=h),Q_(s,v)[g]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}n_.each(function(m,y){var _=Q_(n,y),b=d.otherDims[y];b!=null&&b!==!1&&(_[b]=d.name)})});var l=[],u={};a.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=K(l,function(h){return t.getDimensionInfo(h).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 ZX(s,e),r}function Q_(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function sv(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function jX(t){return!(t==="ordinal"||t==="time")}var lv=function(){function t(e){this.otherDims={},e!=null&&W(this,e)}return t}(),KX=je(),qX={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vI=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=yI(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return De(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=CM(this.source),n=!_I(e),a="",i=[],o=0,s=0;o<e;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 h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.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+=qX[u]||"f",c&&(a+=c.uid),a+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,a].join("$$");return{dimensions:i,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],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)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gI(t){return t instanceof vI}function mI(t){for(var e=fe(),r=0;r<(t||[]).length;r++){var n=t[r],a=ve(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function yI(t){var e=KX(t);return e.dimNameMap||(e.dimNameMap=mI(t.dimensionsDefine))}function _I(t){return t>30}var Af=ve,ho=K,JX=typeof Int32Array>"u"?Array:Int32Array,QX="e\0\0",bI=-1,ej=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],tj=["_approximateExtent"],SI,uv,If,du,e1,kf,t1,kr=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;gI(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],h=ie(f)?new lv({name:f}):f instanceof lv?f:new lv(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&_e(a||h.storeDimIndex>=0),a&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=fe();M(o,function(m){g.set(i[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Ke(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a=this,i;if(e instanceof S_&&(i=e),!i){var o=this.dimensions,s=p_(e)||dr(e)?new EM(e,o.length):e;i=new S_;var l=ho(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=XX(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),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&&t1(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ci&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Mn;if(l&&!a.pure)for(var u=[],c=e;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&RU(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=Zt(h,null));var d=f.id;o[c]==null&&d!=null&&(o[c]=Zt(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)t1(this,c);SI(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Af(e)?W(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=If(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return uv(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return Z(e)?a.getValues(ho(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n&&n[r];return a==null||isNaN(a)?bI:a},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){de(e)&&(n=r,r=e,e=[]);var a=n||this,i=ho(du(e),this._getStoreDimIndex,this);this._store.each(i,a?oe(r,a):r)},t.prototype.filterSelf=function(e,r,n){de(e)&&(n=r,r=e,e=[]);var a=n||this,i=ho(du(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?oe(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=$e(e);return M(a,function(i){var o=r._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){de(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=ho(du(e),this._getStoreDimIndex,this),s=kf(this);return s._store=this._store.map(o,i?oe(r,i):r),s},t.prototype.modify=function(e,r,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&M(du(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=ho(du(e),this._getStoreDimIndex,this);this._store.modify(s,o?oe(r,o):r)},t.prototype.downSample=function(e,r,n,a){var i=kf(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=kf(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=kf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new rt(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new hi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return uv(e,n)},function(n){return uv(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Af(e)?W(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),Z(i)?i=i.slice():Af(i)&&(i=W({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Af(r)?W(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Af(e)?W(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?W(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;m0(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){M(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ho(this.dimensions,this._getDimInfo,this),this.hostModel)),e1(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];de(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(_d(arguments)))})},t.internalField=function(){SI=function(e){var r=e._invertedIndicesMap;M(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new JX(o.categories.length);for(var l=0;l<n.length;l++)n[l]=bI;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},If=function(e,r,n){return Zt(e._getCategory(r,n),null)},uv=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=If(e,e._idDimIdx,r)),n==null&&(n=QX+r),n},du=function(e){return Z(e)||(e=e!=null?[e]:[]),e},kf=function(e){var r=new t(e._schema?e._schema:ho(e.dimensions,e._getDimInfo,e),e.hostModel);return e1(r,e),r},e1=function(e,r){M(ej.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,M(tj,function(n){e[n]=we(r[n])}),e._calculationInfo=W({},r._calculationInfo)},t1=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=If(e,i,r)),l==null&&o!=null&&(a[r]=l=If(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),t}();function rj(t,e){return pu(t,e).dimensions}function pu(t,e){p_(t)||(t=g_(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=fe(),i=[],o=aj(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&_I(o),l=n===t.dimensionsDefine,u=l?yI(t):mI(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=fe(c),h=new FM(o),d=0;d<h.length;d++)h[d]=-1;function v(D){var E=h[D];if(E<0){var A=n[D],I=ve(A)?A:{name:A},k=new lv,L=I.name;L!=null&&u.get(L)!=null&&(k.name=k.displayName=L),I.type!=null&&(k.type=I.type),I.displayName!=null&&(k.displayName=I.displayName);var N=i.length;return h[D]=N,k.storeDimIndex=D,i.push(k),k}return i[E]}if(!s)for(var d=0;d<o;d++)v(d);f.each(function(D,E){var A=ut(D).slice();if(A.length===1&&!ie(A[0])&&A[0]<0){f.set(E,!1);return}var I=f.set(E,[]);M(A,function(k,L){var N=ie(k)?u.get(k):k;N!=null&&N<o&&(I[L]=N,m(v(N),E,L))})});var g=0;M(r,function(D){var E,A,I,k;if(ie(D))E=D,k={};else{k=D,E=k.name;var L=k.ordinalMeta;k.ordinalMeta=null,k=W({},k),k.ordinalMeta=L,A=k.dimsDef,I=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var N=f.get(E);if(N!==!1){if(N=ut(N),!N.length)for(var P=0;P<(A&&A.length||1);P++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&N.push(g++)}M(N,function(B,V){var G=v(B);if(l&&k.type!=null&&(G.type=k.type),m(ye(G,k),E,V),G.name==null&&A){var Y=A[V];!ve(Y)&&(Y={name:Y}),G.name=G.displayName=Y.name,G.defaultTooltip=Y.defaultTooltip}I&&ye(G.otherDims,I)})}});function m(D,E,A){n_.get(E)!=null?D.otherDims[E]=A:(D.coordDim=E,D.coordDimIndex=A,a.set(E,!0))}var y=e.generateCoord,_=e.generateCoordCount,b=_!=null;_=y?_||1:0;var S=y||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)M(i,function(D){w(D)}),i.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var x=0;x<o;x++){var C=v(x),T=C.coordDim;T==null&&(C.coordDim=ij(S,a,b),C.coordDimIndex=0,(!y||_<=0)&&(C.isExtraCoord=!0),_--),w(C),C.type==null&&(aM(t,x)===mr.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return nj(i),new vI({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function nj(t){for(var e=fe(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function aj(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return M(e,function(i){var o;ve(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function ij(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var oj=function(){function t(e){this.coordSysDims=[],this.axisMap=fe(),this.categoryAxisMap=fe(),this.coordSysName=e}return t}();function sj(t){var e=t.get("coordinateSystem"),r=new oj(e),n=lj[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var lj={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",$t).models[0],i=t.getReferringComponents("yAxis",$t).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Pt(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+Pt(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),vu(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),vu(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",$t).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",a),vu(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",$t).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")}e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),vu(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),vu(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),vu(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function vu(t){return t.get("type")==="category"}function wI(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;uj(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,h;if(M(i,function(_,b){ie(_)&&(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_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,v=c.type,g=0;M(i,function(_){_.coordDim===d&&g++});var m={name:f,coordDim:d,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,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:h,stackResultDimension:f}}function uj(t){return!gI(t.schema)}function di(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function r1(t,e){return di(t,e)?t.getCalculationInfo("stackResultDimension"):e}function cj(t,e){var r=t.get("coordinateSystem"),n=Ts.get(r),a;return e&&e.coordSysDims&&(a=K(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=sv(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function fj(t,e,r){var n,a;return r&&M(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function La(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;t?(i=!0,a=g_(t)):(a=n.getSource(),i=a.sourceFormat===Mn);var o=sj(e),s=cj(e,o),l=r.useEncodeDefaulter,u=de(l)?l:l?Ae(nM,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=pu(a,c),h=fj(f.dimensions,r.createInvertedIndices,o),d=i?null:n.getSharedDataStore(f),v=wI(e,{schema:f,store:d}),g=new kr(f,e);g.setCalculationInfo(v);var m=h!=null&&hj(a)?function(y,_,b,S){return S===h?b:this.defaultDimValueGetter(y,_,b,S)}:null;return g.hasItemOption=!1,g.initData(i?a:d,null,m),g}function hj(t){if(t.sourceFormat===Mn){var e=dj(t.data||[]);return!Z(Pl(e))}}function dj(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Na=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Qd(Na);var pj=0,n1=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++pj}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&K(n,vj);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!ie(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=fe(this.categories))},t}();function vj(t){return ve(t)&&t.value!=null?t.value:t+""}function gj(t){var e=Math.pow(10,Hc(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function a1(t){return t.type==="interval"||t.type==="log"}function mj(t,e,r,n){var a={},i=t[1]-t[0],o=a.interval=Xy(i/e,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=xI(o),l=a.niceTickExtent=[Mt(Math.ceil(t[0]/o)*o,s),Mt(Math.floor(t[1]/o)*o,s)];return yj(l,t),a}function i1(t){var e=Math.pow(10,Hc(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Mt(r*e)}function xI(t){return Qn(t)+2}function CI(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function yj(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),CI(t,0,e),CI(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function cv(t,e){return t>=e[0]&&t<=e[1]}function fv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function hv(t,e){return t*(e[1]-e[0])+e[0]}var dv=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new n1({})),Z(a)&&(a=new n1({categories:K(a,function(i){return ve(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:ie(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),cv(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),fv(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(hv(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,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}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Na);Na.registerClass(dv);var Ps=Mt,pi=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return cv(r,this._extent)},e.prototype.normalize=function(r){return fv(r,this._extent)},e.prototype.scale=function(r){return hv(r,this._extent)},e.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},e.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])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=xI(r)},e.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:Ps(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Ps(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:Ps(c+n,o)}):s.push({value:a[1]})),s},e.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,h=f/r;u<r-1;){var d=Ps(l.value+(u+1)*h);d>i[0]&&d<i[1]&&c.push(d),u++}a.push(c)}return a},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Qn(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Ps(r.value,a,!0);return q0(i)},e.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=mj(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.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]=Ps(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ps(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(Na);Na.registerClass(pi);var TI=typeof Float32Array<"u",_j=TI?Float32Array:Array;function Pa(t){return Z(t)?TI?new Float32Array(t):t:new _j(t)}var o1="__ec_stack_";function DI(t){return t.get("stack")||o1+t.seriesIndex}function s1(t){return t.dim+t.index}function bj(t){var e=[],r=t.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<t.count;i++)e.push(ye({bandWidth:a,axisKey:n,stackId:o1+i},t));for(var o=AI(e),s=[],i=0;i<t.count;i++){var l=o[n][o1+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function EI(t,e){var r=[];return e.eachSeriesByType(t,function(n){LI(n)&&r.push(n)}),r}function Sj(t){var e={};M(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,m=v.count();g<m;++g){var y=v.get(d,g);e[h]?e[h].push(y):e[h]=[y]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[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 MI(t){var e=Sj(t),r=[];return M(t,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=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=ne(n.get("barWidth"),s),g=ne(n.get("barMaxWidth"),s),m=ne(n.get("barMinWidth")||(NI(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:s1(i),stackId:DI(n)})}),AI(r)}function AI(t){var e={};M(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[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 h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return M(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=$e(i).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,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,h--}else{var S=d;_&&_<S&&(S=Math.min(_,f)),b&&b>S&&(S=b),S!==d&&(y.width=S,f-=S+c*S,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,g;M(i,function(y,_){y.width||(y.width=d),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 wj(t,e,r){if(t&&e){var n=t[s1(e)];return n}}function II(t,e){var r=EI(t,e),n=MI(r);M(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=DI(a),u=n[s1(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function kI(t){return{seriesType:t,plan:ou(),reset:function(e){if(LI(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=di(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=xj(a,i),v=NI(e),g=e.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(b,S){for(var w=b.count,x=v&&Pa(w*3),C=v&&l&&Pa(w*3),T=v&&Pa(w),D=n.master.getRect(),E=h?D.width:D.height,A,I=S.getStore(),k=0;(A=b.next())!=null;){var L=I.get(f?m:o,A),N=I.get(s,A),P=d,B=void 0;f&&(B=+L-I.get(o,A));var V=void 0,G=void 0,Y=void 0,z=void 0;if(h){var $=n.dataToPoint([L,N]);if(f){var q=n.dataToPoint([B,N]);P=q[0]}V=P,G=$[1]+_,Y=$[0]-P,z=y,Math.abs(Y)<g&&(Y=(Y<0?-1:1)*g)}else{var $=n.dataToPoint([N,L]);if(f){var q=n.dataToPoint([N,B]);P=q[1]}V=$[0]+_,G=P,Y=y,z=$[1]-P,Math.abs(z)<g&&(z=(z<=0?-1:1)*g)}v?(x[k]=V,x[k+1]=G,x[k+2]=h?Y:z,C&&(C[k]=h?D.x:V,C[k+1]=h?G:D.y,C[k+2]=E),T[A]=A):S.setItemLayout(A,{x:V,y:G,width:Y,height:z}),k+=3}v&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function LI(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function NI(t){return t.pipelineContext&&t.pipelineContext.large}function xj(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var Cj=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},l1=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return ff(r.value,z2[J7(Jl(this._minLevelUnit))]||z2.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Q7(r,n,a,o,i)},e.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=kj(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=En,n[1]+=En),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]-En}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.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=pv.length,l=Math.min(Cj(pv,this._approxInterval,0,s),s-1);this._interval=pv[l][1],this._minLevelUnit=pv[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Ke(r)?r:+ln(r)},e.prototype.contain=function(r){return cv(this.parse(r),this._extent)},e.prototype.normalize=function(r){return fv(this.parse(r),this._extent)},e.prototype.scale=function(r){return hv(r,this._extent)},e.type="time",e}(pi),pv=[["second",Z0],["minute",X0],["hour",uf],["quarter-day",uf*6],["half-day",uf*12],["day",En*1.2],["half-week",En*3.5],["week",En*7],["month",En*31],["quarter",En*95],["half-year",F2/2],["year",F2]];function Tj(t,e,r,n){var a=ln(e),i=ln(r),o=function(v){return H2(a,v,n)===H2(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")},h=function(){return f()&&o("second")},d=function(){return h()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return d()}}function Dj(t,e){return t/=En,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Ej(t){var e=30*En;return t/=e,t>6?6:t>3?3:t>2?2:1}function Mj(t){return t/=uf,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function PI(t,e){return t/=e?X0:Z0,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Aj(t){return Xy(t,!0)}function Ij(t,e,r){var n=new Date(t);switch(Jl(e)){case"year":case"month":n[W2(r)](0);case"day":n[U2(r)](1);case"hour":n[Y2(r)](0);case"minute":n[Z2(r)](0);case"second":n[X2(r)](0),n[j2(r)](0)}return n.getTime()}function kj(t,e,r,n){var a=1e4,i=$2,o=0;function s(E,A,I,k,L,N,P){for(var B=new Date(A),V=A,G=B[k]();V<I&&V<=n[1];)P.push({value:V}),G+=E,B[L](G),V=B.getTime();P.push({value:V,notAdd:!0})}function l(E,A,I){var k=[],L=!A.length;if(!Tj(Jl(E),n[0],n[1],r)){L&&(A=[{value:Ij(new Date(n[0]),E,r)},{value:n[1]}]);for(var N=0;N<A.length-1;N++){var P=A[N].value,B=A[N+1].value;if(P!==B){var V=void 0,G=void 0,Y=void 0,z=!1;switch(E){case"year":V=Math.max(1,Math.round(e/En/365)),G=K0(r),Y=eY(r);break;case"half-year":case"quarter":case"month":V=Ej(e),G=Ql(r),Y=W2(r);break;case"week":case"half-week":case"day":V=Dj(e),G=Ap(r),Y=U2(r),z=!0;break;case"half-day":case"quarter-day":case"hour":V=Mj(e),G=hf(r),Y=Y2(r);break;case"minute":V=PI(e,!0),G=Ip(r),Y=Z2(r);break;case"second":V=PI(e,!1),G=kp(r),Y=X2(r);break;case"millisecond":V=Aj(e),G=Lp(r),Y=j2(r);break}s(V,P,B,G,Y,z,k),E==="year"&&I.length>1&&N===0&&I.unshift({value:I[0].value-V})}}for(var N=0;N<k.length;N++)I.push(k[N]);return k}}for(var u=[],c=[],f=0,h=0,d=0;d<i.length&&o++<a;++d){var v=Jl(i[d]);if(q7(i[d])){l(i[d],u[u.length-1]||[],c);var g=i[d+1]?Jl(i[d+1]):null;if(v!==g){if(c.length){h=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])/e;if(f>b*1.5&&h>b/1.5||(u.push(m),f>b||t===i[d]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Ct("Exceed safe limit.");for(var S=tt(K(u,function(E){return tt(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),w=[],x=S.length-1,d=0;d<S.length;++d)for(var C=S[d],T=0;T<C.length;++T)w.push({value:C[T].value,level:x-d});w.sort(function(E,A){return E.value-A.value});for(var D=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&D.push(w[d]);return D}Na.registerClass(l1);var OI=Na.prototype,Lf=pi.prototype,Lj=Mt,Nj=Math.floor,Pj=Math.ceil,vv=Math.pow,ia=Math.log,u1=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new pi,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Lf.getTicks.call(this,r);return K(o,function(s){var l=s.value,u=Mt(vv(this.base,l));return u=l===a[0]&&this._fixMin?gv(u,i[0]):u,u=l===a[1]&&this._fixMax?gv(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var a=ia(this.base);r=ia(Math.max(0,r))/a,n=ia(Math.max(0,n))/a,Lf.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=OI.getExtent.call(this);n[0]=vv(r,n[0]),n[1]=vv(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=gv(n[0],i[0])),this._fixMax&&(n[1]=gv(n[1],i[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=ia(r[0])/ia(n),r[1]=ia(r[1])/ia(n),OI.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=QD(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Mt(Pj(n[0]/i)*i),Mt(Nj(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Lf.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=ia(r)/ia(this.base),cv(r,this._extent)},e.prototype.normalize=function(r){return r=ia(r)/ia(this.base),fv(r,this._extent)},e.prototype.scale=function(r){return r=hv(r,this._extent),vv(this.base,r)},e.type="log",e}(Na),RI=u1.prototype;RI.getMinorTicks=Lf.getMinorTicks,RI.getLabel=Lf.getLabel;function gv(t,e){return Lj(t,Qn(e))}Na.registerClass(u1);var Oj=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;de(o)?this._modelMinNum=mv(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=mv(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(de(s)?this._modelMaxNum=mv(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=mv(e,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Z(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=[Jn(u[0],1),Jn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:r-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=$i(s)||$i(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,r){process.env.NODE_ENV!=="production"&&_e(!this.frozen),this[Vj[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=Rj[e];process.env.NODE_ENV!=="production"&&_e(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),Rj={min:"_determinedMin",max:"_determinedMax"},Vj={min:"_dataMin",max:"_dataMax"};function VI(t,e,r){var n=t.rawExtentInfo;return n||(n=new Oj(t,e,r),t.rawExtentInfo=n,n)}function mv(t,e){return e==null?null:$i(e)?NaN:t.parse(e)}function BI(t,e){var r=t.type,n=VI(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=EI("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=MI(s),c=Bj(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function Bj(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=wj(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;M(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;M(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/i,h=c/f-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function Os(t,e){var r=e,n=BI(t,r),a=n.extent,i=r.get("splitNumber");t instanceof u1&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Nf(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dv({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new l1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Na.getClass(e)||pi)}}function Fj(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function gu(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(a,i){return t.scale.getFormattedLabel(a,i,n)}}(e):ie(e)?function(n){return function(a){var i=t.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(e):de(e)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(c1(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function c1(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function zj(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof dv?a=r.count():(n=r.getTicks(),a=n.length);var o=t.getLabelModel(),s=gu(t),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},h=s(f,c),d=o.getTextRect(h),v=$j(d,o.get("rotate")||0);l?l.union(v):l=v}return l}}function $j(t,e){var r=e*Math.PI/180,n=t.width,a=t.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 Pe(t.x,t.y,i,o);return s}function f1(t){var e=t.get("interval");return e??"auto"}function FI(t){return t.type==="category"&&f1(t.getLabelModel())===0}function yv(t,e){var r={};return M(t.mapDimensionsAll(e),function(n){r[r1(t,n)]=!0}),$e(r)}function Gj(t,e,r){e&&M(yv(e,r),function(n){var a=e.getApproximateExtent(n);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var mu=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function Hj(t){return La(null,t)}var Wj={isDimensionStacked:di,enableDataStack:wI,getStackedDimension:r1};function Uj(t,e){var r=e;e instanceof rt||(r=new rt(e));var n=Nf(r);return n.setExtent(t[0],t[1]),Os(n,r),n}function Yj(t){It(t,mu)}function Zj(t,e){return e=e||{},gt(t,null,null,e.state!=="normal")}const Xj=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:rj,createList:Hj,createScale:Uj,createSymbol:Rt,createTextStyle:Zj,dataStack:Wj,enableHoverEmphasis:to,getECData:Ee,getLayoutRect:Gt,mixinAxisModelCommonMethods:Yj},Symbol.toStringTag,{value:"Module"}));var jj=1e-8;function zI(t,e){return Math.abs(t-e)<jj}function Rs(t,e,r){var n=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];n+=oi(a[0],a[1],o[0],o[1],e,r),a=o}var s=t[0];return(!zI(a[0],s[0])||!zI(a[1],s[1]))&&(n+=oi(a[0],a[1],s[0],s[1],e,r)),n!==0}var Kj=[];function h1(t,e){for(var r=0;r<t.length;r++)ir(t[r],t[r],e)}function $I(t,e,r,n){for(var a=0;a<t.length;a++){var i=t[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(ei(e,e,i),ti(r,r,i))}}function qj(t){for(var e=0,r=0,n=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var l=t[s][0],u=t[s][1],c=i*u-l*o;e+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var GI=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),HI=function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t}(),WI=function(){function t(e){this.type="linestring",this.points=e}return t}(),UI=function(t){F(e,t);function e(r,n,a){var i=t.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.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 qj(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.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"?$I(s.exterior,a,i,r):M(s.points,function(l){$I(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 Pe(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.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(Rs(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Rs(u[c],r[0],r[1]))continue e;return!0}}}return!1},e.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 Pe(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(h1(h.exterior,u),M(h.interiors,function(d){h1(d,u)})):M(h.points,function(d){h1(d,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(GI),Jj=function(t){F(e,t);function e(r,n){var a=t.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=xc(Kj),o=r;o&&!o.isGeoSVGGraphicRoot;)_a(i,o.getLocalTransform(),i),o=o.parent;return Yo(i,i),ir(a,a,i),a},e}(GI);function Qj(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.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=YI(s,o,r);break;case"Polygon":d1(s,o,r);break;case"MultiLineString":d1(s,o,r);break;case"MultiPolygon":M(s,function(l,u){return d1(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function d1(t,e,r){for(var n=0;n<t.length;n++)t[n]=YI(t[n],e[n],r)}function YI(t,e,r){for(var n=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.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 p1(t,e){return t=Qj(t),K(tt(t.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 HI(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new HI(l[0],l.slice(1)))});break;case"LineString":i.push(new WI([a.coordinates]));break;case"MultiLineString":i.push(new WI(a.coordinates))}var s=new UI(n[e||"name"],i,n.cp);return s.properties=n,s})}const eK=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Yy,asc:sn,getPercentWithPrecision:IU,getPixelPrecision:Uy,getPrecision:Qn,getPrecisionSafe:jd,isNumeric:qd,isRadianAroundZero:Nl,linearMap:at,nice:Xy,numericToNumber:wa,parseDate:ln,quantile:Kd,quantity:QD,quantityExponent:Hc,reformIntervals:jy,remRadian:Zy,round:Mt},Symbol.toStringTag,{value:"Module"})),tK=Object.freeze(Object.defineProperty({__proto__:null,format:ff,parse:ln},Symbol.toStringTag,{value:"Module"})),rK=Object.freeze(Object.defineProperty({__proto__:null,Arc:nf,BezierCurve:Hl,BoundingRect:Pe,Circle:Ma,CompoundPath:vp,Ellipse:ef,Group:Ce,Image:Jt,IncrementalDisplayable:_2,Line:Xt,LinearGradient:Wl,Polygon:Tr,Polyline:Dr,RadialGradient:L0,Rect:We,Ring:Gl,Sector:Cr,Text:Ue,clipPointsByRect:V0,clipRectByRect:D2,createIcon:Xl,extendPath:x2,extendShape:w2,getShapeClass:Sp,getTransform:ao,initProps:St,makeImage:O0,makePath:of,mergePath:cn,registerShape:Dn,resizePath:R0,updateProps:Je},Symbol.toStringTag,{value:"Module"})),nK=Object.freeze(Object.defineProperty({__proto__:null,addCommas:q0,capitalFirst:aY,encodeHTML:wr,formatTime:nY,formatTpl:t_,getTextRect:tY,getTooltipMarker:q2,normalizeCssArray:Ss,toCamelCase:J0,truncateText:u9},Symbol.toStringTag,{value:"Module"})),aK=Object.freeze(Object.defineProperty({__proto__:null,bind:oe,clone:we,curry:Ae,defaults:ye,each:M,extend:W,filter:tt,indexOf:Re,inherits:Km,isArray:Z,isFunction:de,isObject:ve,isString:ie,map:K,merge:ke,reduce:mn},Symbol.toStringTag,{value:"Module"}));var Pf=je();function ZI(t,e){var r=K(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function iK(t){var e=t.getLabelModel().get("customValues");if(e){var r=gu(t),n=t.scale.getExtent(),a=ZI(t,e),i=tt(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:K(i,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:t.scale.getLabel(s),tickValue:o}})}}return t.type==="category"?sK(t):uK(t)}function oK(t,e){var r=t.getTickModel().get("customValues");if(r){var n=t.scale.getExtent(),a=ZI(t,r);return{ticks:tt(a,function(i){return i>=n[0]&&i<=n[1]})}}return t.type==="category"?lK(t,e):{ticks:K(t.scale.getTicks(),function(i){return i.value})}}function sK(t){var e=t.getLabelModel(),r=XI(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function XI(t,e){var r=jI(t,"labels"),n=f1(e),a=KI(r,n);if(a)return a;var i,o;return de(n)?i=QI(t,n):(o=n==="auto"?cK(t):n,i=JI(t,o)),qI(r,n,{labels:i,labelCategoryInterval:o})}function lK(t,e){var r=jI(t,"ticks"),n=f1(e),a=KI(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),de(n))i=QI(t,n,!0);else if(n==="auto"){var s=XI(t,t.getLabelModel());o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tickValue})}else o=n,i=JI(t,o,!0);return qI(r,n,{ticks:i,tickCategoryInterval:o})}function uK(t){var e=t.scale.getTicks(),r=gu(t);return{labels:K(e,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function jI(t,e){return Pf(t)[e]||(Pf(t)[e]=[])}function KI(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function qI(t,e,r){return t.push({key:e,value:r}),r}function cK(t){var e=Pf(t).autoInterval;return e??(Pf(t).autoInterval=t.calculateCategoryInterval())}function fK(t){var e=hK(t),r=gu(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.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=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,d=0;l<=i[1];l+=s){var v=0,g=0,m=zc(r({value:l}),e.font,"center","top");v=m.width*1.3,g=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,g,7)}var y=h/c,_=d/f;isNaN(y)&&(y=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(y,_))),S=Pf(t.model),w=t.getExtent(),x=S.lastAutoInterval,C=S.lastTickCount;return x!=null&&C!=null&&Math.abs(x-b)<=1&&Math.abs(C-o)<=1&&x>b&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?b=x:(S.lastTickCount=o,S.lastAutoInterval=b,S.axisExtent0=w[0],S.axisExtent1=w[1]),b}function hK(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function JI(t,e,r){var n=gu(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||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=FI(t),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==i[0]&&g(i[0]);for(var v=u;v<=i[1];v+=l)g(v);d&&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 QI(t,e,r){var n=t.scale,a=gu(t),i=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var ek=[0,1],Nn=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Uy(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),tk(n,a.count())),at(e,ek,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),tk(n,a.count()));var i=at(e,n,ek,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=oK(this,r),a=n.ticks,i=K(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return dK(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=K(n,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return iK(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(){return fK(this)},t}();function tk(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function dK(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(d){d.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var f=i[0]>i[1];h(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&h(o.coord,i[1])&&e.push({coord:i[1]});function h(d,v){return d=Mt(d),v=Mt(v),f?d>v:d<v}}function pK(t){var e=Ve.extend(t);return Ve.registerClass(e),e}function vK(t){var e=_t.extend(t);return _t.registerClass(e),e}function gK(t){var e=ct.extend(t);return ct.registerClass(e),e}function mK(t){var e=st.extend(t);return st.registerClass(e),e}var Of=Math.PI*2,Vs=Ea.CMD,yK=["top","right","bottom","left"];function _K(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0);break}}function bK(t,e,r,n,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+t,f=s*r+e;if(Math.abs(n-a)%Of<1e-4)return l[0]=c,l[1]=f,u-r;if(i){var h=n;n=un(a),a=un(h)}else n=un(n),a=un(a);n>a&&(a+=Of);var d=Math.atan2(s,o);if(d<0&&(d+=Of),d>=n&&d<=a||d+Of>=n&&d+Of<=a)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+t,g=r*Math.sin(n)+e,m=r*Math.cos(a)+t,y=r*Math.sin(a)+e,_=(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 _v(t,e,r,n,a,i,o,s){var l=a-t,u=i-e,c=r-t,f=n-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var d=l*c+u*f,v=d/h;s&&(v=Math.min(Math.max(v,0),1)),v*=h;var g=o[0]=t+v*c,m=o[1]=e+v*f;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function rk(t,e,r,n,a,i,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(a,t),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var oa=[];function SK(t,e,r){var n=rk(e.x,e.y,e.width,e.height,t.x,t.y,oa);return r.set(oa[0],oa[1]),n}function wK(t,e,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,f=t.x,h=t.y,d=0;d<c.length;){var v=c[d++];d===1&&(n=c[d],a=c[d+1],i=n,o=a);var g=u;switch(v){case Vs.M:i=c[d++],o=c[d++],n=i,a=o;break;case Vs.L:g=_v(n,a,c[d],c[d+1],f,h,oa,!0),n=c[d++],a=c[d++];break;case Vs.C:g=yD(n,a,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],f,h,oa),n=c[d++],a=c[d++];break;case Vs.Q:g=bD(n,a,c[d++],c[d++],c[d],c[d+1],f,h,oa),n=c[d++],a=c[d++];break;case Vs.A:var m=c[d++],y=c[d++],_=c[d++],b=c[d++],S=c[d++],w=c[d++];d+=1;var x=!!(1-c[d++]);s=Math.cos(S)*_+m,l=Math.sin(S)*b+y,d<=1&&(i=s,o=l);var C=(f-m)*b/_+m;g=bK(m,y,b,S,S+w,x,C,h,oa),n=Math.cos(S+w)*_+m,a=Math.sin(S+w)*b+y;break;case Vs.R:i=n=c[d++],o=a=c[d++];var T=c[d++],D=c[d++];g=rk(i,o,T,D,f,h,oa);break;case Vs.Z:g=_v(n,a,i,o,f,h,oa,!0),n=i,a=o;break}g<u&&(u=g,r.set(oa[0],oa[1]))}return u}var sa=new Ne,bt=new Ne,Vt=new Ne,Oa=new Ne,Ra=new Ne;function nk(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||yK,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=t.getComputedTransform(),f=c&&Yo([],c),h=e.get("length2")||0;u&&Vt.copy(u);for(var d=0;d<o.length;d++){var v=o[d];_K(v,0,s,sa,Oa),Ne.scaleAndAdd(bt,sa,Oa,h),bt.transform(f);var g=t.getBoundingRect(),m=u?u.distance(bt):t instanceof ze?wK(bt,t.path,Vt):SK(bt,g,Vt);m<l&&(l=m,bt.transform(c),Vt.transform(c),Vt.toArray(i[0]),bt.toArray(i[1]),sa.toArray(i[2]))}ak(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var bv=[],zr=new Ne;function ak(t,e){if(e<=180&&e>0){e=e/180*Math.PI,sa.fromArray(t[0]),bt.fromArray(t[1]),Vt.fromArray(t[2]),Ne.sub(Oa,sa,bt),Ne.sub(Ra,Vt,bt);var r=Oa.len(),n=Ra.len();if(!(r<.001||n<.001)){Oa.scale(1/r),Ra.scale(1/n);var a=Oa.dot(Ra),i=Math.cos(e);if(i<a){var o=_v(bt.x,bt.y,Vt.x,Vt.y,sa.x,sa.y,bv,!1);zr.fromArray(bv),zr.scaleAndAdd(Ra,o/Math.tan(Math.PI-e));var s=Vt.x!==bt.x?(zr.x-bt.x)/(Vt.x-bt.x):(zr.y-bt.y)/(Vt.y-bt.y);if(isNaN(s))return;s<0?Ne.copy(zr,bt):s>1&&Ne.copy(zr,Vt),zr.toArray(t[1])}}}}function xK(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,sa.fromArray(t[0]),bt.fromArray(t[1]),Vt.fromArray(t[2]),Ne.sub(Oa,bt,sa),Ne.sub(Ra,Vt,bt);var n=Oa.len(),a=Ra.len();if(!(n<.001||a<.001)){Oa.scale(1/n),Ra.scale(1/a);var i=Oa.dot(e),o=Math.cos(r);if(i<o){var s=_v(bt.x,bt.y,Vt.x,Vt.y,sa.x,sa.y,bv,!1);zr.fromArray(bv);var l=Math.PI/2,u=Math.acos(Ra.dot(e)),c=l+u-r;if(c>=l)Ne.copy(zr,Vt);else{zr.scaleAndAdd(Ra,s/Math.tan(Math.PI/2-c));var f=Vt.x!==bt.x?(zr.x-bt.x)/(Vt.x-bt.x):(zr.y-bt.y)/(Vt.y-bt.y);if(isNaN(f))return;f<0?Ne.copy(zr,bt):f>1&&Ne.copy(zr,Vt)}zr.toArray(t[1])}}}}function v1(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;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?t.useStyle(s):i.style=s}function CK(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Qa(n[0],n[1]),i=Qa(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=wc([],n[1],n[0],o/a),l=wc([],n[1],n[2],o/i),u=wc([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function g1(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Kc.length;l++){var u=Kc[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),d=f?s:De(a.states[u]&&a.states[u].ignore,s);if(d||!De(h,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&v1(n,!0,u,c);continue}n||(n=new Dr,t.setTextGuideLine(n),!f&&(s||!o)&&v1(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),v1(n,!1,u,c)}}if(n){ye(n.style,r),n.style.fill=null;var g=i.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=CK}}function m1(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Br.length;n++){var a=Br[n];r[a]=t.getModel([a,e])}return r}function ik(t){for(var e=[],r=0;r<t.length;r++){var n=t[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 yp(o,i):null;e.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 e}function ok(t,e,r,n,a,i){var o=t.length;if(o<2)return;t.sort(function(x,C){return x.rect[e]-C.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=t[c],h=f.rect;l=h[e]-s,l<0&&(h[e]-=l,f.label[e]-=l,u=!0),s=h[e]+h[r]}var d=t[0],v=t[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&&w(-g),m<0&&w(m);function y(){g=d.rect[e]-n,m=a-v.rect[e]-v.rect[r]}function _(x,C,T){if(x<0){var D=Math.min(C,-x);if(D>0){b(D*T,0,o);var E=D+x;E<0&&S(-E*T,1)}else S(-x*T,1)}}function b(x,C,T){x!==0&&(u=!0);for(var D=C;D<T;D++){var E=t[D],A=E.rect;A[e]+=x,E.label[e]+=x}}function S(x,C){for(var T=[],D=0,E=1;E<o;E++){var A=t[E-1].rect,I=Math.max(t[E].rect[e]-A[e]-A[r],0);T.push(I),D+=I}if(D){var k=Math.min(Math.abs(x)/D,C);if(x>0)for(var E=0;E<o-1;E++){var L=T[E]*k;b(L,0,E+1)}else for(var E=o-1;E>0;E--){var L=T[E-1]*k;b(-L,E,o)}}}function w(x){var C=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),D=0;D<o-1;D++)if(C>0?b(T,0,D+1):b(-T,o-D-1,o),x-=T,x<=0)return}return u}function TK(t,e,r,n){return ok(t,"x","width",e,r)}function sk(t,e,r,n){return ok(t,"y","height",e,r)}function lk(t){var e=[];t.sort(function(g,m){return m.priority-g.priority});var r=new Pe(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<t.length;a++){var i=t[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,h=!1,d=0;d<e.length;d++){var v=e[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new yp(v.localRect,v.transform)),f||(f=new yp(s,l)),f.intersect(v.obb)){h=!0;break}}}h?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function DK(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function EK(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:DK(n&&n.shape.points)}}var uk=["align","verticalAlign","width","height","fontSize"],$r=new ai,y1=je(),MK=je();function Sv(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];e[a]!=null&&(t[a]=e[a])}}var wv=["x","y","rotation"],AK=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Pe.applyTransform(c,c,u),u?$r.setLocalTransform(u):($r.x=$r.y=$r.rotation=$r.originX=$r.originY=0,$r.scaleX=$r.scaleY=1),$r.rotation=un($r.rotation);var f=a.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var d=f.getComputedTransform();Pe.applyTransform(h,h,d)}var v=h&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:n,dataIndex:e,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:$r.x,y:$r.y,scaleX:$r.scaleX,scaleY:$r.scaleY,rotation:$r.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}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(de(a)||$e(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ee(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(b,S){return function(){nk(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;de(o.layoutOption)?c=o.layoutOption(EK(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 h=!1;if(c.x!=null?(s.x=ne(c.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ne(c.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),h=!1)}var v=y1(s);v.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<uk.length;g++){var m=uk[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}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=ik(this._labelList),i=tt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=tt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});TK(i,0,r),sk(o,0,n);var s=tt(a,function(l){return l.layoutOption.hideOverlap});lk(s)},t.prototype.processLabelsOverall=function(){var e=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=y1(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=Ee(e),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");g1(e,m1(s),l),nk(e,f)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Yl(e))){var i=y1(n),o=i.oldLayout,s=Ee(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(Re(h,"select")>=0&&n.attr(i.oldLayoutSelect),Re(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Je(n,u,r,l)}else if(n.attr(u),!jl(n).valueAnimation){var f=De(n.style.opacity,1);n.style.opacity=0,St(n,{style:{opacity:f}},r,l)}if(i.oldLayout=u,n.states.select){var d=i.oldLayoutSelect={};Sv(d,u,wv),Sv(d,n.states.select,wv)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Sv(v,u,wv),Sv(v,n.states.emphasis,wv)}O2(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=MK(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),Je(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,St(a,{style:{strokePercent:1}},r)),i.oldLayout=g}},t}(),_1=je();function IK(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=_1(r).labelManager;a||(a=_1(r).labelManager=new AK),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=_1(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var b1=Math.sin,S1=Math.cos,ck=Math.PI,Bs=Math.PI*2,kK=180/ck,fk=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){this._add("C",e,r,n,a,i,o)},t.prototype.quadraticCurveTo=function(e,r,n,a){this._add("Q",e,r,n,a)},t.prototype.arc=function(e,r,n,a,i,o){this.ellipse(e,r,n,n,0,a,i,o)},t.prototype.ellipse=function(e,r,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ki(f-Bs)||(c?u>=Bs:-u>=Bs),d=u>0?u%Bs:u%Bs+Bs,v=!1;h?v=!0:Ki(f)?v=!1:v=d>=ck==!!c;var g=e+n*S1(o),m=r+a*b1(o);this._start&&this._add("M",g,m);var y=Math.round(i*kK);if(h){var _=1/this._p,b=(c?1:-1)*(Bs-_);this._add("A",n,a,y,1,+c,e+n*S1(o+b),r+a*b1(o+b)),_>.01&&this._add("A",n,a,y,0,+c,g,m)}else{var S=e+n*S1(s),w=r+a*b1(s);this._add("A",n,a,y,+v,+c,S,w)}},t.prototype.rect=function(e,r,n,a){this._add("M",e,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,a,i,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),w1="none",LK=Math.round;function NK(t){var e=t.fill;return e!=null&&e!==w1}function PK(t){var e=t.stroke;return e!=null&&e!==w1}var x1=["lineCap","miterLimit","lineJoin"],OK=K(x1,function(t){return"stroke-"+t.toLowerCase()});function RK(t,e,r,n){var a=e.opacity==null?1:e.opacity;if(r instanceof Jt){t("opacity",a);return}if(NK(e)){var i=Rc(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&t("fill-opacity",o)}else t("fill",w1);if(PK(e)){var s=Rc(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if(u!==1&&t("stroke-width",u),f&&t("paint-order",f?"stroke":"fill"),c<1&&t("stroke-opacity",c),e.lineDash){var h=A_(r),d=h[0],v=h[1];d&&(v=LK(v||0),t("stroke-dasharray",d.join(",")),(v||n)&&t("stroke-dashoffset",v))}for(var g=0;g<x1.length;g++){var m=x1[g];if(e[m]!==op[m]){var y=e[m]||op[m];y&&t(OK[g],y)}}}}var hk="http://www.w3.org/2000/svg",dk="http://www.w3.org/1999/xlink",VK="http://www.w3.org/2000/xmlns/",BK="http://www.w3.org/XML/1998/namespace",pk="ecmeta_";function vk(t){return document.createElementNS(hk,t)}function tr(t,e,r,n,a){return{tag:t,attrs:r||{},children:n,text:a,key:e}}function FK(t,e){var r=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function zK(t){return"</"+t+">"}function C1(t,e){e=e||{};var r=e.newline?`
62
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return FK(o,s)+(o!=="style"?wr(l):l||"")+(i?""+r+K(i,function(u){return n(u)}).join(r)+r:"")+zK(o)}return n(t)}function $K(t,e,r){r=r||{};var n=r.newline?`
63
+ `:"",a=" {"+n,i=n+"}",o=K($e(t),function(l){return l+a+K($e(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+i}).join(n),s=K($e(e),function(l){return"@keyframes "+l+a+K($e(e[l]),function(u){return u+a+K($e(e[l][u]),function(c){var f=e[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 T1(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gk(t,e,r,n){return tr("svg","root",{width:t,height:e,xmlns:hk,"xmlns:xlink":dk,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var GK=0;function mk(){return GK++}var yk={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"},Fs="transform-origin";function HK(t,e,r){var n=W({},t.shape);W(n,e),t.buildPath(r,n);var a=new fk;return a.reset(ID(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function WK(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Fs]=r+"px "+n+"px")}var UK={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function _k(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function YK(t,e,r){var n=t.shape.paths,a={},i,o;if(M(n,function(l){var u=T1(r.zrId);u.animation=!0,xv(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=$e(c),d=h.length;if(d){o=h[d-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){e.d=!1;var s=_k(a,r);return i.replace(o,s)}}function bk(t){return ie(t)?yk[t]?"cubic-bezier("+yk[t]+")":vy(t)?t:"":""}function xv(t,e,r,n){var a=t.animators,i=a.length,o=[];if(t instanceof vp){var s=YK(t,e,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"],h=bk(c.getClip().easing),d=c.getDelay();h?f.push(h):f.push("linear"),d&&f.push(d/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,w={},x={},C={},T="animation-timing-function";function D(Me,he,Ie){for(var ue=Me.getTracks(),me=Me.getMaxTime(),nt=0;nt<ue.length;nt++){var Ye=ue[nt];if(Ye.needsAnimate()){var pe=Ye.keyframes,He=Ye.propName;if(Ie&&(He=Ie(He)),He)for(var xt=0;xt<pe.length;xt++){var ar=pe[xt],Ut=Math.round(ar.time/me*100)+"%",en=bk(ar.easing),Hr=ar.rawValue;(ie(Hr)||Ke(Hr))&&(he[Ut]=he[Ut]||{},he[Ut][He]=ar.rawValue,en&&(he[Ut][T]=en))}}}}for(var E=0;E<S;E++){var A=b[E],I=A.targetName;I?I==="shape"&&D(A,x):!n&&D(A,w)}for(var k in w){var L={};HD(L,t),W(L,w[k]);var N=kD(L),P=w[k][T];C[k]=N?{transform:N}:{},WK(C[k],L),P&&(C[k][T]=P)}var B,V=!0;for(var k in x){C[k]=C[k]||{};var G=!B,P=x[k][T];G&&(B=new Ea);var Y=B.len();B.reset(),C[k].d=HK(t,x[k],B);var z=B.len();if(!G&&Y!==z){V=!1;break}P&&(C[k][T]=P)}if(!V)for(var k in C)delete C[k].d;if(!n)for(var E=0;E<S;E++){var A=b[E],I=A.targetName;I==="style"&&D(A,C,function(ue){return UK[ue]})}for(var $=$e(C),q=!0,J,E=1;E<$.length;E++){var ae=$[E-1],Oe=$[E];if(C[ae][Fs]!==C[Oe][Fs]){q=!1;break}J=C[ae][Fs]}if(q&&J){for(var k in C)C[k][Fs]&&delete C[k][Fs];e[Fs]=J}if(tt($,function(Me){return $e(C[Me]).length>0}).length){var Qe=_k(C,r);return Qe+" "+_[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+mk();r.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function ZK(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};Sk(n,e,r)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=a.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Od(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&t.transform?t.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),Sk(n,e,r)}}function Sk(t,e,r,n){var a=JSON.stringify(t),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+mk(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var Rf=Math.round;function wk(t){return t&&ie(t.src)}function xk(t){return t&&de(t.toDataURL)}function D1(t,e,r,n){RK(function(a,i){var o=a==="fill"||a==="stroke";o&&AD(i)?Ak(e,t,a,n):o&&wy(i)?Ik(r,t,a,n):t[a]=i,o&&n.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),eq(r,t,n)}function E1(t,e){var r=XD(e);r&&(r.each(function(n,a){n!=null&&(t[(pk+a).toLowerCase()]=n+"")}),e.isSilent()&&(t[pk+"silent"]="true"))}function Ck(t){return Ki(t[0]-1)&&Ki(t[1])&&Ki(t[2])&&Ki(t[3]-1)}function XK(t){return Ki(t[4])&&Ki(t[5])}function M1(t,e,r){if(e&&!(XK(e)&&Ck(e))){var n=1e4;t.transform=Ck(e)?"translate("+Rf(e[4]*n)/n+" "+Rf(e[5]*n)/n+")":XW(e)}}function Tk(t,e,r){for(var n=t.points,a=[],i=0;i<n.length;i++)a.push(Rf(n[i][0]*r)/r),a.push(Rf(n[i][1]*r)/r);e.points=a.join(" ")}function Dk(t){return!t.smooth}function jK(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(n[o[1]]=Rf(s*a)/a)}}}var KK={circle:[jK(["cx","cy","r"])],polyline:[Tk,Dk],polygon:[Tk,Dk]};function qK(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function Ek(t,e){var r=t.style,n=t.shape,a=KK[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&ID(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&qK(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;f&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),v=t,g=v.__svgPathBuilder;(v.__svgPathVersion!==d||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new fk),g.reset(u),h.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=d,v.__svgPathStrokePercent=l),i.d=g.getStr()}return M1(i,t.transform),D1(i,r,t,e),E1(i,t),e.animation&&xv(t,i,e),e.emphasis&&ZK(t,i,e),tr(s,t.id+"",i)}function JK(t,e){var r=t.style,n=r.image;if(n&&!ie(n)&&(wk(n)?n=n.src:xk(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),M1(l,t.transform),D1(l,r,t,e),E1(l,t),e.animation&&xv(t,l,e),tr("image",t.id+"",l)}}function QK(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Fi,i=r.x||0,o=KW(r.y||0,Yd(a),r.textBaseline),s=jW[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(RE(r)){var u="",c=r.fontStyle,f=PE(r.fontSize);if(!parseFloat(f))return;var h=r.fontFamily||FT,d=r.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),M1(l,t.transform),D1(l,r,t,e),E1(l,t),e.animation&&xv(t,l,e),tr("text",t.id+"",l,void 0,n)}}function Mk(t,e){if(t instanceof ze)return Ek(t,e);if(t instanceof Jt)return JK(t,e);if(t instanceof Rl)return QK(t,e)}function eq(t,e,r){var n=t.style;if(qW(n)){var a=JW(t),i=r.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,h=n.shadowBlur,d=Rc(n.shadowColor),v=d.opacity,g=d.color,m=h/2/l,y=h/2/u,_=m+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=tr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[tr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:_,"flood-color":g,"flood-opacity":v})]),i[a]=o}e.filter=Bd(o)}}function Ak(t,e,r,n){var a=t[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(ED(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(MD(a))i="radialGradient",o.cx=De(a.x,.5),o.cy=De(a.y,.5),o.r=De(a.r,.5);else{process.env.NODE_ENV!=="production"&&gn("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Sy(s[u].offset)*100+"%",h=s[u].color,d=Rc(h),v=d.color,g=d.opacity,m={offset:f};m["stop-color"]=v,g<1&&(m["stop-opacity"]=g),l.push(tr("stop",u+"",m))}var y=tr(i,"",o,l),_=C1(y),b=n.gradientCache,S=b[_];S||(S=n.zrId+"-g"+n.gradientIdx++,b[_]=S,o.id=S,n.defs[S]=tr(i,S,o,l)),e[r]=Bd(S)}function Ik(t,e,r,n){var a=t.style[r],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(DD(a)){var h=a.imageWidth,d=a.imageHeight,v=void 0,g=a.image;if(ie(g)?v=g:wk(g)?v=g.src:xk(g)&&(v=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";_e(h,m),_e(d,m)}else if(h==null||d==null){var y=function(E,A){if(E){var I=E.elm,k=h||A.width,L=d||A.height;E.tag==="pattern"&&(u?(L=1,k/=i.width):c&&(k=1,L/=i.height)),E.attrs.width=k,E.attrs.height=L,I&&(I.setAttribute("width",k),I.setAttribute("height",L))}},_=t0(v,null,t,function(E){l||y(x,E),y(f,E)});_&&_.width&&_.height&&(h=h||_.width,d=d||_.height)}f=tr("image","img",{href:v,width:h,height:d}),o.width=h,o.height=d}else a.svgElement&&(f=we(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 w=kD(a);w&&(o.patternTransform=w);var x=tr("pattern","",o,[f]),C=C1(x),T=n.patternCache,D=T[C];D||(D=n.zrId+"-p"+n.patternIdx++,T[C]=D,o.id=D,x=n.defs[D]=tr("pattern",D,o,[f])),e[r]=Bd(D)}}function tq(t,e,r){var n=r.clipPathCache,a=r.defs,i=n[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[t.id]=i,a[i]=tr("clipPath",i,o,[Ek(t,r)])}e["clip-path"]=Bd(i)}function kk(t){return document.createTextNode(t)}function zs(t,e,r){t.insertBefore(e,r)}function Lk(t,e){t.removeChild(e)}function Nk(t,e){t.appendChild(e)}function Pk(t){return t.parentNode}function Ok(t){return t.nextSibling}function A1(t,e){t.textContent=e}var Rk=58,rq=120,nq=tr("","");function I1(t){return t===void 0}function Va(t){return t!==void 0}function aq(t,e,r){for(var n={},a=e;a<=r;++a){var i=t[a].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Vf(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Bf(t){var e,r=t.children,n=t.tag;if(Va(n)){var a=t.elm=vk(n);if(k1(nq,t),Z(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&Nk(a,Bf(i))}else Va(t.text)&&!ve(t.text)&&Nk(a,kk(t.text))}else t.elm=kk(t.text);return t.elm}function Vk(t,e,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&zs(t,Bf(i),e)}}function Cv(t,e,r,n){for(;r<=n;++r){var a=e[r];if(a!=null)if(Va(a.tag)){var i=Pk(a.elm);Lk(i,a.elm)}else Lk(t,a.elm)}}function k1(t,e){var r,n=e.elm,a=t&&t.attrs||{},i=e.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)!==rq?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(VK,r,o):r.charCodeAt(3)===Rk?n.setAttributeNS(BK,r,o):r.charCodeAt(5)===Rk?n.setAttributeNS(dk,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function iq(t,e,r){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],c=r[l],f,h,d,v;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=r[++a]:c==null?c=r[--l]:Vf(o,u)?(yu(o,u),o=e[++n],u=r[++a]):Vf(s,c)?(yu(s,c),s=e[--i],c=r[--l]):Vf(o,c)?(yu(o,c),zs(t,o.elm,Ok(s.elm)),o=e[++n],c=r[--l]):Vf(s,u)?(yu(s,u),zs(t,s.elm,o.elm),s=e[--i],u=r[++a]):(I1(f)&&(f=aq(e,n,i)),h=f[u.key],I1(h)?zs(t,Bf(u),o.elm):(d=e[h],d.tag!==u.tag?zs(t,Bf(u),o.elm):(yu(d,u),e[h]=void 0,zs(t,d.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(v=r[l+1]==null?null:r[l+1].elm,Vk(t,v,r,a,l)):Cv(t,e,n,i))}function yu(t,e){var r=e.elm=t.elm,n=t.children,a=e.children;t!==e&&(k1(t,e),I1(e.text)?Va(n)&&Va(a)?n!==a&&iq(r,n,a):Va(a)?(Va(t.text)&&A1(r,""),Vk(r,null,a,0,a.length-1)):Va(n)?Cv(r,n,0,n.length-1):Va(t.text)&&A1(r,""):t.text!==e.text&&(Va(n)&&Cv(r,n,0,n.length-1),A1(r,e.text)))}function oq(t,e){if(Vf(t,e))yu(t,e);else{var r=t.elm,n=Pk(r);Bf(e),n!==null&&(zs(n,e.elm,Ok(r)),Cv(n,[t],0,0))}return e}var sq=0,lq=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=Bk("refreshHover"),this.configLayer=Bk("configLayer"),this.storage=r,this._opts=n=W({},n),this.root=e,this._id="zr"+sq++,this._oldVNode=gk(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=vk("svg");k1(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",oq(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Mk(e,T1(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=T1(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=uq(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=tr("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K($e(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(tr("defs","defs",{},u)),e.animation){var c=$K(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=tr("style","stl",{},[],c);o.push(f)}}return gk(n,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},C1(this.renderToVNode({animation:De(e.cssAnimation,!0),emphasis:De(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:De(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=e[c];if(!f.invisible){var h=f.__clipPaths,d=h&&h.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(d-1,v-1);g>=0&&!(h&&l&&h[g]===l[g]);g--);for(var m=v-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y<d;y++){var _={};tq(h[y],_,r);var b=tr("g","clip-g-"+u++,_,[]);(s?s.children:n).push(b),i[o++]=b,s=b}l=h;var S=Mk(f,r);S&&(s?s.children:n).push(S)}}},t.prototype.resize=function(e,r){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),a&&i&&(i.style.display="none",e=cu(a,0,n),r=cu(a,1,n),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(wy(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=eU(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function Bk(t){return function(){process.env.NODE_ENV!=="production"&&gn('In SVG mode painter not support method "'+t+'"')}}function uq(t,e,r,n){var a;if(r&&r!=="none")if(a=tr("rect","bg",{width:t,height:e,x:"0",y:"0"}),AD(r))Ak({fill:r},a.attrs,"fill",n);else if(wy(r))Ik({style:{fill:r},dirty:kt,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",n);else{var i=Rc(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function cq(t){t.registerPainter("svg",lq)}function Fk(t,e,r){var n=Zn.createCanvas(),a=e.getWidth(),i=e.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",t)),n.width=a*r,n.height=i*r,n}var L1=function(t){F(e,t);function e(r,n,a){var i=t.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||Ud,typeof r=="string"?o=Fk(r,n,a):ve(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(Qm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Fk("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Pe(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var b=new Pe(0,0,0,0);b.copy(_),o.push(b)}else{for(var S=!1,w=1/0,x=0,C=0;C<o.length;++C){var T=o[C];if(T.intersect(_)){var D=new Pe(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,I=u.width*u.height,k=I-E-A;k<w&&(w=k,x=C)}}if(l&&(o[x].union(_),S=!0),!S){var b=new Pe(0,0,0,0);b.copy(_),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=r[f];if(h){var d=h.shouldBePainted(a,i,!0,!0),v=h.__isRendered&&(h.__dirty&an||!d)?h.getPrevPaintRect():null;v&&c(v);var g=d&&(h.__dirty&an||!h.__isRendered)?h.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=n[f],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.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},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.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))},e.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,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var d=this.domBack;function v(g,m,y,_){if(o.clearRect(g,m,y,_),n&&n!=="transparent"){var b=void 0;if(gc(n)){var S=n.global||n.__width===y&&n.__height===_;b=S&&n.__canvasGradient||M_(o,n,{x:0,y:0,width:y,height:_}),n.__canvasGradient=b,n.__width=y,n.__height=_}else UT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,b=I_(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(g,m,y,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,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)})},e}(_n),zk=1e5,$s=314159,Tv=.01,fq=.001;function hq(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function dq(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var pq=function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||Ud,this._singleCanvas=i,this.root=e;var o=e.style;o&&(Qm(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,h=c.height;n.width!=null&&(f=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new L1(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[$s]=d,d.zlevel=$s,s.push($s),this._domRoot=e}else{this._width=cu(e,0,n),this._height=cu(e,1,n);var u=this._domRoot=dq(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,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},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(zk)),i||(i=n.ctx,i.save()),Ls(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(zk)},t.prototype.paintOne=function(e,r){k_(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Md(function(){l._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer($s).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,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,h=function(g){var m=i[g],y=m.ctx,_=o&&m.createRepaintRects(e,r,d._width,d._height),b=n?m.__startIndex:m.__drawIndex,S=!n&&m.incremental&&Date.now,w=S&&Date.now(),x=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,x,_);else if(b===m.__startIndex){var C=e[b];(!C.incremental||!C.notClear||n)&&m.clear(!1,x,_)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=m.__startIndex);var T,D=function(k){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<m.__endIndex;T++){var N=e[T];if(N.__inHover&&(f=!0),a._doPaintEl(N,m,o,k,L,T===m.__endIndex-1),S){var P=Date.now()-w;if(P>15)break}}L.prevElClipPaths&&y.restore()};if(_)if(_.length===0)T=m.__endIndex;else for(var E=d.dpr,A=0;A<_.length;++A){var I=_[A];y.save(),y.beginPath(),y.rect(I.x*E,I.y*E,I.width*E,I.height*E),y.clip(),D(I),y.restore()}else y.save(),D(),y.restore();m.__drawIndex=T,m.__drawIndex<m.__endIndex&&(c=!1)},d=this,v=0;v<i.length;v++)h(v);return Fe.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,r,n,a,i,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Ls(s,e,i,o),e.setPrevPaintRect(l))}else Ls(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=$s);var n=this._layers[e];return n||(n=new L1("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ke(n,this._layerConfig[e],!0):this._layerConfig[e-Tv]&&ke(n,this._layerConfig[e-Tv],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&gn("ZLevel "+e+" has been used already");return}if(!hq(r)){process.env.NODE_ENV!=="production"&&gn("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,h){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<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+fq,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Tv:0),this._needsManuallyCompositing),c.__builtin__||gn("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&an&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?ke(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Tv){var o=this._layers[i];ke(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(Re(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),r!=null&&(a.height=r),e=cu(i,0,a),r=cu(i,1,a),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer($s).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[$s].dom;var r=new L1("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var 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];Ls(n,c,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function vq(t){t.registerPainter("canvas",pq)}var gq=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return La(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Ce,a=Rt("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=Rt(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},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ct);function _u(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=nu(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(nu(t,e,r[o]));return i.join(" ")}}function $k(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!Z(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Ff=function(t){F(e,t);function e(r,n,a,i){var o=t.call(this)||this;return o.updateData(r,n,a,i),o}return e.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Rt(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=mq,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){li(this.childAt(0))},e.prototype.downplay=function(){ui(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.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 h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Je(h,d,s,n),ta(h)}if(this._updateCommon(r,n,l,a,i),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,St(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,d,v,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,d=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(),h=b.get("focus"),d=b.get("blurScope"),v=b.get("disabled"),g=Qt(_),m=b.getShallow("scale"),y=_.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Is(r.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),C=x.fill;if(s instanceof Jt){var T=s.style;s.useStyle(W({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(W({},x)):s.useStyle(x),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;gr(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(N){return A?r.getName(N):_u(r,N)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),Tt(this,h,d,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Ee(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&no(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();no(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return uu(r.getItemVisual(n,"symbolSize"))},e}(Ce);function mq(t,e){this.parent.drift(t,e)}function N1(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Gk(t){return t!=null&&!ve(t)&&(t={isIgnore:t}),t||{}}function Hk(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Qt(e),cursorStyle:e.get("cursor")}}var zf=function(){function t(e){this.group=new Ce,this._SymbolCtor=e||Ff}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Gk(r);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Hk(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};i||n.removeAll(),e.diff(i).add(function(f){var h=c(f);if(N1(e,h,f,r)){var d=new o(e,f,l,u);d.setPosition(h),e.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=i.getItemGraphicEl(h),v=c(f);if(!N1(e,v,f,r)){n.remove(d);return}var g=e.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==g)n.remove(d),d=new o(e,f,l,u),d.setPosition(v);else{d.updateData(e,f,l,u);var y={x:v[0],y:v[1]};s?d.attr(y):Je(d,y,a)}n.add(d),e.setItemGraphicEl(f,d)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Hk(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Gk(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=r.getItemLayout(i);if(N1(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)}}},t.prototype.eachRendered=function(e){io(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},t}();function Wk(t,e,r){var n=t.getBaseAxis(),a=t.getOtherAxis(n),i=yq(a,r),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=K(t.dimensions,function(v){return e.mapDimension(v)}),h=!1,d=e.getCalculationInfo("stackResultDimension");return di(e,f[0])&&(h=!0,f[0]=d),di(e,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yq(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Ke(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Uk(t,e,r,n){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function _q(t,e){var r=[];return e.diff(t).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 bq(t,e,r,n,a,i,o,s){for(var l=_q(t,e),u=[],c=[],f=[],h=[],d=[],v=[],g=[],m=Wk(a,e,o),y=t.getLayout("points")||[],_=e.getLayout("points")||[],b=0;b<l.length;b++){var S=l[b],w=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var T=y[x],D=y[x+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[x],r[x+1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,k=m.dataDimsForPoint,L=a.dataToPoint([e.get(k[0],I),e.get(k[1],I)]);C=I*2,u.push(L[0],L[1]),c.push(_[C],_[C+1]);var N=Uk(m,a,e,I);f.push(N[0],N[1]),h.push(n[C],n[C+1]),g.push(e.getRawIndex(I));break;case"-":w=!1}w&&(d.push(S),v.push(v.length))}v.sort(function(ae,Oe){return g[ae]-g[Oe]});for(var P=u.length,B=Pa(P),V=Pa(P),G=Pa(P),Y=Pa(P),z=[],b=0;b<v.length;b++){var $=v[b],q=b*2,J=$*2;B[q]=u[J],B[q+1]=u[J+1],V[q]=c[J],V[q+1]=c[J+1],G[q]=f[J],G[q+1]=f[J+1],Y[q]=h[J],Y[q+1]=h[J+1],z[b]=d[$]}return{current:B,next:V,stackedOnCurrent:G,stackedOnNext:Y,status:z}}var po=Math.min,vo=Math.max;function Gs(t,e){return isNaN(t)||isNaN(e)}function P1(t,e,r,n,a,i,o,s,l){for(var u,c,f,h,d,v,g=r,m=0;m<n;m++){var y=e[g*2],_=e[g*2+1];if(g>=a||g<0)break;if(Gs(y,_)){if(l){g+=i;continue}break}if(g===r)t[i>0?"moveTo":"lineTo"](y,_),f=y,h=_;else{var b=y-u,S=_-c;if(b*b+S*S<.5){g+=i;continue}if(o>0){for(var w=g+i,x=e[w*2],C=e[w*2+1];x===y&&C===_&&m<n;)m++,w+=i,g+=i,x=e[w*2],C=e[w*2+1],y=e[g*2],_=e[g*2+1],b=y-u,S=_-c;var T=m+1;if(l)for(;Gs(x,C)&&T<n;)T++,w+=i,x=e[w*2],C=e[w*2+1];var D=.5,E=0,A=0,I=void 0,k=void 0;if(T>=n||Gs(x,C))d=y,v=_;else{E=x-u,A=C-c;var L=y-u,N=x-y,P=_-c,B=C-_,V=void 0,G=void 0;if(s==="x"){V=Math.abs(L),G=Math.abs(N);var Y=E>0?1:-1;d=y-Y*V*o,v=_,I=y+Y*G*o,k=_}else if(s==="y"){V=Math.abs(P),G=Math.abs(B);var z=A>0?1:-1;d=y,v=_-z*V*o,I=y,k=_+z*G*o}else V=Math.sqrt(L*L+P*P),G=Math.sqrt(N*N+B*B),D=G/(G+V),d=y-E*o*(1-D),v=_-A*o*(1-D),I=y+E*o*D,k=_+A*o*D,I=po(I,vo(x,y)),k=po(k,vo(C,_)),I=vo(I,po(x,y)),k=vo(k,po(C,_)),E=I-y,A=k-_,d=y-E*V/G,v=_-A*V/G,d=po(d,vo(u,y)),v=po(v,vo(c,_)),d=vo(d,po(u,y)),v=vo(v,po(c,_)),E=y-d,A=_-v,I=y+E*G/V,k=_+A*G/V}t.bezierCurveTo(f,h,d,v,y,_),f=I,h=k}else t.lineTo(y,_)}u=y,c=_,g+=i}return m}var Yk=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Sq=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Yk},e.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Gs(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Gs(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=P1(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Ea.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var h=i[f++],d=void 0,v=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(d=i[f++],v=i[f++],b=u?(r-s)/(d-s):(r-l)/(v-l),b<=1&&b>=0){var S=u?(v-l)*b+l:(d-s)*b+s;return u?[r,S]:[S,r]}s=d,l=v;break;case o.C:d=i[f++],v=i[f++],g=i[f++],m=i[f++],y=i[f++],_=i[f++];var w=u?Ld(s,d,g,y,r,c):Ld(l,v,m,_,r,c);if(w>0)for(var x=0;x<w;x++){var C=c[x];if(C<=1&&C>=0){var S=u?qt(l,v,m,_,C):qt(s,d,g,y,C);return u?[r,S]:[S,r]}}s=y,l=_;break}}},e}(ze),wq=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Yk),Zk=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new wq},e.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&&Gs(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Gs(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=P1(r,a,o,s,s,1,n.smooth,l,n.connectNulls);P1(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(ze);function Xk(t,e,r,n,a){var i=t.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 We({shape:{x:o,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=de(a)?function(m){a(m,f)}:null;St(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function jk(t,e,r){var n=t.getArea(),a=Mt(n.r0,1),i=Mt(n.r,1),o=new Cr({shape:{cx:Mt(t.cx,1),cy:Mt(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,St(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function $f(t,e,r,n,a){if(t){if(t.type==="polar")return jk(t,e,r);if(t.type==="cartesian2d")return Xk(t,e,r,n,a)}else return null;return null}function Hs(t,e){return t.type===e}function Kk(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function qk(t){for(var e=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[e,r],[n,a]]}function Jk(t,e){var r=qk(t),n=r[0],a=r[1],i=qk(e),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 Qk(t){return Ke(t)?t:t?.5:0}function xq(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),a=Pa(n*2),i=0;i<n;i++){var o=Uk(r,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function go(t,e,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(a){for(l=0;l<t.length;l+=2){var d=e||t;!isNaN(d[l])&&!isNaN(d[l+1])&&h.push(t[l],t[l+1])}t=h}for(l=0;l<t.length-2;l+=2)switch(f[0]=t[l+2],f[1]=t[l+3],c[0]=t[l],c[1]=t[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(t[l++],t[l++]),s}function Cq(t,e){var r=[],n=t.length,a,i;function o(c,f,h){var d=c.coord,v=(h-d)/(f.coord-d),g=by(v,[c.color,f.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){i?r.push(o(i,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function Tq(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=t.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=e.getAxis(a),u=K(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 h=Cq(u,a==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&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=h[0].coord-v,m=h[d-1].coord+v,y=m-g;if(y<.001)return"transparent";M(h,function(b){b.offset=(b.coord-g)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var _=new Wl(0,0,0,0,h,!0);return _[a]=g,_[a+"2"]=m,_}}function Dq(t,e,r){var n=t.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&Eq(i,e))){var o=e.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(e.get(o,l))}}}}function Eq(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Ff.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Mq(t,e){return isNaN(t)||isNaN(e)}function Aq(t){for(var e=t.length/2;e>0&&Mq(t[e*2-2],t[e*2-1]);e--);return e-1}function eL(t,e){return[t[e*2],t[e*2+1]]}function Iq(t,e,r){for(var n=t.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+a],!(isNaN(o)||isNaN(t[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function tL(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Br.length;e++)if(t.get([Br[e],"endLabel","show"]))return!0;return!1}function O1(t,e,r,n){if(Hs(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=tL(n)?function(d,v){t._endLabelOnDuring(d,v,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Xk(e,r,n,function(){var d=t._endLabel;d&&r&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*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."),jk(e,r,n)}function kq(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var Lq=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Ce,n=new zf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=oe(this._changePolyState,this)},e.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",h=this._coordSys,d=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),_=!u.isEmpty(),b=u.get("origin"),S=Wk(i,s,b),w=_&&xq(i,s,S),x=r.get("showSymbol"),C=r.get("connectNulls"),T=x&&!f&&Dq(r,s,i),D=this._data;D&&D.eachItemGraphicEl(function(ae,Oe){ae.__temp&&(o.remove(ae),D.setItemGraphicEl(Oe,null))}),x||d.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 I=Tq(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&h.type===i.type&&E===this._step))x&&d.updateData(s,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ae){return[c[ae*2],c[ae*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,A),E&&(w&&(w=go(w,c,i,E,C)),c=go(c,null,i,E,C)),v=this._newPolyline(c),_?g=this._newPolygon(c,w):g&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,ws(I)),m.setClipPath(O1(this,i,!0,r));else{_&&!g?g=this._newPolygon(c,w):g&&!_&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,i,ws(I));var k=m.getClipPath();if(k){var L=O1(this,i,!1,r);St(k,{shape:L.shape},r)}else m.setClipPath(O1(this,i,!0,r));x&&d.updateData(s,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ae){return[c[ae*2],c[ae*2+1]]}}),(!Kk(this._stackedOnPoints,w)||!Kk(this._points,c))&&(y?this._doUpdateAnimation(s,w,i,a,E,b,C):(E&&(w&&(w=go(w,c,i,E,C)),c=go(c,null,i,E,C)),v.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:w})))}var N=r.getModel("emphasis"),P=N.get("focus"),B=N.get("blurScope"),V=N.get("disabled");if(v.useStyle(ye(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),vr(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}Ee(v).seriesIndex=r.seriesIndex,Tt(v,P,B,V);var Y=Qk(r.get("smooth")),z=r.get("smoothMonotone");if(v.setShape({smooth:Y,smoothMonotone:z,connectNulls:C}),g){var $=s.getCalculationInfo("stackedOnSeries"),q=0;g.useStyle(ye(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(q=Qk($.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:q,smoothMonotone:z,connectNulls:C}),vr(g,r,"areaStyle"),Ee(g).seriesIndex=r.seriesIndex,Tt(g,P,B,V)}var J=this._changePolyState;s.eachItemGraphicEl(function(ae){ae&&(ae.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=c,this._step=E,this._valueOrigin=b,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Ee(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=rs(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 h=r.get("zlevel")||0,d=r.get("z")||0;u=new Ff(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else st.prototype.highlight.call(this,r,n,a,i)},e.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=rs(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 st.prototype.downplay.call(this,r,n,a,i)},e.prototype._changePolyState=function(r){var n=this._polygon;fp(this._polyline,r),n&&fp(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Sq({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Zk({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.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");de(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=de(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var g=d;if(g){var m=[d.x,d.y],y=void 0,_=void 0,b=void 0;if(a)if(o){var S=a,w=n.pointToCoord(m);i?(y=S.startAngle,_=S.endAngle,b=-w[1]/180*Math.PI):(y=S.r0,_=S.r,b=w[0])}else{var x=a;i?(y=x.x,_=x.x+x.width,b=d.x):(y=x.y+x.height,_=x.y,b=d.y)}var C=_===y?0:(b-y)/(_-y);l&&(C=1-C);var T=de(f)?f(v):c*C+h,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}})},e.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(tL(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 Ue({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Aq(l);c>=0&&(gr(s,Qt(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?$k(o,d):_u(o,f)},enableTextSetter:!0},kq(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.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"),h=a.hostModel,d=h.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,w=(y?g:0)*(_?-1:1),x=(y?0:-g)*(_?-1:1),C=y?"x":"y",T=Iq(f,S,C),D=T.range,E=D[1]-D[0],A=void 0;if(E>=1){if(E>1&&!d){var I=eL(f,D[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(A=h.getRawValue(D[0]))}else{var I=c.getPointOn(S,C);I&&u.attr({x:I[0]+w,y:I[1]+x});var k=h.getRawValue(D[0]),L=h.getRawValue(D[1]);o&&(A=dE(a,v,k,L,T.t))}i.lastFrameIndex=D[0]}else{var N=r===1||i.lastFrameIndex>0?D[0]:0,I=eL(f,N);o&&(A=h.getRawValue(N)),u.attr({x:I[0]+w,y:I[1]+x})}if(o){var P=jl(u);typeof P.setLabelText=="function"&&P.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=bq(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(o&&(v=go(h.stackedOnCurrent,h.current,a,o,l),d=go(h.current,null,a,o,l),m=go(h.stackedOnNext,h.next,a,o,l),g=go(h.next,null,a,o,l)),Jk(d,g)>3e3||c&&Jk(v,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=d;var y={shape:{points:g}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),Je(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Je(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],b=h.status,S=0;S<b.length;S++){var w=b[S].cmd;if(w==="="){var x=r.getItemGraphicEl(b[S].idx1);x&&_.push({el:x,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()}})},e.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},e.type="line",e}(st);function Gf(t,e){return{seriesType:t,plan:ou(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=e||i.large;if(a){var s=K(a.dimensions,function(d){return n.mapDimension(d)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");di(n,s[0])&&(s[0]=u),di(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(d,v){for(var g=d.end-d.start,m=o&&Pa(g*l),y=[],_=[],b=d.start,S=0;b<d.end;b++){var w=void 0;if(l===1){var x=c.get(f,b);w=a.dataToPoint(x,null,_)}else y[0]=c.get(f,b),y[1]=c.get(h,b),w=a.dataToPoint(y,null,_);o?(m[S++]=w[0],m[S++]=w[1]):v.setItemLayout(b,w.slice())}o&&v.setLayout("points",m)}}}}}}var Nq={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Pq=function(t){return Math.round(t.length/2)};function rL(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),o=e.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(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/d)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/d));var v=void 0;ie(i)?v=Nq[i]:de(i)&&(v=i),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/d,v,Pq))}}}}}function Oq(t){t.registerChartView(Lq),t.registerSeriesModel(gq),t.registerLayout(Gf("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,rL("line"))}var Hf=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return La(null,this,{useEncodeDefaulter:!0})},e.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(h,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var _=void 0,b=void 0,S=1,w=0;w<v.length;w++){var x=v[w].coord,C=w===v.length-1?v[w-1].tickValue+S:v[w].tickValue;if(C===m){b=x;break}else if(C<m)_=x;else if(_!=null&&C>m){b=(x+_)/2;break}w===1&&(S=C-v[0].tickValue)}b==null&&(_?_&&(b=v[v.length-1].coord):b=v[0].coord),s[d]=h.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]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ct);ct.registerClass(Hf);var Rq=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return La(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=oo(Hf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Hf),Vq=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Dv=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Vq},e.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,h=n.clockwise,d=Math.PI*2,v=h?f-c<d:c-f<d;v||(c=f-(h?d:-d));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,!h)):r.moveTo(g*s+a,m*s+i),r.arc(a,i,s,c,f,!h),r.arc(y*u+a,_*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&r.arc(a,i,o,f,c,h)},e}(ze);function Bq(t,e){e=e||{};var r=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Zd(n,a,i);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,d=u.r0,v=(h+d)/2,g=u.startAngle,m=u.endAngle,y=(g+m)/2,_=r?Math.abs(h-d)/2:0,b=Math.cos,S=Math.sin,w=c+h*b(g),x=f+h*S(g),C="left",T="top";switch(s){case"startArc":w=c+(d-l)*b(y),x=f+(d-l)*S(y),C="center",T="top";break;case"insideStartArc":w=c+(d+l)*b(y),x=f+(d+l)*S(y),C="center",T="bottom";break;case"startAngle":w=c+v*b(g)+Ev(g,l+_,!1),x=f+v*S(g)+Mv(g,l+_,!1),C="right",T="middle";break;case"insideStartAngle":w=c+v*b(g)+Ev(g,-l+_,!1),x=f+v*S(g)+Mv(g,-l+_,!1),C="left",T="middle";break;case"middle":w=c+v*b(y),x=f+v*S(y),C="center",T="middle";break;case"endArc":w=c+(h+l)*b(y),x=f+(h+l)*S(y),C="center",T="bottom";break;case"insideEndArc":w=c+(h-l)*b(y),x=f+(h-l)*S(y),C="center",T="top";break;case"endAngle":w=c+v*b(m)+Ev(m,l+_,!0),x=f+v*S(m)+Mv(m,l+_,!0),C="left",T="middle";break;case"insideEndAngle":w=c+v*b(m)+Ev(m,-l+_,!0),x=f+v*S(m)+Mv(m,-l+_,!0),C="right",T="middle";break;default:return Zd(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=C,n.verticalAlign=T,n}}function Fq(t,e,r,n){if(Ke(n)){t.setTextConfig({rotation:n});return}else if(Z(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.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),t.setTextConfig({rotation:c})}function Ev(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Mv(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ws(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Z(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(n,function(i){return Jn(i,a)})}}var R1=Math.max,V1=Math.min;function zq(t,e){var r=t.getArea&&t.getArea();if(Hs(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var $q=function(t){F(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,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"&&Ct("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){io(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,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 h=r.isAnimationEnabled()?r:null,d=Gq(r,u);d&&this._enableRealtimeSort(d,s,a);var v=r.get("clip",!0)||d,g=zq(u,s);o.removeClipPath();var m=r.get("roundCap",!0),y=r.get("showBackground",!0),_=r.getModel("backgroundStyle"),b=_.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(A){var I=Av[u.type](s,A),k=jq(u,f,I);return k.useStyle(_.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",b):k.setShape("cornerRadius",b),S[A]=k,k}s.diff(l).add(function(A){var I=s.getItemModel(A),k=Av[u.type](s,A,I);if(y&&T(A),!(!s.hasValue(A)||!sL[u.type](k))){var L=!1;v&&(L=nL[u.type](g,k));var N=aL[u.type](r,s,A,k,f,h,c.model,!1,m);d&&(N.forceLabelAnimation=!0),uL(N,s,A,I,k,r,f,u.type==="polar"),x?N.attr({shape:k}):d?iL(d,h,N,k,A,f,!1,!1):St(N,{shape:k},r,A),s.setItemGraphicEl(A,N),o.add(N),N.ignore=L}}).update(function(A,I){var k=s.getItemModel(A),L=Av[u.type](s,A,k);if(y){var N=void 0;w.length===0?N=T(I):(N=w[I],N.useStyle(_.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",b):N.setShape("cornerRadius",b),S[A]=N);var P=Av[u.type](s,A),B=dL(f,P,u);Je(N,{shape:B},h,A)}var V=l.getItemGraphicEl(I);if(!s.hasValue(A)||!sL[u.type](L)){o.remove(V);return}var G=!1;if(v&&(G=nL[u.type](g,L),G&&o.remove(V)),V?ta(V):V=aL[u.type](r,s,A,L,f,h,c.model,!!V,m),d&&(V.forceLabelAnimation=!0),C){var Y=V.getTextContent();if(Y){var z=jl(Y);z.prevValue!=null&&(z.prevValue=z.value)}}else uL(V,s,A,k,L,r,f,u.type==="polar");x?V.attr({shape:L}):d?iL(d,h,V,L,A,f,!0,C):Je(V,{shape:L},r,A,null),s.setItemGraphicEl(A,V),V.ignore=G,o.add(V)}).remove(function(A){var I=l.getItemGraphicEl(A);I&&af(I,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ce);D.removeAll();for(var E=0;E<S.length;++E)D.add(S[E]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(r,n,a){this._clear(),fL(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),fL(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&$f(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.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)}}},e.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:K(i,function(o){return o.ordinalNumber})}},e.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},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){af(i,r,Ee(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(st),nL={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=R1(e.x,t.x),s=V1(e.x+e.width,a),l=R1(e.y,t.y),u=V1(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>a?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=V1(e.r,t.r),i=R1(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},aL={cartesian2d:function(t,e,r,n,a,i,o,s,l){var u=new We({shape:W({},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(t,e,r,n,a,i,o,s,l){var u=!a&&l?Dv:Cr,c=new u({shape:n,z2:1});c.name="item";var f=lL(a);if(c.calculateTextPosition=Bq(f,{isRoundCap:u===Dv}),i){var h=c.shape,d=a?"r":"endAngle",v={};h[d]=a?n.r0:n.startAngle,v[d]=n[d],(s?Je:St)(c,{shape:v},i)}return c}};function Gq(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Ct("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Ct("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function iL(t,e,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?Je:St)(r,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?Je:St)(r,{shape:u},c,a)}function oL(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var Hq=["x","y","width","height"],Wq=["cx","cy","r","startAngle","endAngle"],sL={cartesian2d:function(t){return!oL(t,Hq)},polar:function(t){return!oL(t,Wq)}},Av={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),a=r?Yq(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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Uq(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function lL(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function uL(t,e,r,n,a,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=t.shape,f=Ws(n.getModel("itemStyle"),c,!0);W(c,f),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var d=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=Qt(n);gr(t,v,{labelFetcher:i,labelDataIndex:r,defaultText:_u(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,Fq(t,m==="outside"?d:m,lL(o),n.get(["label","rotate"]))}P2(g,v,i.getRawValue(r),function(_){return $k(e,_)});var y=n.getModel(["emphasis"]);Tt(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),vr(t,n),Uq(a)&&(t.style.fill="none",t.style.stroke="none",M(t.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function Yq(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var Zq=function(){function t(){}return t}(),cL=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Zq},e.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])},e}(ze);function fL(t,e,r,n){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new cL({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var f=new cL({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,Ee(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",hL),f.on("mousemove",hL)),r&&r.push(f)}var hL=Wp(function(t){var e=this,r=Xq(e,t.offsetX,t.offsetY);Ee(e).dataIndex=r>=0?r:null},30,!1);function Xq(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function dL(t,e,r){if(Hs(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function jq(t,e,r){var n=t.type==="polar"?Cr:We;return new n({shape:dL(e,r,t),silent:!0,z2:0})}function Kq(t){t.registerChartView($q),t.registerSeriesModel(Rq),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Ae(II,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kI("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,rL("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var pL=Math.PI*2,Iv=Math.PI/180;function vL(t,e){return Gt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gL(t,e){var r=vL(t,e),n=t.get("center"),a=t.get("radius");Z(a)||(a=[0,a]);var i=ne(r.width,e.getWidth()),o=ne(r.height,e.getHeight()),s=Math.min(i,o),l=ne(a[0],s/2),u=ne(a[1],s/2),c,f,h=t.coordinateSystem;if(h){var d=h.dataToPoint(n);c=d[0]||0,f=d[1]||0}else Z(n)||(n=[n,n]),c=ne(n[0],i)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function qq(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),o=vL(n,r),s=gL(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Iv,d=n.get("endAngle"),v=n.get("padAngle")*Iv;d=d==="auto"?h-pL:-d*Iv;var g=n.get("minAngle")*Iv,m=g+v,y=0;a.each(i,function(B){!isNaN(B)&&y++});var _=a.getSum(i),b=Math.PI/(_||y)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,d],E=T*v/2;p0(D,!S),h=D[0],d=D[1];var A=mL(n);A.startAngle=h,A.endAngle=d,A.clockwise=S;var I=Math.abs(d-h),k=I,L=0,N=h;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(B,V){var G;if(isNaN(B)){a.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?G=_===0&&x?b:B*b:G=I/y,G<m?(G=m,k-=m):L+=B;var Y=N+T*G,z=0,$=0;v>G?(z=N+T*G/2,$=z):(z=N+E,$=Y-E),a.setItemLayout(V,{angle:G,startAngle:z,endAngle:$,clockwise:S,cx:l,cy:u,r0:f,r:w?at(B,C,[f,c]):c}),N=Y}),k<pL&&y)if(k<=.001){var P=I/y;a.each(i,function(B,V){if(!isNaN(B)){var G=a.getItemLayout(V);G.angle=P;var Y=0,z=0;P<v?(Y=h+T*(V+1/2)*P,z=Y):(Y=h+T*V*P+E,z=h+T*(V+1)*P-E),G.startAngle=Y,G.endAngle=z}})}else b=k/L,N=h,a.each(i,function(B,V){if(!isNaN(B)){var G=a.getItemLayout(V),Y=G.angle===m?m:B*b,z=0,$=0;Y<v?(z=N+T*Y/2,$=z):(z=N+E,$=N+T*Y-E),G.startAngle=z,G.endAngle=$,N+=T*Y}})})}var mL=je();function Wf(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.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 Jq=Math.PI/180;function yL(t,e,r,n,a,i,o,s,l,u){if(t.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),w=n+b.len,x=w*w,C=Math.sqrt(Math.abs((1-S*S/y)*x)),T=e+(C+b.len2)*a,D=T-b.label.x,E=b.targetTextWidth-D*a;_L(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,w=Math.abs(b.label.y-r);if(w>=S.maxY){var x=b.label.x-e-b.len2*a,C=n+b.len,T=Math.abs(x)<C?Math.sqrt(w*w/(1-x*x/C/C)):C;S.rB=T,S.maxY=w}S.list.push(b)}c(m),c(y)}for(var h=t.length,d=0;d<h;d++)if(t[d].position==="outer"&&t[d].labelAlignTo==="labelLine"){var v=t[d].label.x-u;t[d].linePoints[1][0]+=v,t[d].label.x=u}sk(t,l,l+o)&&f(t)}function Qq(t,e,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<t.length;h++){var d=t[h].label;B1(t[h])||(d.x<e?(c=Math.min(c,d.x),l.push(t[h])):(f=Math.max(f,d.x),u.push(t[h])))}for(var h=0;h<t.length;h++){var v=t[h];if(!B1(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var d=v.label,g=v.linePoints,m=void 0;v.labelAlignTo==="edge"?d.x<e?m=g[2][0]-v.labelDistance-o-v.edgeDistance:m=o+a-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?d.x<e?m=c-o-v.bleedMargin:m=o+a-f-v.bleedMargin:d.x<e?m=d.x-o-v.bleedMargin:m=o+a-d.x-v.bleedMargin,v.targetTextWidth=m,_L(v,m)}}yL(u,e,r,n,1,a,i,o,s,f),yL(l,e,r,n,-1,a,i,o,s,c);for(var h=0;h<t.length;h++){var v=t[h];if(!B1(v)&&v.linePoints){var d=v.label,g=v.linePoints,y=v.labelAlignTo==="edge",_=d.style.padding,b=_?_[1]+_[3]:0,S=d.style.backgroundColor?0:b,w=v.rect.width+S,x=g[1][0]-g[2][0];y?d.x<e?g[2][0]=o+v.edgeDistance+w+v.labelDistance:g[2][0]=o+a-v.edgeDistance-w-v.labelDistance:(d.x<e?g[2][0]=d.x+v.labelDistance:g[2][0]=d.x-v.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=d.y}}}function _L(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||r){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=e-l,v=e<c?d:r?d>t.unconstrainedWidth?null:d: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 B1(t){return t.position==="center"}function eJ(t){var e=t.getData(),r=[],n,a,i=!1,o=(t.get("minShowLabelAngle")||0)*Jq,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function d(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}e.each(function(x){var C=e.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),E=C.getTextGuideLine(),A=e.getItemModel(x),I=A.getModel("label"),k=I.get("position")||A.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),N=I.get("alignTo"),P=ne(I.get("edgeDistance"),u),B=I.get("bleedMargin"),V=A.getModel("labelLine"),G=V.get("length");G=ne(G,u);var Y=V.get("length2");if(Y=ne(Y,u),Math.abs(T.endAngle-T.startAngle)<o){M(D.states,d),D.ignore=!0,E&&(M(E.states,d),E.ignore=!0);return}if(v(D)){var z=(T.startAngle+T.endAngle)/2,$=Math.cos(z),q=Math.sin(z),J,ae,Oe,Qe;n=T.cx,a=T.cy;var Me=k==="inside"||k==="inner";if(k==="center")J=T.cx,ae=T.cy,Qe="center";else{var he=(Me?(T.r+T.r0)/2*$:T.r*$)+n,Ie=(Me?(T.r+T.r0)/2*q:T.r*q)+a;if(J=he+$*3,ae=Ie+q*3,!Me){var ue=he+$*(G+l-T.r),me=Ie+q*(G+l-T.r),nt=ue+($<0?-1:1)*Y,Ye=me;N==="edge"?J=$<0?c+P:c+u-P:J=nt+($<0?-L:L),ae=Ye,Oe=[[he,Ie],[ue,me],[nt,Ye]]}Qe=Me?"center":N==="edge"?$>0?"right":"left":$>0?"left":"right"}var pe=Math.PI,He=0,xt=I.get("rotate");if(Ke(xt))He=xt*(pe/180);else if(k==="center")He=0;else if(xt==="radial"||xt===!0){var ar=$<0?-z+pe:-z;He=ar}else if(xt==="tangential"&&k!=="outside"&&k!=="outer"){var Ut=Math.atan2($,q);Ut<0&&(Ut=pe*2+Ut);var en=q>0;en&&(Ut=pe+Ut),He=Ut-pe}if(i=!!He,D.x=J,D.y=ae,D.rotation=He,D.setStyle({verticalAlign:"middle"}),Me){D.setStyle({align:Qe});var Ua=D.states.select;Ua&&(Ua.x+=D.x,Ua.y+=D.y)}else{var Hr=D.getBoundingRect().clone();Hr.applyTransform(D.getComputedTransform());var Mo=(D.style.margin||0)+2.1;Hr.y-=Mo/2,Hr.height+=Mo,r.push({label:D,labelLine:E,position:k,len:G,len2:Y,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new Ne($,q),linePoints:Oe,textAlign:Qe,labelDistance:L,labelAlignTo:N,edgeDistance:P,bleedMargin:B,rect:Hr,unconstrainedWidth:Hr.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Me})}}),!i&&t.get("avoidLabelOverlap")&&Qq(r,n,a,l,u,h,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,d),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(_){var w=m.linePoints;b||!w?(M(_.states,d),_.ignore=!0):(ak(w,m.minTurnAngle),xK(w,m.surfaceNormal,m.maxSurfaceAngle),_.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new Ne(w[0][0],w[0][1])})}}}var tJ=function(t){F(e,t);function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new Ue;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return e.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=W(Ws(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(St(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,St(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),St(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Je(o,{shape:{endAngle:c.endAngle}},s,n))}else ta(o),Je(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),vr(o,l);var d=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(d)*v,m=Math.sin(d)*v,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=W({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ws(u.getModel("itemStyle"),c)),W(o.ensureState("select"),{x:g,y:m,shape:Ws(l.getModel(["select","itemStyle"]),c)}),W(o.ensureState("blur"),{shape:Ws(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),b=o.getTextContent();_&&W(_.ensureState("select"),{x:g,y:m}),W(b.ensureState("select"),{x:g,y:m}),Tt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.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;gr(i,Qt(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 h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Dr,this.setTextGuideLine(d)),g1(this,m1(o),{stroke:u,opacity:nn(s.get(["lineStyle","opacity"]),c,1)})}},e}(Cr),rJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,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 h=mL(r),d=new Cr({shape:W(gL(r,a),h)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(v){var g=new tJ(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);af(g,r,v)}).execute(),eJ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.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}},e.type="pie",e}(st);function bu(t,e,r){e=Z(e)&&{coordDimensions:e}||W({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=pu(n,e).dimensions,i=new kr(a,t);return i.initData(n,r),i}var Uf=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),nJ=je(),aJ=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bu(this,{coordDimensions:["value"],encodeDefaulter:Ae(a_,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=nJ(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=JD(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){ts(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},e.type="series.pie",e.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"},e}(ct);function iJ(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Ke(o)&&!isNaN(o)&&o<0)})}}}function oJ(t){t.registerChartView(rJ),t.registerSeriesModel(aJ),wA("pie",t.registerAction),t.registerLayout(Ae(qq,"pie")),t.registerProcessor(Wf("pie")),t.registerProcessor(iJ("pie"))}var sJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return La(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(ct),bL=4,lJ=function(){function t(){}return t}(),uJ=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new lJ},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.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]<bL,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var h=a[f++],d=a[f++];isNaN(h)||isNaN(d)||c&&!c.contain(h,d)||(s.x=h-i[0]/2,s.y=d-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.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)}},e.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,h=i[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},e.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},e.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,h=0;h<a.length;){var d=a[h++],v=a[h++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new Pe(l-o/2,u-s/2,c-l+o,f-u+s)}return r},e}(ze),cJ=function(){function t(){this.group=new Ce}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.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()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,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=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new uJ({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Rt(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<bL;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Ee(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),fJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Gf("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.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 cJ:new zf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(st),hJ=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Ve),F1=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$t).models[0]},e.type="cartesian2dAxis",e}(Ve);It(F1,mu);var SL={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)"]}}},dJ=ke({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},SL),z1=ke({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}}},SL),pJ=ke({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},z1),vJ=ye({logBase:10},z1);const wL={category:dJ,value:z1,time:pJ,log:vJ};var gJ={value:1,category:1,time:1,log:1};function Su(t,e,r,n){M(gJ,function(a,i){var o=ke(ke({},wL[i],!0),n,!0),s=function(l){F(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=df(this),d=h?eu(c):{},v=f.getTheme();ke(c,v.get(i+"Axis")),ke(c,this.getDefaultOption()),c.type=xL(c),h&&so(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=n1.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=e+"Axis."+i,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",xL)}function xL(t){return t.type||(t.data?"category":"value")}var mJ=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),tt(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),$1=["x","y"];function CL(t){return t.type==="interval"||t.type==="time"}var yJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=$1,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!CL(r)||!CL(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,h=o[0]-a[0]*c,d=o[1]-i[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=Yo([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Pe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.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 ir(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},e.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},e.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return ir(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),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 Pe(i,o,s,l)},e}(mJ),_J=function(t){F(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(Nn);function G1(t,e,r){r=r||{};var n=t.coordinateSystem,a=e.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],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(g,v[1]),v[0])}i.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[h[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[h[s]]-v[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Pt(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function TL(t){return t.get("coordinateSystem")==="cartesian2d"}function DL(t){var e={xAxisModel:null,yAxisModel:null};return M(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,$t).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+nn(t.get(a+"Index"),t.get(a+"Id"),0)+'" not found');e[n]=i}),e}var H1=Math.log;function EL(t,e,r){var n=pi.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=BI(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var h=H1(t.base);u=[H1(u[0])/h,H1(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(t);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(t),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=i1(v),m=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=i1(v),g=u[1]-v*o;else{var y=t.getTicks().length-1;y>o&&(v=i1(v));var _=v*o;m=Math.ceil(u[1]/v)*v,g=Mt(m-_),g<0&&u[0]>=0?(g=0,m=Mt(_)):m>0&&u[1]<=0&&(m=0,g=-Mt(_))}var b=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(t,g+v*b,m+v*S),n.setInterval.call(t,v),(b||S)&&n.setNiceExtent.call(t,g+v,m-v),process.env.NODE_ENV!=="production"){var w=n.getTicks.call(t);w[1]&&(!gj(v)||jd(w[1].value)>jd(v))&&Ct("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var bJ=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$1,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=$e(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,g=d.scale;a1(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(Os(g,v),a1(g)&&(s=d))}c.length&&(s||(s=c.pop(),Os(s.scale,s.model)),M(c,function(m){EL(m.scale,m.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){ML(n,"y",o,i)}),M(n.y,function(o){ML(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Gt(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=zj(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),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],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),SJ(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}ve(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",$t).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",$t).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Re(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}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,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(h,d){var v="x"+f+"y"+d,g=new yJ(v);g.master=a,g.model=e,a._coordsMap[v]=g,a._coordsList.push(g),g.addAxis(c),g.addAxis(h)})});function u(c){return function(f,h){if(W1(f,e)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var v=new _J(c,Nf(f),[0,0],f.get("type"),d),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=h,i._axesList.push(v),s[c][h]=v,l[c]++}}}},t.prototype._updateScale=function(e,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)}}),e.eachSeries(function(a){if(TL(a)){var i=DL(a),o=i.xAxisModel,s=i.yAxisModel;if(!W1(o,r)||!W1(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(yv(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return M(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Re(r,i)<0&&r.push(i),Re(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(TL(a)){var i=DL(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+nn(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},t.dimensions=$1,t}();function W1(t,e){return t.getCoordSysModel()===e}function ML(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)AL(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&AL(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function AL(t){return t&&t.type!=="category"&&t.type!=="time"&&Fj(t)}function SJ(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}var mo=Math.PI,Gr=function(){function t(e,r){this.group=new Ce,this.opt=r,this.axisModel=e,ye(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ce({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!IL[e]},t.prototype.add=function(e){IL[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var a=Zy(r-e),i,o;return Nl(a)?(o=n>0?"top":"bottom",i="center"):Nl(a-mo)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<mo?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),IL={axisLine:function(t,e,r,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(ir(s,s,o),ir(l,l,o));var c=W({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Xt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Zl(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var d=e.get(["axisLine","symbolSize"]);ie(h)&&(h=[h,h]),(ie(d)||Ke(d))&&(d=[d,d]);var v=Is(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],m=d[1];M([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.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(h[_]!=="none"&&h[_]!=null){var b=Rt(h[_],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,w=u?l:s;b.attr({rotation:y.rotate,x:w[0]+S*Math.cos(t.rotation),y:w[1]-S*Math.sin(t.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(t,e,r,n){var a=CJ(r,n,e,t),i=DJ(r,n,e,t);if(xJ(e,i,a),TJ(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=ik(K(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));lk(o)}},axisName:function(t,e,r,n){var a=Pt(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.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,LL(i)?t.labelOffset+o*l:0],h,d=e.get("nameRotate");d!=null&&(d=d*mo/180);var v;LL(i)?h=Gr.innerTextLayout(t.rotation,d??t.rotation,o):(h=wJ(t.rotation,i,d||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,_=Pt(t.nameTruncateMaxWidth,m.maxWidth,v),b=new Ue({x:f[0],y:f[1],rotation:h.rotation,silent:Gr.isLabelSilent(e),style:gt(s,{text:a,font:g,overflow:"truncate",width:_,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(_s({el:b,componentModel:e,itemName:a}),b.__fullText=a,b.anid="name",e.get("triggerEvent")){var S=Gr.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,Ee(b).eventData=S}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function wJ(t,e,r,n){var a=Zy(r-t),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Nl(a-mo/2)?(o=l?"bottom":"top",i="center"):Nl(a-mo*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<mo*1.5&&a>mo/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function xJ(t,e,r){if(!FI(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(Pn(i),Pn(u)):kL(i,o)&&(n?(Pn(o),Pn(c)):(Pn(i),Pn(u))),a===!1?(Pn(s),Pn(f)):kL(l,s)&&(a?(Pn(l),Pn(h)):(Pn(s),Pn(f)))}}function Pn(t){t&&(t.ignore=!0)}function kL(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var a=xc([]);return Ui(a,a,-t.rotation),r.applyTransform(_a([],a,t.getLocalTransform())),n.applyTransform(_a([],a,e.getLocalTransform())),r.intersect(n)}}function LL(t){return t==="middle"||t==="center"}function NL(t,e,r,n,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(ir(o,o,e),ir(s,s,e));var c=new Xt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Zl(c.shape,c.style.lineWidth),c.anid=a+"_"+t[l].tickValue,i.push(c)}return i}function CJ(t,e,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=NL(u,e.transform,l,ye(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function TJ(t,e,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=ye(s.getLineStyle(),ye(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=NL(o[c],e.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)t.add(f[h])}}function DJ(t,e,r,n){var a=r.axis,i=Pt(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Pt(n.labelRotate,o.get("rotate"))||0)*mo/180,c=Gr.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),h=[],d=Gr.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 w=f[y];ve(w)&&w.textStyle&&(S=new rt(w.textStyle,o,r.ecModel))}var x=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(y),T=S.getShallow("align",!0)||c.textAlign,D=De(S.getShallow("alignMinLabel",!0),T),E=De(S.getShallow("alignMaxLabel",!0),T),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,I=De(S.getShallow("verticalAlignMinLabel",!0),A),k=De(S.getShallow("verticalAlignMaxLabel",!0),A),L=new Ue({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(g.level||0),style:gt(S,{text:_,align:m===0?D:m===l.length-1?E:T,verticalAlign:m===0?I:m===l.length-1?k:A,fill:de(x)?x(a.type==="category"?b:a.type==="value"?y+"":y,m):x})});if(L.anid="label_"+y,_s({el:L,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return L.isTruncated},value:b,tickIndex:m}}),v){var N=Gr.makeAxisEventDataBase(r);N.targetType="axisLabel",N.value=b,N.tickIndex=m,a.type==="category"&&(N.dataIndex=y),Ee(L).eventData=N}e.add(L),L.updateTransform(),h.push(L),t.add(L),L.decomposeTransform()}),h}}function EJ(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return MJ(r,t,e),r.seriesInvolved&&IJ(r,t),r}function MJ(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Yf(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(M(s.getAxes(),Ae(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&M(v.baseAxes,Ae(g,d?"cross":!0,h)),d&&M(v.otherAxes,Ae(g,"cross",!1))}function g(m,y,_){var b=_.model.getModel("axisPointer",a),S=b.get("show");if(!(!S||S==="auto"&&!m&&!Z1(b))){y==null&&(y=b.get("triggerTooltip")),b=m?AJ(_,f,a,e,m,y):b;var w=b.get("snap"),x=b.get("triggerEmphasis"),C=Yf(_.model),T=y||w||_.type==="category",D=t.axesInfo[C]={key:C,axis:_,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:w,useHandle:Z1(b),seriesModels:[],linkGroup:null};u[C]=D,t.seriesInvolved=t.seriesInvolved||T;var E=kJ(i,_);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[C]=D,A.mapper=i[E].mapper,D.linkGroup=A}}}})}function AJ(t,e,r,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(h){l[h]=we(o.get(h))}),l.snap=t.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&&ye(u,f.textStyle)}}return t.model.getModel("axisPointer",new rt(l,r,n))}function IJ(t,e){e.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(t.coordSysAxesInfo[Yf(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 kJ(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(U1(i[n+"AxisId"],r.id)||U1(i[n+"AxisIndex"],r.componentIndex)||U1(i[n+"AxisName"],r.name))return a}}function U1(t,e){return t==="all"||Z(t)&&Re(t,e)>=0||t===e}function LJ(t){var e=Y1(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Z1(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=e.axis.scale.isBlank()?"hide":"show")}}function Y1(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Yf(t)]}function NJ(t){var e=Y1(t);return e&&e.axisPointerModel}function Z1(t){return!!t.get(["handle","show"])}function Yf(t){return t.type+"||"+t.id}var X1={},Us=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.axisPointerClass&&LJ(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=NJ(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&X1[r])throw new Error("axisPointer "+r+" exists");X1[r]=n},e.getAxisPointerClass=function(r){return r&&X1[r]},e.type="axis",e}(_t),j1=je();function PL(t,e,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=j1(t).splitAreaColors,h=fe(),d=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){d=(g+(c-1)*v)%c;break}}var m=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Z(s)?s:[s];for(var v=1;v<u.length;v++){var _=a.toGlobalCoord(u[v].coord),b=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(b=m,S=l.y,w=_-b,x=l.height,m=b+w):(b=l.x,S=m,w=l.width,x=_-S,m=S+x);var C=u[v-1].tickValue;C!=null&&h.set(C,d),e.add(new We({anid:C!=null?"area_"+C:null,shape:{x:b,y:S,width:w,height:x},style:ye({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}j1(t).splitAreaColors=h}}}function OL(t){j1(t).splitAreaColors=null}var PJ=["axisLine","axisTickLabel","axisName"],OJ=["splitArea","splitLine","minorSplitLine"],RL=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ce,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=G1(s,r),u=new Gr(r,W({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if(a1(h[d].getOtherAxis(r.axis).scale))return!0;return!1}},l));M(PJ,u.add,u),this._axisGroup.add(u.getGroup()),M(OJ,function(f){r.get([f,"show"])&&RJ[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||sf(o,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){OL(this)},e.type="cartesianAxis",e}(Us),RJ={splitLine:function(t,e,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=Z(s)?s:[s];for(var c=n.coordinateSystem.getRect(),f=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:i}),v=[],g=[],m=o.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!u)){var b=d[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=h++%s.length,w=new Xt({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:ye({stroke:s[S]},m),silent:!0});Zl(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,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=[],h=o.getLineStyle(),d=0;d<u.length;d++)for(var v=0;v<u[d].length;v++){var g=a.toGlobalCoord(u[d][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 Xt({anid:"minor_line_"+u[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Zl(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n){PL(t,e,r,n)}},VL=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(RL),VJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=VL.type,r}return e.type="yAxis",e}(RL),BJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new We({shape:r.coordinateSystem.getRect(),style:ye({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(_t),BL={offset:0};function FL(t){t.registerComponentView(BJ),t.registerComponentModel(hJ),t.registerCoordinateSystem("cartesian2d",bJ),Su(t,"x",F1,BL),Su(t,"y",F1,BL),t.registerComponentView(VL),t.registerComponentView(VJ),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function FJ(t){Be(FL),t.registerSeriesModel(sJ),t.registerChartView(fJ),t.registerLayout(Gf("scatter"))}function zJ(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],a=e.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]=zL(c)?c:$L(a)})}),r.each(function(o){var s=WT(n[o],function(l){return zL(l)})||$L(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function zL(t){return!isNaN(t[0])&&!isNaN(t[1])}function $L(t){return[t.cx,t.cy]}function $J(t){var e=t.polar;if(e){Z(e)||(e=[e]);var r=[];M(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],Z(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}M(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var GJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,d){var v=h.getItemVisual(d,"symbol")||"circle";if(v!=="none"){var g=uu(h.getItemVisual(d,"symbolSize")),m=Rt(v,-1,-1,2,2),y=h.getItemVisual(d,"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(h,d,v,g,m,y){v.removeAll();for(var _=0;_<d.length-1;_++){var b=u(g,m);b&&(b.__dimIdx=_,h[_]?(b.setPosition(h[_]),bs[y?"initProps":"updateProps"](b,{x:d[_][0],y:d[_][1]},r,m)):b.setPosition(d[_]),v.add(b))}}function f(h){return K(h,function(d){return[i.cx,i.cy]})}s.diff(l).add(function(h){var d=s.getItemLayout(h);if(d){var v=new Tr,g=new Dr,m={shape:{points:d}};v.shape.points=f(d),g.shape.points=f(d),St(v,m,r,h),St(g,m,r,h);var y=new Ce,_=new Ce;y.add(g),y.add(v),y.add(_),c(g.shape.points,d,_,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,d){var v=l.getItemGraphicEl(d),g=v.childAt(0),m=v.childAt(1),y=v.childAt(2),_={shape:{points:s.getItemLayout(h)}};_.shape.points&&(c(g.shape.points,_.shape.points,y,s,h,!1),ta(m),ta(g),Je(g,_,r),Je(m,_,r),s.setItemGraphicEl(h,v))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,d){var v=s.getItemModel(d),g=h.childAt(0),m=h.childAt(1),y=h.childAt(2),_=s.getItemVisual(d,"style"),b=_.fill;o.add(h),g.useStyle(ye(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),vr(g,v,"lineStyle"),vr(m,v,"areaStyle");var S=v.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();m.ignore=w,M(["emphasis","select","blur"],function(T){var D=v.getModel([T,"areaStyle"]),E=D.isEmpty()&&D.parentModel.isEmpty();m.ensureState(T).ignore=E&&w}),m.useStyle(ye(S.getAreaStyle(),{fill:b,opacity:.7,decal:_.decal}));var x=v.getModel("emphasis"),C=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Jt){var D=T.style;T.useStyle(W({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=we(C);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),d);(A==null||isNaN(A))&&(A=""),gr(T,Qt(v),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:b,defaultOpacity:_.opacity})}),Tt(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(st),HJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return bu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.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=JM(this,r);return er("section",{header:u,sortBlocks:!0,blocks:K(s,function(f){var h=i.get(i.mapDimension(f.dim),r);return er("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(K(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)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(ct),Zf=wL.value;function kv(t,e){return ye({show:e},t)}var WJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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"),h=this.get("triggerEvent"),d=K(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=ye({color:v.color},l));var m=ke(we(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:h},!1);if(ie(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else de(c)&&(m.name=c(m.name,m));var _=new rt(m,null,this.ecModel);return It(_,mu.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ke({lineStyle:{color:"#bbb"}},Zf.axisLine),axisLabel:kv(Zf.axisLabel,!1),axisTick:kv(Zf.axisTick,!1),splitLine:kv(Zf.splitLine,!0),splitArea:kv(Zf.splitArea,!0),indicator:[]},e}(Ve),UJ=["axisLine","axisTickLabel","axisName"],YJ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=K(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Gr(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(UJ,o.add,o),this.group.add(o.getGroup())},this)},e.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"),h=l.get("color"),d=u.get("color"),v=Z(h)?h:[h],g=Z(d)?d:[d],m=[],y=[];function _(N,P,B){var V=B%P.length;return N[V]=N[V]||[],V}if(i==="circle")for(var b=a[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<b.length;x++){if(c){var C=_(m,v,x);m[C].push(new Ma({shape:{cx:S,cy:w,r:b[x].coord}}))}if(f&&x<b.length-1){var C=_(y,g,x);y[C].push(new Gl({shape:{cx:S,cy:w,r0:b[x].coord,r:b[x+1].coord}}))}}else for(var T,D=K(a,function(N,P){var B=N.getTicksCoords();return T=T==null?B.length-1:Math.min(B.length-1,T),K(B,function(V){return n.coordToPoint(V.coord,P)})}),E=[],x=0;x<=T;x++){for(var A=[],I=0;I<a.length;I++)A.push(D[I][x]);if(A[0]?A.push(A[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),c){var C=_(m,v,x);m[C].push(new Dr({shape:{points:A}}))}if(f&&E){var C=_(y,g,x-1);y[C].push(new Tr({shape:{points:A.concat(E)}}))}E=A.slice().reverse()}var k=l.getLineStyle(),L=u.getAreaStyle();M(y,function(N,P){this.group.add(cn(N,{style:ye({stroke:"none",fill:g[P%g.length]},L),silent:!0}))},this),M(m,function(N,P){this.group.add(cn(N,{style:ye({fill:"none",stroke:v[P%v.length]},k),silent:!0}))},this)},e.type="radar",e}(_t),ZJ=function(t){F(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(Nn),XJ=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new ZJ(o,new pi);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[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))]},t.prototype.resize=function(e,r){var n=e.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=ne(n[0],a),this.cy=ne(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(ie(s)||Ke(s))&&(s=[0,s]),this.r0=ne(s[0],o),this.r=ne(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)},t.prototype.update=function(e,r){var n=this._indicatorAxes,a=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.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 pi;o.setExtent(0,i),o.setInterval(1),M(n,function(s,l){EL(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent("radar",function(a){var i=new t(a,e,r);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},t.dimensions=[],t}();function jJ(t){t.registerCoordinateSystem("radar",XJ),t.registerComponentModel(WJ),t.registerComponentView(YJ),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function KJ(t){Be(jJ),t.registerChartView(GJ),t.registerSeriesModel(HJ),t.registerLayout(zJ),t.registerProcessor(Wf("radar")),t.registerPreprocessor($J)}var GL="\0_ec_interaction_mutex";function qJ(t,e,r){var n=K1(t);n[e]=r}function JJ(t,e,r){var n=K1(t),a=n[e];a===r&&(n[e]=null)}function HL(t,e){return!!K1(t)[e]}function K1(t){return t[GL]||(t[GL]={})}aa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},kt);var Xf=function(t){F(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var a=oe(n._mousedownHandler,n),i=oe(n._mousemoveHandler,n),o=oe(n._mouseupHandler,n),s=oe(n._mousewheelHandler,n),l=oe(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=ye(we(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 e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(r){this.pointerChecker=r},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!tD(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)}},e.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Lv("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||HL(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&&ri(r.event),WL(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){tD(r)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(r){var n=Lv("zoomOnMouseWheel",r,this._opt),a=Lv("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;q1(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);q1(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!HL(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;q1(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(_n);function q1(t,e,r,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(ri(n.event),WL(t,e,r,n,a))}function WL(t,e,r,n,a){a.isAvailableBehavior=oe(Lv,null,r,n),t.trigger(e,a)}function Lv(t,e,r){var n=r[t];return!t||n&&(!ie(n)||e.event[n+"Key"])}function J1(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function Q1(t,e,r,n){var a=t.target,i=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.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 QJ={axisPointer:1,tooltip:1,brush:1};function Nv(t,e,r){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!QJ.hasOwnProperty(n.mainType)&&a&&a.model!==r}function UL(t){if(ie(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var r=t;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var eb,Pv={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"},YL=$e(Pv),Ov={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ZL=$e(Ov),eQ=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,r){r=r||{};var n=UL(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new Ce;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),hn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;nQ(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=Rv(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=tN(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=a;a=new Ce,a.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new We({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},t.prototype._parseNode=function(e,r,n,a,i,o){var s=e.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=eb[s];if(c&&le(eb,s)){l=c.call(this,e,r);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var d=XL[s];if(d&&le(XL,s)){var v=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,r){var n=new Rl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});On(r,n),hn(e,n,this._defsUsePending,!1,!1),tQ(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},t.internalField=function(){eb={g:function(e,r){var n=new Ce;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n},rect:function(e,r){var n=new We;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,r){var n=new Ma;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,r){var n=new Xt;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,r){var n=new ef;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,r){var n=e.getAttribute("points"),a;n&&(a=qL(n));var i=new Tr({shape:{points:a||[]},silent:!0});return On(r,i),hn(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,r){var n=e.getAttribute("points"),a;n&&(a=qL(n));var i=new Dr({shape:{points:a||[]},silent:!0});return On(r,i),hn(e,i,this._defsUsePending,!1,!1),i},image:function(e,r){var n=new Jt;return On(r,n),hn(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,r){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Ce;return On(r,s),hn(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,r){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Ce;return On(r,s),hn(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,r){var n=e.getAttribute("d")||"",a=d2(n);return On(r,a),hn(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),XL={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),a=parseInt(t.getAttribute("y2")||"0",10),i=new Wl(e,r,n,a);return jL(t,i),KL(t,i),i},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),a=new L0(e,r,n);return jL(t,a),KL(t,a),a}};function jL(t,e){var r=t.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(e.global=!0)}function KL(t,e){for(var r=t.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={};eN(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function On(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ye(e.__inheritedStyle,t.__inheritedStyle))}function qL(t){for(var e=Rv(t),r=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);r.push([a,i])}return r}function hn(t,e,r,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};t.nodeType===1&&(oQ(t,e),eN(t,o,s),n||sQ(t,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=JL(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=JL(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=K(Rv(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function tQ(t,e){var r=e.__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"),t.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var rQ=/^url\(\s*#(.*?)\)/;function JL(t,e,r,n){var a=r&&r.match(rQ);if(a){var i=yn(a[1]);n.push([t,e,i]);return}return r==="none"&&(r=null),r}function nQ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n[0].style[n[1]]=t[n[2]]}}var aQ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Rv(t){return t.match(aQ)||[]}var iQ=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,tb=Math.PI/180;function oQ(t,e){var r=t.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(iQ,function(f,h,d){return n.push(h,d),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Rv(o);switch(a=a||Zr(),s){case"translate":Xn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Cd(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ui(a,a,-parseFloat(l[0])*tb,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tb);_a(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*tb);_a(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}}e.setLocalTransform(a)}}var QL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function eN(t,e,r){var n=t.getAttribute("style");if(n){QL.lastIndex=0;for(var a;(a=QL.exec(n))!=null;){var i=a[1],o=le(Pv,i)?Pv[i]:null;o&&(e[o]=a[2]);var s=le(Ov,i)?Ov[i]:null;s&&(r[s]=a[2])}}}function sQ(t,e,r){for(var n=0;n<YL.length;n++){var a=YL[n],i=t.getAttribute(a);i!=null&&(e[Pv[a]]=i)}for(var n=0;n<ZL.length;n++){var a=ZL[n],i=t.getAttribute(a);i!=null&&(r[Ov[a]]=i)}}function tN(t,e){var r=e.width/t.width,n=e.height/t.height,a=Math.min(r,n);return{scale:a,x:-(t.x+t.width/2)*a+(e.x+e.width/2),y:-(t.y+t.height/2)*a+(e.y+e.height/2)}}function lQ(t,e){var r=new eQ;return r.parse(t,e)}var uQ=fe(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),cQ=function(){function t(e,r){this.type="geoSVG",this._usedGraphicMap=fe(),this._freedGraphics=[],this._mapName=e,this._parsedXML=UL(r)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=hQ(e.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var r,n;try{r=e&&lQ(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,_e(n!=null)}catch(m){throw new Error(`Invalid svg format
64
+ `+m.message)}var a=new Ce;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,h=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var d=n.getBoundingRect();u==null&&(u=d.x,f=d.width),c==null&&(c=d.y,h=d.height)}l=this._boundingRect=new Pe(u,c,f,h)}if(s){var v=tN(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}a.setClipPath(new We({shape:l.plain()}));var g=[];return M(r.named,function(m){uQ.get(m.svgNodeTagLower)!=null&&(g.push(m),fQ(m.el))}),{root:a,boundingRect:l,named:g}},t.prototype.useGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(e,n),n)},t.prototype.freeGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);n&&(r.removeKey(e),this._freedGraphics.push(n))},t}();function fQ(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function hQ(t){var e=[],r=fe();return M(t,function(n){if(n.namedFrom==null){var a=new Jj(n.name,n.el);e.push(a),r.set(n.name,a)}}),{regions:e,regionsMap:r}}for(var rb=[126,25],rN="南海诸岛",Ys=[[[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]]],Zs=0;Zs<Ys.length;Zs++)for(var wu=0;wu<Ys[Zs].length;wu++)Ys[Zs][wu][0]/=10.5,Ys[Zs][wu][1]/=-10.5/.75,Ys[Zs][wu][0]+=rb[0],Ys[Zs][wu][1]+=rb[1];function dQ(t,e){if(t==="china"){for(var r=0;r<e.length;r++)if(e[r].name===rN)return;e.push(new UI(rN,K(Ys,function(n){return{type:"polygon",exterior:n}}),rb))}}var pQ={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function vQ(t,e){if(t==="china"){var r=pQ[e.name];if(r){var n=e.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),e.setCenter(n)}}}var gQ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function mQ(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:gQ[0]})}var yQ="name",_Q=function(){function t(e,r,n){this.type="geoJSON",this._parsedMap=fe(),this._mapName=e,this._specialAreas=n,this._geoJSON=SQ(r)}return t.prototype.load=function(e,r){r=r||yQ;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:bQ(a)})}var i=fe(),o=[];return M(n.regions,function(s){var l=s.name;e&&le(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Pe(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var r=this._mapName,n=this._geoJSON,a;try{a=n?p1(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
65
+ `+i.message)}return dQ(r,a),M(a,function(i){var o=i.name;vQ(r,i),mQ(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function bQ(t){for(var e,r=0;r<t.length;r++){var n=t[r].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function SQ(t){return ie(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var jf=fe();const vi={registerMap:function(t,e,r){if(e.svg){var n=new cQ(t,e.svg);jf.set(t,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?r=e.specialAreas:a=e;var n=new _Q(t,a,r);jf.set(t,n)}},getGeoResource:function(t){return jf.get(t)},getMapForUser:function(t){var e=jf.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,r){var n=jf.get(t);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,r)}};var nb=["rect","circle","line","ellipse","polygon","polyline","path"],wQ=fe(nb),xQ=fe(nb.concat(["g"])),CQ=fe(nb.concat(["g"])),nN=je();function Vv(t){var e=t.getItemStyle(),r=t.get("areaColor");return r!=null&&(e.fill=r),e}function aN(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var iN=function(){function t(e){var r=new Ce;this.uid=Kl("ec_map_draw"),this._controller=new Xf(e.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Ce),r.add(this._svgGroup=new Ce)}return t.prototype.draw=function(e,r,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,d=f.roam,v=!u.childAt(0)||i;v?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Je(c,d,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,r,n),this._updateMapSelectHandler(e,u,n,a)},t.prototype._buildGeoJSON=function(e){var r=this._regionsGroupByName=fe(),n=fe(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,v){return v&&(d=v(d)),d&&[d[0]*i.scaleX+i.x,d[1]*i.scaleY+i.y]}function f(d){for(var v=[],g=!u&&l&&l.project,m=0;m<d.length;++m){var y=c(d[m],g);y&&v.push(y)}return v}function h(d){return{shape:{points:f(d)}}}a.removeAll(),M(e.geo.regions,function(d){var v=d.name,g=r.get(v),m=n.get(v)||{},y=m.dataIdx,_=m.regionModel;if(!g){g=r.set(v,new Ce),a.add(g),y=s?s.indexOfName(v):null,_=e.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=[],w=[];M(d.geometries,function(T){if(T.type==="polygon"){var D=[T.exterior].concat(T.interiors||[]);u&&(D=fN(D,u)),M(D,function(A){S.push(new Tr(h(A)))})}else{var E=T.points;u&&(E=fN(E,u,!0)),M(E,function(A){w.push(new Dr(h(A)))})}});var x=c(d.getCenter(),l&&l.project);function C(T,D){if(T.length){var E=new vp({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});g.add(E),oN(e,E,y,_),sN(e,E,v,_,o,y,x),D&&(aN(E),M(E.states,aN))}}C(S),C(w,!0)}),r.each(function(d,v){var g=n.get(v),m=g.dataIdx,y=g.regionModel;lN(e,d,v,y,o,m),uN(e,d,v,y,o),cN(e,d,v,y,o)},this)},t.prototype._buildSVG=function(e){var r=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=fe(),i=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,d=l.getRegionModel(s);wQ.get(c)!=null&&f instanceof Cn&&oN(e,f,h,d),f instanceof Cn&&(f.culling=!0);var v=d.get("silent",!0);if(v!=null&&(f.silent=v),f.z2EmphasisLift=0,!o.namedFrom&&(CQ.get(c)!=null&&sN(e,f,s,d,l,h,null),lN(e,f,s,d,l,h),uN(e,f,s,d,l),xQ.get(c)!=null)){var g=cN(e,f,s,d,l);g==="self"&&(i=!0);var m=a.get(s)||a.set(s,[]);m.push(f)}},this),this._enableBlurEntireSVG(i,e)},t.prototype._enableBlurEntireSVG=function(e,r){if(e&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ps(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,r){if(e==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var r=vi.getGeoResource(e);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var r=vi.getGeoResource(e);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,r,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,J1(o,u.dx,u.dy),n.dispatchAction(W(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Q1(o,u.scale,u.originX,u.originY),n.dispatchAction(W(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])&&!Nv(u,n,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var r=e.getTextContent();r&&(r.ignore=nN(r).ignore)})},t.prototype._updateMapSelectHandler=function(e,r,n,a){var i=this;r.off("mousedown"),r.off("click"),e.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},t}();function oN(t,e,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Vv(a),u=Vv(i),c=Vv(s),f=Vv(o),h=t.data;if(h){var d=h.getItemVisual(r,"style"),v=h.getItemVisual(r,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),v&&(l.decal=fu(v,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,ps(e)}function sN(t,e,r,n,a,i,o){var s=t.data,l=t.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,h=void 0;(!s||i>=0)&&(h=a);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;gr(e,Qt(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var v=e.getTextContent();if(v&&(nN(v).ignore=v.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function lN(t,e,r,n,a,i){t.data?t.data.setItemGraphicEl(i,e):Ee(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function uN(t,e,r,n,a){t.data||_s({el:e,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function cN(t,e,r,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Tt(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&i7(e,a,r),o}function fN(t,e,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({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(t,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 TQ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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 iN(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)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.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,h=new Ma({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Bl+1)});if(!f){var d=r.mainSeries.getData(),v=i.getName(l),g=d.indexOfName(v),m=i.getItemModel(l),y=m.getModel("label"),_=d.getItemGraphicEl(g);gr(h,Qt(m),{labelFetcher:{getFormattedLabel:function(b,S){return r.getFormattedLabel(g,S)}},defaultText:v}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),_.onHoverStateChange=function(b){fp(h,b)}}o.add(h)}}})},e.type="map",e}(st),DQ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.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 e.prototype.getInitialData=function(r){for(var n=bu(this,{coordDimensions:["value"],encodeDefaulter:Ae(a_,this)}),a=fe(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=vi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(c){var f=c.name,h=a.get(f),d=c.properties&&c.properties.echartsStyle,v;h==null?(v={name:f},i.push(v)):v=n.getRawDataItem(h),d&&ke(v,d)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},e.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},e.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),h=i.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return er("section",{header:u.join(", "),noHeader:!u.length,blocks:[er("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=Rt(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},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(ct);function EQ(t,e){var r={};return M(t,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)})}),t[0].map(t[0].mapDimension("value"),function(n,a){for(var i="ec-"+t[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 e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function MQ(t){var e={};t.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(e[a]=e[a]||[]).push(r)}),M(e,function(r,n){for(var a=EQ(K(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 AQ(t){var e={};t.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||e[n])){var a={};M(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var d=a[f]||0,v=s.dataToPoint(h.getCenter());a[f]=d+1,l.setItemLayout(c,{point:v,offset:d})}})});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)}),e[n]=!0}})}var hN=ir,Kf=function(t){F(e,t);function e(r){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ai,n._rawTransformable=new ai,n.name=r,n}return e.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new Pe(r,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new Pe(r,n,a,i)},e.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Pe(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(r,n){r&&(this._center=[ne(r[0],n.getWidth()),ne(r[1],n.getHeight())],this._updateCenterAndZoom())},e.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()},e.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ir([],i,r),a=ir([],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()},e.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),xd(this.transform||(this.transform=[]),n.transform||Zr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Yo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new ai;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}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},e.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?hN(a,r,i):Sr(a,r)},e.prototype.pointToData=function(r){var n=this.invTransform;return n?hN([],r,n):[r[0],r[1]]},e.prototype.convertToPixel=function(r,n,a){var i=dN(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(r,n,a){var i=dN(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},e.dimensions=["x","y"],e}(ai);function dN(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var IQ={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},pN=["lng","lat"],ab=function(t){F(e,t);function e(r,n,a){var i=t.call(this,r)||this;i.dimensions=pN,i.type="geo",i._nameCoordMap=fe(),i.map=n;var o=a.projection,s=vi.load(n,a.nameMap,a.nameProperty),l=vi.getGeoResource(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,f=IQ[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Ct("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"&&Ct("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var h;if(o)for(var d=0;d<c.length;d++){var v=c[d].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:De(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.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 Pe(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(r){return this._regionsMap.get(r)},e.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]}},e.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},e.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},e.prototype.dataToPoint=function(r,n,a){if(ie(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},e.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},e.prototype.pointToProjected=function(r){return t.prototype.pointToData.call(this,r)},e.prototype.projectedToPoint=function(r,n,a){return t.prototype.dataToPoint.call(this,r,n,a)},e.prototype.convertToPixel=function(r,n,a){var i=vN(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(r,n,a){var i=vN(n);return i===this?i.pointToData(a):null},e}(Kf);It(ab,Kf);function vN(t){var e=t.geoModel,r=t.seriesModel;return e?e.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",$t).models[0]||{}).coordinateSystem:null}function gN(t,e){var r=t.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(x,C,T,D){for(var E=T-x,A=D-C,I=0;I<=100;I++){var k=I/100,L=i.project([x+E*k,C+A*k]);ei(n,n,L),ti(a,a,L)}};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(),h=t.get("layoutCenter"),d=t.get("layoutSize"),v=e.getWidth(),g=e.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,_,b;h&&d&&(_=[ne(h[0],v),ne(h[1],g)],b=ne(d,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 w=t.getBoxLayoutParams();w.aspect=m,S=Gt(w,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function kQ(t,e){M(e.get("geoCoord"),function(r,n){t.addGeoCoord(n,r)})}var LQ=function(){function t(){this.dimensions=pN}return t.prototype.create=function(e,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new ab(l+s,l,W({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=gN,u.resize(o,r)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.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=K(o,function(c){return c.get("nameMap")}),u=new ab(s,s,W({nameMap:yd(l)},a(o[0])));u.zoomLimit=Pt.apply(null,K(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=gN,u.resize(o[0],r),M(o,function(c){c.coordinateSystem=u,kQ(u,c)})}),n},t.prototype.getFilledRegions=function(e,r,n,a){for(var i=(e||[]).slice(),o=fe(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=vi.load(r,n,a);return M(l.regions,function(u){var c=u.name,f=o.get(c),h=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),h&&ke(f,h)}),i},t}(),mN=new LQ,NQ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,a){var i=vi.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),ts(r,"label",["show"])},e.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=mN.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=mn(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new rt(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},fe()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new rt(null,this,this.ecModel)},e.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(de(i))return o.status=n,i(o);if(ie(i))return i.replace("{a}",r??"")},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.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}},e.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},e.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},e.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},e.type="geo",e.layoutMode="box",e.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:[]},e}(Ve);function yN(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function ib(t,e,r,n){var a=t.getZoom(),i=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(yN(t,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}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),f=(e.originY-t.y)*(o-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(yN(t,s),n),t.setZoom(o*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var PQ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.focusBlurEnabled=!0,r}return e.prototype.init=function(r,n){this._api=n},e.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 iN(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)},e.prototype._handleRegionClick=function(r){var n;As(r.target,function(a){return(n=Ee(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Ee(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(_t);function OQ(t,e,r){vi.registerMap(t,e,r)}function _N(t){t.registerCoordinateSystem("geo",mN),t.registerComponentModel(NQ),t.registerComponentView(PQ),t.registerImpl("registerMap",OQ),t.registerImpl("getMap",function(r){return vi.getMapForUser(r)});function e(r,n){n.update="geo:updateSelectStatus",t.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,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.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=ib(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 RQ(t){Be(_N),t.registerChartView(TQ),t.registerSeriesModel(DQ),t.registerLayout(AQ),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,MQ),wA("map",t.registerAction)}function VQ(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[e],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 BQ(t,e){var r=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(r.length){$Q(t);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-i):t.hierNode.prelim=i}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=GQ(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)}function FQ(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function bN(t){return arguments.length?t:UQ}function qf(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function zQ(t,e){return Gt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $Q(t){for(var e=t.children,r=e.length,n=0,a=0;--r>=0;){var i=e[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function GQ(t,e,r,n){if(e){for(var a=t,i=t,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=ob(s),i=sb(i),s&&i;){a=ob(a),o=sb(o),a.hierNode.ancestor=t;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);h>0&&(WQ(HQ(s,t,r),t,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!ob(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!sb(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=t)}return r}function ob(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function sb(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function HQ(t,e,r){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:r}function WQ(t,e,r){var n=r/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,t.hierNode.change+=n}function UQ(t,e){return t.parentNode===e.parentNode?1:2}var YQ=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),ZQ=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YQ},e.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,h=ne(n.forkPosition,1),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[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]),d[c]=g[c],r.lineTo(d[0],d[1])}},e}(ze),XQ=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._mainGroup=new Ce,r}return e.prototype.init=function(r,n){this._controller=new Xf(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.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){SN(i,c)&&wN(i,c,null,s,r)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!SN(i,c)){h&&TN(u,f,h,s,r);return}wN(i,c,h,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&TN(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},e.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(f){var h=a.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];ip(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 Kf;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},e.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 h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!Nv(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){J1(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Q1(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()})},e.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.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},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(st);function SN(t,e){var r=t.getItemLayout(e);return r&&!isNaN(r.x)&&!isNaN(r.y)}function wN(t,e,r,n,a){var i=!r,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=t.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=t.getItemGraphicEl(f.dataIndex),d=f.getLayout(),v=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,g=o.getLayout();i?(r=new Ff(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=g.rawX,r.__radialRawY=g.rawY,n.add(r),t.setItemGraphicEl(e,r),r.__oldX=r.x,r.__oldY=r.y,Je(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,w=void 0;if(g.x===_.x&&o.isExpand===!0&&y.children.length){var x={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(x.y-_.y,x.x-_.x),S<0&&(S=Math.PI*2+S),w=x.x<_.x,w&&(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?(w=g.x<_.x,w&&(S=S-Math.PI)):(w=g.x>_.x,w||(S=S-Math.PI));var C=w?"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 I=s.get(["emphasis","focus"]),k=I==="relative"?xl(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;k&&(Ee(r).focus=k),jQ(a,o,c,r,v,d,g,n),r.__edge&&(r.onHoverStateChange=function(L){if(L!=="blur"){var N=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===jc||fp(r.__edge,L)}})}function jQ(t,e,r,n,a,i,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),h=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==r&&(g||(g=n.__edge=new Hl({shape:lb(c,f,h,a,a)})),Je(g,{shape:lb(c,f,h,i,o)},t));else if(u==="polyline"){if(c==="orthogonal"){if(e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],_=0;_<m.length;_++){var b=m[_].getLayout();y.push([b.x,b.y])}g||(g=n.__edge=new ZQ({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:d}})),Je(g,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(ye({strokeNoScale:!0,fill:null},v)),vr(g,l,"lineStyle"),ps(g),s.add(g))}function xN(t,e,r,n,a){var i=e.tree.root,o=CN(i,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),d=n.get("edgeShape"),v=n.get("layout"),g=n.get("orient"),m=n.get(["lineStyle","curveness"]);h&&(d==="curve"?no(h,{shape:lb(v,g,m,l,l),style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:a}):d==="polyline"&&n.get("layout")==="orthogonal"&&no(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:a}))}}function CN(t,e){for(var r=e.parentNode===t?e:e.parentNode||e,n;n=r.getLayout(),n==null;)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function TN(t,e,r,n,a){var i=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=CN(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};no(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),t.setItemGraphicEl(e,null)},removeOpt:l}),r.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){xN(u,t,n,a,l)}),xN(i,t,n,a,l)}function lb(t,e,r,n,a){var i,o,s,l,u,c,f,h;if(t==="radial"){u=n.rawX,f=n.rawY,c=a.rawX,h=a.rawY;var d=qf(u,f),v=qf(u,f+(h-f)*r),g=qf(c,h+(f-h)*r),m=qf(c,h);return{x1:d.x||0,y1:d.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,h=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*r,o=f,s=c+(u-c)*r,l=h),(e==="TB"||e==="BT")&&(i=u,o=f+(h-f)*r,s=c,l=h+(f-h)*r);return{x1:u,y1:f,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Rn=je();function DN(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,EN(e,r,t),M(r,function(n){M(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Ae(KQ,t))})}),e.wrapMethod("cloneShallow",Ae(JQ,t)),M(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Ae(qQ,t))}),_e(r[e.dataType]===e)}function KQ(t,e){if(tee(this)){var r=W({},Rn(this).datas);r[this.dataType]=e,EN(e,r,t)}else ub(e,this.dataType,Rn(this).mainData,t);return e}function qQ(t,e){return t.struct&&t.struct.update(),e}function JQ(t,e){return M(Rn(e).datas,function(r,n){r!==e&&ub(r.cloneShallow(),n,e,t)}),e}function QQ(t){var e=Rn(this).mainData;return t==null||e==null?e:Rn(e).datas[t]}function eee(){var t=Rn(this).mainData;return t==null?[{data:t}]:K($e(Rn(t).datas),function(e){return{type:e,data:Rn(t).datas[e]}})}function tee(t){return Rn(t).mainData===t}function EN(t,e,r){Rn(t).datas={},M(e,function(n,a){ub(n,a,t,r)})}function ub(t,e,r,n){Rn(r).datas[e]=t,Rn(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=QQ,t.getLinkedDataAll=eee}var ree=function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){de(e)&&(n=r,r=e,e=null),e=e||{},ie(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,r,n);a==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>r&&(r=a.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(e);if(i)return i}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(e);if(i)return i}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),cb=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var a=new t(r),i=[],o=1;s(e);function s(c,f){var h=c.value;o=Math.max(o,Z(h)?h.length:1),i.push(c);var d=new ree(Zt(c.name,""),a);f?nee(d,f):a.root=d,a._nodes.push(d);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],d)}a.root.updateDepthAndHeight(0);var l=pu(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new kr(l,r);return u.initData(i),n&&n(u),DN({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function nee(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}function Jf(t,e,r){if(t&&Re(e,t.type)>=0){var n=r.getData().tree.root,a=t.targetNode;if(ie(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=t.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function MN(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function fb(t,e){var r=MN(t);return Re(r,e)>=0}function Bv(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var aee=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new rt(a,this,this.ecModel),o=cb.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.isExpand||(h.parentModel=i),h})}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 h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.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 er("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Bv(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(ct);function iee(t,e,r){for(var n=[t],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();)e(i,r)}function Qf(t,e){for(var r=[t],n;n=r.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function oee(t,e){t.eachSeriesByType("tree",function(r){see(r,e)})}function see(t,e){var r=zQ(t,e);t.layoutInfo=r;var n=t.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=bN(function(b,S){return(b.parentNode===S.parentNode?1:2)/b.depth})):(a=r.width,i=r.height,o=bN());var s=t.getData().tree.root,l=s.children[0];if(l){VQ(s),iee(l,BQ,o),s.hierNode.modifier=-l.hierNode.prelim,Qf(l,FQ);var u=l,c=l,f=l;Qf(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 h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,v=0,g=0,m=0,y=0;if(n==="radial")v=a/(c.getLayout().x+h+d),g=i/(f.depth-1||1),Qf(l,function(b){m=(b.getLayout().x+d)*v,y=(b.depth-1)*g;var S=qf(m,y);b.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var _=t.getOrient();_==="RL"||_==="LR"?(g=i/(c.getLayout().x+h+d),v=a/(f.depth-1||1),Qf(l,function(b){y=(b.getLayout().x+d)*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+h+d),g=i/(f.depth-1||1),Qf(l,function(b){m=(b.getLayout().x+d)*v,y=_==="TB"?(b.depth-1)*g:i-(b.depth-1)*g,b.setLayout({x:m,y},!0)}))}}}function lee(t){t.eachSeriesByType("tree",function(e){var r=e.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");W(s,o)})})}function uee(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,r,n){r.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=ib(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function cee(t){t.registerChartView(XQ),t.registerSeriesModel(aee),t.registerLayout(oee),t.registerVisual(lee),uee(t)}var AN=["treemapZoomToNode","treemapRender","treemapMove"];function fee(t){for(var e=0;e<AN.length;e++)t.registerAction({type:AN[e],update:"updateView"},kt);t.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=Jf(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=fb(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function IN(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=l_(t.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var hee=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};kN(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new rt({itemStyle:o},this,n);i=r.levels=dee(i,n);var l=K(i||[],function(f){return new rt(f,s,n)},this),u=cb.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),g=v?l[v.depth]:null;return h.parentModel=g||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return er("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Bv(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=fe(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.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)},e.prototype.enableAriaDecal=function(){IN(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.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:[]},e}(ct);function kN(t){var e=0;M(t.children,function(n){kN(n);var a=n.value;Z(a)&&(a=a[0]),e+=a});var r=t.value;Z(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Z(t.value)?t.value[0]=r:t.value=r}function dee(t,e){var r=ut(e.get("color")),n=ut(e.get(["aria","decal","decals"]));if(r){t=t||[];var a,i;M(t,function(s){var l=new rt(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=t[0]||(t[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),t}}var pee=8,LN=8,hb=5,vee=function(){function t(e){this.group=new Ce,e.add(this.group)}return t.prototype.render=function(e,r,n,a){var i=e.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(e,f,s,l,u,c,a),Op(o,f.pos,f.box)}},t.prototype._prepare=function(e,r,n){for(var a=e;a;a=a.parentNode){var i=Zt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+pee*2,r.emptyItemWidth);r.totalWidth+=s+LN,r.renderList.push({node:a,text:i,width:s})}},t.prototype._renderContent=function(e,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=iY(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=a.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var m=d[g],y=m.node,_=m.width,b=m.text;h>f.width&&(h-=_-u,_=u,b=null);var S=new Tr({shape:{points:gee(l,0,_,c,g===d.length-1,g===0)},style:ye(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ue({style:gt(i,{text:b})}),textConfig:{position:"inside"},z2:Bl*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=gt(o,{text:b}),S.ensureState("emphasis").style=v,Tt(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),mee(S,e,y),l+=_+LN}},t.prototype.remove=function(){this.group.removeAll()},t}();function gee(t,e,r,n,a,i){var o=[[a?t:t-hb,e],[t+r,e],[t+r,e+n],[a?t:t-hb,e+n]];return!i&&o.splice(2,0,[t+r+hb,e+n/2]),!a&&o.push([t,e+n/2]),o}function mee(t,e,r){Ee(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Bv(r,e)}}var yee=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:a,easing:i}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._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},t}();function _ee(){return new yee}var db=Ce,NN=We,PN=3,ON="label",RN="upperLabel",bee=Bl*10,See=Bl*2,wee=Bl*3,Xs=as([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),VN=function(t){var e=Xs(t);return e.stroke=e.fill=e.lineWidth=null,e},Fv=je(),xee=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=eh(),r}return e.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Re(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Jf(i,s,r),u=i&&i.type,c=r.layoutInfo,f=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(c),g=r.get("animation"),m=this._doRender(v,r,d);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,m,r,d):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new db,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=eh(),l=eh(),u=this._storage,c=[];function f(_,b,S,w){return Cee(n,l,u,a,s,c,_,b,S,w)}g(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var h=m(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=i.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function g(_,b,S,w,x){w?(b=_,M(_,function(D,E){!D.isRemoved()&&T(E,E)})):new hi(b,_,C,C).add(T).update(T).remove(Ae(T,null)).execute();function C(D){return D.getId()}function T(D,E){var A=D!=null?_[D]:null,I=E!=null?b[E]:null,k=f(A,I,S,x);k&&g(A&&A.viewChildren||[],I&&I.viewChildren||[],k,w,x+1)}}function m(_){var b=eh();return _&&M(_,function(S,w){var x=b[w];M(S,function(C){C&&(x.push(C),Fv(C).willDelete=!0)})}),b}function y(){M(h,function(_){M(_,function(b){b.parent&&b.parent.remove(b)})}),M(c,function(_){_.invisible=!0,_.dirty()})}},e.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(de(o)?0:o)||0,u=(de(s)?null:s)||"cubicOut",c=_ee();M(n.willDeleteEls,function(f,h){M(f,function(d,v){if(!d.invisible){var g=d.parent,m,y=Fv(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=h==="nodeGroup"?{x:_,y:b,style:{opacity:0}}:{shape:{x:_,y:b,width:0,height:0},style:{opacity:0}}}m&&c.add(d,m,l,0,u)}})}),M(this._storage,function(f,h){M(f,function(d,v){var g=n.lastsForAnimation[h][v],m={};g&&(d instanceof Ce?g.oldX!=null&&(m.x=d.x,m.y=d.y,d.x=g.oldX,d.y=g.oldY):(g.oldShape&&(m.shape=W({},d.shape),d.setShape(g.oldShape)),g.fadein?(d.setStyle("opacity",0),m.style={opacity:1}):d.style.opacity!==1&&(m.style={opacity:1})),c.add(d,m,l,0,u))})},this),this._state="animating",c.finished(oe(function(){this._state="ready",n.renderFinally()},this)).start()},e.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 Xf(r.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",oe(this._onPan,this)),n.on("zoom",oe(this._onZoom,this)));var i=new Pe(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>PN||Math.abs(r.dy)>PN)){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}})}},e.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 Pe(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 h=u.min||0,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,a-=g.y;var m=Zr();Xn(m,m,[-n,-a]),Cd(m,m,[v,v]),Xn(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}})}},e.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&&Np(u,c)}}}}},this)},e.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 vee(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(fb(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.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},e.type="treemap",e}(st);function eh(){return{nodeGroup:[],background:[],content:[]}}function Cee(t,e,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,v=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),_=s&&s.getRawIndex(),b=o.viewChildren,S=c.upperHeight,w=b&&b.length,x=h.getModel("itemStyle"),C=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),D=h.getModel(["select","itemStyle"]),E=x.get("borderRadius")||0,A=ae("nodeGroup",db);if(!A)return;if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),Fv(A).nodeWidth=d,Fv(A).nodeHeight=v,c.isAboveViewRoot)return A;var I=ae("background",NN,u,See);I&&Y(A,I,w&&c.upperLabelHeight);var k=h.getModel("emphasis"),L=k.get("focus"),N=k.get("blurScope"),P=k.get("disabled"),B=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(w)ro(A)&&vs(A,!1),I&&(vs(I,!P),f.setItemGraphicEl(o.dataIndex,I),D0(I,B,N));else{var V=ae("content",NN,u,wee);V&&z(A,V),I.disableMorphing=!0,I&&ro(I)&&vs(I,!1),vs(A,!P),f.setItemGraphicEl(o.dataIndex,A);var G=h.getShallow("cursor");G&&V.attr("cursor",G),D0(A,B,N)}return A;function Y(Me,he,Ie){var ue=Ee(he);if(ue.dataIndex=o.dataIndex,ue.seriesIndex=t.seriesIndex,he.setShape({x:0,y:0,width:d,height:v,r:E}),m)$(he);else{he.invisible=!1;var me=o.getVisual("style"),nt=me.stroke,Ye=VN(x);Ye.fill=nt;var pe=Xs(C);pe.fill=C.get("borderColor");var He=Xs(T);He.fill=T.get("borderColor");var xt=Xs(D);if(xt.fill=D.get("borderColor"),Ie){var ar=d-2*g;q(he,nt,me.opacity,{x:g,y:0,width:ar,height:S})}else he.removeTextContent();he.setStyle(Ye),he.ensureState("emphasis").style=pe,he.ensureState("blur").style=He,he.ensureState("select").style=xt,ps(he)}Me.add(he)}function z(Me,he){var Ie=Ee(he);Ie.dataIndex=o.dataIndex,Ie.seriesIndex=t.seriesIndex;var ue=Math.max(d-2*g,0),me=Math.max(v-2*g,0);if(he.culling=!0,he.setShape({x:g,y:g,width:ue,height:me,r:E}),m)$(he);else{he.invisible=!1;var nt=o.getVisual("style"),Ye=nt.fill,pe=VN(x);pe.fill=Ye,pe.decal=nt.decal;var He=Xs(C),xt=Xs(T),ar=Xs(D);q(he,Ye,nt.opacity,null),he.setStyle(pe),he.ensureState("emphasis").style=He,he.ensureState("blur").style=xt,he.ensureState("select").style=ar,ps(he)}Me.add(he)}function $(Me){!Me.invisible&&i.push(Me)}function q(Me,he,Ie,ue){var me=h.getModel(ue?RN:ON),nt=Zt(h.get("name"),null),Ye=me.getShallow("show");gr(Me,Qt(h,ue?RN:ON),{defaultText:Ye?nt:null,inheritColor:he,defaultOpacity:Ie,labelFetcher:t,labelDataIndex:o.dataIndex});var pe=Me.getTextContent();if(pe){var He=pe.style,xt=bd(He.padding||0);ue&&(Me.setTextConfig({layoutRect:ue}),pe.disableLabelLayout=!0),pe.beforeUpdate=function(){var Ut=Math.max((ue?ue.width:Me.shape.width)-xt[1]-xt[3],0),en=Math.max((ue?ue.height:Me.shape.height)-xt[0]-xt[2],0);(He.width!==Ut||He.height!==en)&&pe.setStyle({width:Ut,height:en})},He.truncateMinChar=2,He.lineOverflow="truncate",J(He,ue,c);var ar=pe.getState("emphasis");J(ar?ar.style:null,ue,c)}}function J(Me,he,Ie){var ue=Me?Me.text:null;if(!he&&Ie.isLeafRoot&&ue!=null){var me=t.get("drillDownIcon",!0);Me.text=me?me+" "+ue:ue}}function ae(Me,he,Ie,ue){var me=_!=null&&r[Me][_],nt=a[Me];return me?(r[Me][_]=null,Oe(nt,me)):m||(me=new he,me instanceof Cn&&(me.z2=Tee(Ie,ue)),Qe(nt,me)),e[Me][y]=me}function Oe(Me,he){var Ie=Me[y]={};he instanceof db?(Ie.oldX=he.x,Ie.oldY=he.y):Ie.oldShape=W({},he.shape)}function Qe(Me,he){var Ie=Me[y]={},ue=o.parentNode,me=he instanceof Ce;if(ue&&(!n||n.direction==="drillDown")){var nt=0,Ye=0,pe=a.background[ue.getRawIndex()];!n&&pe&&pe.oldShape&&(nt=pe.oldShape.width,Ye=pe.oldShape.height),me?(Ie.oldX=0,Ie.oldY=Ye):Ie.oldShape={x:nt,y:Ye,width:0,height:0}}Ie.fadein=!me}}function Tee(t,e){return t*bee+e}var th=M,Dee=ve,zv=-1,rr=function(){function t(e){var r=e.mappingMethod,n=e.type,a=this.option=we(e);this.type=n,this.mappingMethod=r,this._normalizeData=Aee[r];var i=t.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(pb(a),Eee(a)):r==="category"?a.categories?Mee(a):pb(a,!0):(_e(r!=="linear"||a.dataExtent),pb(a))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return oe(this._normalizeData,this)},t.listVisualTypes=function(){return $e(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){ve(e)?M(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var a,i=Z(e)?[]:ve(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},t.retrieveVisuals=function(e){var r={},n;return e&&th(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(Dee(e)){var r=[];th(e,function(n,a){r.push(a)}),e=r}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,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===e||ie(l)&&l===e+"")return o;n&&h(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(Gv(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Gv(f[0],c[0],e))return o}else if(Gv(f[0],c[0],e)&&Gv(f[1],e,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:a;function h(d,v){var g=Math.abs(d-e);g<i&&(i=g,a=v)}},t.visualHandlers={color:{applyVisual:rh("color"),getColorMapper:function(){var e=this.option;return oe(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),nh.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=Nc(r,e.parsedVisual,a),i?a:Kn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Kn(Nc(e,this.option.parsedVisual),"rgba")},category:nh,piecewise:function(e,r){var n=gb.call(this,r);return n==null&&(n=Kn(Nc(e,this.option.parsedVisual),"rgba")),n},fixed:js}},colorHue:$v(function(e,r){return Ml(e,r)}),colorSaturation:$v(function(e,r){return Ml(e,null,r)}),colorLightness:$v(function(e,r){return Ml(e,null,null,r)}),colorAlpha:$v(function(e,r){return Pc(e,r)}),decal:{applyVisual:rh("decal"),_normalizedToVisual:{linear:null,category:nh,piecewise:null,fixed:null}},opacity:{applyVisual:rh("opacity"),_normalizedToVisual:vb([0,1])},liftZ:{applyVisual:rh("liftZ"),_normalizedToVisual:{linear:js,category:js,piecewise:js,fixed:js}},symbol:{applyVisual:function(e,r,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:BN,category:nh,piecewise:function(e,r){var n=gb.call(this,r);return n==null&&(n=BN.call(this,e)),n},fixed:js}},symbolSize:{applyVisual:rh("symbolSize"),_normalizedToVisual:vb([0,1])}},t}();function Eee(t){var e=t.pieceList;t.hasSpecialVisual=!1,M(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function Mee(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(th(e,function(o,s){r[o]=s}),!Z(n)){var a=[];ve(n)?th(n,function(o,s){var l=r[s];a[l??zv]=o}):a[zv]=n,n=FN(t,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete r[e[i]],e.pop())}function pb(t,e){var r=t.visual,n=[];ve(r)?th(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(t.type)&&(n[1]=n[0]),FN(t,n)}function $v(t){return{applyVisual:function(e,r,n){var a=this.mapValueToVisual(e);n("color",t(r("color"),a))},_normalizedToVisual:vb([0,1])}}function BN(t){var e=this.option.visual;return e[Math.round(at(t,[0,1],[0,e.length-1],!0))]||{}}function rh(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function nh(t){var e=this.option.visual;return e[this.option.loop&&t!==zv?t%e.length:t]}function js(){return this.option.visual[0]}function vb(t){return{linear:function(e){return at(e,t,this.option.visual,!0)},category:nh,piecewise:function(e,r){var n=gb.call(this,r);return n==null&&(n=at(e,t,this.option.visual,!0)),n},fixed:js}}function gb(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=rr.findPieceIndex(t,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function FN(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=K(e,function(r){var n=Or(r);return!n&&process.env.NODE_ENV!=="production"&&Ct("'"+r+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var Aee={linear:function(t){return at(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=rr.findPieceIndex(t,e,!0);if(r!=null)return at(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??zv},fixed:kt};function Gv(t,e,r){return t?e<=r:e<r}var Iee="itemStyle",zN=je();const kee={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||$N(r,{},t.getViewRoot().getAncestors(),t)}};function $N(t,e,r,n){var a=t.getModel(),i=t.getLayout(),o=t.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Iee),l=Lee(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=GN(l),c=Nee(f,h)),u.stroke=c;var d=t.viewChildren;if(!d||!d.length)h=GN(l),u.fill=h;else{var v=Pee(t,a,i,s,l,d);M(d,function(g,m){if(g.depth>=r.length||g===r[g.depth]){var y=Oee(a,l,g,m,v,n);$N(g,y,r,n)}})}}}function Lee(t,e,r){var n=W({},e),a=r.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=t.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function GN(t){var e=mb(t,"color");if(e){var r=mb(t,"colorAlpha"),n=mb(t,"colorSaturation");return n&&(e=Ml(e,null,null,n)),r&&(e=Pc(e,r)),e}}function Nee(t,e){return e!=null?Ml(e,null,null,t):null}function mb(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function Pee(t,e,r,n,a,i){if(!(!i||!i.length)){var o=yb(e,"color")||a.color!=null&&a.color!=="none"&&(yb(e,"colorAlpha")||yb(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.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 h=new rr(f);return zN(h).drColorMappingBy=c,h}}}function yb(t,e){var r=t.get(e);return Z(r)&&r.length?{name:e,range:r}:null}function Oee(t,e,r,n,a,i){var o=W({},e);if(a){var s=a.type,l=s==="color"&&zN(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var ah=Math.max,Hv=Math.min,HN=Pt,_b=M,WN=["itemStyle","borderWidth"],Ree=["itemStyle","gapWidth"],Vee=["upperLabel","show"],Bee=["upperLabel","height"];const Fee={seriesType:"treemap",reset:function(t,e,r,n){var a=r.getWidth(),i=r.getHeight(),o=t.option,s=Gt(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(HN(s.width,l[0]),a),c=ne(HN(s.height,l[1]),i),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Jf(n,h,t),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=t.getViewRoot(),m=MN(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Uee(t,d,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),UN(g,b,!1,0),S=g.getLayout(),_b(m,function(x,C){var T=(m[C+1]||g).getValue();x.setLayout(W({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var w=t.getData().tree.root;w.setLayout(Yee(s,v,d),!0),t.setLayoutInfo(s),ZN(w,new Pe(-s.x,-s.y,a,i),m,g,0)}};function UN(t,e,r,n){var a,i;if(!t.isRemoved()){var o=t.getLayout();a=o.width,i=o.height;var s=t.getModel(),l=s.get(WN),u=s.get(Ree)/2,c=XN(s),f=Math.max(l,c),h=l-u,d=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=ah(a-2*h,0),i=ah(i-h-d,0);var v=a*i,g=zee(t,s,v,e,r,n);if(g.length){var m={x:h,y:d,width:a,height:i},y=Hv(a,i),_=1/0,b=[];b.area=0;for(var S=0,w=g.length;S<w;){var x=g[S];b.push(x),b.area+=x.getLayout().area;var C=Wee(b,y,e.squareRatio);C<=_?(S++,_=C):(b.area-=b.pop().getLayout().area,YN(b,y,m,u,!1),y=Hv(m.width,m.height),b.length=b.area=0,_=1/0)}if(b.length&&YN(b,y,m,u,!0),!r){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(r=!0)}for(var S=0,w=g.length;S<w;S++)UN(g[S],e,r,n+1)}}}function zee(t,e,r,n,a,i){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return t.viewChildren=[];o=tt(o,function(d){return!d.isRemoved()}),Gee(o,s);var u=Hee(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=$ee(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*r;o[c].setLayout({area:h})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function $ee(t,e,r,n,a){if(!n)return r;for(var i=t.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*e<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function Gee(t,e){return e&&t.sort(function(r,n){var a=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),t}function Hee(t,e,r){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],_b(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Wee(t,e,r){for(var n=0,a=1/0,i=0,o=void 0,s=t.length;i<s;i++)o=t[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?ah(u*n/l,l/(u*a)):1/0}function YN(t,e,r,n,a){var i=e===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=e?t.area/e:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=t.length;f<h;f++){var d=t[f],v={},g=c?d.getLayout().area/c:0,m=v[l[o]]=ah(c-2*n,0),y=r[s[i]]+r[l[i]]-u,_=f===h-1||y<g?y:g,b=v[l[i]]=ah(_-2*n,0);v[s[o]]=r[s[o]]+Hv(n,m/2),v[s[i]]=u+Hv(n,b/2),u+=_,d.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function Uee(t,e,r,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*t.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,h=0,d=f.length;h<d;h++)c+=f[h].getValue();var v=i.getValue();if(v===0)return o;u*=c/v;var g=s.getModel(),m=g.get(WN),y=Math.max(m,XN(g));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>Yy&&(u=Yy),i=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,a*_]}function Yee(t,e,r){if(e)return{x:e.x,y:e.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:t.width/2-o[0],y:t.height/2-o[1]}}function ZN(t,e,r,n,a){var i=t.getLayout(),o=r[a],s=o&&o===t;if(!(o&&!s||a===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new Pe(e.x-i.x,e.y-i.y,e.width,e.height);_b(t.viewChildren||[],function(u){ZN(u,l,r,n,a+1)})}}function XN(t){return t.get(Vee)?t.get(Bee):0}function Zee(t){t.registerSeriesModel(hee),t.registerChartView(xee),t.registerVisual(kee),t.registerLayout(Fee),fee(t)}function Xee(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.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){Ke(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function jee(t){var e={};t.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,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&n.setItemVisual(o,c[f],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){ie(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");W(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)a.setItemVisual(o,f[h],n.getItemVisual(l,f[h]))}})})}function Wv(t){return t instanceof Array||(t=[t,t]),t}function Kee(t){t.eachSeriesByType("graph",function(e){var r=e.getGraph(),n=e.getEdgeData(),a=Wv(e.get("edgeSymbol")),i=Wv(e.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",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Wv(s.getShallow("symbol",!0)),c=Wv(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(W(h,f),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.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 bb="-->",Uv=function(t){return t.get("autoCurveness")||null},jN=function(t,e){var r=Uv(t),n=20,a=[];if(Ke(r))n=r;else if(Z(r)){t.__curvenessList=r;return}e>n&&(n=e);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));t.__curvenessList=a},ih=function(t,e,r){var n=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[r.uid,n,a].join(bb)},KN=function(t){var e=t.split(bb);return[e[0],e[2],e[1]].join(bb)},qee=function(t,e){var r=ih(t.node1,t.node2,e);return e.__edgeMap[r]},Jee=function(t,e){var r=Sb(ih(t.node1,t.node2,e),e),n=Sb(ih(t.node2,t.node1,e),e);return r+n},Sb=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function Qee(t){Uv(t)&&(t.__curvenessList=[],t.__edgeMap={},jN(t))}function ete(t,e,r,n){if(Uv(r)){var a=ih(t,e,r),i=r.__edgeMap,o=i[KN(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 wb(t,e,r,n){var a=Uv(e),i=Z(a);if(!a)return null;var o=qee(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=Jee(t,e);jN(e,u),t.lineStyle=t.lineStyle||{};var c=ih(t.node1,t.node2,e),f=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return f[h+s];var d=KN(c),v=Sb(d,e),g=f[s+v+h];return n?i?a&&a[0]===0?(v+h)%2?g:-g:((v%2?0:1)+h)%2?g:-g:(v+h)%2?g:-g:f[s+v+h]}function qN(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),xb(r,t)}}function xb(t,e){t.eachEdge(function(r,n){var a=nn(r.getModel().get(["lineStyle","curveness"]),-wb(r,e,n,!0),0),i=ya(r.node1.getLayout()),o=ya(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 tte(t,e){t.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(h){o=o.concat(i.mapDimensionsAll(h))});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])}xb(i.graph,r)}else(!n||n==="none")&&qN(r)})}function oh(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var r=t.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*r+1;return i/n}function sh(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var JN=Math.PI,Cb=[];function Tb(t,e,r,n){var a=t.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=t.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 h=a.pointToData(n),d=h[0],v=h[1],g=[d-l,v-u];Uo(g,g),Sc(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var m=t.get(["circular","rotateLabel"]);QN(r,m,l,u)}rte[e](t,s,o,c,l,u,f),s.eachEdge(function(y,_){var b=nn(y.getModel().get(["lineStyle","curveness"]),wb(y,t,_),0),S=ya(y.node1.getLayout()),w=ya(y.node2.getLayout()),x,C=(S[0]+w[0])/2,T=(S[1]+w[1])/2;+b&&(b*=3,x=[l*b+C*(1-b),u*b+T*(1-b)]),y.setLayout([S,w,x])})}}}var rte={value:function(t,e,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(t,e,r,n,a,i,o){var s=0;Cb.length=o;var l=oh(t);e.eachNode(function(f){var h=sh(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=JN/2),Cb[f.dataIndex]=d,s+=d*2});var u=(2*JN-s)/o/2,c=0;e.eachNode(function(f){var h=u+Cb[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=h})}};function QN(t,e,r,n){var a=t.getGraphicEl();if(a){var i=t.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=t.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 h=s.ensureState("emphasis");W(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function nte(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Tb(e,"symbolSize")})}var xu=Sd;function ate(t,e,r){for(var n=t,a=e,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=Gi(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=ya(f.p),f.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,g;return{warmUp:function(){d=h*.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 w=S.n1,x=S.n2;Hi(y,x.p,w.p);var C=bc(y)-S.d,T=x.w/(w.w+x.w);isNaN(T)&&(T=0),Uo(y,y),!w.fixed&&xu(w.p,w.p,y,T*C*d),!x.fixed&&xu(x.p,x.p,y,-(1-T)*C*d)}}for(var b=0;b<_;b++){var D=n[b];D.fixed||(Hi(y,l,D.p),xu(D.p,D.p,y,u*d))}for(var b=0;b<_;b++)for(var w=n[b],E=b+1;E<_;E++){var x=n[E];Hi(y,x.p,w.p);var C=bc(y);C===0&&(jT(y,Math.random()-.5,Math.random()-.5),C=1);var A=(w.rep+x.rep)/C/C;!w.fixed&&xu(w.pp,w.pp,y,A),!x.fixed&&xu(x.pp,x.pp,y,-A)}for(var I=[],b=0;b<_;b++){var D=n[b];D.fixed||(Hi(I,D.p,D.pp),xu(D.p,D.p,I,d),Sr(D.pp,D.p))}d=d*.992;var k=d<.01;g&&g(n,a,k),m&&m(k)}}}function ite(t){t.eachSeriesByType("graph",function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(b){var S=i.getId(b);i.setItemLayout(b,n[S]||[NaN,NaN])}):!l||l==="none"?qN(e):l==="circular"&&Tb(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),d=Z(f)?f:[f,f],v=Z(h)?h:[h,h];v=[v[1],v[0]];var g=i.mapArray("value",function(b,S){var w=i.getItemLayout(S),x=at(b,u,d);return isNaN(x)&&(x=(d[0]+d[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),m=o.mapArray("value",function(b,S){var w=a.getEdgeByIndex(S),x=at(b,c,v);isNaN(x)&&(x=(v[0]+v[1])/2);var C=w.getModel(),T=nn(w.getModel().get(["lineStyle","curveness"]),-wb(w,e,S,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),y=r.getBoundingRect(),_=ate(g,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(b,S){for(var w=0,x=b.length;w<x;w++)b[w].fixed&&Sr(b[w].p,a.getNodeByIndex(w).getLayout())}),_.afterStep(function(b,S,w){for(var x=0,C=b.length;x<C;x++)b[x].fixed||a.getNodeByIndex(x).setLayout(b[x].p),n[i.getId(x)]=b[x].p;for(var x=0,C=S.length;x<C;x++){var T=S[x],D=a.getEdgeByIndex(x),E=T.n1.p,A=T.n2.p,I=D.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Sr(I[0],E),Sr(I[1],A),+T.curveness&&(I[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(I)}}),e.forceLayout=_,e.preservedPoints=n,_.step()}else e.forceLayout=null})}function ote(t,e,r){var n=W(t.getBoxLayoutParams(),{aspect:r});return Gt(n,{width:e.getWidth(),height:e.getHeight()})}function ste(t,e){var r=[];return t.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=[];ip(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=ote(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],d=c.width,v=c.height,g=n.coordinateSystem=new Kf;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,h),g.setViewRect(c.x,c.y,d,v),g.setCenter(n.get("center"),e),g.setZoom(n.get("zoom")),r.push(g)}}),r}var eP=Xt.prototype,Db=Hl.prototype,tP=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(tP);function Eb(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var lte=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tP},e.prototype.buildPath=function(r,n){Eb(n)?eP.buildPath.call(this,r,n):Db.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return Eb(this.shape)?eP.pointAt.call(this,r):Db.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,a=Eb(n)?[n.x2-n.x1,n.y2-n.y1]:Db.tangentAt.call(this,r);return Uo(a,a)},e}(ze),Mb=["fromSymbol","toSymbol"];function rP(t){return"_"+t+"Type"}function nP(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var a=e.getItemVisual(r,t+"Size"),i=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=uu(a),u=Is(o||0,l);return n+l+u+(i||"")+(s||"")}function aP(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var a=e.getItemVisual(r,t+"Size"),i=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=uu(a),u=Is(o||0,l),c=Rt(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=t,c}}function ute(t){var e=new lte({name:"line",subPixelOptimize:!0});return Ab(e.shape,t),e}function Ab(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Ib=function(t){F(e,t);function e(r,n,a){var i=t.call(this)||this;return i._createLine(r,n,a),i}return e.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=ute(o);s.shape.percent=0,St(s,{shape:{percent:1}},i,n),this.add(s),M(Mb,function(l){var u=aP(l,r,n);this.add(u),this[rP(l)]=nP(l,r,n)},this),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Ab(l.shape,s),Je(o,l,i,n),M(Mb,function(u){var c=nP(u,r,n),f=rP(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=aP(u,r,n);this.add(h)}this[f]=c},this),this._updateCommonStl(r,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.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,h=a&&a.focus,d=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"),h=g.get("focus"),d=g.get("blurScope"),c=Qt(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(Mb,function(x){var C=this.childOfName(x);if(C){C.setColor(y),C.style.opacity=m.opacity;for(var T=0;T<Br.length;T++){var D=Br[T],E=o.getState(D);if(E){var A=E.style||{},I=C.ensureState(D),k=I.style||(I.style={});A.stroke!=null&&(k[C.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(k.opacity=A.opacity)}}C.markRedraw()}},this);var _=i.getRawValue(n);gr(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,C){return i.getFormattedLabel(x,C,r.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?Mt(_):_)+""});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 w=S.get("distance");Z(w)||(w=[w,w]),b.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Tt(this,h,d,f)},e.prototype.highlight=function(){li(this)},e.prototype.downplay=function(){ui(this)},e.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");Ab(n.shape,r),n.dirty()},e.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),h=Hi([],f,c);Uo(h,h);function d(E,A){var I=E.__specifiedRotation;if(I==null){var k=l.tangentAt(A);E.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(k[1],k[0]))}else E.attr("rotation",I)}if(n&&(n.setPosition(c),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),d(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),w=[S[1],-S[0]],x=l.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[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=h[0]*y+f[0],i.y=h[1]*_+f[1],v=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+c[0],i.y=-h[1]*_+c[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[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=x[0],i.y=x[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})}},e}(Ce),kb=function(){function t(e){this.group=new Ce,this._LineCtor=e||Ib}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=iP(e);e.diff(i).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=iP(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!cte(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=r.getItemLayout(a);if(Lb(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)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){io(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var a=e.getItemLayout(r);if(Lb(a)){var i=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,i),this.group.add(i)}},t.prototype._doUpdate=function(e,r,n,a,i){var o=e.getItemGraphicEl(n);if(!Lb(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)},t}();function cte(t){return t.animators&&t.animators.length>0}function iP(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Qt(e)}}function oP(t){return isNaN(t[0])||isNaN(t[1])}function Lb(t){return t&&!oP(t[0])&&!oP(t[1])}var Nb=[],Pb=[],Ob=[],Cu=or,Rb=Wi,sP=Math.abs;function lP(t,e,r){for(var n=t[0],a=t[1],i=t[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Nb[0]=Cu(n[0],a[0],i[0],c),Nb[1]=Cu(n[1],a[1],i[1],c);var f=sP(Rb(Nb,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var d=s+u;Pb[0]=Cu(n[0],a[0],i[0],s),Pb[1]=Cu(n[1],a[1],i[1],s),Ob[0]=Cu(n[0],a[0],i[0],d),Ob[1]=Cu(n[1],a[1],i[1],d);var f=Rb(Pb,e)-l;if(sP(f)<.01)break;var v=Rb(Ob,e)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Vb(t,e){var r=[],n=Ic,a=[[],[],[]],i=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[ya(u[0]),ya(u[1])],u[2]&&u.__original.push(ya(u[2])));var h=u.__original;if(u[2]!=null){if(Sr(a[0],h[0]),Sr(a[1],h[2]),Sr(a[2],h[1]),c&&c!=="none"){var d=sh(s.node1),v=lP(a,h[0],d*e);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 d=sh(s.node2),v=lP(a,h[1],d*e);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]}Sr(u[0],a[0]),Sr(u[1],a[2]),Sr(u[2],a[1])}else{if(Sr(i[0],h[0]),Sr(i[1],h[1]),Hi(o,i[1],i[0]),Uo(o,o),c&&c!=="none"){var d=sh(s.node1);Sd(i[0],i[0],o,d*e)}if(f&&f!=="none"){var d=sh(s.node2);Sd(i[1],i[1],o,-d*e)}Sr(u[0],i[0]),Sr(u[1],i[1])}})}function uP(t){return t.type==="view"}var fte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var a=new zf,i=new kb,o=this.group;this._controller=new Xf(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.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(uP(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Je(u,c,r)}Vb(r.getGraph(),oh(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var g=r.get("layout");f.graph.eachNode(function(b){var S=b.dataIndex,w=b.getGraphicEl(),x=b.getModel();if(w){w.off("drag").off("dragend");var C=x.get("draggable");C&&w.on("drag",function(D){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,v),d.setFixed(S),f.setItemLayout(S,[w.x,w.y]);break;case"circular":f.setItemLayout(S,[w.x,w.y]),b.setLayout({fixed:!0},!0),Tb(r,"symbolSize",b,[D.offsetX,D.offsetY]),i.updateLayout(r);break;case"none":default:f.setItemLayout(S,[w.x,w.y]),xb(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(S)}),w.setDraggable(C,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(Ee(w).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var S=b.getGraphicEl(),w=b.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(Ee(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){QN(b,m,y,_)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.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())})})()},e.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 h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!Nv(u,a,r)}),!uP(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){J1(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Q1(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(),Vb(r.getGraph(),oh(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=oh(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(r){Vb(r.getGraph(),oh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(st);function Tu(t){return"_EC_"+t}var hte=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(n[Tu(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new Ks(e,r);return a.hostGraph=this,this.nodes.push(a),n[Tu(e)]=a,a},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[Tu(e)]},t.prototype.addEdge=function(e,r,n){var a=this._nodesMap,i=this._edgesMap;if(Ke(e)&&(e=this.nodes[e]),Ke(r)&&(r=this.nodes[r]),e instanceof Ks||(e=a[Tu(e)]),r instanceof Ks||(r=a[Tu(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new cP(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof Ks&&(e=e.id),r instanceof Ks&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(r,n[i],i)},t.prototype.eachEdge=function(e,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&&e.call(r,n[i],i)},t.prototype.breadthFirstTraverse=function(e,r,n,a){if(r instanceof Ks||(r=this._nodesMap[Tu(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(!e.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(e.call(a,f,l))return;s.push(f),f.__visited=!0}}}},t.prototype.update=function(){for(var e=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=e.count();i<o;i++)n[e.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},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)e.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},t}(),Ks=function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=fe(),r=fe(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.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++)e.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++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:r.keys()}},t}(),cP=function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=fe(),r=fe();e.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++)e.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++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:r.keys()}},t}();function fP(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}It(Ks,fP("hostGraph","data")),It(cP,fP("hostGraph","edgeData"));function hP(t,e,r,n,a){for(var i=new hte(n),o=0;o<t.length;o++)i.addNode(Pt(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,h=c.target;i.addEdge(f,h,u)&&(l.push(c),s.push(Pt(Zt(c.id,null),f+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=La(t,r);else{var g=Ts.get(d),m=g?g.dimensions||[]:[];Re(m,"value")<0&&m.concat(["value"]);var y=pu(t,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new kr(y,r),v.initData(t)}var _=new kr(["value"],r);return _.initData(l,s),a&&a(v,_),DN({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var dte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Uf(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),ts(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){Qee(this);var s=hP(i,a,this,!0,l);return M(s.edges,function(u){ete(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=rt.prototype.getModel;function h(v,g){var m=f.call(this,v,g);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(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}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(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),er("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=eA({series:this,dataIndex:r,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var r=K(this.option.categories||[],function(a){return a.value!=null?a:W({value:0},a)}),n=new kr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(ct),pte={type:"graphRoam",event:"graphRoam",update:"none"};function vte(t){t.registerChartView(fte),t.registerSeriesModel(dte),t.registerProcessor(Xee),t.registerVisual(jee),t.registerVisual(Kee),t.registerLayout(tte),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,nte),t.registerLayout(ite),t.registerCoordinateSystem("graphView",{dimensions:Kf.dimensions,create:ste}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},kt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},kt),t.registerAction(pte,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=ib(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var gte=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),mte=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new gte},e.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)},e}(ze);function yte(t,e){var r=t.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=ne(r[0],e.getWidth()),s=ne(r[1],e.getHeight()),l=ne(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Yv(t,e){var r=t==null?"":t+"";return e&&(ie(e)?r=e.replace("{value}",r):de(e)&&(r=e(t))),r}var _te=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=yte(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},e.prototype.dispose=function(){},e.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"),h=f.get("roundCap"),d=h?Dv:Cr,v=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];p0(y,!l),u=y[0],c=y[1];for(var _=c-u,b=u,S=[],w=0;v&&w<i.length;w++){var x=Math.min(Math.max(i[w][0],0),1);c=u+_*x;var C=new d({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[w][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)},e.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var f=this.group,h=o.cx,d=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"),w=_.get("splitNumber"),x=ne(y.get("length"),v),C=ne(_.get("length"),v),T=s,D=(l-s)/S,E=D/w,A=y.getModel("lineStyle").getLineStyle(),I=_.getModel("lineStyle").getLineStyle(),k=y.get("distance"),L,N,P=0;P<=S;P++){if(L=Math.cos(T),N=Math.sin(T),y.get("show")){var B=k?k+c:c,V=new Xt({shape:{x1:L*(v-B)+h,y1:N*(v-B)+d,x2:L*(v-x-B)+h,y2:N*(v-x-B)+d},style:A,silent:!0});A.stroke==="auto"&&V.setStyle({stroke:i(P/S)}),f.add(V)}if(b.get("show")){var B=b.get("distance")+k,G=Yv(Mt(P/S*(m-g)+g),b.get("formatter")),Y=i(P/S),z=L*(v-x-B)+h,$=N*(v-x-B)+d,q=b.get("rotate"),J=0;q==="radial"?(J=-T+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):q==="tangential"?J=-T-Math.PI/2:Ke(q)&&(J=q*Math.PI/180),J===0?f.add(new Ue({style:gt(b,{text:G,x:z,y:$,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:Y}),silent:!0})):f.add(new Ue({style:gt(b,{text:G,x:z,y:$,verticalAlign:"middle",align:"center"},{inheritColor:Y}),silent:!0,originX:z,originY:$,rotation:J}))}if(_.get("show")&&P!==S){var B=_.get("distance");B=B?B+c:c;for(var ae=0;ae<=w;ae++){L=Math.cos(T),N=Math.sin(T);var Oe=new Xt({shape:{x1:L*(v-B)+h,y1:N*(v-B)+d,x2:L*(v-C-B)+h,y2:N*(v-C-B)+d},silent:!0,style:I});I.stroke==="auto"&&Oe.setStyle({stroke:i((P+ae/w)/S)}),f.add(Oe),T+=E}T-=E}else T+=D}},e.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var f=this.group,h=this._data,d=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"),w=+r.get("max"),x=[S,w],C=[s,l];function T(E,A){var I=_.getItemModel(E),k=I.getModel("pointer"),L=ne(k.get("width"),o.r),N=ne(k.get("length"),o.r),P=r.get(["pointer","icon"]),B=k.get("offsetCenter"),V=ne(B[0],o.r),G=ne(B[1],o.r),Y=k.get("keepAspect"),z;return P?z=Rt(P,V-L/2,G-N,L,N,null,Y):z=new mte({shape:{angle:-Math.PI/2,width:L,r:N,x:V,y:G}}),z.rotation=-(A+Math.PI/2),z.x=o.cx,z.y=o.cy,z}function D(E,A){var I=m.get("roundCap"),k=I?Dv:Cr,L=m.get("overlap"),N=L?m.get("width"):c/_.count(),P=L?o.r-N:o.r-(E+1)*N,B=L?o.r:o.r-E*N,V=new k({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:B}});return L&&(V.z2=at(_.get(b,E),[S,w],[100,0],!0)),V}(y||g)&&(_.diff(h).add(function(E){var A=_.get(b,E);if(g){var I=T(E,s);St(I,{rotation:-((isNaN(+A)?C[0]:at(A,x,C,!0))+Math.PI/2)},r),f.add(I),_.setItemGraphicEl(E,I)}if(y){var k=D(E,s),L=m.get("clip");St(k,{shape:{endAngle:at(A,x,C,L)}},r),f.add(k),m0(r.seriesIndex,_.dataType,E,k),v[E]=k}}).update(function(E,A){var I=_.get(b,E);if(g){var k=h.getItemGraphicEl(A),L=k?k.rotation:s,N=T(E,L);N.rotation=L,Je(N,{rotation:-((isNaN(+I)?C[0]:at(I,x,C,!0))+Math.PI/2)},r),f.add(N),_.setItemGraphicEl(E,N)}if(y){var P=d[A],B=P?P.shape.endAngle:s,V=D(E,B),G=m.get("clip");Je(V,{shape:{endAngle:at(I,x,C,G)}},r),f.add(V),m0(r.seriesIndex,_.dataType,E,V),v[E]=V}}).execute(),_.each(function(E){var A=_.getItemModel(E),I=A.getModel("emphasis"),k=I.get("focus"),L=I.get("blurScope"),N=I.get("disabled");if(g){var P=_.getItemGraphicEl(E),B=_.getItemVisual(E,"style"),V=B.fill;if(P instanceof Jt){var G=P.style;P.useStyle(W({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},B))}else P.useStyle(B),P.type!=="pointer"&&P.setColor(V);P.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(at(_.get(b,E),x,[0,1],!0))),P.z2EmphasisLift=0,vr(P,A),Tt(P,k,L,N)}if(y){var Y=v[E];Y.useStyle(_.getItemVisual(E,"style")),Y.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),Y.z2EmphasisLift=0,vr(Y,A),Tt(Y,k,L,N)}}),this._progressEls=v)},e.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=Rt(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(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)}},e.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"),h=new Ce,d=[],v=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new Ue({silent:!0}),v[y]=new Ue({silent:!0})}).update(function(y,_){d[y]=s._titleEls[_],v[y]=s._detailEls[_]}).execute(),l.each(function(y){var _=l.getItemModel(y),b=l.get(u,y),S=new Ce,w=i(at(b,[c,f],[0,1],!0)),x=_.getModel("title");if(x.get("show")){var C=x.get("offsetCenter"),T=o.cx+ne(C[0],o.r),D=o.cy+ne(C[1],o.r),E=d[y];E.attr({z2:m?0:2,style:gt(x,{x:T,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(E)}var A=_.getModel("detail");if(A.get("show")){var I=A.get("offsetCenter"),k=o.cx+ne(I[0],o.r),L=o.cy+ne(I[1],o.r),N=ne(A.get("width"),o.r),P=ne(A.get("height"),o.r),B=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,E=v[y],V=A.get("formatter");E.attr({z2:m?0:2,style:gt(A,{x:k,y:L,text:Yv(b,V),width:isNaN(N)?null:N,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:B})}),P2(E,{normal:A},b,function(Y){return Yv(Y,V)}),g&&O2(E,y,l,r,{getFormattedLabel:function(Y,z,$,q,J,ae){return Yv(ae?ae.interpolatedValue:b,V)}}),S.add(E)}h.add(S)}),this.group.add(h),this._titleEls=d,this._detailEls=v},e.type="gauge",e}(st),bte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return bu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(ct);function Ste(t){t.registerChartView(_te),t.registerSeriesModel(bte)}var wte=["itemStyle","opacity"],xte=function(t){F(e,t);function e(r,n){var a=t.call(this)||this,i=a,o=new Dr,s=new Ue;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return e.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(wte);c=c??1,a||ta(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,St(i,{style:{opacity:c}},o,n)):Je(i,{style:{opacity:c},shape:{points:l.points}},o,n),vr(i,s),this._updateLabel(r,n),Tt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.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"),h=f.fill;gr(o,Qt(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:h,outsideFill:h});var d=c.linePoints;i.setShape({points:d}),a.textGuideLineConfig={anchor:d?new Ne(d[0][0],d[0][1]):null},Je(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),g1(a,m1(l),{stroke:h})},e}(Tr),Cte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreLabelLineUpdate=!0,r}return e.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 xte(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);af(u,r,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(st),Tte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return bu(this,{coordDimensions:["value"],encodeDefaulter:Ae(a_,this)})},e.prototype._defaultLabelLine=function(r){ts(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},e.prototype.getDataParams=function(r){var n=this.getData(),a=t.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},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(ct);function Dte(t,e){return Gt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ete(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),a=[],i=e==="ascending",o=0,s=t.count();o<s;o++)a[o]=o;return de(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function Mte(t){var e=t.hostModel,r=e.get("orient");t.each(function(n){var a=t.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,d,v;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[h,d],[h,d]];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,h=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,h=y+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,_=m-b,d=_-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,_=m+b,d=_+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,d=_-5,f="center"):(y=g+b,h=y+5,f="top")):o==="rightBottom"?(g=u[2][0],m=u[2][1],r==="horizontal"?(_=m+b,d=_+5,f="center"):(y=g+b,h=y+5,f="bottom")):o==="leftTop"?(g=u[0][0],m=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(_=m-b,d=_-5,f="center"):(y=g-b,h=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,d=_+5,f="center"):(y=g-b,h=y-5,f="right")):(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r==="horizontal"?(_=m+b,d=_+5,f="center"):(y=g+b,h=y+5,f="left")),r==="horizontal"?(y=g,h=y):(_=m,d=_),v=[[g,m],[y,_]]}l.label={linePoints:v,x:h,y:d,verticalAlign:"middle",textAlign:f,inside:c}})}function Ate(t,e){t.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=Dte(r,e),s=r.get("orient"),l=o.width,u=o.height,c=Ete(n,i),f=o.x,h=o.y,d=s==="horizontal"?[ne(r.get("minSize"),u),ne(r.get("maxSize"),u)]:[ne(r.get("minSize"),l),ne(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(),w=function(L,N){if(s==="horizontal"){var P=n.get(a,L)||0,B=at(P,[g,m],d,!0),V=void 0;switch(y){case"top":V=h;break;case"center":V=h+(u-B)/2;break;case"bottom":V=h+(u-B);break}return[[N,V],[N,V+B]]}var G=n.get(a,L)||0,Y=at(G,[g,m],d,!0),z;switch(y){case"left":z=f;break;case"center":z=f+(l-Y)/2;break;case"right":z=f+l-Y;break}return[[z,N],[z+Y,N]]};i==="ascending"&&(S=-S,_=-_,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var x=0;x<c.length;x++){var C=c[x],T=c[x+1],D=n.getItemModel(C);if(s==="horizontal"){var E=D.get(["itemStyle","width"]);E==null?E=S:(E=ne(E,l),i==="ascending"&&(E=-E));var A=w(C,f),I=w(T,f+E);f+=E+_,n.setItemLayout(C,{points:A.concat(I.slice().reverse())})}else{var k=D.get(["itemStyle","height"]);k==null?k=S:(k=ne(k,u),i==="ascending"&&(k=-k));var A=w(C,h),I=w(T,h+k);h+=k+_,n.setItemLayout(C,{points:A.concat(I.slice().reverse())})}}Mte(n)})}function Ite(t){t.registerChartView(Cte),t.registerSeriesModel(Tte),t.registerLayout(Ate),t.registerProcessor(Wf("funnel"))}var kte=.3,Lte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._dataGroup=new Ce,r._initialized=!1,r}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.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=vP(r);s.diff(l).add(h).update(d).remove(v).execute();function h(m){var y=pP(s,o,m,c,u);Bb(y,s,m,f)}function d(m,y){var _=l.getItemGraphicEl(y),b=dP(s,m,c,u);s.setItemGraphicEl(m,_),Je(_,{shape:{points:b}},r,m),ta(_),Bb(_,s,m,f)}function v(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var g=Nte(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=vP(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=pP(i,this._dataGroup,c,s,o);f.incremental=!0,Bb(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(st);function Nte(t,e,r){var n=t.model,a=t.getRect(),i=new We({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),St(i,{shape:{width:a.width,height:a.height}},e,r),i}function dP(t,e,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=t.get(t.mapDimension(o),e);Pte(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function pP(t,e,r,n,a){var i=dP(t,r,n,a),o=new Dr({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(r,o),o}function vP(t){var e=t.get("smooth",!0);return e===!0&&(e=kte),e=wa(e),$i(e)&&(e=0),{smooth:e}}function Bb(t,e,r,n){t.useStyle(e.getItemVisual(r,"style")),t.style.fill=null,t.setShape("smooth",n.smooth);var a=e.getItemModel(r),i=a.getModel("emphasis");vr(t,a,"lineStyle"),Tt(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Pte(t,e){return e==="category"?t==null:t==null||isNaN(t)}var Ote=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.getInitialData=function(r,n){return La(null,this,{useEncodeDefaulter:oe(Rte,null,this)})},e.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},e.type="series.parallel",e.dependencies=["parallel"],e.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"},e}(ct);function Rte(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var r={};return M(e.dimensions,function(n){var a=Vte(n);r[n]=a}),r}}function Vte(t){return+t.replace("dim","")}var Bte=["lineStyle","opacity"],Fte={seriesType:"parallel",reset:function(t,e){var r=t.coordinateSystem,n={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.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(Bte,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};function zte(t){$te(t),Gte(t)}function $te(t){if(!t.parallel){var e=!1;M(t.series,function(r){r&&r.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function Gte(t){var e=ut(t.parallelAxis);M(e,function(r){if(ve(r)){var n=r.parallelIndex||0,a=ut(t.parallel)[n];a&&a.parallelAxisDefault&&ke(r,a.parallelAxisDefault,!1)}})}var Hte=5,Wte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},M(Ute,function(i,o){a.getZr().on(o,this._handlers[o]=oe(i,this))},this)),su(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(r,n){bf(this,"_throttledDispatchExpand"),M(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},e.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(W({type:"parallelAxisExpand"},r))},e.type="parallel",e}(_t),Ute={mousedown:function(t){Fb(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Fb(this,"click")&&e){var r=[t.offsetX,t.offsetY],n=Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2);if(n>Hte)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!Fb(this,"mousemove"))){var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Fb(t,e){var r=t._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}var Yte=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var n=this.option;r&&ke(n,r,!0),this._initDimensions()},e.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(r){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=tt(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)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Ve),Zte=function(t){F(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Nn);function qs(t,e,r,n,a,i){t=t||0;var o=r[1]-r[0];if(a!=null&&(a=Du(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Du(s,[0,o]),a=i=Du(s,[a,i]),n=0}e[0]=Du(e[0],r),e[1]=Du(e[1],r);var l=zb(e,n);e[n]+=t;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Du(e[n],c);var f;return f=zb(e,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(e[1-n]=e[n]+l.sign*a),f=zb(e,n),i!=null&&f.span>i&&(e[1-n]=e[n]+f.sign*i),e}function zb(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function Du(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var $b=M,gP=Math.min,mP=Math.max,yP=Math.floor,Xte=Math.ceil,_P=Mt,jte=Math.PI,Kte=function(){function t(e,r,n){this.type="parallel",this._axesMap=fe(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var a=e.dimensions,i=e.parallelAxisIndex;$b(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Zte(o,Nf(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)},t.prototype.update=function(e,r){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,r){r.eachSeries(function(n){if(e.contains(n,r)){var a=n.getData();$b(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Os(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,r){this._rect=Gt(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=Zv(e.get("axisExpandWidth"),l),f=Zv(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=e.get("axisExpandWindow"),v;if(d)v=Zv(d[1]-d[0],l),d[1]=d[0]+v;else{v=Zv(c*(f-1),l);var g=e.get("axisExpandCenter")||yP(u/2);d=[c*g-v/2],d[1]=d[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[yP(_P(d[0]/c,1))+1,Xte(_P(d[1]/c,1))-1],_=m/c*d[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:_}},t.prototype._layoutAxes=function(){var e=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])}),$b(n,function(o,s){var l=(a.axisExpandable?Jte:qte)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:jte/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],h=c[i],d=Zr();Ui(d,d,h),Xn(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},t.prototype.eachActiveState=function(e,r,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.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 h=e.getValues(s,c),d=0,v=o.length;d<v;d++){var g=l[d].getActiveState(h[d]);if(g==="inactive"){f="inactive";break}}}r(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,r=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)r.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},t.prototype.axisCoordToPoint=function(e,r){var n=this._axesLayout[r];return ra([e,0],n.transform)},t.prototype.getAxisLayout=function(e){return we(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){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(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):h&&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?qs(l,a,o,"all"):u="none";else{var d=a[1]-a[0],v=o[1]*s/d;a=[mP(0,v-d/2)],a[1]=gP(o[1],a[0]+d),a[0]=a[1]-d}return{axisExpandWindow:a,behavior:u}},t}();function Zv(t,e){return gP(mP(t,e[0]),e[1])}function qte(t,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*t,axisNameAvailableWidth:r,axisLabelShow:!0}}function Jte(t,e){var r=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return t<o[0]?(s=t*i,c=i):t<=o[1]?(s=e.axisExpandWindow0Pos+t*n-e.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-t)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Qte(t,e){var r=[];return t.eachComponent("parallel",function(n,a){var i=new Kte(n,t,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,r.push(i)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",$t).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var ere={create:Qte},Gb=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.activeIntervals=[],r}return e.prototype.getAreaSelectStyle=function(){return as([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=we(r);if(n)for(var a=n.length-1;a>=0;a--)sn(n[a])},e.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"},e}(Ve);It(Gb,mu);var Js=!0,lh=Math.min,Eu=Math.max,tre=Math.pow,rre=1e4,nre=6,are=6,bP="globalPan",ire={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ore={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},SP={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},sre=0,Hb=function(t){F(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&_e(r),n._zr=r,n.group=new Ce,n._uid="brushController_"+sre++,M(pre,function(a,i){this._handlers[i]=oe(a,this)},n),n}return e.prototype.enableBrush=function(r){return process.env.NODE_ENV!=="production"&&_e(this._mounted),this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||qJ(n,bP,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=ke(we(SP),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;JJ(r,bP,this._uid),M(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};M(r,function(a){n[a.panelId]=we(a)})}else this._panels=null;return this},e.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},e.prototype.updateCovers=function(r){process.env.NODE_ENV!=="production"&&_e(this._mounted),r=K(r,function(h){return ke(we(SP),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new hi(a,r,u,l).add(c).update(c).remove(f).execute(),this;function l(h,d){return(h.id!=null?h.id:n+d)+"-"+h.brushType}function u(h,d){return l(h.__brushOption,d)}function c(h,d){var v=r[h];if(d!=null&&a[d]===s)i[h]=a[d];else{var g=i[h]=d!=null?(a[d].__brushOption=v,a[d]):xP(o,wP(o,v));Wb(o,g)}}function f(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Zb(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(_n);function wP(t,e){var r=Xv[e.brushType].createCover(t,e);return r.__brushOption=e,TP(r,e),t.group.add(r),r}function xP(t,e){var r=Ub(e);return r.endCreating&&(r.endCreating(t,e),TP(e,e.__brushOption)),e}function CP(t,e){var r=e.__brushOption;Ub(e).updateCoverShape(t,e,r.range,r)}function TP(t,e){var r=e.z;r==null&&(r=rre),t.traverse(function(n){n.z=r,n.z2=r})}function Wb(t,e){Ub(e).updateCommon(t,e),CP(t,e)}function Ub(t){return Xv[t.__brushOption.brushType]}function Yb(t,e,r){var n=t._panels;if(!n)return Js;var a,i=t._transform;return M(n,function(o){o.isTargetByCursor(e,r,i)&&(a=o)}),a}function DP(t,e){var r=t._panels;if(!r)return Js;var n=e.__brushOption.panelId;return n!=null?r[n]:Js}function Zb(t){var e=t._covers,r=e.length;return M(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function Qs(t,e){var r=K(t._covers,function(n){var a=n.__brushOption,i=we(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function lre(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],a=r[0]-n[0],i=r[1]-n[1],o=tre(a*a+i*i,.5);return o>nre}function EP(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function MP(t,e,r,n){var a=new Ce;return a.add(new We({name:"main",style:jb(r),silent:!0,draggable:!0,cursor:"move",drift:Ae(kP,t,e,a,["n","s","w","e"]),ondragend:Ae(Qs,e,{isEnd:!0})})),M(n,function(i){a.add(new We({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(kP,t,e,a,i),ondragend:Ae(Qs,e,{isEnd:!0})}))}),a}function AP(t,e,r,n){var a=n.brushStyle.lineWidth||0,i=Eu(a,are),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],f=r[1][1],h=c-i+a/2,d=f-i+a/2,v=c-o,g=f-s,m=v+a,y=g+a;gi(t,e,"main",o,s,v,g),n.transformable&&(gi(t,e,"w",l,u,i,y),gi(t,e,"e",h,u,i,y),gi(t,e,"n",l,u,m,i),gi(t,e,"s",l,d,m,i),gi(t,e,"nw",l,u,i,i),gi(t,e,"ne",h,u,i,i),gi(t,e,"sw",l,d,i,i),gi(t,e,"se",h,d,i,i))}function Xb(t,e){var r=e.__brushOption,n=r.transformable,a=e.childAt(0);a.useStyle(jb(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=e.childOfName(i.join("")),s=i.length===1?Kb(t,i[0]):cre(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?ore[s]+"-resize":null})})}function gi(t,e,r,n,a,i,o){var s=e.childOfName(r);s&&s.setShape(hre(qb(t,e,[[n,a],[n+i,a+o]])))}function jb(t){return ye({strokeNoScale:!0},t.brushStyle)}function IP(t,e,r,n){var a=[lh(t,r),lh(e,n)],i=[Eu(t,r),Eu(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function ure(t){return ao(t.group)}function Kb(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=xp(r[e],ure(t));return n[a]}function cre(t,e){var r=[Kb(t,e[0]),Kb(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function kP(t,e,r,n,a,i){var o=r.__brushOption,s=t.toRectRange(o.range),l=LP(e,a,i);M(n,function(u){var c=ire[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(IP(s[0][0],s[1][0],s[0][1],s[1][1])),Wb(e,r),Qs(e,{isEnd:!1})}function fre(t,e,r,n){var a=e.__brushOption.range,i=LP(t,r,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Wb(t,e),Qs(t,{isEnd:!1})}function LP(t,e,r){var n=t.group,a=n.transformCoordToLocal(e,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function qb(t,e,r){var n=DP(t,e);return n&&n!==Js?n.clipPath(r,t._transform):we(r)}function hre(t){var e=lh(t[0][0],t[1][0]),r=lh(t[0][1],t[1][1]),n=Eu(t[0][0],t[1][0]),a=Eu(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:a-r}}function dre(t,e,r){if(!(!t._brushType||vre(t,e.offsetX,e.offsetY))){var n=t._zr,a=t._covers,i=Yb(t,e,r);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Js||s.panelId===i.panelId)&&Xv[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function Jb(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Qb(t,e,r){return t.childOfName("main").contain(e,r)}function NP(t,e,r,n){var a=t._creatingCover,i=t._creatingPanel,o=t._brushOption,s;if(t._track.push(r.slice()),lre(t)||a){if(i&&!a){o.brushMode==="single"&&Zb(t);var l=we(o);l.brushType=PP(l.brushType,i),l.panelId=i===Js?null:i.panelId,a=t._creatingCover=wP(t,l),t._covers.push(a)}if(a){var u=Xv[PP(t._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(qb(t,a,t._track)),n&&(xP(t,a),u.updateCommon(t,a)),CP(t,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Yb(t,e,r)&&Zb(t)&&(s={isEnd:n,removeOnClick:!0});return s}function PP(t,e){return t==="auto"?(process.env.NODE_ENV!=="production"&&_e(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var pre={mousedown:function(t){if(this._dragging)OP(this,t);else if(!t.target||!t.target.draggable){Jb(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var r=this._creatingPanel=Yb(this,t,e);r&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,r=t.offsetY,n=this.group.transformCoordToLocal(e,r);if(dre(this,t,n),this._dragging){Jb(t);var a=NP(this,t,n,!1);a&&Qs(this,a)}},mouseup:function(t){OP(this,t)}};function OP(t,e){if(t._dragging){Jb(e);var r=e.offsetX,n=e.offsetY,a=t.group.transformCoordToLocal(r,n),i=NP(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&Qs(t,i)}}function vre(t,e,r){var n=t._zr;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var Xv={lineX:RP(0),lineY:RP(1),rect:{createCover:function(t,e){function r(n){return n}return MP({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=EP(t);return IP(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){AP(t,e,r,n)},updateCommon:Xb,contain:Qb},polygon:{createCover:function(t,e){var r=new Ce;return r.add(new Dr({name:"main",style:jb(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Tr({name:"main",draggable:!0,drift:Ae(fre,t,e),ondragend:Ae(Qs,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:qb(t,e,r)})},updateCommon:Xb,contain:Qb}};function RP(t){return{createCover:function(e,r){return MP({toRectRange:function(n){var a=[n,[0,100]];return t&&a.reverse(),a},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=EP(e),n=lh(r[0][t],r[1][t]),a=Eu(r[0][t],r[1][t]);return[n,a]},updateCoverShape:function(e,r,n,a){var i,o=DP(e,r);if(o!==Js&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(t);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,i];t&&l.reverse(),AP(e,r,l,a)},updateCommon:Xb,contain:Qb}}function VP(t){return t=eS(t),function(e){return V0(e,t)}}function BP(t,e){return t=eS(t),function(r){var n=e??r,a=n?t.width:t.height,i=n?t.x:t.y;return[i,i+(a||0)]}}function FP(t,e,r){var n=eS(t);return function(a,i){return n.contain(i[0],i[1])&&!Nv(a,e,r)}}function eS(t){return Pe.create(t)}var gre=["axisLine","axisTickLabel","axisName"],mre=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){t.prototype.init.apply(this,arguments),(this._brushController=new Hb(n.getZr())).on("brush",oe(this._onBrush,this))},e.prototype.render=function(r,n,a,i){if(!yre(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ce,this.group.add(this._axisGroup),!!r.get("show")){var s=bre(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=W({strokeContainThreshold:c},h),v=new Gr(r,d);M(gre,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,r,s,c,a),sf(o,this._axisGroup,r)}}},e.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=Pe.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:VP(f),isTargetByCursor:FP(f,s,i),getLinearBrushOtherExtent:BP(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(_re(a))},e.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=K(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})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(_t);function yre(t,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===t}function _re(t){var e=t.axis;return K(t.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function bre(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var Sre={type:"axisAreaSelect",event:"axisAreaSelected"};function wre(t){t.registerAction(Sre,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var xre={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function zP(t){t.registerComponentView(Wte),t.registerComponentModel(Yte),t.registerCoordinateSystem("parallel",ere),t.registerPreprocessor(zte),t.registerComponentModel(Gb),t.registerComponentView(mre),Su(t,"parallel",Gb,xre),wre(t)}function Cre(t){Be(zP),t.registerChartView(Lte),t.registerSeriesModel(Ote),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Fte)}var Tre=function(){function t(){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 t}(),Dre=function(t){F(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Tre},e.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()},e.prototype.highlight=function(){li(this)},e.prototype.downplay=function(){ui(this)},e}(ze),Ere=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._focusAdjacencyDisabled=!1,r}return e.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(),h=r.getData("edge"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new Dre,m=Ee(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(),w=v.node1.getModel(),x=w.get("localX"),C=w.get("localY"),T=v.node2.getLayout(),D=v.node2.getModel(),E=D.get("localX"),A=D.get("localY"),I=v.getLayout(),k,L,N,P,B,V,G,Y;g.shape.extent=Math.max(1,I.dy),g.shape.orient=d,d==="vertical"?(k=(x!=null?x*u:S.x)+I.sy,L=(C!=null?C*c:S.y)+S.dy,N=(E!=null?E*u:T.x)+I.ty,P=A!=null?A*c:T.y,B=k,V=L*(1-b)+P*b,G=N,Y=L*b+P*(1-b)):(k=(x!=null?x*u:S.x)+S.dx,L=(C!=null?C*c:S.y)+I.sy,N=E!=null?E*u:T.x,P=(A!=null?A*c:T.y)+I.ty,B=k*(1-b)+N*b,V=L,G=k*b+N*(1-b),Y=P),g.setShape({x1:k,y1:L,x2:N,y2:P,cpx1:B,cpy1:V,cpx2:G,cpy2:Y}),g.useStyle(_.getItemStyle()),$P(g.style,d,v);var z=""+y.get("value"),$=Qt(y,"edgeLabel");gr(g,$,{labelFetcher:{getFormattedLabel:function(ae,Oe,Qe,Me,he,Ie){return r.getFormattedLabel(ae,Oe,"edge",Me,nn(he,$.normal&&$.normal.get("formatter"),z),Ie)}},labelDataIndex:v.dataIndex,defaultText:z}),g.setTextConfig({position:"inside"});var q=y.getModel("emphasis");vr(g,y,"lineStyle",function(ae){var Oe=ae.getItemStyle();return $P(Oe,d,v),Oe}),s.add(g),h.setItemGraphicEl(v.dataIndex,g);var J=q.get("focus");Tt(g,J==="adjacency"?v.getAdjacentDataIndices():J==="trajectory"?v.getTrajectoryDataIndices():J,q.get("blurScope"),q.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,w=new We({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});gr(w,Qt(m),{labelFetcher:{getFormattedLabel:function(C,T){return r.getFormattedLabel(C,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),vr(w,m),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Ee(w).dataType="node";var x=b.get("focus");Tt(w,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,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(Mre(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(st);function $P(t,e,r){switch(t.fill){case"source":t.fill=r.node1.getVisual("color"),t.decal=r.node1.getVisual("style").decal;break;case"target":t.fill=r.node2.getVisual("color"),t.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");ie(n)&&ie(a)&&(t.fill=new Wl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Mre(t,e,r){var n=new We({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return St(n,{shape:{width:t.width+20}},e,r),n}var Are=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){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 rt(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=hP(i,a,this,!0,c);return u.data;function c(f,h){f.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getData().getItemLayout(v);if(m){var y=m.depth,_=g.levelModels[y];_&&(d.parentModel=_)}return d}),h.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var _=y.depth,b=g.levelModels[_];b&&(d.parentModel=b)}return d})}},e.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,a){function i(d){return isNaN(d)||d==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return er("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,a).data.name;return er("nameValue",{name:h!=null?h+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,n){var a=t.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},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(ct);function Ire(t,e){t.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=kre(r,e);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;Nre(u);var f=tt(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");Lre(u,c,n,a,o,s,h,d,v)})}function kre(t,e){return Gt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Lre(t,e,r,n,a,i,o,s,l){Pre(t,e,r,a,i,s,l),Bre(t,e,i,a,n,o,s),Zre(t,s)}function Nre(t){M(t,function(e){var r=_o(e.outEdges,jv),n=_o(e.inEdges,jv),a=e.getValue()||0,i=Math.max(r,n,a);e.setLayout({value:i},!0)})}function Pre(t,e,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<t.length;h++)l[h]=t[h].inEdges.length,l[h]===0&&u.push(t[h]);for(var d=-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>d&&(d=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=e.indexOf(b);s[S]=0;var w=b.node2,x=t.indexOf(w);--l[x]===0&&c.indexOf(w)<0&&c.push(w)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=d>f-1?d:f-1;o&&o!=="left"&&Ore(t,o,i,C);var T=i==="vertical"?(a-r)/C:(n-r)/C;Vre(t,T,i)}function GP(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function Ore(t,e,r,n){if(e==="right"){for(var a=[],i=t,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(t,function(f){GP(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Rre(t,n)}function Rre(t,e){M(t,function(r){!GP(r)&&!r.outEdges.length&&r.setLayout({depth:e},!0)})}function Vre(t,e,r){M(t,function(n){var a=n.getLayout().depth*e;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Bre(t,e,r,n,a,i,o){var s=Fre(t,o);zre(s,e,r,n,a,o),tS(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,$re(s,l,o),tS(s,a,r,n,o),Yre(s,l,o),tS(s,a,r,n,o)}function Fre(t,e){var r=[],n=e==="vertical"?"y":"x",a=Jy(t,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 zre(t,e,r,n,a,i){var o=1/0;M(t,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(t,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(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function tS(t,e,r,n,a){var i=a==="vertical"?"x":"y";M(t,function(o){o.sort(function(g,m){return g.getLayout()[i]-m.getLayout()[i]});for(var s,l,u,c=0,f=o.length,h=a==="vertical"?"dx":"dy",d=0;d<f;d++)l=o[d],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()[h]+e;var v=a==="vertical"?n:r;if(u=c-e-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],u=l.getLayout()[i]+l.getLayout()[h]+e-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 $re(t,e,r){M(t.slice().reverse(),function(n){M(n,function(a){if(a.outEdges.length){var i=_o(a.outEdges,Gre,r)/_o(a.outEdges,jv);if(isNaN(i)){var o=a.outEdges.length;i=o?_o(a.outEdges,Hre,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-yo(a,r))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-yo(a,r))*e;a.setLayout({y:l},!0)}}})})}function Gre(t,e){return yo(t.node2,e)*t.getValue()}function Hre(t,e){return yo(t.node2,e)}function Wre(t,e){return yo(t.node1,e)*t.getValue()}function Ure(t,e){return yo(t.node1,e)}function yo(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function jv(t){return t.getValue()}function _o(t,e,r){for(var n=0,a=t.length,i=-1;++i<a;){var o=+e(t[i],r);isNaN(o)||(n+=o)}return n}function Yre(t,e,r){M(t,function(n){M(n,function(a){if(a.inEdges.length){var i=_o(a.inEdges,Wre,r)/_o(a.inEdges,jv);if(isNaN(i)){var o=a.inEdges.length;i=o?_o(a.inEdges,Ure,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-yo(a,r))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-yo(a,r))*e;a.setLayout({y:l},!0)}}})})}function Zre(t,e){var r=e==="vertical"?"x":"y";M(t,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(t,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 Xre(t){t.eachSeriesByType("sankey",function(e){var r=e.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 rr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.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 jre(t){t.registerChartView(Ere),t.registerSeriesModel(Are),t.registerLayout(Ire),t.registerVisual(Xre),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var HP=function(){function t(){}return t.prototype._hasEncodeRule=function(e){var r=this.getEncode();return r&&r.get(e)!=null},t.prototype.getInitialData=function(e,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"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],d=[a,i],v=d[c].get("type"),g=d[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,w){var x;Z(S)?(x=S.slice(),S.unshift(w)):Z(S.value)?(x=W({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,y.push(x)}),e.data=y}var _=this.defaultValueDimensions,b=[{name:f,type:sv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:sv(g),dimsDef:_.slice()}];return bu(this,{coordDimensions:b,dimensionsCount:_.length+1,encodeDefaulter:Ae(nM,b,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),WP=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.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 e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(ct);It(WP,HP,!0);var Kre=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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=UP(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 h=i.getItemLayout(u);f?(ta(f),YP(h,f,i,u)):f=UP(h,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},e.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(st),qre=function(){function t(){}return t}(),Jre=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new qre},e.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])},e}(ze);function UP(t,e,r,n,a){var i=t.ends,o=new Jre({shape:{points:a?Qre(i,n,t):i}});return YP(t,o,e,r,a),o}function YP(t,e,r,n,a){var i=r.hostModel,o=bs[a?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},i,n),e.useStyle(r.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");vr(e,s),Tt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Qre(t,e,r){return K(t,function(n){return n=n.slice(),n[e]=r.initBaseline,n})}var uh=M;function ene(t){var e=tne(t);uh(e,function(r){var n=r.seriesModels;n.length&&(rne(r),uh(n,function(a,i){nne(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function tne(t){var e=[],r=[];return t.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Re(r,a);i<0&&(i=r.length,r[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function rne(t){var e=t.axis,r=t.seriesModels,n=r.length,a=t.boxWidthList=[],i=t.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;uh(r,function(v){l=Math.max(l,v.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}uh(r,function(v){var g=v.get("boxWidth");Z(g)||(g=[g,g]),o.push([ne(g[0],s)||0,ne(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,h=(c-f*(n-1))/n,d=h/2-c/2;uh(r,function(v,g){i.push(d),d+=f+h,a.push(Math.min(Math.max(h,o[g][0]),o[g][1]))})}function nne(t,e,r){var n=t.coordinateSystem,a=t.getData(),i=r/2,o=t.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 h=a.get(u,f),d=b(h,c[2],f),v=b(h,c[0],f),g=b(h,c[1],f),m=b(h,c[3],f),y=b(h,c[4],f),_=[];S(_,g,!1),S(_,m,!0),_.push(v,g,y,m),w(_,v),w(_,y),w(_,d),a.setItemLayout(f,{initBaseline:d[s],ends:_})}function b(x,C,T){var D=a.get(C,T),E=[];E[o]=x,E[s]=D;var A;return isNaN(x)||isNaN(D)?A=[NaN,NaN]:(A=n.dataToPoint(E),A[o]+=e),A}function S(x,C,T){var D=C.slice(),E=C.slice();D[o]+=i,E[o]-=i,T?x.push(D,E):x.push(E,D)}function w(x,C){var T=C.slice(),D=C.slice();T[o]-=i,D[o]+=i,x.push(T,D)}}function ane(t,e){e=e||{};for(var r=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<t.length;o++){var s=sn(t[o].slice()),l=Kd(s,.25),u=Kd(s,.5),c=Kd(s,.75),f=s[0],h=s[s.length-1],d=(a??1.5)*(c-l),v=i?f:Math.max(f,l-d),g=i?h:Math.min(h,c+d),m=e.itemNameFormatter,y=de(m)?m({value:o}):ie(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 ine={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==Er){var n="";process.env.NODE_ENV!=="production"&&(n=Rr("source data is not applicable for this boxplot transform. Expect number[][].")),it(n)}var a=ane(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function one(t){t.registerSeriesModel(WP),t.registerChartView(Kre),t.registerLayout(ene),t.registerTransform(ine)}var sne=["itemStyle","borderColor"],lne=["itemStyle","borderColor0"],une=["itemStyle","borderColorDoji"],cne=["itemStyle","color"],fne=["itemStyle","color0"];function rS(t,e){return e.get(t>0?cne:fne)}function nS(t,e){return e.get(t===0?une:t>0?sne:lne)}var hne={seriesType:"candlestick",plan:ou(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t)){var r=t.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=rS(s,o),l.stroke=nS(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}},dne=["color","borderColor"],pne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},e.prototype.eachRendered=function(r){io(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r){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&&ZP(u,f))return;var h=aS(f,c,!0);St(h,{shape:{points:f.ends}},r,c),iS(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(h);return}var d=n.getItemLayout(c);if(s&&ZP(u,d)){i.remove(h);return}h?(Je(h,{shape:{points:d.ends}},r,c),ta(h)):h=aS(d),iS(h,n,c,o),i.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(r){this._clear(),XP(r,this.group);var n=r.get("clip",!0)?$f(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.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=aS(s);iS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(r,n){XP(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(st),vne=function(){function t(){}return t}(),gne=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new vne},e.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]))},e}(ze);function aS(t,e,r){var n=t.ends;return new gne({shape:{points:r?mne(n,t):n},z2:100})}function ZP(t,e){for(var r=!0,n=0;n<e.ends.length;n++)if(t.contain(e.ends[n][0],e.ends[n][1])){r=!1;break}return r}function iS(t,e,r,n){var a=e.getItemModel(r);t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.__simpleBox=n,vr(t,a);var i=e.getItemLayout(r).sign;M(t.states,function(s,l){var u=a.getModel(l),c=rS(i,u),f=nS(i,u)||c,h=s.style||(s.style={});c&&(h.fill=c),f&&(h.stroke=f)});var o=a.getModel("emphasis");Tt(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function mne(t,e){return K(t,function(r){return r=r.slice(),r[1]=e.initBaseline,r})}var yne=function(){function t(){}return t}(),oS=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new yne},e.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},e}(ze);function XP(t,e,r,n){var a=t.getData(),i=a.getLayout("largePoints"),o=new oS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new oS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new oS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),sS(1,o,t),sS(-1,s,t),sS(0,l,t),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function sS(t,e,r,n){var a=nS(t,r)||rS(t,r),i=r.getModel("itemStyle").getItemStyle(dne);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var jP=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(ct);It(jP,HP,!0);function _ne(t){!t||!Z(t.series)||M(t.series,function(e){ve(e)&&e.type==="k"&&(e.type="candlestick")})}var bne={seriesType:"candlestick",plan:ou(),reset:function(t){var e=t.coordinateSystem,r=t.getData(),n=Sne(t,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=K(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?v:d};function d(g,m){for(var y,_=m.getStore();(y=g.next())!=null;){var b=_.get(s,y),S=_.get(u,y),w=_.get(c,y),x=_.get(f,y),C=_.get(h,y),T=Math.min(S,w),D=Math.max(S,w),E=B(T,b),A=B(D,b),I=B(x,b),k=B(C,b),L=[];V(L,A,0),V(L,E,1),L.push(Y(k),Y(A),Y(I),Y(E));var N=m.getItemModel(y),P=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:KP(_,y,S,w,c,P),initBaseline:S>w?A[i]:E[i],ends:L,brushRect:G(x,C,b)})}function B(z,$){var q=[];return q[a]=$,q[i]=z,isNaN($)||isNaN(z)?[NaN,NaN]:e.dataToPoint(q)}function V(z,$,q){var J=$.slice(),ae=$.slice();J[a]=wp(J[a]+n/2,1,!1),ae[a]=wp(ae[a]-n/2,1,!0),q?z.push(J,ae):z.push(ae,J)}function G(z,$,q){var J=B(z,q),ae=B($,q);return J[a]-=n/2,ae[a]-=n/2,{x:J[0],y:J[1],width:n,height:ae[1]-J[1]}}function Y(z){return z[a]=wp(z[a],1),z}}function v(g,m){for(var y=Pa(g.count*4),_=0,b,S=[],w=[],x,C=m.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var D=C.get(s,x),E=C.get(u,x),A=C.get(c,x),I=C.get(f,x),k=C.get(h,x);if(isNaN(D)||isNaN(I)||isNaN(k)){y[_++]=NaN,_+=3;continue}y[_++]=KP(C,x,E,A,c,T),S[a]=D,S[i]=I,b=e.dataToPoint(S,null,w),y[_++]=b?b[0]:NaN,y[_++]=b?b[1]:NaN,S[i]=k,b=e.dataToPoint(S,null,w),y[_++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function KP(t,e,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:e>0?t.get(a,e-1)<=n?1:-1:1,o}function Sne(t,e){var r=t.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=ne(De(t.get("barMaxWidth"),a),a),o=ne(De(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?ne(s,a):Math.max(Math.min(a/2,i),o)}function wne(t){t.registerChartView(pne),t.registerSeriesModel(jP),t.registerPreprocessor(_ne),t.registerVisual(hne),t.registerLayout(bne)}function qP(t,e){var r=e.rippleEffectColor||e.color;t.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var xne=function(t){F(e,t);function e(r,n){var a=t.call(this)||this,i=new Ff(r,n),o=new Ce;return a.add(i),a.add(o),a.updateData(r,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.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=Rt(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)}qP(o,r)},e.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}}qP(a,r)},e.prototype.highlight=function(){li(this)},e.prototype.downplay=function(){ui(this)},e.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},e.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=uu(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var d=Is(r.getItemVisual(n,"symbolOffset"),u);d&&(o.x=d[0],o.y=d[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,Tt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(r){r&&r()},e}(Ce),Cne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._symbolDraw=new zf(xne)},e.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)},e.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},e.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=Gf("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=nD(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(st),Tne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return La(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.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},e}(ct);function Dne(t){t.registerChartView(Cne),t.registerSeriesModel(Tne),t.registerLayout(Gf("effectScatter"))}var JP=function(t){F(e,t);function e(r,n,a){var i=t.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return e.prototype.createLine=function(r,n,a){return new Ib(r,n,a)},e.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Z(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=Rt(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))},e.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=Pt(n.get("delay"),function(d){return d/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 h=void 0;de(f)?h=f(a):h=f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.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()}},e.prototype._getLineLength=function(r){return Qa(r.__p1,r.__cp1)+Qa(r.__cp1,r.__p2)},e.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]},e.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},e.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=or,c=py;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),h=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Qa(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*Qa(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},e.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},e}(Ce),QP=function(t){F(e,t);function e(r,n,a){var i=t.call(this)||this;return i._createPolyline(r,n,a),i}return e.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new Dr({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},e.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Je(o,s,i,n),this._updateCommonStl(r,n,a)},e.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 h=i.ensureState("emphasis");h.style=s,Tt(this,l,u,c)},e.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},e}(Ce),Ene=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return e.prototype.createLine=function(r,n,a){return new QP(r,n,a)},e.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+=Qa(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},e.prototype._getLineLength=function(){return this._length},e.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],h=a[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var d=r.__t<1?h[0]-f[0]:f[0]-h[0],v=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},e}(JP),Mne=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Ane=function(t){F(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mne},e.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++],h=a[o++];if(r.moveTo(u,c),i>0){var d=(u+f)/2-(c-h)*i,v=(c+h)/2-(f-u)*i;r.quadraticCurveTo(d,v,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.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++],h=i[u++],d=1;d<c;d++){var v=i[u++],g=i[u++];if(Qi(f,h,v,g,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],g=i[u++];if(o>0){var m=(f+v)/2-(h-g)*o,y=(h+g)/2-(v-f)*o;if(DE(f,h,m,y,v,g,s,r,n))return l}else if(Qi(f,h,v,g,s,r,n))return l;l++}return-1},e.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},e.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 Pe(i,o,s,l)}return r},e}(ze),Ine=function(){function t(){this.group=new Ce}return t.prototype.updateData=function(e){this._clear();var r=this._create();r.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(r,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,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=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Ane({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,r,n){var a=r.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Ee(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),eO={seriesType:"lines",plan:ou(),reset:function(t){var e=t.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&pr("The lines series must have a coordinate system.");return}var r=t.get("polyline"),n=t.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+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=a.start;c<a.end;c++){var d=t.getLineCoords(c,o);r&&(s[f++]=d);for(var v=0;v<d;v++)h=e.dataToPoint(o[v],!1,h),s[f++]=h[0],s[f++]=h[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var g=i.getItemModel(c),d=t.getLineCoords(c,o),m=[];if(r)for(var y=0;y<d;y++)m.push(e.dataToPoint(o[y]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.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)}}}}},kne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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)&&$f(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},e.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},e.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=eO.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.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 Ine:new kb(o?i?Ene:QP:i?JP:Ib),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(r){return!!r.get(["effect","show"])},e.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.type="lines",e}(st),Lne=typeof Uint32Array>"u"?Array:Uint32Array,Nne=typeof Float64Array>"u"?Array:Float64Array;function tO(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=K(e,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),yd([a,r[0],r[1]])}))}var Pne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.init=function(r){r.data=r.data||[],tO(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(r){if(tO(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))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=xl(this._flatCoords,n.flatCoords),this._flatCoordsOffset=xl(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},e.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},e.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},e.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}},e.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ke(r[0])){for(var a=r.length,i=new Lne(a),o=new Nne(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 h=0;h<f;h++){var d=r[c++],v=r[c++];if(o[s++]=d,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}},e.prototype.getInitialData=function(r,n){if(process.env.NODE_ENV!=="production"){var a=Ts.get(r.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+r.coordinateSystem)}var i=new kr(["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},e.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),er("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},e.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+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(ct);function Kv(t){return t instanceof Array||(t=[t,t]),t}var One={seriesType:"lines",reset:function(t){var e=Kv(t.get("symbol")),r=Kv(t.get("symbolSize")),n=t.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=Kv(s.getShallow("symbol",!0)),u=Kv(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 Rne(t){t.registerChartView(kne),t.registerSeriesModel(Pne),t.registerLayout(eO),t.registerVisual(One)}var Vne=256,Bne=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Zn.createCanvas();this.canvas=e}return t.prototype.update=function(e,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,h=f.getContext("2d"),d=e.length;f.width=r,f.height=n;for(var v=0;v<d;++v){var g=e[v],m=g[0],y=g[1],_=g[2],b=a(_);h.globalAlpha=b,h.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var S=h.getImageData(0,0,f.width,f.height),w=S.data,x=0,C=w.length,T=this.minOpacity,D=this.maxOpacity,E=D-T;x<C;){var b=w[x+3]/256,A=Math.floor(b*(Vne-1))*4;if(b>0){var I=o(b)?l:u;b>0&&(b=b*E+T),w[x++]=I[A],w[x++]=I[A+1],w[x++]=I[A+2],w[x++]=I[A+3]*b*256}else x+=4}return h.putImageData(S,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Zn.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var a=e.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(),e},t.prototype._getGradient=function(e,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++)e[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},t}();function Fne(t,e,r){var n=t[1]-t[0];e=K(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function zne(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(n){return n>=e[0]&&n<=e[1]}}function rO(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var $ne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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()):rO(o)&&this._renderOnGeo(o,r,i,a)},e.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(rO(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){io(this._progressiveEls||this.group,r)},e.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=Hs(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(d.type==="category"&&v.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&v.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=d.getBandWidth()+.5,c=v.getBandWidth()+.5,f=d.scale.getExtent(),h=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"]),w=Qt(r),x=r.getModel("emphasis"),C=x.get("focus"),T=x.get("blurScope"),D=x.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 I=void 0,k=m.getItemVisual(A,"style");if(l){var L=m.get(E[0],A),N=m.get(E[1],A);if(isNaN(m.get(E[2],A))||isNaN(L)||isNaN(N)||L<f[0]||L>f[1]||N<h[0]||N>h[1])continue;var P=s.dataToPoint([L,N]);I=new We({shape:{x:P[0]-u/2,y:P[1]-c/2,width:u,height:c},style:k})}else{if(isNaN(m.get(E[1],A)))continue;I=new We({z2:1,shape:s.dataToRect([m.get(E[0],A)]).contentShape,style:k})}if(m.hasItemOption){var B=m.getItemModel(A),V=B.getModel("emphasis");y=V.getModel("itemStyle").getItemStyle(),_=B.getModel(["blur","itemStyle"]).getItemStyle(),b=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),C=V.get("focus"),T=V.get("blurScope"),D=V.get("disabled"),w=Qt(B)}I.shape.r=S;var G=r.getRawValue(A),Y="-";G&&G[2]!=null&&(Y=G[2]+""),gr(I,w,{labelFetcher:r,labelDataIndex:A,defaultOpacity:k.opacity,defaultText:Y}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=_,I.ensureState("select").style=b,Tt(I,C,T,D),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),g.add(I),m.setItemGraphicEl(A,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.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 Bne;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 h=Math.max(c.x,0),d=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-h,y=g-d,_=[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]-=h,E[1]-=d,E.push(D),E}),S=a.getExtent(),w=a.type==="visualMap.continuous"?zne(S,a.option.range):Fne(S,a.getPieceList(),a.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new Jt({style:{width:m,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(st),Gne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return La(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=Ts.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(ct);function Hne(t){t.registerChartView($ne),t.registerSeriesModel(Gne)}var Wne=["itemStyle","borderWidth"],nO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],lS=new Ma,Une=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={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:nO[+c],categoryDim:nO[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=cO(o,v),m=aO(o,v,g,h),y=fO(o,h,m);o.setItemGraphicEl(v,y),i.add(y),pO(y,h,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(v)){i.remove(m);return}var y=cO(o,v),_=aO(o,v,y,h),b=dO(o,_);m&&b!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(v,null),m=null),m?Jne(m,h,_):m=fO(o,h,_,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=_,i.add(m),pO(m,h,_)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&hO(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var d=r.get("clip",!0)?$f(r.coordinateSystem,!1,r):null;return d?i.setClipPath(d):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){hO(i,Ee(o).dataIndex,r,o)}):a.removeAll()},e.type="pictorialBar",e}(st);function aO(t,e,r,n){var a=t.getItemLayout(e),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(),h={dataIndex:e,layout:a,itemModel:r,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"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};Yne(r,i,a,n,h),Zne(t,e,a,i,o,h.boundingLength,h.pxSign,c,n,h),Xne(r,h.symbolScale,u,n,h);var d=h.symbolSize,v=Is(r.get("symbolOffset"),d);return jne(r,d,a,i,o,v,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function Yne(t,e,r,n,a){var i=n.valueDim,o=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(Z(o)){var f=[uS(s,o[0])-l,uS(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=uS(s,o)-l:e?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=r[i.wh]);var h=i.xy==="x",d=s.inverse;a.pxSign=h&&!d||!h&&d?c>=0?1:-1:c>0?1:-1}function uS(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Zne(t,e,r,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=t.getItemVisual(e,"symbolSize"),v;Z(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[f.index]=ne(v[f.index],h),v[c.index]=ne(v[c.index],n?h: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 Xne(t,e,r,n,a){var i=t.get(Wne)||0;i&&(lS.attr({scaleX:e[0],scaleY:e[1],rotation:r}),lS.updateTransform(),i/=lS.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function jne(t,e,r,n,a,i,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,v=f.pxSign,g=Math.max(e[d.index]+s,0),m=g;if(n){var y=Math.abs(l),_=Pt(t.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var S=ne(_,e[d.index]),w=Math.max(g+S*2,0),x=b?0:S*2,C=qd(n),T=C?n:vO((y+x)/w),D=y-T*g;S=D/2/(b?T:Math.max(T-1,1)),w=g+S*2,x=b?0:S*2,!C&&n!=="fixed"&&(T=u?vO((Math.abs(u)+x)/w):0),m=T*w-x,f.repeatTimes=T,f.symbolMargin=S}var E=v*(m/2),A=f.pathPosition=[];A[h.index]=r[h.wh]/2,A[d.index]=o==="start"?E:o==="end"?l-E:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=r[h.xy],I[d.index]=r[d.xy];var k=f.barRectShape=W({},r);k[d.wh]=v*Math.max(Math.abs(r[d.wh]),Math.abs(A[d.index]+E)),k[h.wh]=r[h.wh];var L=f.clipShape={};L[h.xy]=-r[h.xy],L[h.wh]=c.ecSize[h.wh],L[d.xy]=0,L[d.wh]=r[d.wh]}function iO(t){var e=t.symbolPatternSize,r=Rt(t.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function oO(t,e,r,n){var a=t.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=e.valueDim,u=r.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+r.symbolMargin*2;for(cS(t,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?Mu(g,null,v(c),r,n):Mu(g,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(g)}),c++});c<u;c++){var h=iO(r);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,a.add(h);var d=v(c);Mu(h,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.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 sO(t,e,r,n){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?Mu(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=t.__pictorialMainPath=iO(r),a.add(i),Mu(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 lO(t,e,r){var n=W({},e.barRectShape),a=t.__pictorialBarRect;a?Mu(a,null,{shape:n},e,r):(a=t.__pictorialBarRect=new We({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function uO(t,e,r,n){if(r.symbolClip){var a=t.__pictorialClipPath,i=W({},r.clipShape),o=e.valueDim,s=r.animationModel,l=r.dataIndex;if(a)Je(a,{shape:i},s,l);else{i[o.wh]=0,a=new We({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],bs[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function cO(t,e){var r=t.getItemModel(e);return r.getAnimationDelayParams=Kne,r.isAnimationEnabled=qne,r}function Kne(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function qne(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fO(t,e,r,n){var a=new Ce,i=new Ce;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?oO(a,e,r):sO(a,e,r),lO(a,r,n),uO(a,e,r,n),a.__pictorialShapeStr=dO(t,r),a.__pictorialSymbolMeta=r,a}function Jne(t,e,r){var n=r.animationModel,a=r.dataIndex,i=t.__pictorialBundle;Je(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?oO(t,e,r,!0):sO(t,e,r,!0),lO(t,r,!0),uO(t,e,r,!0)}function hO(t,e,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];cS(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),M(i,function(o){no(o,{scaleX:0,scaleY:0},r,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function dO(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function cS(t,e,r){M(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(r,n)})}function Mu(t,e,r,n,a,i){e&&t.attr(e),n.symbolClip&&!a?r&&t.attr(r):r&&bs[a?"updateProps":"initProps"](t,r,n.animationModel,n.dataIndex,i)}function pO(t,e,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"),h=i.get("scale");cS(t,function(g){if(g instanceof Jt){var m=g.style;g.useStyle(W({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,h&&(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 d=e.valueDim.posDesc[+(r.boundingLength>0)],v=t.__pictorialBarRect;v.ignoreClip=!0,gr(v,Qt(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:_u(e.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Tt(t,c,f,i.get("disabled"))}function vO(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Qne=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=oo(Hf.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"}}}),e}(Hf);function eae(t){t.registerChartView(Une),t.registerSeriesModel(Qne),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Ae(II,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kI("pictorialBar"))}var tae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._layers=[],r}return e.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 h(m){return m.name}var d=new hi(this._layersSeries||[],l,h,h),v=[];d.add(oe(g,this,"add")).update(oe(g,this,"update")).remove(oe(g,this,"remove")).execute();function g(m,y,_){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var S=[],w=[],x,C=l[y].indices,T=0;T<C.length;T++){var D=i.getItemLayout(C[T]),E=D.x,A=D.y0,I=D.y;S.push(E,A),w.push(E,A+I),x=i.getItemVisual(C[T],"style")}var k,L=i.getItemLayout(C[0]),N=r.getModel("label"),P=N.get("margin"),B=r.getModel("emphasis");if(m==="add"){var V=v[y]=new Ce;k=new Zk({shape:{points:S,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(k),s.add(V),r.isAnimationEnabled()&&k.setClipPath(rae(k.getBoundingRect(),r,function(){k.removeClipPath()}))}else{var V=b[_];k=V.childAt(0),s.add(V),v[y]=V,Je(k,{shape:{points:S,stackedOnPoints:w}},r),ta(k)}gr(k,Qt(r),{labelDataIndex:C[T-1],defaultText:i.getName(C[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),k.setTextConfig({position:null,local:!0});var G=k.getTextContent();G&&(G.x=L.x-P,G.y=L.y0+L.y/2),k.useStyle(x),i.setItemGraphicEl(y,k),vr(k,r),Tt(k,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=v},e.type="themeRiver",e}(st);function rae(t,e,r){var n=new We({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return St(n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,r),n}var fS=2,nae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uf(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.fixData=function(r){var n=r.length,a={},i=Jy(r,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,d){o.push({name:d,dataList:h})});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},e.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",$t).models[0],i=a.get("type"),o=tt(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=fe(),c=0,f=0;f<s.length;++f)l.push(s[f][fS]),u.get(s[f][fS])||(u.set(s[f][fS],c),c++);var h=pu(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:sv(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new kr(h,this);return d.initData(s),d},e.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=Jy(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return r.get(o,f)-r.get(o,h)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(r,n,a){Z(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,h=-1,d=o[c].indices.length,v=0;v<d;++v){var g=i.get(r[0],o[c].indices[v]),m=Math.abs(g-n);m<=f&&(u=g,f=m,h=o[c].indices[v])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return er("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(ct);function aae(t,e){t.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]=ne(s[0],o.height),s[1]=ne(s[1],o.height);var u=o.height-s[0]-s[1];gO(n,r,u)}else{s[0]=ne(s[0],o.width),s[1]=ne(s[1],o.width);var c=o.width-s[0]-s[1];gO(n,r,c)}n.setLayout("layoutInfo",i)})}function gO(t,e,r){if(t.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=t.mapDimension("single"),o=t.mapDimension("value"),s=K(a,function(m){return K(m.indices,function(y){var _=n.dataToPoint(t.get(i,y));return _[1]=t.get(o,y),_})}),l=iae(s),u=l.y0,c=r/l.max,f=a.length,h=a[0].indices.length,d,v=0;v<h;++v){d=u[v]*c,t.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:d,y:s[0][v][1]*c});for(var g=1;g<f;++g)d+=s[g-1][v][1]*c,t.setItemLayout(a[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:d,y:s[g][v][1]*c})}}function iae(t){for(var e=t.length,r=t[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<e;++l)s+=t[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 oae(t){t.registerChartView(tae),t.registerSeriesModel(nae),t.registerLayout(aae),t.registerProcessor(Wf("themeRiver"))}var sae=2,lae=4,mO=function(t){F(e,t);function e(r,n,a,i){var o=t.call(this)||this;o.z2=sae,o.textConfig={inside:!0},Ee(o).seriesIndex=n.seriesIndex;var s=new Ue({z2:lae,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return e.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;Ee(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=W({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=fu(d,o));var v=Ws(l.getModel("itemStyle"),f,!0);W(f,v),M(Br,function(_){var b=s.ensureState(_),S=l.getModel([_,"itemStyle"]);b.style=S.getItemStyle();var w=Ws(S,f);w&&(b.shape=w)}),r?(s.setShape(f),s.shape.r=c.r0,St(s,{shape:{r:c.r}},a,n.dataIndex)):(Je(s,{shape:f},a),ta(s)),s.useStyle(h),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"?xl(n.getAncestorsIndices(),n.getDescendantIndices()):m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Tt(this,y,u.get("blurScope"),u.get("disabled"))},e.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,h=f.getTextContent(),d=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(v!=null&&Math.abs(s)<v);h.ignore=!g,M(Kc,function(y){var _=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),b=y==="normal",S=b?h:h.ensureState(y),w=r.getFormattedLabel(d,y);b&&(w=w||n.node.name),S.style=gt(_,{},null,y!=="normal",!0),w&&(S.style.text=w);var x=_.get("show");x!=null&&!b&&(S.ignore=!x);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,I=m(_,"align"),k=m(_,"rotate"),L=Math.PI*.5,N=Math.PI*1.5,P=un(k==="tangential"?Math.PI/2-l:l),B=P>L&&!Nl(P-L)&&P<N;C==="outside"?(E=o.r+A,I=B?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?E=0:E=(o.r+o.r0)/2,I="center"):I==="left"?(E=o.r0+A,I=B?"right":"left"):I==="right"&&(E=o.r-A,I=B?"left":"right"),S.style.align=I,S.style.verticalAlign=m(_,"verticalAlign")||"middle",S.x=E*u+o.cx,S.y=E*c+o.cy;var V=0;k==="radial"?V=un(-l)+(B?Math.PI:0):k==="tangential"?V=un(Math.PI/2-l)+(B?Math.PI:0):Ke(k)&&(V=k*Math.PI/180),S.rotation=un(V)});function m(y,_){var b=y.get(_);return b??i.get(_)}h.dirtyStyle()},e}(Cr),hS="sunburstRootToNode",yO="sunburstHighlight",uae="sunburstUnhighlight";function cae(t){t.registerAction({type:hS,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=Jf(e,[hS],a);if(o){var s=a.getViewRoot();s&&(e.direction=fb(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:yO,update:"none"},function(e,r,n){e=W({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Jf(e,[yO],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&Ot("sunburstHighlight","highlight"),n.dispatchAction(W(e,{type:"highlight"}))}),t.registerAction({type:uae,update:"updateView"},function(e,r,n){e=W({},e),process.env.NODE_ENV!=="production"&&Ot("sunburstUnhighlight","downplay"),n.dispatchAction(W(e,{type:"downplay"}))})}var fae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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"),h=[];u.eachNode(function(_){h.push(_)});var d=this._oldChildren||[];v(h,d),y(l,u),this._initEvents(),this._oldChildren=h;function v(_,b){if(_.length===0&&b.length===0)return;new hi(b,_,S,S).add(w).update(w).remove(Ae(w,null)).execute();function S(x){return x.getId()}function w(x,C){var T=x==null?null:_[x],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 mO(_,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 mO(_,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)}},e.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";Np(u,c)}}a=!0}})})},e.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:hS,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.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}},e.type="sunburst",e}(st),hae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};_O(a);var i=this._levelModels=K(r.levels||[],function(l){return new rt(l,this,n)},this),o=cb.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=i[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Bv(a,this),n},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.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)},e.prototype.enableAriaDecal=function(){IN(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(ct);function _O(t){var e=0;M(t.children,function(n){_O(n);var a=n.value;Z(a)&&(a=a[0]),e+=a});var r=t.value;Z(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Z(t.value)?t.value[0]=r:t.value=r}var bO=Math.PI/180;function dae(t,e,r){e.eachSeriesByType(t,function(n){var a=n.get("center"),i=n.get("radius");Z(i)||(i=[0,i]),Z(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(a[0],o),c=ne(a[1],s),f=ne(i[0],l/2),h=ne(i[1],l/2),d=-n.get("startAngle")*bO,v=n.get("minAngle")*bO,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,_=n.get("sort");_!=null&&SO(m,_);var b=0;M(m.children,function(P){!isNaN(P.getValue())&&b++});var S=m.getValue(),w=Math.PI/(S||b)*2,x=m.depth>0,C=m.height-(x?-1:1),T=(h-f)/(C||1),D=n.get("clockwise"),E=n.get("stillShowZeroSum"),A=D?1:-1,I=function(P,B){if(P){var V=B;if(P!==g){var G=P.getValue(),Y=S===0&&E?w:G*w;Y<v&&(Y=v),V=B+A*Y;var z=P.depth-y-(x?-1:1),$=f+T*z,q=f+T*(z+1),J=n.getLevelModel(P);if(J){var ae=J.get("r0",!0),Oe=J.get("r",!0),Qe=J.get("radius",!0);Qe!=null&&(ae=Qe[0],Oe=Qe[1]),ae!=null&&($=ne(ae,l/2)),Oe!=null&&(q=ne(Oe,l/2))}P.setLayout({angle:Y,startAngle:B,endAngle:V,clockwise:D,cx:u,cy:c,r0:$,r:q})}if(P.children&&P.children.length){var Me=0;M(P.children,function(he){Me+=I(he,B+Me)})}return V-B}};if(x){var k=f,L=f+T,N=Math.PI*2;g.setLayout({angle:N,startAngle:d,endAngle:d+N,clockwise:D,cx:u,cy:c,r0:k,r:L})}I(m,d)})}function SO(t,e){var r=t.children||[];t.children=pae(r,e),r.length&&M(t.children,function(n){SO(n,e)})}function pae(t,e){if(de(e)){var r=K(t,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 e(a.params,i.params)}),K(r,function(a){return t[a.index]})}else{var n=e==="asc";return t.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 vae(t){var e={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&ie(s)&&(s=Pd(s,(n.depth-1)/(i-1)*.5)),s}t.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");W(u,l)})})}function gae(t){t.registerChartView(fae),t.registerSeriesModel(hae),t.registerLayout(Ae(dae,"sunburst")),t.registerProcessor(Ae(Wf,"sunburst")),t.registerVisual(vae),cae(t)}var wO={color:"fill",borderColor:"stroke"},mae={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mi=je(),yae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return La(null,this)},e.prototype.getDataParams=function(r,n,a){var i=t.prototype.getDataParams.call(this,r,n);return a&&(i.info=mi(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(ct);function _ae(t,e){return e=e||[0,0],K(["x","y"],function(r,n){var a=this.getAxis(r),i=e[n],o=t[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function bae(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:oe(_ae,t)}}}function Sae(t,e){return e=e||[0,0],K([0,1],function(r){var n=e[r],a=t[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function wae(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(r){return t.dataToPoint(r)},size:oe(Sae,t)}}}function xae(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function Cae(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:oe(xae,t)}}}function Tae(t,e){return e=e||[0,0],K(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=e[n],s=t[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 Dae(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=t.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:oe(Tae,t)}}}function Eae(t){var e=t.getRect(),r=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return t.dataToPoint(n,a)}}}}var xO={};function CO(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||le(t,"text")))}function TO(t,e,r){var n=t,a,i,o;if(e==="text")o=n;else{o={},le(n,"text")&&(o.text=n.text),le(n,"rich")&&(o.rich=n.rich),le(n,"textFill")&&(o.fill=n.textFill),le(n,"textStroke")&&(o.stroke=n.textStroke),le(n,"fontFamily")&&(o.fontFamily=n.fontFamily),le(n,"fontSize")&&(o.fontSize=n.fontSize),le(n,"fontStyle")&&(o.fontStyle=n.fontStyle),le(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=le(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),le(n,"textPosition")&&(a.position=n.textPosition),le(n,"textOffset")&&(a.offset=n.textOffset),le(n,"textRotation")&&(a.rotation=n.textRotation),le(n,"textDistance")&&(a.distance=n.textDistance)}return DO(o,t),M(o.rich,function(l){DO(l,l)}),{textConfig:a,textContent:i}}function DO(t,e){e&&(e.font=e.textFont||e.font,le(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),le(e,"textAlign")&&(t.align=e.textAlign),le(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),le(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),le(e,"textWidth")&&(t.width=e.textWidth),le(e,"textHeight")&&(t.height=e.textHeight),le(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),le(e,"textPadding")&&(t.padding=e.textPadding),le(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),le(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),le(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),le(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),le(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),le(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),le(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function EO(t,e,r){var n=t;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=t.fill||"#000";MO(n,e);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=t.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,M(e.rich,function(s){MO(s,s)}),n}function MO(t,e){e&&(le(e,"fill")&&(t.textFill=e.fill),le(e,"stroke")&&(t.textStroke=e.fill),le(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),le(e,"font")&&(t.font=e.font),le(e,"fontStyle")&&(t.fontStyle=e.fontStyle),le(e,"fontWeight")&&(t.fontWeight=e.fontWeight),le(e,"fontSize")&&(t.fontSize=e.fontSize),le(e,"fontFamily")&&(t.fontFamily=e.fontFamily),le(e,"align")&&(t.textAlign=e.align),le(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),le(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),le(e,"width")&&(t.textWidth=e.width),le(e,"height")&&(t.textHeight=e.height),le(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),le(e,"padding")&&(t.textPadding=e.padding),le(e,"borderColor")&&(t.textBorderColor=e.borderColor),le(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),le(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),le(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),le(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),le(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),le(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),le(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),le(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),le(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),le(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function AO(t,e){if(process.env.NODE_ENV!=="production"){var r=t+"^_^"+e;xO[r]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),xO[r]=!0)}}var IO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kO=$e(IO),qv=mn(Sa,function(t,e){return t[e]=1,t},{}),LO=Sa.join(", "),Jv=["","style","shape","extra"],Au=je();function dS(t,e,r,n,a){var i=t+"Animation",o=Ul(t,n,a)||{},s=Au(e).userDuring;return o.duration>0&&(o.during=s?oe(Lae,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),W(o,r[i]),o}function Qv(t,e,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Au(t),u=e.style;l.userDuring=e.during;var c={},f={};if(Pae(t,e,f),OO("shape",e,f),OO("extra",e,f),!i&&s&&(Nae(t,e,c),PO("shape",t,e,c),PO("extra",t,e,c),Oae(t,e,u,c)),f.style=u,Mae(t,f,o),Iae(t,e),s)if(i){var h={};M(Jv,function(v){var g=v?e[v]:e;g&&g.enterFrom&&(v&&(h[v]=h[v]||{}),W(v?h[v]:h,g.enterFrom))});var d=dS("enter",t,e,r,a);d.duration>0&&t.animateFrom(h,d)}else Aae(t,e,a||0,r,c);NO(t,e),u?t.dirty():t.markRedraw()}function NO(t,e){for(var r=Au(t).leaveToProps,n=0;n<Jv.length;n++){var a=Jv[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=Au(t).leaveToProps={}),a&&(r[a]=r[a]||{}),W(a?r[a]:r,i.leaveTo))}}function eg(t,e,r,n){if(t){var a=t.parent,i=Au(t).leaveToProps;if(i){var o=dS("update",t,e,r,0);o.done=function(){a.remove(t)},t.animateTo(i,o)}else a.remove(t)}}function el(t){return t==="all"}function Mae(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function Aae(t,e,r,n,a){if(a){var i=dS("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}function Iae(t,e){le(e,"silent")&&(t.silent=e.silent),le(e,"ignore")&&(t.ignore=e.ignore),t instanceof Cn&&le(e,"invisible")&&(t.invisible=e.invisible),t instanceof ze&&le(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Ba={},kae={setTransform:function(t,e){return process.env.NODE_ENV!=="production"&&_e(le(qv,t),"Only "+LO+" available in `setTransform`."),Ba.el[t]=e,this},getTransform:function(t){return process.env.NODE_ENV!=="production"&&_e(le(qv,t),"Only "+LO+" available in `getTransform`."),Ba.el[t]},setShape:function(t,e){process.env.NODE_ENV!=="production"&&Iu(t);var r=Ba.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){process.env.NODE_ENV!=="production"&&Iu(t);var e=Ba.el.shape;if(e)return e[t]},setStyle:function(t,e){process.env.NODE_ENV!=="production"&&Iu(t);var r=Ba.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&$i(e)&&Ct("style."+t+" must not be assigned with NaN."),n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){process.env.NODE_ENV!=="production"&&Iu(t);var e=Ba.el.style;if(e)return e[t]},setExtra:function(t,e){process.env.NODE_ENV!=="production"&&Iu(t);var r=Ba.el.extra||(Ba.el.extra={});return r[t]=e,this},getExtra:function(t){process.env.NODE_ENV!=="production"&&Iu(t);var e=Ba.el.extra;if(e)return e[t]}};function Iu(t){if(process.env.NODE_ENV!=="production"&&(t==="transition"||t==="enterFrom"||t==="leaveTo"))throw new Error('key must not be "'+t+'"')}function Lae(){var t=this,e=t.el;if(e){var r=Au(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}Ba.el=e,n(kae)}}function PO(t,e,r,n){var a=r[t];if(a){var i=e[t],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[t]={}),el(l))W(o,i);else for(var u=ut(l),c=0;c<u.length;c++){var f=u[c],h=i[f];o[f]=h}else if(el(s)||Re(s,t)>=0){!o&&(o=n[t]={});for(var d=$e(i),c=0;c<d.length;c++){var f=d[c],h=i[f];Rae(a[f],h)&&(o[f]=h)}}}}}function OO(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=$e(n),o=0;o<i.length;o++){var s=i[o];a[s]=Vc(n[s])}}function Nae(t,e,r){for(var n=e.transition,a=el(n)?Sa:ut(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];process.env.NODE_ENV!=="production"&&RO(o,"el.transition"),r[o]=s}}}function Pae(t,e,r){for(var n=0;n<kO.length;n++){var a=kO[n],i=IO[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<Sa.length;n++){var s=Sa[n];e[s]!=null&&(r[s]=e[s])}}function Oae(t,e,r,n){if(r){var a=t.style,i;if(a){var o=r.transition,s=e.transition;if(o&&!el(o)){var l=ut(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(t.getAnimationStyleProps&&(el(s)||el(o)||Re(s,"style")>=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!i&&(i=n.style={});for(var v=$e(r),u=0;u<v.length;u++){var c=v[u];if(d[c]){var f=a[c];i[c]=f}}}}}}}function Rae(t,e){return dr(t)?t!==e:t!=null&&isFinite(t)}var RO;process.env.NODE_ENV!=="production"&&(RO=function(t,e){le(qv,t)||Ct("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+$e(qv).join("`, `")+"` are permitted.")});var VO=je(),Vae=["percent","easing","shape","style","extra"];function BO(t){t.stopAnimation("keyframe"),t.attr(VO(t))}function tg(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(Z(e)){M(e,function(s){tg(t,s,r)});return}var n=e.keyframes,a=e.duration;if(r&&a==null){var i=Ul("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=VO(t);M(Jv,function(s){if(!(s&&!t[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),M(n,function(c){var f=t.animators,h=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!h){var d=$e(h);if(s||(d=tt(d,function(m){return Re(Vae,m)<0})),!!d.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(d);s&&(o[s]=o[s]||{});var g=s?o[s]:o;M(d,function(m){g[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(a*c.percent,h,d,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Ct("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var yi="emphasis",bo="normal",pS="blur",vS="select",So=[bo,yi,pS,vS],gS={normal:["itemStyle"],emphasis:[yi,"itemStyle"],blur:[pS,"itemStyle"],select:[vS,"itemStyle"]},mS={normal:["label"],emphasis:[yi,"label"],blur:[pS,"label"],select:[vS,"label"]},Bae=["x","y"],Fae="e\0\0",Vn={normal:{},emphasis:{},blur:{},select:{}},FO={cartesian2d:bae,geo:wae,single:Cae,polar:Dae,calendar:Eae};function rg(t){return t instanceof ze}function yS(t){return t instanceof Cn}function zae(t,e){e.copyTransform(t),yS(e)&&yS(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,rg(e)&&rg(t)&&e.setShape(t.shape))}var $ae=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=$O(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){SS(a,null,f,u(f,i),r,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&eg(h,mi(h).option,r)}).update(function(f,h){var d=o.getItemGraphicEl(h);SS(a,d,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?$f(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=$O(n,s,a,i),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var h=SS(null,null,f,l(f,o),n,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(r){io(this._progressiveEls||this.group,r)},e.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},e.type="custom",e}(st);function _S(t){var e=t.type,r;if(e==="path"){var n=t.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=YO(n);r=of(i,null,a,n.layout||"center"),mi(r).customPathData=i}else if(e==="image")r=new Jt({}),mi(r).customImagePath=t.style.image;else if(e==="text")r=new Ue({});else if(e==="group")r=new Ce;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Sp(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),it(s)}r=new o}return mi(r).customGraphicType=e,r.name=t.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function bS(t,e,r,n,a,i,o){BO(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=Bae);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;le(u,"textFill")&&(u.fill=u.textFill),le(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=rg(e)?l.decal:null;t&&f&&(f.dirty=!0,c=fu(f,t)),l.__decalPattern=c}if(yS(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Qv(e,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),tg(e,n.keyframeAnimation,i)}function zO(t,e,r,n,a){var i=e.isGroup?null:e,o=a&&a[t].cfg;if(i){var s=i.ensureState(t);if(n===!1){var l=i.getState(t);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ps(i)}}function Gae(t,e,r){if(!t.isGroup){var n=t,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<So.length;s++)Hae(n,e,So[s])}}function Hae(t,e,r){var n=r===bo,a=n?e:ng(e,r),i=a?a.z2:null,o;i!=null&&(o=n?t:t.ensureState(r),o.z2=i||0)}function $O(t,e,r,n){var a=t.get("renderItem"),i=t.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(_e(a,"series.render is required."),_e(i.prepareCustoms||FO[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):FO[i.type](i));for(var s=ye({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:x,ordinalRawValue:w,styleEmphasis:C,visual:E,barLayout:A,currentSeriesIndices:I,font:k},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Wae(t.getData())},u,c,f={},h={},d={},v={},g=0;g<So.length;g++){var m=So[g];d[m]=t.getModel(gS[m]),v[m]=t.getModel(mS[m])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function _(L,N){return e.hasItemOption?L===u?f[N]||(f[N]=y(L).getModel(gS[N])):y(L).getModel(gS[N]):d[N]}function b(L,N){return e.hasItemOption?L===u?h[N]||(h[N]=y(L).getModel(mS[N])):y(L).getModel(mS[N]):v[N]}return function(L,N){return u=L,c=null,f={},h={},a&&a(ye({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:N?N.type:null},l),s)};function S(L,N){return N==null&&(N=u),e.getStore().get(e.getDimensionIndex(L||0),N)}function w(L,N){N==null&&(N=u),L=L||0;var P=e.getDimensionInfo(L);if(!P){var B=e.getDimensionIndex(L);return B>=0?e.getStore().get(B,N):void 0}var V=e.get(P.name,N),G=P&&P.ordinalMeta;return G?G.categories[V]:V}function x(L,N){process.env.NODE_ENV!=="production"&&AO("api.style","Please write literal style directly instead."),N==null&&(N=u);var P=e.getItemVisual(N,"style"),B=P&&P.fill,V=P&&P.opacity,G=_(N,bo).getItemStyle();B!=null&&(G.fill=B),V!=null&&(G.opacity=V);var Y={inheritColor:ie(B)?B:"#000"},z=b(N,bo),$=gt(z,null,Y,!1,!0);$.text=z.getShallow("show")?De(t.getFormattedLabel(N,bo),_u(e,N)):null;var q=Tp(z,Y,!1);return D(L,G),G=EO(G,$,q),L&&T(G,L),G.legacy=!0,G}function C(L,N){process.env.NODE_ENV!=="production"&&AO("api.styleEmphasis","Please write literal style directly instead."),N==null&&(N=u);var P=_(N,yi).getItemStyle(),B=b(N,yi),V=gt(B,null,null,!0,!0);V.text=B.getShallow("show")?nn(t.getFormattedLabel(N,yi),t.getFormattedLabel(N,bo),_u(e,N)):null;var G=Tp(B,null,!0);return D(L,P),P=EO(P,V,G),L&&T(P,L),P.legacy=!0,P}function T(L,N){for(var P in N)le(N,P)&&(L[P]=N[P])}function D(L,N){L&&(L.textFill&&(N.textFill=L.textFill),L.textPosition&&(N.textPosition=L.textPosition))}function E(L,N){if(N==null&&(N=u),le(wO,L)){var P=e.getItemVisual(N,"style");return P?P[wO[L]]:null}if(le(mae,L))return e.getItemVisual(N,L)}function A(L){if(i.type==="cartesian2d"){var N=i.getBaseAxis();return bj(ye({axis:N},L))}}function I(){return r.getCurrentSeriesIndices()}function k(L){return z0(L,r)}}function Wae(t){var e={};return M(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function SS(t,e,r,n,a,i,o){if(!n){i.remove(e);return}var s=wS(t,e,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Tt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function wS(t,e,r,n,a,i){process.env.NODE_ENV!=="production"&&_e(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&GO(e,n,a)&&(o=Re(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=_S(n),s&&zae(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Vn.normal.cfg=Vn.normal.conOpt=Vn.emphasis.cfg=Vn.emphasis.conOpt=Vn.blur.cfg=Vn.blur.conOpt=Vn.select.cfg=Vn.select.conOpt=null,Vn.isLegacy=!1,Yae(u,r,n,a,l,Vn),Uae(u,r,n,a,l),bS(t,u,r,n,Vn,a,l),le(n,"info")&&(mi(u).info=n.info);for(var c=0;c<So.length;c++){var f=So[c];if(f!==bo){var h=ng(n,f),d=xS(n,h,f);zO(f,u,h,d,Vn)}}return Gae(u,n,a),n.type==="group"&&Zae(t,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function GO(t,e,r){var n=mi(t),a=e.type,i=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qae(i)&&YO(i)!==n.customPathData||a==="image"&&le(o,"image")&&o.image!==n.customImagePath}function Uae(t,e,r,n,a){var i=r.clipPath;if(i===!1)t&&t.getClipPath()&&t.removeClipPath();else if(i){var o=t.getClipPath();o&&GO(o,i,n)&&(o=null),o||(o=_S(i),process.env.NODE_ENV!=="production"&&_e(rg(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),t.setClipPath(o)),bS(null,o,e,i,null,n,a)}}function Yae(t,e,r,n,a,i){if(!t.isGroup){HO(r,null,i),HO(r,yi,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=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=_S(o),t.setTextContent(c)),bS(null,c,e,o,null,n,a);for(var f=o&&o.style,h=0;h<So.length;h++){var d=So[h];if(d!==bo){var v=i[d].conOpt;zO(d,c,v,xS(o,v,d),null)}}f?c.dirty():c.markRedraw()}}}}function HO(t,e,r){var n=e?ng(t,e):t,a=e?xS(t,n,yi):t.style,i=t.type,o=n?n.textConfig:null,s=t.textContent,l=s?e?ng(s,e):s:null;if(a&&(r.isLegacy||CO(a,i,!!o,!!l))){r.isLegacy=!0;var u=TO(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&_e(c.type==="text",'textContent.type must be "text"')}var f=e?r[e]:r.normal;f.cfg=o,f.conOpt=l}function ng(t,e){return e?t?t[e]:null:t}function xS(t,e,r){var n=e&&e.style;return n==null&&r===yi&&t&&(n=t.styleEmphasis),n}function Zae(t,e,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){jae({api:t,oldChildren:e.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],h=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),wS(t,h,r,f,a,e)):(process.env.NODE_ENV!=="production"&&_e(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var d=e.childCount()-1;d>=c;d--){var v=e.childAt(d);Xae(e,v,a)}}}function Xae(t,e,r){e&&eg(e,mi(t).option,r)}function jae(t){new hi(t.oldChildren,t.newChildren,WO,WO,t).add(UO).update(UO).remove(Kae).execute()}function WO(t,e){var r=t&&t.name;return r??Fae+e}function UO(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,a=e!=null?r.oldChildren[e]:null;wS(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function Kae(t){var e=this.context,r=e.oldChildren[t];r&&eg(r,mi(r).option,e.seriesModel)}function YO(t){return t&&(t.pathData||t.d)}function qae(t){return t&&(le(t,"pathData")||le(t,"d"))}function Jae(t){t.registerChartView($ae),t.registerSeriesModel(yae)}var tl=je(),ZO=we,CS=oe,TS=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Ce,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=Ae(XO,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}qO(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.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=Y1(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=tl(e).pointerEl=new bs[i.type](ZO(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=tl(e).labelEl=new Ue(ZO(r.label));e.add(i),KO(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=tl(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=tl(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),KO(i,a))},t.prototype._renderHandle=function(e){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=Xl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ri(u.event)},onmousedown:CS(this._onHandleDragMove,this,0,0),drift:CS(this._onHandleDragMove,this),ondragend:CS(this._onHandleDragEnd,this)}),n.add(a)),qO(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Z(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,su(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){XO(this._axisPointerModel,!r&&this._moveAnimation,this._handle,DS(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(DS(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(DS(a)),tl(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,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),bf(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function XO(t,e,r,n){jO(tl(r).lastProp,n)||(tl(r).lastProp=n,e?Je(r,n,t):(r.stopAnimation(),r.attr(n)))}function jO(t,e){if(ve(t)&&ve(e)){var r=!0;return M(e,function(n,a){r=r&&jO(t[a],n)}),!!r}else return t===e}function KO(t,e){t[e.get(["label","show"])?"show":"hide"]()}function DS(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function qO(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function ES(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function JO(t,e,r,n,a){var i=r.get("value"),o=QO(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ss(s.get("padding")||0),u=s.getFont(),c=zc(o,u),f=a.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),Qae(f,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:gt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Qae(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function QO(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:c1(e,{value:t}),axisDimension:e.dim,axisIndex:e.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)}),ie(o)?i=o.replace("{value}",i):de(o)&&(i=o(s))}return i}function MS(t,e,r){var n=Zr();return Ui(n,n,r.rotation),Xn(n,n,r.position),ra([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function eR(t,e,r,n,a,i){var o=Gr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),JO(e,n,a,i,{position:MS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function AS(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function tR(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function rR(t,e,r,n,a,i){return{cx:t,cy:e,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var eie=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=nR(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=ES(i),d=tie[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=G1(l.model,a);eR(n,r,v,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=G1(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=MS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=nR(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 h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},e}(TS);function nR(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var tie={line:function(t,e,r){var n=AS([e,r[0]],[e,r[1]],aR(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:tR([e-n/2,r[0]],[n,a],aR(t))}}};function aR(t){return t.dim==="x"?0:1}var rie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Ve),_i=je(),nie=M;function iR(t,e,r){if(!Fe.node){var n=e.getZr();_i(n).records||(_i(n).records={}),aie(n,e);var a=_i(n).records[t]||(_i(n).records[t]={});a.handler=r}}function aie(t,e){if(_i(t).initialized)return;_i(t).initialized=!0,r("click",Ae(oR,"click")),r("mousemove",Ae(oR,"mousemove")),r("globalout",oie);function r(n,a){t.on(n,function(i){var o=sie(e);nie(_i(t).records,function(s){s&&a(s,i,o.dispatchAction)}),iie(o.pendings,e)})}}function iie(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function oie(t,e,r){t.handler("leave",null,r)}function oR(t,e,r,n){e.handler(t,r,n)}function sie(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function IS(t,e){if(!Fe.node){var r=e.getZr(),n=(_i(r).records||{})[t];n&&(_i(r).records[t]=null)}}var lie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";iR("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})})},e.prototype.remove=function(r,n){IS("axisPointer",n)},e.prototype.dispose=function(r,n){IS("axisPointer",n)},e.type="axisPointer",e}(_t);function sR(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rs(i,t);if(o==null||o<0||Z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,d=f==="x"||f==="radius"?1:0,v=i.mapDimension(h),g=[];g[d]=i.get(v,o),g[1-d]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(i.getValues(K(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 lR=je();function uie(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||oe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ag(a)&&(a=sR({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ag(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||ag(a),h={},d={},v={list:[],map:{}},g={showPointer:Ae(fie,d),showTooltip:Ae(hie,v)};M(s.coordSysMap,function(y,_){var b=l||y.containPoint(a);M(s.coordSysAxesInfo[_],function(S,w){var x=S.axis,C=gie(u,S);if(!f&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&uR(S,T,g,!1,h)}})});var m={};return M(c,function(y,_){var b=y.linkGroup;b&&!d[_]&&M(b.axesInfo,function(S,w){var x=d[w];if(S!==y&&x){var C=x.value;b.mapper&&(C=y.axis.scale.parse(b.mapper(C,cR(S),cR(y)))),m[y.key]=C}})}),M(m,function(y,_){uR(c[_],y,g,!0,h)}),die(d,c,h),pie(v,a,t,o),vie(c,o,r),h}}function uR(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=cie(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&W(a,s[0]),!n&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function cie(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,t,r);h=d.dataIndices,f=d.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],t,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var v=t-f,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,a=f,i.length=0),M(h,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function fie(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function hie(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Yf(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim: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 die(t,e,r){var n=r.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=t[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 pie(t,e,r,n){if(ag(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function vie(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=lR(n)[a]||{},o=lR(n)[a]={};M(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&M(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});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 gie(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function cR(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function ag(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function ch(t){Us.registerAxisPointerClass("CartesianAxisPointer",eie),t.registerComponentModel(rie),t.registerComponentView(lie),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Z(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=EJ(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uie)}function mie(t){Be(FL),Be(ch)}var yie=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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),h=i.get("type");if(h&&h!=="none"){var d=ES(i),v=bie[h](s,l,f,c);v.style=d,r.graphicKey=v.type,r.pointer=v}var g=i.get(["label","margin"]),m=_ie(n,a,i,l,g);JO(r,a,i,o,m)},e}(TS);function _ie(t,e,r,n,a){var i=e.axis,o=i.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=Zr();Ui(h,h,s),Xn(h,h,[n.cx,n.cy]),u=ra([o,-a],h);var d=e.getModel("axisLabel").get("rotate")||0,v=Gr.innerTextLayout(s,d*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 bie={line:function(t,e,r,n){return t.dim==="angle"?{type:"Line",shape:AS(e.coordToPoint([n[0],r]),e.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(t,e,r,n){var a=Math.max(1,t.getBandWidth()),i=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:rR(e.cx,e.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:rR(e.cx,e.cy,r-a/2,r+a/2,0,Math.PI*2)}}},Sie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Ve),kS=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$t).models[0]},e.type="polarAxis",e}(Ve);It(kS,mu);var wie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e}(kS),xie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e}(kS),LS=function(t){F(e,t);function e(r,n){return t.call(this,"radius",r,n)||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e}(Nn);LS.prototype.dataToRadius=Nn.prototype.dataToCoord,LS.prototype.radiusToData=Nn.prototype.coordToData;var Cie=je(),NS=function(t){F(e,t);function e(r,n){return t.call(this,"angle",r,n||[0,360])||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e.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=zc(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),v=Cie(r.model),g=v.lastAutoInterval,m=v.lastTickCount;return g!=null&&m!=null&&Math.abs(g-d)<=1&&Math.abs(m-o)<=1&&g>d?d=g:(v.lastTickCount=o,v.lastAutoInterval=d),d},e}(Nn);NS.prototype.dataToAngle=Nn.prototype.dataToCoord,NS.prototype.angleToData=Nn.prototype.coordToData;var fR=["radius","angle"],Tie=function(){function t(e){this.dimensions=fR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new LS,this._angleAxis=new NS,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&r.push(n),a.scale.type===e&&r.push(a),r},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},t.prototype.dataToPoint=function(e,r){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)])},t.prototype.pointToData=function(e,r){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},t.prototype.pointToCoord=function(e){var r=e[0]-this.cx,n=e[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]},t.prototype.coordToPoint=function(e){var r=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},t.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.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:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,h=this.r,d=this.r0;return h!==d&&f-o<=h*h&&f+o>=d*d}}},t.prototype.convertToPixel=function(e,r,n){var a=hR(r);return a===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=hR(r);return a===this?this.pointToData(n):null},t}();function hR(t){var e=t.seriesModel,r=t.polarModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function Die(t,e,r){var n=e.get("center"),a=r.getWidth(),i=r.getHeight();t.cx=ne(n[0],a),t.cy=ne(n[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:Z(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Eie(t,e){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();M(yv(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(yv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Os(n.scale,n.model),Os(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 Mie(t){return t.mainType==="angleAxis"}function dR(t,e){var r;if(t.type=e.get("type"),t.scale=Nf(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),Mie(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(r=e.get("endAngle"))!==null&&r!==void 0?r:n+(t.inverse?-360:360);t.setExtent(n,a)}e.axis=t,t.model=e}var Aie={dimensions:fR,create:function(t,e){var r=[];return t.eachComponent("polar",function(n,a){var i=new Tie(a+"");i.update=Eie;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");dR(o,l),dR(s,u),Die(i,n,e),r.push(i),n.coordinateSystem=i,i.model=n}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",$t).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+Pt(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),r}},Iie=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ig(t,e,r){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],r]),a=t.coordToPoint([e[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function og(t){var e=t.getRadiusAxis();return e.inverse?0:1}function pR(t){var e=t[0],r=t[t.length-1];e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<1e-4&&t.pop()}var kie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.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=K(a.getViewLabels(),function(c){c=we(c);var f=a.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(h),c});pR(u),pR(s),M(Iie,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Lie[c](this.group,r,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Us),Lie={axisLine:function(t,e,r,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=og(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new bs[d]({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}):h=new Gl({shape:{cx:r.cx,cy:r.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,t.add(h)},axisTick:function(t,e,r,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[og(r)],u=K(n,function(c){return new Xt({shape:ig(r,[l,l+s],c.coord)})});t.add(cn(u,{style:ye(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,r,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[og(r)],c=[],f=0;f<a.length;f++)for(var h=0;h<a[f].length;h++)c.push(new Xt({shape:ig(r,[u,u+l],a[f][h].coord)}));t.add(cn(c,{style:ye(s.getModel("lineStyle").getLineStyle(),ye(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,r,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");M(o,function(f,h){var d=l,v=f.tickValue,g=i[og(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 w=s[v];ve(w)&&w.textStyle&&(d=new rt(w.textStyle,l,l.ecModel))}var x=new Ue({silent:Gr.isLabelSilent(e),style:gt(d,{x:m[0],y:m[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:S})});if(t.add(x),c){var C=Gr.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=f.rawLabel,Ee(x).eventData=C}},this)},splitLine:function(t,e,r,n,a,i){var o=e.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 h=u++%l.length;c[h]=c[h]||[],c[h].push(new Xt({shape:ig(r,i,n[f].coord)}))}for(var f=0;f<c.length;f++)t.add(cn(c[f],{style:ye({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,r,n,a,i){if(a.length){for(var o=e.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 Xt({shape:ig(r,i,a[u][c].coord)}));t.add(cn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,r,n,a,i){if(n.length){var o=e.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,h=-n[0].coord*f,d=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),g=e.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 Cr({shape:{cx:r.cx,cy:r.cy,r0:d,r:v,startAngle:h,endAngle:-_*f,clockwise:g},silent:!0})),h=-_*f}for(var m=0;m<c.length;m++)t.add(cn(c[m],{style:ye({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},Nie=["axisLine","axisTickLabel","axisName"],Pie=["splitLine","splitArea","minorSplitLine"],Oie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new Ce;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),d=Vie(s,r,f),v=new Gr(r,d);M(Nie,v.add,v),i.add(v.getGroup()),sf(a,i,r),M(Pie,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&Rie[g](this.group,r,s,f,h,u,c)},this)}},e.type="radiusAxis",e}(Us),Rie={splitLine:function(t,e,r,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),d=Math.abs(h[1]-h[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 bs[d]({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[g].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)t.add(cn(v[g],{style:ye({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,r,n,a,i,o){if(o.length){for(var s=e.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 Ma({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));t.add(cn(u,{style:ye({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,r,n,a,i){if(i.length){var o=e.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,h=1;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Cr({shape:{cx:r.cx,cy:r.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)t.add(cn(c[h],{style:ye({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function Vie(t,e,r){return{position:[t.cx,t.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function vR(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function gR(t,e){return e.dim+t.model.componentIndex}function Bie(t,e,r){var n={},a=Fie(tt(e.getSeriesByType(t),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=gR(s,l),c=vR(i),f=a[u][c],h=f.offset,d=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),w=di(o,b),x=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 I=o.get(b,E),k=o.get(S,E),L=I>=0?"p":"n",N=D;w&&(n[c][k]||(n[c][k]={p:D,n:D}),N=n[c][k][L]);var P=void 0,B=void 0,V=void 0,G=void 0;if(v.dim==="radius"){var Y=v.dataToCoord(I)-D,z=l.dataToCoord(k);Math.abs(Y)<y&&(Y=(Y<0?-1:1)*y),P=N,B=N+Y,V=z-h,G=V-d,w&&(n[c][k][L]=B)}else{var $=v.dataToCoord(I,x)-D,q=l.dataToCoord(k);Math.abs($)<_&&($=($<0?-1:1)*_),P=q+h,B=P+d,V=N,G=N+$,w&&(n[c][k][L]=G)}o.setItemLayout(E,{cx:g,cy:m,r0:P,r:B,startAngle:-V*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:V>=G})}}})}function Fie(t){var e={};M(t,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=gR(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var d=vR(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var v=ne(n.get("barWidth"),c),g=ne(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!h[d].width&&(v=Math.min(f.remainedWidth,v),h[d].width=v,f.remainedWidth-=v),g&&(h[d].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return M(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(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 h=0,d;M(i,function(g,m){g.width||(g.width=f),d=g,h+=g.width*(1+l)}),d&&(h-=d.width*l);var v=-h/2;M(i,function(g,m){r[a][m]=r[a][m]||{offset:v,width:g.width},v+=g.width*(1+l)})}),r}var zie={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$ie={splitNumber:5},Gie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="polar",e}(_t);function Hie(t){Be(ch),Us.registerAxisPointerClass("PolarAxisPointer",yie),t.registerCoordinateSystem("polar",Aie),t.registerComponentModel(Sie),t.registerComponentView(Gie),Su(t,"angle",wie,zie),Su(t,"radius",xie,$ie),t.registerComponentView(kie),t.registerComponentView(Oie),t.registerLayout(Ae(Bie,"bar"))}function PS(t,e){e=e||{};var r=t.coordinateSystem,n=t.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],t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Pt(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return h==null&&(h=t.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var Wie=["axisLine","axisTickLabel","axisName"],Uie=["splitArea","splitLine"],Yie=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="SingleAxisPointer",r}return e.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ce;var l=PS(r),u=new Gr(r,l);M(Wie,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(Uie,function(c){r.get([c,"show"])&&Zie[c](this,this.group,this._axisGroup,r)},this),sf(s,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)},e.prototype.remove=function(){OL(this)},e.type="singleAxis",e}(Us),Zie={splitLine:function(t,e,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=[],h=0,d=a.getTicksCoords({tickModel:i}),v=[],g=[],m=0;m<d.length;++m){var y=a.toGlobalCoord(d[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 Xt({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});Zl(_.shape,l);var b=h++%s.length;f[b]=f[b]||[],f[b].push(_)}for(var S=o.getLineStyle(["color"]),m=0;m<f.length;++m)e.add(cn(f[m],{style:ye({stroke:s[m%s.length]},S),silent:!0}))}},splitArea:function(t,e,r,n){PL(t,r,n,n)}},sg=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(Ve);It(sg,mu.prototype);var Xie=function(t){F(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},e}(Nn),mR=["single"],jie=function(){function t(e,r,n){this.type="single",this.dimension="single",this.dimensions=mR,this.axisPointerEnabled=!0,this.model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var a=this.dimension,i=new Xie(a,Nf(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(e,r){e.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),Os(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,r){this._rect=Gt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?e.x:e.y)},t.prototype._updateAxisTransform=function(e,r){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},e.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=r.y&&e[1]<=r.y+r.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},t.prototype.pointToData=function(e){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(e[r.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},t.prototype.convertToPixel=function(e,r,n){var a=yR(r);return a===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=yR(r);return a===this?this.pointToData(n):null},t}();function yR(t){var e=t.seriesModel,r=t.singleAxisModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function Kie(t,e){var r=[];return t.eachComponent("singleAxis",function(n,a){var i=new jie(n,t,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,r.push(i)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",$t).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var qie={create:Kie,dimensions:mR},_R=["x","y"],Jie=["width","height"],Qie=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=OS(l,1-lg(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var h=ES(i),d=eoe[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=PS(a);eR(n,r,v,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=PS(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=MS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=lg(o),u=OS(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=OS(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(TS),eoe={line:function(t,e,r){var n=AS([e,r[0]],[e,r[1]],lg(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=t.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:tR([e-n/2,r[0]],[n,a],lg(t))}}};function lg(t){return t.isHorizontal()?0:1}function OS(t,e){var r=t.getRect();return[r[_R[e]],r[_R[e]]+r[Jie[e]]]}var toe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e}(_t);function roe(t){Be(ch),Us.registerAxisPointerClass("SingleAxisPointer",Qie),t.registerComponentView(toe),t.registerComponentView(Yie),t.registerComponentModel(sg),Su(t,"single",sg,sg.defaultOption),t.registerCoordinateSystem("single",qie)}var noe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,a){var i=eu(r);t.prototype.init.apply(this,arguments),bR(r,i)},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),bR(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Ve);function bR(t,e){var r=t.cellSize,n;Z(r)?n=r:n=t.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=K([0,1],function(i){return oY(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});so(t,e,{type:"box",ignoreSize:a})}var aoe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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)},e.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 We({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.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,h=0;f.time<=n.end.time;h++){v(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}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)},e.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},e.prototype._drawSplitline=function(r,n,a){var i=new Dr({z2:20,shape:{points:r},style:n});a.add(i)},e.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},e.prototype._formatterLabel=function(r,n){return ie(r)&&r?rY(r,n):de(r)?r(n):n.nameMap},e.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]}}},e.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,h=a==="horizontal"?0:1,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][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 Ue({z2:30,style:gt(o,{text:y}),silent:o.get("silent")});_.attr(this._yearTextPositionControl(_,d[l],a,l,s)),i.add(_)}},e.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}},e.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||ie(s))&&(s&&(n=Y0(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",g=o.get("silent"),m=0;m<f[h].length-1;m++){var y=f[h][m].slice(),_=this._firstDayOfMonth[m];if(v){var b=this._firstDayPoints[m];y[d]=(b[d]+f[0][m+1][d])/2}var S=o.get("formatter"),w=s[+_.m-1],x={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:w},C=this._formatterLabel(S,x),T=new Ue({z2:30,style:W(gt(o,{text:C}),this._monthTextPositionControl(y,v,a,u,l)),silent:g});i.add(T)}}},e.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}},e.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"),h=l.getFirstDayOfWeek();if(!c||ie(c)){c&&(n=Y0(c)||n);var d=n.get(["time","dayOfWeekShort"]);c=d||K(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=ne(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+h)%7);var w=new Ue({z2:30,style:W(gt(s,{text:c[S]}),this._weekTextPositionControl(b,i,u,f,g)),silent:m});o.add(w)}}},e.type="calendar",e}(_t),RS=864e5,ioe=function(){function t(e,r,n){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=ln(e);var r=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:r+"-"+a+"-"+o,date:e}},t.prototype.getNextNDay=function(e,r){return r=r||0,r===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+r),this.getDateInfo(e))},t.prototype.update=function(e,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=Gt(o,l);M([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(e,r){Z(e)&&(e=e[0]),r==null&&(r=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+RS))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]},t.prototype.pointToData=function(e){var r=this.pointToDate(e);return r&&r.time},t.prototype.dataToRect=function(e,r){var n=this.dataToPoint(e,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]}},t.prototype.pointToDate=function(e){var r=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[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)},t.prototype.convertToPixel=function(e,r,n){var a=SR(r);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var a=SR(r);return a===this?a.pointToData(n):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),r;if(Z(e)&&e.length===1&&(e=e[0]),Z(e))r=e;else{var n=e.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"&&gn("Invalid date range."),e;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},t.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/RS)-Math.floor(r[0].time/RS)+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}},t.prototype._getDateByWeeksAndDay=function(e,r,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&r<a.fweek||e===a.weeks&&r>a.lweek)return null;var i=(e-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},t.create=function(e,r){var n=[];return e.eachComponent("calendar",function(a){var i=new t(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},t.dimensions=["time","value"],t}();function SR(t){var e=t.calendarModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}function ooe(t){t.registerComponentModel(noe),t.registerComponentView(aoe),t.registerCoordinateSystem("calendar",ioe)}function soe(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function wR(t,e){var r;return M(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function loe(t,e,r){var n=W({},r),a=t[e],i=r.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=r.type;_e(!o||a.type===o,'Please set $action: "replace" to change `type`')}ke(a,n,!0),so(a,n,{ignoreSize:!0}),Q2(r,a),ug(r,a),ug(r,a,"shape"),ug(r,a,"style"),ug(r,a,"extra"),r.clipPath=a.clipPath}else t[e]=n;else i==="replace"?t[e]=n:i==="remove"&&a&&(t[e]=null)}var xR=["transition","enterFrom","leaveTo"],uoe=xR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ug(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?xR:uoe,a=0;a<n.length;a++){var i=n[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function coe(t,e){if(t&&(t.hv=e.hv=[wR(e,["left","right"]),wR(e,["top","bottom"])],t.type==="group")){var r=t,n=e;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var foe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.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=lE(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(c,f){var h=c.newOption;process.env.NODE_ENV!=="production"&&_e(ve(h)||c.existing,"Empty graphic option definition"),h&&(u.push(h),soe(c,h),loe(o,f,h),coe(o[f],h))},this),a.elements=tt(o,function(c){return c&&delete c.$action,c!=null})},e.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)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(Ve),CR={path:null,compoundPath:null,group:Ce,image:Jt,text:Ue},Bn=je(),hoe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=fe()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.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=Zt(l.id,null),c=u!=null?a.get(u):null,f=Zt(l.parentId,null),h=f!=null?a.get(f):i,d=l.type,v=l.style;d==="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&&CO(v,d,!!m,!!g)){var y=TO(v,d,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var _=doe(l);process.env.NODE_ENV!=="production"&&c&&_e(h===c.parent,"Changing parent is not supported.");var b=l.$action||"merge",S=b==="merge",w=b==="replace";if(S){var x=!c,C=c;x?C=TR(u,h,l.type,a):(C&&(Bn(C).isNew=!1),BO(C)),C&&(Qv(C,_,r,{isInit:x}),DR(C,l,o,s))}else if(w){cg(c,l,a,r);var T=TR(u,h,l.type,a);T&&(Qv(T,_,r,{isInit:!0}),DR(T,l,o,s))}else b==="remove"&&(NO(c,l),cg(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 Ue(g))}else w&&D.setTextContent(new Ue(g));if(D){var A=l.clipPath;if(A){var I=A.type,k=void 0,x=!1;if(S){var L=D.getClipPath();x=!L||Bn(L).type!==I,k=x?VS(I):L}else w&&(x=!0,k=VS(I));D.setClipPath(k),Qv(k,A,r,{isInit:x}),tg(k,A.keyframeAnimation,r)}var N=Bn(D);D.setTextConfig(m),N.option=l,poe(D,r,l),_s({el:D,componentModel:r,itemName:D.name,itemTooltipOption:l.tooltip}),tg(D,l.keyframeAnimation,r)}})}},e.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],h=Zt(f.id,null),d=h!=null?o.get(h):null;if(!(!d||!d.isGroup)){var v=d.parent,g=v===i,m=Bn(d),y=Bn(v);m.width=ne(m.option.width,g?s:y.width)||0,m.height=ne(m.option.height,g?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],h=Zt(f.id,null),d=h!=null?o.get(h):null;if(d){var v=d.parent,y=Bn(v),_=v===i?{width:s,height:l}:{width:y.width,height:y.height},b={},S=Op(d,f,_,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Bn(d).isNew&&S){for(var w=f.transition,x={},C=0;C<u.length;C++){var T=u[C],D=b[T];w&&(el(w)||Re(w,T)>=0)?x[T]=D:d[T]=D}Je(d,x,r,0)}else d.attr(b)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){cg(a,Bn(a).option,n,r._lastGraphicModel)}),this._elMap=fe()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(_t);function VS(t){process.env.NODE_ENV!=="production"&&_e(t,"graphic type MUST be set");var e=le(CR,t)?CR[t]:Sp(t);process.env.NODE_ENV!=="production"&&_e(e,"graphic type "+t+" can not be found");var r=new e({});return Bn(r).type=t,r}function TR(t,e,r,n){var a=VS(r);return e.add(a),n.set(t,a),Bn(a).id=t,Bn(a).isNew=!0,a}function cg(t,e,r,n){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){cg(i,e,r,n)}),eg(t,e,n),r.removeKey(Bn(t).id))}function DR(t,e,r,n){t.isGroup||M([["cursor",Cn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];le(e,i)?t[i]=De(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),M($e(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=de(i)?i:null}}),le(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function doe(t){return t=W({},t),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(J2),function(e){delete t[e]}),t}function poe(t,e,r){var n=Ee(t).eventData;!t.silent&&!t.ignore&&!n&&(n=Ee(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function voe(t){t.registerComponentModel(foe),t.registerComponentView(hoe),t.registerPreprocessor(function(e){var r=e.graphic;Z(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var ER=["x","y","radius","angle","single"],goe=["cartesian2d","polar","singleAxis"];function moe(t){var e=t.get("coordinateSystem");return Re(goe,e)>=0}function wo(t){return process.env.NODE_ENV!=="production"&&_e(t),t+"Axis"}function yoe(t,e){var r=fe(),n=[],a=fe();t.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,t.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(h,d){var v=r.get(h);v&&v[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function MR(t){var e=t.ecModel,r={infoList:[],infoMap:fe()};return t.eachTargetAxis(function(n,a){var i=e.getComponent(wo(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 BS=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),fh=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,a){var i=AR(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},e.prototype.mergeOption=function(r){var n=AR(r);ke(this.option,r,!0),ke(this.settledOption,n,!0),this._doInit(n)},e.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()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=fe(),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)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return M(ER,function(a){var i=this.getReferringComponents(wo(a),XU);if(i.specified){n=!0;var o=new BS;M(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},e.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 h=new BS;if(h.add(f.componentIndex),r.set(c,h),i=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",$t).models[0];d&&M(u,function(v){f.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",$t).models[0]&&h.add(v.componentIndex)})}}}i&&M(ER,function(u){if(i){var c=a.findComponents({mainType:wo(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new BS;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.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}},e.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")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(wo(n),a))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){r.call(n,i,o)})})},e.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&_e(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(wo(r),n)},e.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)},e.prototype.setCalculatedRange=function(r){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.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()},e.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},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&_e(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ve);function AR(t){var e={};return M(["start","end","startValue","endValue","throttle"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var _oe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(fh),FS=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},e.type="dataZoom",e}(_t),boe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e}(FS),ku=M,IR=sn,Soe=function(){function t(e,r,n,a){this._dimName=e,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(moe(r)){var n=wo(this._dimName),a=r.getReferringComponents(n,$t).models[0];a&&this._axisIndex===a.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return we(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ku(["start","end"],function(h,d){var v=e[h],g=e[h+"Value"];i[d]==="percent"?(v==null&&(v=o[d]),g=a.parse(at(v,o,r))):(u=!0,g=g==null?r[d]:a.parse(g),v=at(g,r,o)),l[d]=g==null||isNaN(g)?r[d]:g,s[d]=v==null||isNaN(v)?o[d]:v}),IR(l),IR(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(h,d,v,g,m){var y=m?"Span":"ValueSpan";qs(0,h,v,"all",c["min"+y],c["max"+y]);for(var _=0;_<2;_++)d[_]=at(h[_],v,g,!0),m&&(d[_]=a.parse(d[_]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=woe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,r){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;ku(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),h=K(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var v,g,m,y=0;y<c.length;y++){var _=f.get(h[y],d),b=!isNaN(_),S=_<o[0],w=_>o[1];if(b&&!S&&!w)return!0;b&&(m=!0),S&&(v=!0),w&&(g=!0)}return m&&v&&g})}else ku(c,function(d){if(i==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});ku(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ku(["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=at(n[0]+o,n,[0,100],!0):i!=null&&(o=at(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=Uy(n,[0,500]);a=Math.min(a,20);var i=e.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()}},t}();function woe(t,e,r){var n=[1/0,-1/0];ku(r,function(o){Gj(n,o.getData(),e)});var a=t.getAxisModel(),i=VI(a.axis.scale,a,n).calculate();return[i.min,i.max]}var xoe={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(wo(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Soe(a,i,s,t),r.push(o.__dzAxisProxy))});var n=fe();return M(r,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(t,e){t.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,e)})}),t.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 Coe(t){t.registerAction("dataZoom",function(e,r){var n=yoe(r,e);M(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kR=!1;function zS(t){kR||(kR=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,xoe),Coe(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Toe(t){t.registerComponentModel(_oe),t.registerComponentView(boe),zS(t)}var Fn=function(){function t(){}return t}(),LR={};function Lu(t,e){LR[t]=e}function NR(t){return LR[t]}var Doe=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;M(this.option.feature,function(n,a){var i=NR(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),ke(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Ve);function Eoe(t,e,r){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=Gt(n,i,a);Cs(e.get("orient"),t,e.get("itemGap"),o.width,o.height),Op(t,n,i,a)}function PR(t,e){var r=Ss(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new We({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var Moe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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 hi(this._featureNames||[],f).add(h).update(h).remove(Ae(h,null)).execute(),this._featureNames=f;function h(v,g){var m=f[v],y=f[g],_=u[m],b=new rt(_,r,r.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(_.title=i.newTitle),m&&!y){if(Aoe(m))S={onclick:b.option.onclick,featureName:m};else{var w=NR(m);if(!w)return;S=new w}c[m]=S}else if(S=c[y],!S)return;S.uid=Kl("toolbox-feature"),S.model=b,S.ecModel=n,S.api=a;var x=S instanceof Fn;if(!m&&y){x&&S.dispose&&S.dispose(n,a);return}if(!b.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}d(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"?li:ui)(E[C])},S instanceof Fn&&S.render&&S.render(b,n,a,i)}function d(v,g,m){var y=v.getModel("iconStyle"),_=v.getModel(["emphasis","iconStyle"]),b=g instanceof Fn&&g.getIcons?g.getIcons():v.get("icon"),S=v.get("title")||{},w,x;ie(b)?(w={},w[m]=b):w=b,ie(S)?(x={},x[m]=S):x=S;var C=v.iconPaths={};M(w,function(T,D){var E=Xl(T,{},{x:-s/2,y:-s/2,width:s,height:s});E.setStyle(y.getItemStyle());var A=E.ensureState("emphasis");A.style=_.getItemStyle();var I=new Ue({style:{text:x[D],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null,font:z0({fontStyle:_.get("textFontStyle"),fontFamily:_.get("textFontFamily"),fontSize:_.get("textFontSize"),fontWeight:_.get("textFontWeight")},n)},ignore:!0});E.setTextContent(I),_s({el:E,componentModel:r,itemName:D,formatterParamsExtra:{title:x[D]}}),E.__title=x[D],E.on("mouseover",function(){var k=_.getItemStyle(),L=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:_.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),E.setTextConfig({position:_.get("textPosition")||L}),I.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(v.get(["iconStatus",D])==="emphasis"?li:ui)(E),o.add(E),E.on("click",oe(g.onclick,g,n,a,D)),C[D]=E})}Eoe(o,r,a),o.add(PR(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&&!de(b)&&g){var S=b.style||(b.style={}),w=zc(g,Ue.makeFont(S)),x=v.x+o.x,C=v.y+o.y+s,T=!1;C+w.height>a.getHeight()&&(y.position="top",T=!0);var D=T?-5-w.height:s+10;x+w.width/2>a.getWidth()?(y.position=["100%",D],S.align="right"):x-w.width/2<0&&(y.position=[0,D],S.align="left")}})},e.prototype.updateView=function(r,n,a,i){M(this._features,function(o){o instanceof Fn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(r,n){M(this._features,function(a){a instanceof Fn&&a.remove&&a.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){M(this._features,function(a){a instanceof Fn&&a.dispose&&a.dispose(r,n)})},e.type="toolbox",e}(_t);function Aoe(t){return t.indexOf("my")===0}var Ioe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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=Fe.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 h=l.split(","),d=h[0].indexOf("base64")>-1,v=o?decodeURIComponent(h[1]):h[1];d&&(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,w=S.document;w.open("image/svg+xml","replace"),w.write(v),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=i}},e.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},e}(Fn),OR="__ec_magicType_stack__",koe=[["line","bar"],["stack"]],Loe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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},e.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},e.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(RR[a]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,v=RR[a](h,d,f,i);v&&(ye(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(_,$t).models[0],S=b.componentIndex;s[_]=s[_]||[];for(var w=0;w<=S;w++)s[_][S]=s[_][S]||{};s[_][S].boundaryGap=a==="bar"}}};M(koe,function(f){Re(f,a)>=0&&M(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=ke({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"})}},e}(Fn),RR={line:function(t,e,r,n){if(t==="bar")return ke({id:e,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(t,e,r,n){if(t==="line")return ke({id:e,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(t,e,r,n){var a=r.get("stack")===OR;if(t==="line"||t==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ke({id:e,stack:a?"":OR},n.get(["option","stack"])||{},!0)}};aa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var fg=new Array(60).join("-"),Nu=" ";function Noe(t){var e={},r=[],n=[];return t.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;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function Poe(t){var e=[];return M(t,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(K(r.series,function(d){return d.name})),l=[a.model.getCategories()];M(r.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Nu)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(Nu))}e.push(u.join(`
66
+ `))}),e.join(`
67
+
68
+ `+fg+`
69
+
70
+ `)}function Ooe(t){return K(t,function(e){var r=e.getRawData(),n=[e.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+Nu:"")+a.join(Nu))}),n.join(`
71
+ `)}).join(`
72
+
73
+ `+fg+`
74
+
75
+ `)}function Roe(t){var e=Noe(t);return{value:tt([Poe(e.seriesGroupByCategoryAxis),Ooe(e.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
76
+
77
+ `+fg+`
78
+
79
+ `),meta:e.meta}}function hg(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Voe(t){var e=t.slice(0,t.indexOf(`
80
+ `));if(e.indexOf(Nu)>=0)return!0}var $S=new RegExp("["+Nu+"]+","g");function Boe(t){for(var e=t.split(/\n+/g),r=hg(e.shift()).split($S),n=[],a=K(r,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=hg(e[i]).split($S);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 Foe(t){for(var e=t.split(/\n+/g),r=hg(e.shift()),n=[],a=0;a<e.length;a++){var i=hg(e[a]);if(i){var o=i.split($S),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 zoe(t,e){var r=t.split(new RegExp(`
81
+ *`+fg+`
82
+ *`,"g")),n={series:[]};return M(r,function(a,i){if(Voe(a)){var o=Boe(a),s=e[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=Foe(a);n.series.push(o)}}),n}var $oe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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"),h=i.get("contentToOption"),d=Roe(r);if(de(f)){var v=f(n.getOption());ie(v)?u.innerHTML=v:zi(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=d.value,u.appendChild(c)}var m=d.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 w=this;function x(){a.removeChild(o),w._dom=null}ly(b,"click",x),ly(S,"click",function(){if(h==null&&f!=null||h!=null&&f==null){process.env.NODE_ENV!=="production"&&Ct("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var C;try{de(h)?C=h(u,n.getOption()):C=zoe(c.value,m)}catch(T){throw x(),new Error("Data view format error "+T)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),x()}),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},e.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.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},e}(Fn);function Goe(t,e){return K(t,function(r,n){var a=e&&e[n];if(ve(a)&&!Z(a)){var i=ve(r)&&!Z(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=ye(r,a),o&&delete r.name,r}else return r})}aa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var r=[];M(t.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)r.push(W({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:Goe(n.data,i)})}}),e.mergeOption(ye({series:r},t.newOption))});var VR=M,BR=je();function Hoe(t,e){var r=GS(t);VR(e,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=t.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(e)}function Woe(t){var e=GS(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return VR(r,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Uoe(t){BR(t).snapshots=null}function Yoe(t){return GS(t).length}function GS(t){var e=BR(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Zoe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){Uoe(r),n.dispatchAction({type:"restore",from:this.uid})},e.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},e}(Fn);aa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var Xoe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],HS=function(){function t(e,r,n){var a=this;this._targetInfoList=[];var i=FR(r,e);M(joe,function(o,s){(!n||!n.include||Re(n.include,s)>=0)&&o(i,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=US[n.brushType](0,i,a);n.__rangeOffset={offset:HR[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){M(e,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&M(i.coordSyses,function(o){var s=US[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){M(e,function(n){var a=this.findTargetInfo(n,r);if(process.env.NODE_ENV!=="production"&&(_e(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),_e(!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=US[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?HR[n.brushType](i.values,o.offset,Koe(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,r){return K(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:VP(a),isTargetByCursor:FP(a,e,n.coordSysModel),getLinearBrushOtherExtent:BP(a)}})},t.prototype.controlSeries=function(e,r,n){var a=this.findTargetInfo(e,n);return a===!0||a&&Re(a.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,a=FR(r,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<zR.length;l++)if(zR[l](a,o))return o}return!0},t}();function WS(t){return t[0]>t[1]&&t.reverse(),t}function FR(t,e){return Uc(t,e,{includeMainTypes:Xoe})}var joe={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,i=fe(),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,h){(Re(r,f.getAxis("x").model)>=0||Re(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:$R.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){M(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:$R.geo})})}},zR=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],$R={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ao(t)),e}},US={lineX:Ae(GR,0),lineY:Ae(GR,1),rect:function(t,e,r,n){var a=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),i=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[WS([a[0],i[0]]),WS([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=K(r,function(o){var s=t?e.pointToData(o,n):e.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 GR(t,e,r,n){process.env.NODE_ENV!=="production"&&_e(r.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=r.getAxis(["x","y"][t]),i=WS(K([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[t]=i,o[1-t]=[NaN,NaN],{values:i,xyMinMax:o}}var HR={lineX:Ae(WR,0),lineY:Ae(WR,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return K(t,function(n,a){return[n[0]-r[0]*e[a][0],n[1]-r[1]*e[a][1]]})}};function WR(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function Koe(t,e){var r=UR(t),n=UR(e),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function UR(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var YS=M,qoe=HU("toolbox-dataZoom_"),Joe=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new Hb(a.getZr()),this._brushController.on("brush",oe(this._onBrush,this)).mount()),tse(r,n,this,i,a),ese(r,n)},e.prototype.onclick=function(r,n,a){Qoe[a].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.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 HS(ZS(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Hoe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var h=c.getAxis(u),d=h.model,v=l(u,d,i),g=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=qs(0,f.slice(),h.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 h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,c.componentIndex);v&&(h=d)}),h}},e.prototype._dispatchZoomAction=function(r){var n=[];YS(r,function(a,i){n.push(we(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.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},e}(Fn),Qoe={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Woe(this.ecModel))}};function ZS(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function ese(t,e){t.setIconStatus("back",Yoe(e)>1?"emphasis":"normal")}function tse(t,e,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,t.setIconStatus("zoom",i?"emphasis":"normal");var o=new HS(ZS(t),e,{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:t.getModel("brushStyle").getItemStyle()}:!1)}hY("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),a=[],i=ZS(n),o=Uc(t,i);YS(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),YS(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:qoe+u+f};h[c]=f,a.push(h)}return a});function rse(t){t.registerComponentModel(Doe),t.registerComponentView(Moe),Lu("saveAsImage",Ioe),Lu("magicType",Loe),Lu("dataView",$oe),Lu("dataZoom",Joe),Lu("restore",Zoe),Be(Toe)}var nse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Ve);function YR(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ZR(t){if(Fe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var XR=ZR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ase=ZR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function jR(t,e){if(!t)return e;e=J0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function ise(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var ose=jR(ase,"transition"),XS=jR(XR,"transform"),sse="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Fe.transform3dSupported?"will-change:transform;":"");function lse(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function use(t,e,r){if(!ie(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=ws(e);var i=lse(r),o=Math.max(Math.round(a)*1.5,6),s="",l=XS+":",u;Re(["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,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-f)/2)*100)/100;s+=";"+i+":-"+d+"px";var v=e+" 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 cse(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,a="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,a+=Fe.transformSupported?","+XS+n:",left"+n+",top"+n),ose+":"+a}function KR(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Fe.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+XS+":"+o+";":[["top",0],["left",0],[XR,o]]}function fse(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=De(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),M(["decoration","align"],function(u){var c=t.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function hse(t,e,r){var n=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=QM(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&a&&n.push(cse(a,r)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(d){var v="border-"+d,g=J0(v),m=t.get(g);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(fse(c)),f!=null&&n.push("padding:"+Ss(f).join("px ")+"px"),n.join(";")+";"}function qR(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&pW(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dse=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(ie(i)?document.querySelector(i):zi(i)?i:de(i)&&i(e.getDom()));qR(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();bn(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=ise(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=sse+hse(e,!this._firstShow,this._longHide)+KR(i[0],i[1],!0)+("border-color:"+ws(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ie(i)&&n.get("trigger")==="item"&&!YR(n)&&(s=use(n,a,i)),ie(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Z(e)||(e=[e]);for(var l=0;l<e.length;l++)zi(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(qR(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=KR(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Fe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),pse=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),QR(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;ve(e)&&it(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 Ue({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:QM(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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=JR(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;QR(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=xo(i.borderWidth||0),s=JR(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function xo(t){return Math.max(0,t)}function JR(t){var e=xo(t.shadowBlur||0),r=xo(t.shadowOffsetX||0),n=xo(t.shadowOffsetY||0);return{left:xo(e-r),right:xo(e+r),top:xo(e-n),bottom:xo(e+n)}}function QR(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var vse=new We({shape:{x:-1,y:-1,width:2,height:2}}),gse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(Fe.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=KU(a.get("renderMode"));this._tooltipContent=i==="richText"?new pse(n):new dse(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!(Fe.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")?su(this,"_updatePosition",50,"fixRate"):bf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");iR("itemTooltip",this._api,oe(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.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})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Fe.node||!a.getDom())){var o=eV(i,a);this._ticket="";var s=i.dataByCoordSys,l=bse(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=vse;c.x=i.x,c.y=i.y,c.update(),Ee(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=sR(i,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,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))}},e.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(eV(i,a))},e.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=hh([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}}},e.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=Ee(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;As(a,function(c){if(Ee(c).dataIndex!=null)return l=c,!0;if(Ee(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)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=oe(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hh([n.tooltipOption],i),l=this._renderMode,u=[],c=er("section",{blocks:[],noHeader:!0}),f=[],h=new C_;M(r,function(_){M(_.dataByAxis,function(b){var S=a.getComponent(b.axisDim+"Axis",b.axisIndex),w=b.value;if(!(!S||w==null)){var x=QO(w,S.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=er("section",{header:x,noHeader:!yn(x),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=c1(S.axis,{value:w}),A.axisValueLabel=x,A.marker=h.makeTooltipMarker("item",ws(A.color),l);var I=NM(D.formatTooltip(E,!0,null)),k=I.frag;if(k){var L=hh([D],i).get("valueFormatter");C.blocks.push(L?W({valueFormatter:L},k):k)}I.text&&f.push(I.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),g=KM(c,h,l,v,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?`
83
+
84
+ `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Ee(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,g=hh([h.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 C_;y.marker=_.makeTooltipMarker("item",ws(y.color),d);var b=NM(u.formatTooltip(c,!1,f)),S=g.get("order"),w=g.get("valueFormatter"),x=b.frag,C=x?KM(w?W({valueFormatter:w},x):x,_,d,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:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=Ee(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ie(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=we(l),l.content=wr(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=hh(f,this._tooltipModel,d?{position:d}:null),g=v.get("content"),m=Math.random()+"",y=new C_;this._showOrMove(v,function(){var _=we(v.get("formatterParams")||{});this._showTooltipContent(v,g,_,m,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},e.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 h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),g=v.color;if(h)if(ie(h)){var m=r.ecModel.get("useUTC"),y=Z(a)?a[0]:a,_=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,_&&(d=ff(y.axisValue,d,m)),d=t_(d,a,!0)}else if(de(h)){var b=oe(function(S,w){S===this._ticket&&(f.setContent(w,c,r,g,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,d=h(a,i,b)}else d=h;f.setContent(d,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Z(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Z(n))return{color:i||n.color||n.borderColor}},e.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(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),de(n)&&(n=n([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Z(n))a=ne(n[0],u),i=ne(n[1],c);else if(ve(n)){var g=n;g.width=f[0],g.height=f[1];var m=Gt(g,{width:u,height:c});a=m.x,i=m.y,h=null,d=null}else if(ie(n)&&l){var y=_se(n,v,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=mse(a,i,o,u,c,h?null:20,d?null:20);a=y[0],i=y[1]}if(h&&(a-=tV(h)?f[0]/2:h==="right"?f[0]:0),d&&(i-=tV(d)?f[1]/2:d==="bottom"?f[1]:0),YR(r)){var y=yse(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.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(h,d){var v=f[d]||{},g=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.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(h.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},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Fe.node||!n.getDom()||(bf(this,"_updatePosition"),this._tooltipContent.dispose(),IS("itemTooltip",n))},e.type="tooltip",e}(_t);function hh(t,e,r){var n=e.ecModel,a;r?(a=new rt(r,n,n),a=new rt(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof rt&&(o=o.get("tooltip",!0)),ie(o)&&(o={formatter:o}),o&&(a=new rt(o,a,n)))}return a}function eV(t,e){return t.dispatchAction||oe(e.dispatchAction,e)}function mse(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>n?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function yse(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function _se(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function tV(t){return t==="center"||t==="middle"}function bse(t,e,r){var n=qy(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Yc(e,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=Ee(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function Sse(t){Be(ch),t.registerComponentModel(nse),t.registerComponentView(gse),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},kt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},kt)}var wse=["rect","polygon","keep","clear"];function xse(t,e){var r=ut(t?t.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=t&&t.toolbox;Z(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Cse(s),e&&!s.length&&s.push.apply(s,wse)}}function Cse(t){var e={};M(t,function(r){e[r]=1}),t.length=0,M(e,function(r,n){t.push(n)})}var rV=M;function nV(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function jS(t,e,r){var n={};return rV(e,function(i){var o=n[i]=a();rV(t[i],function(s,l){if(rr.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new rr(u),l==="opacity"&&(u=we(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new rr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function aV(t,e,r){var n;M(r,function(a){e.hasOwnProperty(a)&&nV(e[a])&&(n=!0)}),n&&M(r,function(a){e.hasOwnProperty(a)&&nV(e[a])?t[a]=we(e[a]):delete t[a]})}function Tse(t,e,r,n,a,i){var o={};M(t,function(f){var h=rr.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return E_(r,s,f)}function u(f,h){SA(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(a,f),g=e[v],m=o[v],y=0,_=m.length;y<_;y++){var b=m[y];g[b]&&g[b].applyVisual(f,l,u)}}}function Dse(t,e,r,n){var a={};return M(t,function(i){var o=rr.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return E_(s,f,w)}function c(w,x){SA(s,f,w,x)}for(var f,h=s.getStore();(f=o.next())!=null;){var d=s.getRawDataItem(f);if(!(d&&d.visualMap===!1))for(var v=n!=null?h.get(l,f):f,g=r(v),m=e[g],y=a[g],_=0,b=y.length;_<b;_++){var S=y[_];m[S]&&m[S].applyVisual(v,u,c)}}}}}function Ese(t){var e=t.brushType,r={point:function(n){return iV[e].point(n,r,t)},rect:function(n){return iV[e].rect(n,r,t)}};return r}var iV={lineX:oV(0),lineY:oV(1),rect:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])},rect:function(t,e,r){return t&&r.boundingRect.intersect(t)}},polygon:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])&&Rs(r.range,t[0],t[1])},rect:function(t,e,r){var n=r.range;if(!t||n.length<=1)return!1;var a=t.x,i=t.y,o=t.width,s=t.height,l=n[0];if(Rs(n,a,i)||Rs(n,a+o,i)||Rs(n,a,i+s)||Rs(n,a+o,i+s)||Pe.create(t).contain(l[0],l[1])||lf(a,i,a+o,i,n)||lf(a,i,a,i+s,n)||lf(a+o,i,a+o,i+s,n)||lf(a,i+s,a+o,i+s,n))return!0}}};function oV(t){var e=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[t];return dh(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[t]],n[e[t]]+n[r[t]]];return s[1]<s[0]&&s.reverse(),dh(s[0],o)||dh(s[1],o)||dh(o[0],s)||dh(o[1],s)}}}}function dh(t,e){return e[0]<=t&&t<=e[1]}var sV=["inBrush","outOfBrush"],KS="__ecBrushSelect",qS="__ecInBrushSelectEvent";function lV(t){t.eachComponent({mainType:"brush"},function(e){var r=e.brushTargetManager=new HS(e.option,t);r.setInputRanges(e.areas,t)})}function Mse(t,e,r){var n=[],a,i;t.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),lV(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:we(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],h=[],d=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var g=K(o.areas,function(w){var x=Lse[w.brushType],C=ye({boundingRect:x?x(w):void 0},w);return C.selectors=Ese(C),C}),m=jS(o.option,sV,function(w){w.mappingMethod="fixed"});Z(c)&&M(c,function(w){f[w]=1});function y(w){return c==="all"||!!f[w]}function _(w){return!!w.length}t.eachSeries(function(w,x){var C=d[x]=[];w.subType==="parallel"?b(w,x):S(w,x,C)});function b(w,x){var C=w.coordinateSystem;v=v||C.hasAxisBrushed(),y(x)&&C.eachActiveState(w.getData(),function(T,D){T==="active"&&(h[D]=1)})}function S(w,x,C){if(!(!w.brushSelector||kse(o,x))&&(M(g,function(D){o.brushTargetManager.controlSeries(D,w,t)&&C.push(D),v=v||_(C)}),y(x)&&_(C))){var T=w.getData();T.each(function(D){uV(w,C,T,D)&&(h[D]=1)})}}t.eachSeries(function(w,x){var C={seriesId:w.id,seriesIndex:x,seriesName:w.name,dataIndex:[]};l.selected.push(C);var T=d[x],D=w.getData(),E=y(x)?function(A){return h[A]?(C.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return uV(w,T,D,A)?(C.dataIndex.push(D.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(x)?v:_(T))&&Tse(sV,m,D,E)})}),Ase(e,a,i,n,r)}function Ase(t,e,r,n,a){if(a){var i=t.getZr();if(!i[qS]){i[KS]||(i[KS]=Ise);var o=su(i,KS,r,e);o(t,n)}}}function Ise(t,e){if(!t.isDisposed()){var r=t.getZr();r[qS]=!0,t.dispatchAction({type:"brushSelect",batch:e}),r[qS]=!1}}function uV(t,e,r,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(t.brushSelector(n,r,o.selectors,o))return!0}}function kse(t,e){var r=t.option.seriesIndex;return r!=null&&r!=="all"&&(Z(r)?Re(r,e)<0:e!==r)}var Lse={rect:function(t){return cV(t.range)},polygon:function(t){for(var e,r=t.range,n=0,a=r.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&cV(e)}};function cV(t){return new Pe(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Nse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new Hb(n.getZr())).on("brush",oe(this._onBrush,this)).mount()},e.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},e.prototype.updateTransform=function(r,n,a,i){lV(n),this._updateController(r,n,a,i)},e.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},e.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},e.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())},e.prototype.dispose=function(){this._brushController.dispose()},e.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:we(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(a),$from:n})},e.type="brush",e}(_t),Pse="#ddd",Ose=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var a=this.option;!n&&aV(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Pse},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(r){process.env.NODE_ENV!=="production"&&(_e(Z(r)),M(r,function(n){_e(n.brushType,"Illegal areas")})),r&&(this.areas=K(r,function(n){return fV(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=fV(this.option,r),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Ve);function fV(t,e){return ke({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new rt(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var Rse=["rect","polygon","lineX","lineY","keep","clear"],Vse=function(t){F(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.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")})},e.prototype.updateView=function(r,n,a){this.render(r,n,a)},e.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},e.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}})},e.getDefaultOption=function(r){var n={show:!0,type:Rse.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},e}(Fn);function Bse(t){t.registerComponentView(Nse),t.registerComponentModel(Ose),t.registerPreprocessor(xse),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Mse),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},kt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},kt),Lu("brush",Vse)}var Fse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Ve),zse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,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=De(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Ue({style:gt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new Ue({style:gt(s,{text:h,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,d.silent=!g&&!m,v&&c.on("click",function(){Np(v,"_"+r.get("target"))}),g&&d.on("click",function(){Np(g,"_"+r.get("subtarget"))}),Ee(c).eventData=Ee(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),h&&i.add(d);var y=i.getBoundingRect(),_=r.getBoxLayoutParams();_.width=y.width,_.height=y.height;var b=Gt(_,{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),d.setStyle(S),y=i.getBoundingRect();var w=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var C=new We({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(_t);function $se(t){t.registerComponentModel(Fse),t.registerComponentView(zse)}var hV=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.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},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.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=Zt(Pl(u),""),h;ve(u)?(h=we(u),h.value=c):h=c,o.push(h),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new kr([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Ve),dV=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=oo(hV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(hV);It(dV,Fp.prototype);var Gse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(_t),Hse=function(t){F(e,t);function e(r,n,a,i){var o=t.call(this,r,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Nn),JS=Math.PI,pV=je(),Wse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.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 er("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()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=Yse(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?"+":"-":ie(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:JS/2},f=i==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,g=d?h.get("itemGap"):0,m=v+g,y=r.get(["label","rotate"])||0;y=y*JS/180;var _,b,S,w=h.get("position",!0),x=d&&h.get("showPlayBtn",!0),C=d&&h.get("showPrevBtn",!0),T=d&&h.get("showNextBtn",!0),D=0,E=f;w==="left"||w==="bottom"?(x&&(_=[0,0],D+=m),C&&(b=[D,0],D+=m),T&&(S=[E-v,0],E-=m)):(x&&(_=[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}},e.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Zr(),l=o.x,u=o.y+o.height;Xn(s,s,[-l,-u]),Ui(s,s,-JS/2),Xn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=_(o),f=_(a.getBoundingRect()),h=_(i.getBoundingRect()),d=[a.x,a.y],v=[i.x,i.y];v[0]=d[0]=c[0][0];var g=r.labelPosOpt;if(g==null||ie(g)){var m=g==="+"?0:1;b(d,f,c,1,m),b(v,h,c,1,1-m)}else{var m=g>=0?0:1;b(d,f,c,1,m),v[1]=d[1]+g}a.setPosition(d),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,w,x,C,T){S[C]+=x[C][T]-w[C][T]}},e.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=Use(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 Hse("value",o,r.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new Ce;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Xt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:W({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Xt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ye({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.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),h=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:oe(o._changeTimeline,o,u.value)},m=vV(f,h,n,g);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),to(m);var y=Ee(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.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,h=l.getItemModel(f),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new Ue({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:oe(o._changeTimeline,o,f),silent:!1,style:gt(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=gt(v),y.ensureState("progress").style=gt(g),n.add(y),to(y),pV(y).dataIndex=f,o._tickLabels.push(y)})}},e.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);h(r.nextBtnPosition,"next",oe(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",oe(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",oe(this._handlePlayClick,this,!c),!0);function h(d,v,g,m){if(d){var y=Jn(De(i.get(["controlStyle",v+"BtnSize"]),o),o),_=[0,-y/2,y,y],b=Zse(i,v+"Icon",_,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),to(b)}}},e.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=oe(u._handlePointerDrag,u),f.ondragend=oe(u._handlePointerDragend,u),gV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){gV(f,u._progressLine,s,a,i)}};this._currentPointer=vV(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=sn(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)},e.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")))},e.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return ra(r,n,!0)},e.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},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.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})},e.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",pV(a[i]).dataIndex<=r)},e.type="timeline.slider",e}(Gse);function Use(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dv({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new l1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new pi}}function Yse(t,e){return Gt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Zse(t,e,r,n){var a=n.style,i=Xl(t.get(["controlStyle",e]),n||{},new Pe(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function vV(t,e,r,n,a,i){var o=e.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=t.get("symbol");a=Rt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=ke({rectHover:!0,z2:100},n,!0);var u=uu(t.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Is(t.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function gV(t,e,r,n,a,i){if(!t.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function Xse(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,r,n){var a=r.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),ye({currentIndex:a.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,r){var n=r.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function jse(t){var e=t&&t.timeline;Z(e)||(e=e?[e]:[]),M(e,function(r){r&&Kse(r)})}function Kse(t){var e=t.type,r={number:"value",time:"time"};if(r[e]&&(t.axisType=r[e],delete t.type),mV(t),rl(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});rl(n,"position")||(n.position=t.controlPosition),n.position==="none"&&!rl(n,"show")&&(n.show=!1,delete n.position),delete t.controlPosition}M(t.data||[],function(a){ve(a)&&!Z(a)&&(!rl(a,"value")&&rl(a,"name")&&(a.value=a.name),mV(a))})}function mV(t){var e=t.itemStyle||(t.itemStyle={}),r=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};M(n,function(o,s){!i[s]&&!rl(a,s)&&(a[s]=o)}),r.label&&!rl(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function rl(t,e){return t.hasOwnProperty(e)}function qse(t){t.registerComponentModel(dV),t.registerComponentView(Wse),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),Xse(t),t.registerPreprocessor(jse)}function QS(t,e){if(!t)return!1;for(var r=Z(t)?t:[t],n=0;n<r.length;n++)if(r[n]&&r[n][e])return!0;return!1}function dg(t){ts(t,"label",["show"])}var pg=je(),bi=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r}return e.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)},e.prototype.isAnimationEnabled=function(){if(Fe.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},e.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=pg(s)[o];if(!l||!l.data){pg(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&dg(l),M(l.data,function(c){c instanceof Array?(dg(c[0]),dg(c[1])):dg(c)}),u=this.createMarkerModelFromSeries(l,this,n),W(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),pg(s)[o]=u},this)},e.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return er("section",{header:this.name,blocks:[er("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,n){var a=Fp.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(r,n){return pg(r)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ve);It(bi,Fp.prototype);var Jse=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(bi);function ew(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Qse(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function vg(t,e,r,n,a,i){var o=[],s=di(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=rw(e,l,t),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(r,c),o[i]=e.get(l,c);var f=e.get(n,c),h=Qn(e.get(n,c));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,f]}var tw={min:Ae(vg,"min"),max:Ae(vg,"max"),average:Ae(vg,"average"),median:Ae(vg,"median")};function ph(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,a=n&&n.dimensions;if(!Qse(e)&&!Z(e.coord)&&Z(a)){var i=yV(e,r,n,t);if(e=we(e),e.type&&tw[e.type]&&i.baseAxis&&i.valueAxis){var o=Re(a,i.baseAxis.dim),s=Re(a,i.valueAxis.dim),l=tw[e.type](r,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Z(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)tw[u[c]]&&(u[c]=rw(r,r.mapDimension(a[c]),u[c]));return e}}function yV(t,e,r,n){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=r.getAxis(ele(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function ele(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function vh(t,e){return t&&t.containData&&e.coord&&!ew(e)?t.containData(e.coord):!0}function tle(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!ew(e)&&!ew(r)?t.containZone(e.coord,r.coord):!0}function _V(t,e){return t?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return lo(o,e[i])}:function(r,n,a,i){return lo(r.value,e[i])}}function rw(t,e,r){if(r==="average"){var n=0,a=0;return t.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var nw=je(),aw=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=fe()},e.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){nw(s).keep=!1}),n.eachSeries(function(s){var l=bi.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!nw(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(r){nw(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var a=this;M(r,function(i){var o=bi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?qE(l):w0(l))})}})},e.type="marker",e}(_t);function bV(t,e,r){var n=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=ne(i.get("x"),r.getWidth()),l=ne(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var u=t.get(n.dimensions[0],a),c=t.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)})}var rle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=bi.getMarkerModelFromSeries(i,"markPoint");o&&(bV(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.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 zf),f=nle(o,r,n);n.setData(f),bV(n.getData(),r,i),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),g=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),_=d.getShallow("symbolKeepAspect");if(de(v)||de(g)||de(m)||de(y)){var b=n.getRawValue(h),S=n.getDataParams(h);de(v)&&(v=v(b,S)),de(g)&&(g=g(b,S)),de(m)&&(m=m(b,S)),de(y)&&(y=y(b,S))}var w=d.getModel("itemStyle").getItemStyle(),x=xf(l,"color");w.fill||(w.fill=x),f.setItemVisual(h,{symbol:v,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:_,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){Ee(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(aw);function nle(t,e,r){var n;t?n=K(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return W(W({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new kr(n,r),i=K(r.get("data"),Ae(ph,e));t&&(i=tt(i,Ae(vh,t)));var o=_V(!!t,n);return a.initData(i,null,o),a}function ale(t){t.registerComponentModel(Jse),t.registerComponentView(rle),t.registerPreprocessor(function(e){QS(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ile=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(bi),gg=je(),ole=function(t,e,r,n){var a=t.getData(),i;if(Z(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=e.getAxis(n.yAxis!=null?"y":"x"),l=Pt(n.yAxis,n.xAxis);else{var u=yV(n,a,e,t);s=u.valueAxis;var c=r1(a,u.valueDataDim);l=rw(a,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=we(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var g=r.get("precision");g>=0&&Ke(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[f]=v.coord[f]=l,i=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&gn("Invalid markLine data."),i=[]}var m=[ph(t,i[0]),ph(t,i[1]),W({},i[2])];return m[2].type=m[2].type||null,ke(m[2],m[0]),ke(m[2],m[1]),m};function mg(t){return!isNaN(t)&&!isFinite(t)}function SV(t,e,r,n){var a=1-t,i=n.dimensions[t];return mg(e[a])&&mg(r[a])&&e[t]===r[t]&&n.getAxis(i).containData(e[t])}function sle(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(SV(1,r,n,t)||SV(0,r,n,t)))return!0}return vh(t,e[0])&&vh(t,e[1])}function iw(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=ne(o.get("x"),a.getWidth()),u=ne(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=i.dimensions,f=t.get(c[0],e),h=t.get(c[1],e);s=i.dataToPoint([f,h])}if(Hs(i,"cartesian2d")){var d=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;mg(t.get(c[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):mg(t.get(c[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var lle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=bi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=gg(o).from,u=gg(o).to;l.each(function(c){iw(l,c,!0,i,a),iw(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)},e.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 kb);this.group.add(c.group);var f=ule(o,r,n),h=f.from,d=f.to,v=f.line;gg(n).from=h,gg(n).to=d,n.setData(v);var g=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),_=n.get("symbolOffset");Z(g)||(g=[g,g]),Z(m)||(m=[m,m]),Z(y)||(y=[y,y]),Z(_)||(_=[_,_]),f.from.each(function(S){b(h,S,!0),b(d,S,!1)}),v.each(function(S){var w=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[h.getItemLayout(S),d.getItemLayout(S)]),w.stroke==null&&(w.stroke=h.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(S,"symbolOffset"),toSymbolRotate:d.getItemVisual(S,"symbolRotate"),toSymbolSize:d.getItemVisual(S,"symbolSize"),toSymbol:d.getItemVisual(S,"symbol"),style:w})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){Ee(S).dataModel=n,S.traverse(function(w){Ee(w).dataModel=n})});function b(S,w,x){var C=S.getItemModel(w);iw(S,w,x,r,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=xf(l,"color")),S.setItemVisual(w,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:De(C.get("symbolOffset",!0),_[x?0:1]),symbolRotate:De(C.get("symbolRotate",!0),y[x?0:1]),symbolSize:De(C.get("symbolSize"),m[x?0:1]),symbol:De(C.get("symbol",!0),g[x?0:1]),style:T})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(aw);function ule(t,e,r){var n;t?n=K(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new kr(n,r),i=new kr(n,r),o=new kr([],r),s=K(r.get("data"),Ae(ole,e,t,r));t&&(s=tt(s,Ae(sle,t)));var l=_V(!!t,n);return a.initData(K(s,function(u){return u[0]}),null,l),i.initData(K(s,function(u){return u[1]}),null,l),o.initData(K(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function cle(t){t.registerComponentModel(ile),t.registerComponentView(lle),t.registerPreprocessor(function(e){QS(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var fle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,a){return new e(r,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(bi),yg=je(),hle=function(t,e,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=ph(t,a),s=ph(t,i),l=o.coord,u=s.coord;l[0]=Pt(l[0],-1/0),l[1]=Pt(l[1],-1/0),u[0]=Pt(u[0],1/0),u[1]=Pt(u[1],1/0);var c=yd([{},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 _g(t){return!isNaN(t)&&!isFinite(t)}function wV(t,e,r,n){var a=1-t;return _g(e[a])&&_g(r[a])}function dle(t,e){var r=e.coord[0],n=e.coord[1],a={coord:r,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Hs(t,"cartesian2d")?r&&n&&(wV(1,r,n)||wV(0,r,n))?!0:tle(t,a,i):vh(t,a)||vh(t,i)}function xV(t,e,r,n,a){var i=n.coordinateSystem,o=t.getItemModel(e),s,l=ne(o.get(r[0]),a.getWidth()),u=ne(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),h=i.clampData(c),d=i.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var g=t.get(r[0],e),m=t.get(r[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Hs(i,"cartesian2d")){var _=i.getAxis("x"),b=i.getAxis("y"),g=t.get(r[0],e),m=t.get(r[1],e);_g(g)?s[0]=_.toGlobalCoord(_.getExtent()[r[0]==="x0"?0:1]):_g(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 CV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ple=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=bi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=K(CV,function(f){return xV(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.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 Ce});this.group.add(c.group),this.markKeep(c);var f=vle(o,r,n);n.setData(f),f.each(function(h){var d=K(CV,function(T){return xV(f,h,T,r,i)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,m=v.getExtent(),y=g.getExtent(),_=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],b=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];sn(_),sn(b);var S=!(m[0]>_[1]||m[1]<_[0]||y[0]>b[1]||y[1]<b[0]),w=!S;f.setItemLayout(h,{points:d,allClipped:w});var x=f.getItemModel(h).getModel("itemStyle").getItemStyle(),C=xf(l,"color");x.fill||(x.fill=C,ie(x.fill)&&(x.fill=Pc(x.fill,.4))),x.stroke||(x.stroke=C),f.setItemVisual(h,"style",x)}),f.diff(yg(c).data).add(function(h){var d=f.getItemLayout(h);if(!d.allClipped){var v=new Tr({shape:{points:d.points}});f.setItemGraphicEl(h,v),c.group.add(v)}}).update(function(h,d){var v=yg(c).data.getItemGraphicEl(d),g=f.getItemLayout(h);g.allClipped?v&&c.group.remove(v):(v?Je(v,{shape:{points:g.points}},n,h):v=new Tr({shape:{points:g.points}}),f.setItemGraphicEl(h,v),c.group.add(v))}).remove(function(h){var d=yg(c).data.getItemGraphicEl(h);c.group.remove(d)}).execute(),f.eachItemGraphicEl(function(h,d){var v=f.getItemModel(d),g=f.getItemVisual(d,"style");h.useStyle(f.getItemVisual(d,"style")),gr(h,Qt(v),{labelFetcher:n,labelDataIndex:d,defaultText:f.getName(d)||"",inheritColor:ie(g.fill)?Pc(g.fill,1):"#000"}),vr(h,v),Tt(h,null,null,v.get(["emphasis","disabled"])),Ee(h).dataModel=n}),yg(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(aw);function vle(t,e,r){var n,a,i=["x0","y0","x1","y1"];if(t){var o=K(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return W(W({},f),{name:u,ordinalMeta:null})});a=K(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new kr(a,r)}else a=[{name:"value",type:"float"}],n=new kr(a,r);var s=K(r.get("data"),Ae(hle,e,t,r));t&&(s=tt(s,Ae(dle,t)));var l=t?function(u,c,f,h){var d=u.coord[Math.floor(h/2)][h%2];return lo(d,a[h])}:function(u,c,f,h){return lo(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function gle(t){t.registerComponentModel(fle),t.registerComponentView(ple),t.registerPreprocessor(function(e){QS(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var mle=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},ow=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Z(n)&&M(n,function(i,o){ie(i)&&(i={type:i}),n[o]=ke(i,mle(a,i.type))})},e.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"))}},e.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,h=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&Ky(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=fe(),s=K(i,function(l){return(ie(l)||Ke(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new rt(l,this,this.ecModel))},this);this._data=tt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.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},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;M(r,function(a){n[a.get("name",!0)]=!0})},e.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]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Re(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Ve),Pu=Ae,sw=M,bg=Ce,TV=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new bg),this.group.add(this._selectorGroup=new bg),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.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()},h=r.get("padding"),d=Gt(c,f,h),v=this.layoutInner(r,o,d,i,l,u),g=Gt(ye({width:v.width,height:v.height},c),f,h);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=PR(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=fe(),f=n.get("selectedMode"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),sw(n.getData(),function(d,v){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
85
+ `)){var m=new bg;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"),w=_.getVisual("style"),x=this._createItem(y,g,v,d,n,r,b,w,S,f,i);x.on("click",Pu(DV,g,null,i,h)).on("mouseover",Pu(lw,y.name,null,i,h)).on("mouseout",Pu(uw,y.name,null,i,h)),a.ssr&&x.eachChild(function(C){var T=Ee(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"),I=Or(E.fill);I&&I[3]===0&&(I[3]=.2,E=W(W({},E),{fill:Kn(I,"rgba")}));var k=this._createItem(C,g,v,d,n,r,{},E,A,f,i);k.on("click",Pu(DV,null,g,i,h)).on("mouseover",Pu(lw,null,g,i,h)).on("mouseout",Pu(uw,null,g,i,h)),a.ssr&&k.eachChild(function(L){var N=Ee(L);N.seriesIndex=C.seriesIndex,N.dataIndex=v,N.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)},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();sw(r,function(u){var c=u.type,f=new Ue({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 h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);gr(f,{normal:h,emphasis:d},{defaultText:u.title}),to(f)})},e.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,h){var d=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=yle(c,i,l,u,d,m,h),w=new bg,x=i.getModel("textStyle");if(de(r.getLegendIcon)&&(!b||b==="inherit"))w.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;w.add(_le({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;ie(E)&&E?A=E.replace("{name}",n??""):de(E)&&(A=E(n));var I=m?x.getTextColor():i.get("inactiveColor");w.add(new Ue({style:gt(x,{text:A,x:T,y:g/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var k=new We({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&_s({el:k,componentModel:o,itemName:n,itemTooltipOption:L.option}),w.add(k),w.eachChild(function(N){N.silent=!0}),k.silent=!f,this.getContentGroup().add(w),to(w),w.__legendDataIndex=a,w},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cs(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){Cs("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.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"?d[g]+=c[m]+v:f[g]+=h[m]+v,d[1-g]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+h[m],b[y]=Math.max(c[y],h[y]),b[_]=Math.min(0,h[_]+d[1-g]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_t);function yle(t,e,r,n,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),sw(m,function(_,b){m[b]==="inherit"&&(m[b]=y[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:fu(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 h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!i){var v=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function _le(t){var e=t.icon||"roundRect",r=Rt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function DV(t,e,r,n){uw(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),lw(t,e,r,n)}function EV(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function lw(t,e,r,n){EV(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function uw(t,e,r,n){EV(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function ble(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function gh(t,e,r){var n=t==="allSelect"||t==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),MV(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),MV(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function MV(t,e){var r=e||{};return M(t.getData(),function(n){var a=n.get("name");if(!(a===`
86
+ `||a==="")){var i=t.isSelected(a);le(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function Sle(t){t.registerAction("legendToggleSelect","legendselectchanged",Ae(gh,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ae(gh,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ae(gh,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ae(gh,"select")),t.registerAction("legendUnSelect","legendunselected",Ae(gh,"unSelect"))}function AV(t){t.registerComponentModel(ow),t.registerComponentView(TV),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,ble),t.registerSubTypeDefaulter("legend",function(){return"plain"}),Sle(t)}var wle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=eu(r);t.prototype.init.call(this,r,n,a),IV(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),IV(this,this.option,r)},e.type="legend.scroll",e.defaultOption=oo(ow.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}),e}(ow);function IV(t,e,r){var n=t.getOrient(),a=[1,1];a[n.index]=0,so(e,r,{type:"box",ignoreSize:!!a})}var kV=Ce,cw=["width","height"],fw=["x","y"],xle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new kV),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kV)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),h=Z(f)?f:[f,f];v("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new Ue({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,m){var y=g+"DataIndex",_=Xl(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:oe(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=g,c.add(_)}},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=cw[u],f=fw[u],h=cw[1-u],d=fw[1-u];o&&Cs("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],y=we(a);o&&(y[c]=a[c]-g[c]-v);var _=this._layoutContentAndController(r,i,y,u,c,h,d,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]+=_[d]+_[h]/2-g[h]/2,_[h]=Math.max(_[h],g[h]),_[d]=Math.min(_[d],g[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Cs(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),Cs("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),g=this._showController=d[o]>a[o],m=[-d.x,-d.y];n||(m[i]=c[u]);var y=[0,0],_=[-v.x,-v.y],b=De(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]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(_);var w={x:0,y:0};if(w[o]=g?a[o]:d[o],w[s]=Math.max(d[s],v[s]),w[l]=Math.min(0,v[l]+_[1-i]),f.__rectSize=a[o],g){var x={x:0,y:0};x[o]=Math.max(a[o]-v[o]-b,0),x[s]=w[s],f.setClipPath(new We({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&Je(c,{x:C.contentPosition[0],y:C.contentPosition[1]},g?r:null),this._updatePageInfoView(r,C),w},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,d=a.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"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",ie(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=cw[o],l=fw[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[a.x,a.y],pageCount:d,pageIndex:d-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<=h;++m)b=S(c[m]),(!b&&_.e>y.s+i||b&&!w(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||!w(_,b.s))&&y.i<_.i&&(_=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function S(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function w(x,C){return x.e>=C&&x.s<=C+i}},e.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},e.type="legend.scroll",e}(TV);function Cle(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function Tle(t){Be(AV),t.registerComponentModel(wle),t.registerComponentView(xle),Cle(t)}function Dle(t){Be(AV),Be(Tle)}var Ele=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=oo(fh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(fh),hw=je();function Mle(t,e,r){hw(t).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=r)})}function Ale(t,e){for(var r=hw(t).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=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||LV(r,o))}}}function LV(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function Ile(t,e){var r={model:e,containsPoint:Ae(Lle,e),dispatchAction:Ae(kle,t),dataZoomInfoMap:null,controller:null},n=r.controller=new Xf(t.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 kle(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Lle(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function Nle(t){var e,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Ple(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=hw(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=fe());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=MR(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Ile(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=fe());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){LV(a,i);return}var c=Nle(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),su(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Ole=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,a){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Mle(a,r,{pan:oe(dw.pan,this),zoom:oe(dw.zoom,this),scrollMove:oe(dw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ale(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(FS),dw={zoom:function(t,e,r,n){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=pw[e](null,[n.originX,n.originY],o,r,t),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(qs(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:NV(function(t,e,r,n,a,i){var o=pw[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:NV(function(t,e,r,n,a,i){var o=pw[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,r);return o.signal*(t[1]-t[0])*i.scrollDelta})};function NV(t){return function(e,r,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,a);if(qs(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var pw={grid:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function PV(t){zS(t),t.registerComponentModel(Ele),t.registerComponentView(Ole),Ple(t)}var Rle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=oo(fh.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"}}}),e}(fh),mh=We,OV=7,Vle=1,vw=30,Ble=7,yh="horizontal",RV="vertical",Fle=5,zle=["line","bar","candlestick","scatter"],$le={easing:"cubicOut",duration:100,delay:0},Gle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=oe(this._onBrush,this),this._onBrushEnd=oe(this._onBrushEnd,this)},e.prototype.render=function(r,n,a,i){if(t.prototype.render.apply(this,arguments),su(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()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bf(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.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 Ce;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?Ble:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===yh?{right:s.width-o.x-o.width,top:s.height-vw-OV-i,width:o.width,height:vw}:{right:OV,top:o.y,width:vw,height:o.height},u=eu(r.option);M(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Gt(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===RV&&this._size.reverse()},e.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===yh&&!o?{scaleY:l?1:-1,scaleX:1}:a===yh&&o?{scaleY:l?1:-1,scaleX:-1}:a===RV&&!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()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new mh({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new mh({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:oe(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)},e.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),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[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==="",I=A?0:at(D,f,d,!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([_,I]),m.push([_,I]),_+=y,S=A}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(D){var E=w.getModel(D?"selectedDataBackground":"dataBackground"),A=new Ce,I=new Tr({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Dr({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(I),A.add(k),A}for(var C=0;C<3;C++){var T=x(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.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&&Re(zle,u.get("type"))<0)){var c=i.getComponent(wo(o),s).axis,f=Hle(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),a}},e.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"),h=n.filler=new mh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new mh({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:Vle,fill:"rgba(0,0,0,0)"}})),M([0,1],function(b){var S=l.get("handleIcon");!Xp[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&xn("handleIcon now needs 'path://' prefix when using a path string"));var w=Rt(S,-1,0,2,2,null,!0);w.attr({cursor:VV(this._orient),draggable:!0,drift:oe(this._onDragMove,this,b),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ne(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),to(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(a[b]=w);var D=l.getModel("textStyle"),E=l.get("handleLabel")||{},A=E.show||!1;r.add(i[b]=new Ue({silent:!0,invisible:!A,style:gt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var d=h;if(f){var v=ne(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new We({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=Rt(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));d=n.moveZone=new We({invisible:!0,shape:{y:s[1]-_,height:v+_}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:VV(this._orient),drift:oe(this._onDragMove,this,"all"),ondragstart:oe(this._showDataInfo,this,!0),ondragend:oe(this._onDragEnd,this),onmouseover:oe(this._showDataInfo,this,!0),onmouseout:oe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[at(r[0],[0,100],n,!0),at(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];qs(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?at(s.minSpan,l,o,!0):null,s.maxSpan!=null?at(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=sn([at(i[0],o,l,!0),at(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=sn(a.slice()),o=this._size;M([0,1],function(d){var v=n.handles[d],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:a[d]+(d?-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],h=f.getClipPath();h||(h=new We,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},e.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 h=sn(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(v){var g=ao(a.handles[v].parent,this.group),m=xp(v===0?"right":"left",g),y=this._handleWidth/2+Fle,_=ra([h[v]+(v===0?-y:y),this._size[1]/2],g);i[v].setStyle({x:_[0],y:_[1],verticalAlign:o===yh?"middle":m,align:o===yh?m:"center",text:s[v]})}},e.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 de(i)?i(r,s):ie(i)?i.replace("{value}",s):s},e.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)},e.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,ri(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ra([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.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)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new Ne(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.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=sn([at(a.x,o,s,!0),at(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(ri(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new mh({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]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?$le:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=MR(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},e.type="dataZoom.slider",e}(FS);function Hle(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function VV(t){return t==="vertical"?"ns-resize":"ew-resize"}function BV(t){t.registerComponentModel(Rle),t.registerComponentView(Gle),zS(t)}function Wle(t){Be(PV),Be(BV)}var FV={get:function(t,e,r){var n=we((Ule[t]||{})[e]);return r&&Z(n)?n[n.length-1]:n}},Ule={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]}},zV=rr.mapVisual,Yle=rr.eachVisual,Zle=Z,$V=M,Xle=sn,jle=at,Sg=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.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 e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.optionUpdated=function(r,n){var a=this.option;!n&&aV(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=oe(r,this),this.controllerVisuals=jS(this.option.controller,n,r),this.targetVisuals=jS(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=ut(r),n},e.prototype.eachTargetSeries=function(r,n){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Z(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(ie(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(de(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(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=Xle([r.min,r.max]);this._dataExtent=n},e.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}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.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={});ke(i,a),ke(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){Zle(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],g=f[d];v&&!g&&(g=f[d]={},$V(v,function(m,y){if(rr.isValidType(y)){var _=FV.get(y,"inactive",s);_!=null&&(g[y]=_,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";$V(this.stateList,function(y){var _=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=h&&we(h)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&we(d)||(s?_[0]:[_[0],_[0]])),b.symbol=zV(b.symbol,function(x){return x==="none"?m:x});var S=b.symbolSize;if(S!=null){var w=-1/0;Yle(S,function(x){x>w&&(w=x)}),b.symbolSize=zV(S,function(x){return jle(x,[0,w],[0,_[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Ve),GV=[20,140],Kle=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=GV[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=GV[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.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)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=sn((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},e.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"},e.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},e.prototype.getVisualMeta=function(r){var n=HV(this,"outOfRange",this.getExtent()),a=HV(this,"inRange",this.option.range.slice()),i=[];function o(d,v){i.push({value:d,color:r(d,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 h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=oo(Sg.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)"}}),e}(Sg);function HV(t,e,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 WV=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.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)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Ss(n.get("padding")||0),i=r.getBoundingRect();r.add(new We({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")}}))},e.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(d){return s[d]}function c(d,v){s[d]=v}var f=o.controllerVisuals[i||o.getValueState(r)],h=rr.prepareVisualTypes(f);return M(h,function(d){var v=f[d];a.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",v=f.__alphaForOpacity),rr.dependsOn(d,n)&&v&&v.applyVisual(r,u,c)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;Op(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(r,n,a,i){},e.type="visualMap",e}(_t),UV=[["left","right","width"],["top","bottom","height"]];function YV(t,e,r){var n=t.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=UV[o],l=[0,null,10],u={},c=0;c<3;c++)u[UV[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=Gt(u,i,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<i[f[1]]*.5?0:1]}function wg(t,e){return M(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var Fa=at,qle=M,ZV=Math.min,gw=Math.max,Jle=12,Qle=6,eue=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,n){t.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=oe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=oe(this._hideIndicator,this)},e.prototype.doRender=function(r,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.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)},e.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),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Ue({style:gt(d,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=YV(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Ce;u.add(c),c.add(a.outOfRange=XV()),c.add(a.inRange=XV(null,s?KV(this._orient):null,oe(this._dragHandle,this,"all",!1),oe(this._dragHandle,this,"all",!0))),c.setClipPath(new We({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=gw(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),r.add(u)},e.prototype._createHandle=function(r,n,a,i,o,s){var l=oe(this._dragHandle,this,a,!1),u=oe(this._dragHandle,this,a,!0),c=Jn(r.get("handleSize"),i[0]),f=Rt(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=KV(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ri(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(),vs(f,!0),n.add(f);var d=this.visualMapModel.textStyleModel,v=new Ue({cursor:h,draggable:!0,drift:l,onmousemove:function(y){ri(y.event)},ondragend:u,style:gt(d,{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},e.prototype._createIndicator=function(r,n,a,i,o){var s=Jn(r.get("indicatorSize"),a[0]),l=Rt(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 Jt){var c=l.style;l.useStyle(W({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,h=new Ue({silent:!0,invisible:!0,style:gt(f,{x:0,y:0,text:""})});this.group.add(h);var d=[(o==="horizontal"?i/2:Qle)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=h,v.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.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():jV(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[Fa(n[0],a,i,!0),Fa(n[1],a,i,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];qs(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[Fa(i[0],o,s,!0),Fa(i[1],o,s,!0)]},e.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)},e.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 Wl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.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},e.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]]]},e.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ce(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})},e.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);qle([0,1],function(f){var h=o[f];h.setStyle("fill",n.handlesColor[f]),h.y=r[f];var d=Fa(r[f],[0,l[1]],u,!0),v=this.getControllerVisual(d,"symbolSize");h.scaleX=h.scaleY=v/l[0],h.x=l[0]-v/2;var g=ra(a.handleLabelPoints[f],ao(h,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)}},e.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 h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),g=Fa(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var _=ra(c.indicatorLabelPoint,ao(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),w=this._orient,x=w==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var C={x:m,y:g,style:{fill:d}},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])}},e.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]=ZV(gw(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()})},e.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()},e.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=ZV(gw(o[0],r),o[1]);var l=tue(a,s,o),u=[r-l,r+l],c=Fa(r,o,s,!0),f=[Fa(u[0],o,s,!0),Fa(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 h=this._hoverLinkDataIndices,d=[];(n||jV(a))&&(d=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=YU(h,d);this._dispatchHighDown("downplay",wg(v[0],a)),this._dispatchHighDown("highlight",wg(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(As(r.target,function(l){var u=Ee(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)}}},e.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])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",wg(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,a,i){var o=ao(n,i?null:this.group);return Z(r)?ra(r,o,a):xp(r,o,a)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(WV);function XV(t,e,r,n){return new Tr({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(a){ri(a.event)},ondragend:n})}function tue(t,e,r){var n=Jle/2,a=t.get("hoverLinkDataSize");return a&&(n=Fa(a,e,r,!0)/2),n}function jV(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function KV(t){return t==="vertical"?"ns-resize":"ew-resize"}var rue={type:"selectDataRange",event:"dataRangeSelected",update:"update"},nue=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})},aue=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var a=t.pipelineContext;!n.isTargetSeries(t)||a&&a.large||r.push(Dse(n.stateList,n.targetVisuals,oe(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var i=a.getVisualMeta(oe(iue,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),t.getData().setVisual("visualMeta",n)}}];function iue(t,e,r,n){for(var a=e.targetVisuals[n],i=rr.prepareVisualTypes(a),o={color:xf(t.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,h)}return o.color;function f(d){return o[d]}function h(d,v){o[d]=v}}var qV=M;function oue(t){var e=t&&t.visualMap;Z(e)||(e=e?[e]:[]),qV(e,function(r){if(r){Ou(r,"splitList")&&!Ou(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Z(n)&&qV(n,function(a){ve(a)&&(Ou(a,"start")&&!Ou(a,"min")&&(a.min=a.start),Ou(a,"end")&&!Ou(a,"max")&&(a.max=a.end))})}})}function Ou(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var JV=!1;function QV(t){JV||(JV=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(rue,nue),M(aue,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(oue))}function eB(t){t.registerComponentModel(Kle),t.registerComponentView(eue),QV(t)}var sue=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],lue[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=we(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=K(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},a=rr.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]=FV.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.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)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=we(r)},e.prototype.getValueState=function(r){var n=rr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.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=rr.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.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},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var h=i.getRepresentValue({interval:c});f||(f=i.getValueState(h));var d=r(h,f);c[0]===-1/0?a[0]=d:c[1]===1/0?a[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}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}},e.type="visualMap.piecewise",e.defaultOption=oo(Sg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Sg),lue={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;e.precision=r,i=+i.toFixed(r),e.minOpen&&t.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;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),jy(t),M(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;M(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),tB(e,t)},pieces:function(t){var e=this.option;M(e.pieces,function(r,n){ve(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 h=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=r[h[d]],s[f]=l[d],c[f]=d===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=rr.retrieveVisuals(r),t.push(a)},this),tB(e,t),jy(t),M(t,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 tB(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var uue=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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,h=Pt(n.get("showLabel",!0),!f),d=!n.get("selectedMode");f&&this._renderEndsText(r,f[0],u,h,l),M(c.viewPieceList,function(v){var g=v.piece,m=new Ce;m.onclick=oe(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]],d),h){var _=this.visualMapModel.getValueState(y);m.add(new Ue({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:d}))}r.add(m)},this),f&&this._renderEndsText(r,f[1],u,h,l),Cs(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.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:wg(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return YV(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new Ce,l=this.visualMapModel.textStyleModel;s.add(new Ue({style:gt(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)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=K(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}},e.prototype._createItemSymbol=function(r,n,a,i){var o=Rt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,r.add(o)},e.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=we(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})}},e.type="visualMap.piecewise",e}(WV);function rB(t){t.registerComponentModel(sue),t.registerComponentView(uue),QV(t)}function cue(t){Be(eB),Be(rB)}var fue={label:{enabled:!0},decal:{show:!1}},nB=je(),hue={};function due(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=we(fue);ke(n.label,t.getLocaleModel().get("aria"),!1),ke(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=fe();t.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),nB(h).scope=d}}),t.eachRawSeries(function(h){if(t.isSeriesFiltered(h))return;if(de(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=l_(h.ecModel,h.name,hue,t.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",S(b,_))}else{var v=h.getRawData(),g={},m=nB(h).scope;d.each(function(w){var x=d.getRawIndex(w);g[x]=w});var y=v.count();v.each(function(w){var x=g[w],C=v.getName(w)||w+"",T=l_(h.ecModel,C,m,y),D=d.getItemVisual(x,"decal");d.setItemVisual(x,"decal",S(D,T))})}function S(w,x){var C=w?W(W({},x),w):x;return C.dirty=!0,C}})}}function i(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=ye(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=t.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(h,v),m;if(!(h<1)){var y=s();if(y){var _=f.get(["general","withTitle"]);m=o(_,{title:y})}else m=f.get(["general","withoutTitle"]);var b=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(S,{seriesCount:h}),t.eachSeries(function(T,D){if(D<g){var E=void 0,A=T.get("name"),I=A?"withName":"withoutName";E=h>1?f.get(["series","multiple",I]):f.get(["series","single",I]),E=o(E,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var k=T.getData();if(k.count()>d){var L=f.get(["data","partialData"]);E+=o(L,{displayCnt:d})}else E+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),P=f.get(["data","separator","end"]),B=f.get(["data","excludeDimensionId"]),V=[],G=0;G<k.count();G++)if(G<d){var Y=k.getName(G),z=B?tt(k.getValues(G),function(q,J){return Re(B,J)===-1}):k.getValues(G),$=f.get(["data",Y?"withName":"withoutName"]);V.push(o($,{name:Y,value:z.join(N)}))}E+=V.join(N)+P,b.push(E)}});var w=f.getModel(["series","multiple","separator"]),x=w.get("middle"),C=w.get("end");m+=b.join(x)+C,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!ie(u))return u;var f=u;return M(c,function(h,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=t.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function pue(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},M(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function vue(t){t.registerPreprocessor(pue),t.registerVisual(t.PRIORITY.VISUAL.ARIA,due)}var aB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},gue=function(){function t(e){var r=this._condVal=ie(e)?new RegExp(e):Jm(e)?e:null;if(r==null){var n="";process.env.NODE_ENV!=="production"&&(n=Rr("Illegal regexp",e,"in")),it(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return ie(r)?this._condVal.test(e):Ke(r)?this._condVal.test(e+""):!1},t}(),mue=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),yue=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t}(),_ue=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t}(),bue=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Sue=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},t}();function mw(t,e){if(t===!0||t===!1){var r=new mue;return r.value=t,r}var n="";return oB(t)||(process.env.NODE_ENV!=="production"&&(n=Rr("Illegal config. Expect a plain object but actually",t)),it(n)),t.and?iB("and",t,e):t.or?iB("or",t,e):t.not?wue(t,e):xue(t,e)}function iB(t,e,r){var n=e[t],a="";process.env.NODE_ENV!=="production"&&(a=Rr('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),Z(n)||it(a),n.length||it(a);var i=t==="and"?new yue:new _ue;return i.children=K(n,function(o){return mw(o,r)}),i.children.length||it(a),i}function wue(t,e){var r=t.not,n="";process.env.NODE_ENV!=="production"&&(n=Rr('"not" condition should only be `not: {}`.',"Illegal condition:",t)),oB(r)||it(n);var a=new bue;return a.child=mw(r,e),a.child||it(n),a}function xue(t,e){for(var r="",n=e.prepareGetValue(t),a=[],i=$e(t),o=t.parser,s=o?OM(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=le(aB,u)?aB[u]:u,f=t[u],h=s?s(f):f,d=jY(c,h)||c==="reg"&&new gue(h);d||(process.env.NODE_ENV!=="production"&&(r=Rr('Illegal relational operation: "'+u+'" in condition:',t)),it(r)),a.push(d)}}a.length||(process.env.NODE_ENV!=="production"&&(r=Rr("Relational condition must have at least one operator.","Illegal condition:",t)),it(r));var v=new Sue;return v.valueGetterParam=n,v.valueParser=s,v.getValue=e.getValue,v.subCondList=a,v}function oB(t){return ve(t)&&!dr(t)}var Cue=function(){function t(e,r){this._cond=mw(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Tue(t,e){return new Cue(t,e)}var Due={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=Tue(t.config,{valueGetterAttrMap:fe({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;le(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Rr('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),it(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=Rr("Can not find dimension info via: "+u+`.
87
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
88
+ `,"Illegal condition:",s,`.
89
+ `)),it(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)r=e.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},yw="";process.env.NODE_ENV!=="production"&&(yw=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var Eue={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",a=ut(r);a.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),it(n));var i=[];M(a,function(c){var f=c.dimension,h=c.order,d=c.parser,v=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+yw),it(n)),h!=="asc"&&h!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+yw),it(n)),v&&v!=="min"&&v!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+v+'".'),it(g)}if(h!=="asc"&&h!=="desc"){var m="";process.env.NODE_ENV!=="production"&&(m='order must be "asc" or "desc" rather than "'+h+'".'),it(m)}var y=e.getDimensionInfo(f);y||(process.env.NODE_ENV!=="production"&&(n=Rr("Can not find dimension info via: "+f+`.
90
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
91
+ `,"Illegal config:",c,`.
92
+ `)),it(n));var _=d?OM(d):null;d&&!_&&(process.env.NODE_ENV!=="production"&&(n=Rr("Invalid parser name "+d+`.
93
+ `,"Illegal config:",c,`.
94
+ `)),it(n)),i.push({dimIdx:y.index,parser:_,comparator:new VM(h,v)})});var o=e.sourceFormat;o!==Er&&o!==An&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),it(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var d=i[h],v=e.retrieveValueFromItem(c,d.dimIdx),g=e.retrieveValueFromItem(f,d.dimIdx);d.parser&&(v=d.parser(v),g=d.parser(g));var m=d.comparator.evaluate(v,g);if(m!==0)return m}return 0}),{data:s}}};function Mue(t){t.registerTransform(Due),t.registerTransform(Eue)}var Aue=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new HM(this),WM(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),WM(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ka},e}(Ve),Iue=function(t){F(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(_t);function kue(t){t.registerComponentModel(Aue),t.registerComponentView(Iue)}var za=Ea.CMD;function Ru(t,e){return Math.abs(t-e)<1e-5}function _w(t){var e=t.data,r=t.len(),n=[],a,i=0,o=0,s=0,l=0;function u(k,L){a&&a.length>2&&n.push(a),a=[k,L]}function c(k,L,N,P){Ru(k,N)&&Ru(L,P)||a.push(k,L,N,P,N,P)}function f(k,L,N,P,B,V){var G=Math.abs(L-k),Y=Math.tan(G/4)*4/3,z=L<k?-1:1,$=Math.cos(k),q=Math.sin(k),J=Math.cos(L),ae=Math.sin(L),Oe=$*B+N,Qe=q*V+P,Me=J*B+N,he=ae*V+P,Ie=B*Y*z,ue=V*Y*z;a.push(Oe-Ie*q,Qe+ue*$,Me+Ie*ae,he-ue*J,Me,he)}for(var h,d,v,g,m=0;m<r;){var y=e[m++],_=m===1;switch(_&&(i=e[m],o=e[m+1],s=i,l=o,(y===za.L||y===za.C||y===za.Q)&&(a=[s,l])),y){case za.M:i=s=e[m++],o=l=e[m++],u(s,l);break;case za.L:h=e[m++],d=e[m++],c(i,o,h,d),i=h,o=d;break;case za.C:a.push(e[m++],e[m++],e[m++],e[m++],i=e[m++],o=e[m++]);break;case za.Q:h=e[m++],d=e[m++],v=e[m++],g=e[m++],a.push(i+2/3*(h-i),o+2/3*(d-o),v+2/3*(h-v),g+2/3*(d-g),v,g),i=v,o=g;break;case za.A:var b=e[m++],S=e[m++],w=e[m++],x=e[m++],C=e[m++],T=e[m++]+C;m+=1;var D=!e[m++];h=Math.cos(C)*w+b,d=Math.sin(C)*x+S,_?(s=h,l=d,u(s,l)):c(i,o,h,d),i=Math.cos(T)*w+b,o=Math.sin(T)*x+S;for(var E=(D?-1:1)*Math.PI/2,A=C;D?A>T:A<T;A+=E){var I=D?Math.max(A+E,T):Math.min(A+E,T);f(A,I,b,S,w,x)}break;case za.R:s=i=e[m++],l=o=e[m++],h=s+e[m++],d=l+e[m++],u(h,l),c(h,l,h,d),c(h,d,s,d),c(s,d,s,l),c(s,l,h,l);break;case za.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function bw(t,e,r,n,a,i,o,s,l,u){if(Ru(t,r)&&Ru(e,n)&&Ru(a,o)&&Ru(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-t,d=s-e,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var g=r-t,m=n-e,y=a-o,_=i-s,b=g*g+m*m,S=y*y+_*_;if(b<f&&S<f){l.push(o,s);return}var w=h*g+d*m,x=-h*y-d*_,C=b-w*w,T=S-x*x;if(C<f&&w>=0&&T<f&&x>=0){l.push(o,s);return}var D=[],E=[];Xi(t,r,a,o,.5,D),Xi(e,n,i,s,.5,E),bw(D[0],E[0],D[1],E[1],D[2],E[2],D[3],E[3],l,u),bw(D[4],E[4],D[5],E[5],D[6],E[6],D[7],E[7],l,u)}function Lue(t,e){var r=_w(t),n=[];e=e||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++],h=i[u++],d=i[u++],v=i[u++],g=i[u++];bw(s,l,c,f,h,d,v,g,o,e),s=v,l=g}n.push(o)}return n}function sB(t,e,r){var n=t[e],a=t[1-e],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 lB(t,e,r){for(var n=t.r0,a=t.r,i=t.startAngle,o=t.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=sB([l,u],c?0:1,e),h=(c?s:u)/f.length,d=0;d<f.length;d++)for(var v=(c?u:s)/f[d],g=0;g<f[d];g++){var m={};c?(m.startAngle=i+h*d,m.endAngle=i+h*(d+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+h*d,m.r=n+h*(d+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,r.push(m)}}function Nue(t,e,r){for(var n=t.width,a=t.height,i=n>a,o=sB([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=t[s]/o.length,h=0;h<o.length;h++)for(var d=t[l]/o[h],v=0;v<o[h];v++){var g={};g[u]=h*f,g[c]=v*d,g[s]=f,g[l]=d,g.x+=t.x,g.y+=t.y,r.push(g)}}function uB(t,e,r,n){return t*n-r*e}function Pue(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,c=o-a,f=s-i,h=uB(c,f,l,u);if(Math.abs(h)<1e-6)return null;var d=t-a,v=e-i,g=uB(d,v,c,f)/h;return g<0||g>1?null:new Ne(g*l+t,g*u+e)}function Oue(t,e,r){var n=new Ne;Ne.sub(n,r,e),n.normalize();var a=new Ne;Ne.sub(a,t,e);var i=a.dot(n);return i}function Vu(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function Rue(t,e,r){for(var n=t.length,a=[],i=0;i<n;i++){var o=t[i],s=t[(i+1)%n],l=Pue(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&a.push({projPt:Oue(l,e,r),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];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 h=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],v=[h],g=[d],i=u.idx+1;i<=c.idx;i++)Vu(v,t[i].slice());Vu(v,d),Vu(v,h);for(var i=c.idx+1;i<=u.idx+n;i++)Vu(g,t[i%n].slice());return Vu(g,h),Vu(g,d),[{points:v},{points:g}]}function cB(t){var e=t.points,r=[],n=[];ip(e,r,n);var a=new Pe(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 Ne,c=new Ne;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),Rue(e,u,c)}function xg(t,e,r,n){if(r===1)n.push(e);else{var a=Math.floor(r/2),i=t(e);xg(t,i[0],a,n),xg(t,i[1],r-a,n)}return n}function Vue(t,e){for(var r=[],n=0;n<e;n++)r.push(I0(t));return r}function Bue(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Fue(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function zue(t,e){var r=[],n=t.shape,a;switch(t.type){case"rect":Nue(n,e,r),a=We;break;case"sector":lB(n,e,r),a=Cr;break;case"circle":lB({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),a=Cr;break;default:var i=t.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=K(Lue(t.getUpdatedPathProxy(),o),function(y){return Fue(y)}),l=s.length;if(l===0)xg(cB,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=K(s,function(y){var _=[],b=[];ip(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 h=e,u=0;u<l;u++){var d=f[u];if(h<=0)break;var v=u===l-1?h:Math.ceil(d.area/c*e);v<0||(xg(cB,{points:d.poly},v,r),h-=v)}}a=Tr;break}if(!a)return Vue(t,e);for(var g=[],u=0;u<r.length;u++){var m=new a;m.setShape(r[u]),Bue(t,m),g.push(m)}return g}function $ue(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var a=[],i=[],o=r<n?t:e,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]],h=l,d=2;d<s;){var v=o[d-2],g=o[d-1],m=o[d++],y=o[d++],_=o[d++],b=o[d++],S=o[d++],w=o[d++];if(h<=0){f.push(m,y,_,b,S,w);continue}for(var x=Math.min(h,c-1)+1,C=1;C<=x;C++){var T=C/x;Xi(v,m,_,S,T,a),Xi(g,y,b,w,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]}h-=x-1}return o===t?[f,e]:[t,f]}function fB(t,e){for(var r=t.length,n=t[r-2],a=t[r-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function Gue(t,e){for(var r,n,a,i=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(r=$ue(l,u),c=r[0],f=r[1],n=c,a=f):(f=fB(a||l,l),c=l):(c=fB(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function hB(t){for(var e=0,r=0,n=0,a=t.length,i=0,o=a-2;i<a;o=i,i+=2){var s=t[o],l=t[o+1],u=t[i],c=t[i+1],f=s*c-u*l;e+=f,r+=(s+u)*f,n+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function Hue(t,e,r,n){for(var a=(t.length-2)/6,i=1/0,o=0,s=t.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var d=h===0?c:(c+h-2)%l+2,v=t[d]-r[0],g=t[d+1]-r[1],m=e[h]-n[0],y=e[h+1]-n[1],_=m-v,b=y-g;f+=_*_+b*b}f<i&&(i=f,o=u)}return o}function Wue(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function Uue(t,e,r,n){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=hB(s),c=hB(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],d=0,v=1/0,g=[],m=s.length;i&&(s=Wue(s));for(var y=Hue(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 w=n/r,x=-n/2;x<=n/2;x+=w){for(var C=Math.sin(x),T=Math.cos(x),D=0,b=0;b<s.length;b+=2){var E=f[b],A=f[b+1],I=l[b]-c[0],k=l[b+1]-c[1],L=I*T-k*C,N=I*C+k*T;g[b]=L,g[b+1]=N;var P=L-E,B=N-A;D+=P*P+B*B}if(D<v){v=D,d=x;for(var V=0;V<g.length;V++)h[V]=g[V]}}a.push({from:f,to:h,fromCp:u,toCp:c,rotation:-d})}return a}function Cg(t){return t.__isCombineMorphing}var dB="__mOriginal_";function Tg(t,e,r){var n=dB+e,a=t[n]||t[e];t[n]||(t[n]=t[e]);var i=r.replace,o=r.after,s=r.before;t[e]=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 _h(t,e){var r=dB+e;t[r]&&(t[e]=t[r],t[r]=null)}function pB(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function vB(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Gue(_w(r),_w(n)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&pB(i,s),l&&pB(o,l),Tg(e,"updateTransform",{replace:u}),e.transform=null;var c=Uue(i,o,10,Math.PI),f=[];Tg(e,"buildPath",{replace:function(h){for(var d=e.__morphT,v=1-d,g=[],m=0;m<c.length;m++){var y=c[m],_=y.from,b=y.to,S=y.rotation*d,w=y.fromCp,x=y.toCp,C=Math.sin(S),T=Math.cos(S);wc(g,w,x,d);for(var D=0;D<_.length;D+=2){var E=_[D],A=_[D+1],I=b[D],k=b[D+1],L=E*v+I*d,N=A*v+k*d;f[D]=L*T-N*C+g[0],f[D+1]=L*C+N*T+g[1]}var P=f[0],B=f[1];h.moveTo(P,B);for(var D=2;D<_.length;){var I=f[D++],k=f[D++],V=f[D++],G=f[D++],Y=f[D++],z=f[D++];P===I&&B===k&&V===Y&&G===z?h.lineTo(Y,z):h.bezierCurveTo(I,k,V,G,Y,z),P=Y,B=z}}}})}function Sw(t,e,r){if(!t||!e)return e;var n=r.done,a=r.during;vB(t,e),e.__morphT=0;function i(){_h(e,"buildPath"),_h(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ye({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),e}function Yue(t,e,r,n,a,i){var o=16;t=a===r?0:Math.round(32767*(t-r)/(a-r)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function Dg(t){var e=1/0,r=1/0,n=-1/0,a=-1/0,i=K(t,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 e=Math.min(c,e),r=Math.min(f,r),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=K(i,function(s,l){return{cp:s,z:Yue(s[0],s[1],e,r,n,a),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function gB(t){return zue(t.path,t.count)}function ww(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Zue(t,e,r){var n=[];function a(w){for(var x=0;x<w.length;x++){var C=w[x];Cg(C)?a(C.childrenRef()):C instanceof ze&&n.push(C)}}a(t);var i=n.length;if(!i)return ww();var o=r.dividePath||gB,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),ww();n=Dg(n),s=Dg(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new ai,h=0;h<i;h++){var d=n[h],v=s[h];v.parent=e,v.copyTransform(f),c||vB(d,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(w){for(var x=0;x<s.length;x++)s[x].addSelfToZr(w)}Tg(e,"addSelfToZr",{after:function(w){g(w)}}),Tg(e,"removeSelfFromZr",{after:function(w){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(w)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,_h(e,"addSelfToZr"),_h(e,"removeSelfFromZr")}var y=s.length;if(c)for(var _=y,b=function(){_--,_===0&&(m(),l&&l())},h=0;h<y;h++){var S=c?ye({delay:(r.delay||0)+c(h,y,n[h],s[h]),done:b},r):r;Sw(n[h],s[h],S)}else e.__morphT=0,e.animateTo({__morphT:1},ye({during:function(w){for(var x=0;x<y;x++){var C=s[x];C.__morphT=e.__morphT,C.dirtyShape()}u&&u(w)},done:function(){m();for(var w=0;w<t.length;w++)_h(t[w],"updateTransform");l&&l()}},r));return e.__zr&&g(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Xue(t,e,r){var n=e.length,a=[],i=r.dividePath||gB;function o(d){for(var v=0;v<d.length;v++){var g=d[v];Cg(g)?o(g.childrenRef()):g instanceof ze&&a.push(g)}}if(Cg(t)){o(t.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(I0(a[l++%s]));a.length=n}else{a=i({path:t,count:n});for(var c=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),ww()}a=Dg(a),e=Dg(e);for(var f=r.individualDelay,u=0;u<n;u++){var h=f?ye({delay:(r.delay||0)+f(u,n,a[u],e[u])},r):r;Sw(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function mB(t){return Z(t[0])}function yB(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(e[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 jue={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var a=I0(t.path);a.setStyle("opacity",r),e.push(a)}return e},split:null};function xw(t,e,r,n,a,i){if(!t.length||!e.length)return;var o=Ul("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;mB(t)&&(u=t,c=e),mB(e)&&(u=e,c=t);function f(y,_,b,S,w){var x=y.many,C=y.one;if(x.length===1&&!w){var T=_?x[0]:C,D=_?C:x[0];if(Cg(T))f({many:[T],one:D},!0,b,S,!0);else{var E=s?ye({delay:s(b,S)},l):l;Sw(T,D,E),i(T,D,T,D,E)}}else for(var A=ye({dividePath:jue[r],individualDelay:s&&function(B,V,G,Y){return s(B+b,S)}},l),I=_?Zue(x,C,A):Xue(C,x,A),k=I.fromIndividuals,L=I.toIndividuals,N=k.length,P=0;P<N;P++){var E=s?ye({delay:s(P,N)},l):l;i(k[P],L[P],_?x[P]:y.one,_?y.one:x[P],E)}}for(var h=u?u===t:t.length>e.length,d=u?yB(c,u):yB(h?e:t,[h?t:e]),v=0,g=0;g<d.length;g++)v+=d[g].many.length;for(var m=0,g=0;g<d.length;g++)f(d[g],h,m,v),m+=d[g].many.length}function nl(t){if(!t)return[];if(Z(t)){for(var e=[],r=0;r<t.length;r++)e.push(nl(t[r]));return e}var n=[];return t.traverse(function(a){a instanceof ze&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var _B=1e4,Kue=0,bB=1,SB=2,que=je();function Jue(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var a=t.getDimensionInfo(r[n]);if(a&&a.otherDims[e]===0)return r[n]}}function Que(t,e,r){var n=t.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=t.get(n.name,e);return a&&a.categories[i]||i+""}}function wB(t,e,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=Jue(t,a);if(i){var o=Que(t,e,i);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function xB(t){var e=[];return M(t,function(r){var n=r.data,a=r.dataGroupId;if(n.count()>_B){process.env.NODE_ENV!=="production"&&Ct("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:wB(n,o,a,!1),childGroupId:wB(n,o,a,!0),divide:r.divide,dataIndex:o})}),e}function Cw(t,e,r){t.traverse(function(n){n instanceof ze&&St(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function Tw(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Bu(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function ece(t,e,r){var n=Ul("update",r,e);n&&t.traverse(function(a){if(a instanceof Cn){var i=k7(a);i&&a.animateFrom({style:i},n)}})}function tce(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var a=t[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function CB(t,e,r){var n=xB(t),a=xB(e);function i(b,S,w,x,C){(w||b)&&S.animateFrom({style:w&&w!==b?W(W({},w.style),b.style):b.style},C)}var o=!1,s=Kue,l=fe(),u=fe();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=bB;break}var h=a[c].childGroupId;if(h&&l.get(h)){s=SB;break}}function d(b,S){return function(w){var x=w.data,C=w.dataIndex;return S?x.getId(C):b?s===bB?w.childGroupId:w.groupId:s===SB?w.childGroupId:w.groupId}}var v=tce(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 w=n[S],x=a[b],C=x.data.hostModel,T=w.data.getItemGraphicEl(w.dataIndex),D=x.data.getItemGraphicEl(x.dataIndex);if(T===D){D&&ece(D,x.dataIndex,C);return}T&&g[T.id]||D&&(Bu(D),T?(Bu(T),Tw(T),o=!0,xw(nl(T),nl(D),x.divide,C,b,i)):Cw(D,C,b))}new hi(n,a,d(!0,v),d(!1,v),null,"multiple").update(_).updateManyToOne(function(b,S){var w=a[b],x=w.data,C=x.hostModel,T=x.getItemGraphicEl(w.dataIndex),D=tt(K(S,function(E){return n[E].data.getItemGraphicEl(n[E].dataIndex)}),function(E){return E&&E!==T&&!g[E.id]});T&&(Bu(T),D.length?(M(D,function(E){Bu(E),Tw(E)}),o=!0,xw(nl(D),nl(T),w.divide,C,b,i)):Cw(T,C,w.dataIndex))}).updateOneToMany(function(b,S){var w=n[S],x=w.data.getItemGraphicEl(w.dataIndex);if(!(x&&g[x.id])){var C=tt(K(b,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==x}),T=a[b[0]].data.hostModel;C.length&&(M(C,function(D){return Bu(D)}),x?(Bu(x),Tw(x),o=!0,xw(nl(x),nl(C),w.divide,T,b[0],i)):M(C,function(D){return Cw(D,T,b[0])}))}}).updateManyToMany(function(b,S){new hi(S,b,function(w){return n[w].data.getId(n[w].dataIndex)},function(w){return a[w].data.getId(a[w].dataIndex)}).update(function(w,x){_(b[w],S[x])}).execute()}).execute(),o&&M(e,function(b){var S=b.data,w=S.hostModel,x=w&&r.getViewOfSeriesModel(w),C=Ul("update",w,0);x&&w.isAnimationEnabled()&&C&&C.duration>0&&x.group.traverse(function(T){T instanceof ze&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function TB(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function DB(t){return Z(t)?t.sort().join(","):t}function Co(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function rce(t,e){var r=fe(),n=fe(),a=fe();M(t.oldSeries,function(o,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=TB(o),f=DB(c);n.set(f,{dataGroupId:l,data:u}),Z(c)&&M(c,function(h){a.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){r.get(o)&&Ct("Duplicated seriesKey in universalTransition "+o)}return M(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=TB(o),c=DB(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),r.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Co(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Co(l),data:l}]});else if(Z(u)){process.env.NODE_ENV!=="production"&&i(c);var h=[];M(u,function(g){var m=n.get(g);m.data&&h.push({dataGroupId:m.dataGroupId,divide:Co(m.data),data:m.data})}),h.length&&r.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Co(l)}]})}else{var d=a.get(u);if(d){var v=r.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Co(d.data)}],newSeries:[]},r.set(d.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:Co(l)})}}}}),r}function EB(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function nce(t,e,r,n){var a=[],i=[];M(ut(t.from),function(o){var s=EB(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Co(e.oldData[s]),groupIdDim:o.dimension})}),M(ut(t.to),function(o){var s=EB(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Co(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&CB(a,i,n)}function ace(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){M(ut(n.seriesTransition),function(a){M(ut(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][Gp]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var a=que(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(ut(i),function(d){nce(d,a,n,r)});else{var o=rce(a,n);M(o.keys(),function(d){var v=o.get(d);CB(v.oldSeries,v.newSeries,r)})}M(n.updatedSeries,function(d){d[Gp]&&(d[Gp]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<_B&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Be([vq]),Be([cq]),Be([Oq,Kq,oJ,FJ,KJ,RQ,cee,Zee,vte,Ste,Ite,Cre,jre,one,wne,Dne,Rne,Hne,eae,oae,gae,Jae]),Be(mie),Be(Hie),Be(_N),Be(roe),Be(zP),Be(ooe),Be(voe),Be(rse),Be(Sse),Be(ch),Be(Bse),Be($se),Be(qse),Be(ale),Be(cle),Be(gle),Be(Dle),Be(Wle),Be(PV),Be(BV),Be(cue),Be(eB),Be(rB),Be(vue),Be(Mue),Be(kue),Be(ace),Be(IK);const MB=Object.freeze(Object.defineProperty({__proto__:null,Axis:Nn,ChartView:st,ComponentModel:Ve,ComponentView:_t,List:kr,Model:rt,PRIORITY:WA,SeriesModel:ct,color:ZW,connect:BX,dataTool:UX,dependencies:SX,disConnect:FX,disconnect:iI,dispose:zX,env:Fe,extendChartView:mK,extendComponentModel:pK,extendComponentView:vK,extendSeriesModel:gK,format:nK,getCoordinateSystemDimensions:GX,getInstanceByDom:Z_,getInstanceById:$X,getMap:WX,graphic:rK,helper:Xj,init:Y_,innerDrawElementOnCanvas:k_,matrix:TW,number:eK,parseGeoJSON:p1,parseGeoJson:p1,registerAction:aa,registerCoordinateSystem:lI,registerLayout:uI,registerLoading:J_,registerLocale:U0,registerMap:fI,registerPostInit:oI,registerPostUpdate:sI,registerPreprocessor:j_,registerProcessor:K_,registerTheme:X_,registerTransform:hI,registerUpdateLifecycle:ov,registerVisual:fo,setCanvasCreator:HX,setPlatformAPI:zT,throttle:Wp,time:tK,use:Be,util:aK,vector:fW,version:bX,zrUtil:aW,zrender:MU},Symbol.toStringTag,{value:"Module"})),ice={name:"cmLineChart"},oce=p.defineComponent({...ice,props:{data:{default:()=>({width:"600px",height:"400px",chartType:"",chartName:"",dataList:[],fieldMessage:{},statisticsType:"",colorList:[],borderColor:"#fff",fieldSum:{},smooth:!1,bShowLegend:!0,orientVal:"horizontal",legendLocation:"left",yRotate:0})}},setup(t,{expose:e}){const r=t;let n=p.ref(""),a=p.ref(""),i=p.ref([]),o=p.ref([]),s=p.ref([]);const l=p.ref(null);let u=null;const c=()=>{!l.value||!MB||(u&&u.dispose(),u=Y_(l.value),h())},f=p.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 _=`<b>${y[0].axisValue}</b>`;return y.forEach(b=>{const S=`<span style="display:inline-block;margin-right:4px;
95
+ border-radius:50%;width:10px;height:10px;
96
+ background-color:${b.color}"></span>`;_+=`<br/>${S} ${b.seriesName}: ${b.value}`}),_}},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},yAxis:{type:"value",axisLabel:{rotate:r.data.yRotate}},series:o.value})),h=()=>{u&&u.setOption(f.value,!0)},d=()=>{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(w=>w[_.sKey]))],b==="1"){let w={name:"",type:r.data.chartType,data:[],color:r.data.colorList[0],smooth:r.data.smooth};w.name=_.sValue;const x=new Map,C=_.sKey;y.forEach(T=>{const D=T[C];if(x.has(D)){const E=x.get(D);E.value+=1}else{const E={[C]:D,name:D,value:1};x.set(D,E)}}),w.data=Array.from(x.values()),o.value=[w],s.value=[w.name]}else if(S.length){let w=[],x=[];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};x.push(T.sValue),D.name=T.sValue;const E=_.sKey,A=new Map;y.forEach(I=>{const k=I[E];if(A.has(k)){const L=A.get(k);L.value+=I[T.sKey]}else{const L={[E]:k,name:k,value:I[E]===k?I[T.sKey]:0};A.set(k,L)}}),D.data=Array.from(A.values()),w.push(D)}o.value=w,s.value=x}else o.value=[],s.value=[]},g=()=>{var y;r.data&&((y=r.data.dataList)!=null&&y.length)&&(v(),console.log("折线图得到的Y轴数据",o.value),console.log("折线图得到的图列数据",s.value),n.value=r.data.width,a.value=r.data.height,p.nextTick(()=>{!u&&l.value?c():h()}))},m=p.computed(()=>{let y={width:"",height:""};return y.width=n.value,y.height=a.value,y});return p.onMounted(()=>{r.data&&g()}),p.onUnmounted(()=>{d()}),p.watch(()=>r.data,(y,_)=>{g()},{deep:!0,immediate:!0}),e({disposeChart:d}),(y,_)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"lineChartRef",ref:l,class:"cmLineChart",style:p.normalizeStyle(m.value)},null,4))}}),sce={name:"cmPieChart"},lce=p.defineComponent({...sce,props:{data:{default:()=>({width:"600px",height:"400px",dataList:[],fieldMessage:{},statisticsType:"",bShowLegend:!0,bShowSeriesLabel:!0,colorList:[],borderColor:"#fff",pieRadius:"0%",orientVal:"horizontal",legendLocation:"left",fieldSum:{}})}},setup(t,{expose:e}){let{proxy:r}=p.getCurrentInstance();const n=t;let a=p.ref(""),i=p.ref("");const o=p.ref(null);let s=null;const l=p.ref([]),u=()=>{!o.value||!MB||(s&&s.dispose(),s=Y_(o.value),c())},c=()=>{if(!s)return;const g={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)},h=()=>{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,w=m.sKey;return g.forEach(x=>{const C=x[w];if(S.has(C)){const T=S.get(C);T.value+=1}else{const T={[w]:C,name:C,value:1};S.set(C,T)}}),Array.from(S.values())}else if(_){const S=m.sKey,w=new Map;return g.forEach(x=>{const C=x[S];if(w.has(C)){const T=w.get(C);T.value+=x[_]}else{const T={[S]:C,name:C,value:x[S]===C?x[_]:0};w.set(C,T)}}),Array.from(w.values())}else return[]},d=()=>{var g;n.data&&((g=n.data.dataList)!=null&&g.length)&&(l.value=h(),a.value=n.data.width,i.value=n.data.height,l.value.length&&p.nextTick(()=>{!s&&o.value?u():c()}))},v=p.computed(()=>{let g={width:"",height:""};return g.width=a.value,g.height=i.value,g});return p.onMounted(()=>{n.data&&d()}),p.onUnmounted(()=>{f()}),p.watch(()=>n.data,(g,m)=>{d()},{deep:!0,immediate:!0}),e({disposeChart:f}),(g,m)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"pieChartRef",ref:o,class:"cmPieChart",style:p.normalizeStyle(v.value)},null,4))}});//! moment.js
97
+ //! version : 2.30.1
98
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
99
+ //! license : MIT
100
+ //! momentjs.com
101
+ var AB;function ge(){return AB.apply(null,arguments)}function uce(t){AB=t}function la(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function al(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function ft(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Dw(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(ft(t,e))return!1;return!0}function Qr(t){return t===void 0}function Si(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function bh(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function IB(t,e){var r=[],n,a=t.length;for(n=0;n<a;++n)r.push(e(t[n],n));return r}function To(t,e){for(var r in e)ft(e,r)&&(t[r]=e[r]);return ft(e,"toString")&&(t.toString=e.toString),ft(e,"valueOf")&&(t.valueOf=e.valueOf),t}function $a(t,e,r,n){return n5(t,e,r,n,!0).utc()}function cce(){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 qe(t){return t._pf==null&&(t._pf=cce()),t._pf}var Ew;Array.prototype.some?Ew=Array.prototype.some:Ew=function(t){var e=Object(this),r=e.length>>>0,n;for(n=0;n<r;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};function Mw(t){var e=null,r=!1,n=t._d&&!isNaN(t._d.getTime());if(n&&(e=qe(t),r=Ew.call(e.parsedDateParts,function(a){return a!=null}),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(n=n&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=n;else return n;return t._isValid}function Eg(t){var e=$a(NaN);return t!=null?To(qe(e),t):qe(e).userInvalidated=!0,e}var kB=ge.momentProperties=[],Aw=!1;function Iw(t,e){var r,n,a,i=kB.length;if(Qr(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Qr(e._i)||(t._i=e._i),Qr(e._f)||(t._f=e._f),Qr(e._l)||(t._l=e._l),Qr(e._strict)||(t._strict=e._strict),Qr(e._tzm)||(t._tzm=e._tzm),Qr(e._isUTC)||(t._isUTC=e._isUTC),Qr(e._offset)||(t._offset=e._offset),Qr(e._pf)||(t._pf=qe(e)),Qr(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)n=kB[r],a=e[n],Qr(a)||(t[n]=a);return t}function Sh(t){Iw(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Aw===!1&&(Aw=!0,ge.updateOffset(this),Aw=!1)}function ua(t){return t instanceof Sh||t!=null&&t._isAMomentObject!=null}function LB(t){ge.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function zn(t,e){var r=!0;return To(function(){if(ge.deprecationHandler!=null&&ge.deprecationHandler(null,t),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
102
+ [`+i+"] ";for(o in arguments[0])ft(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}LB(t+`
103
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
104
+ `+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var NB={};function PB(t,e){ge.deprecationHandler!=null&&ge.deprecationHandler(t,e),NB[t]||(LB(e),NB[t]=!0)}ge.suppressDeprecationWarnings=!1,ge.deprecationHandler=null;function Ga(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function fce(t){var e,r;for(r in t)ft(t,r)&&(e=t[r],Ga(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function kw(t,e){var r=To({},t),n;for(n in e)ft(e,n)&&(al(t[n])&&al(e[n])?(r[n]={},To(r[n],t[n]),To(r[n],e[n])):e[n]!=null?r[n]=e[n]:delete r[n]);for(n in t)ft(t,n)&&!ft(e,n)&&al(t[n])&&(r[n]=To({},r[n]));return r}function Lw(t){t!=null&&this.set(t)}var Nw;Object.keys?Nw=Object.keys:Nw=function(t){var e,r=[];for(e in t)ft(t,e)&&r.push(e);return r};var hce={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function dce(t,e,r){var n=this._calendar[t]||this._calendar.sameElse;return Ga(n)?n.call(e,r):n}function Ha(t,e,r){var n=""+Math.abs(t),a=e-n.length,i=t>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Pw=/(\[[^\[]*\])|(\\)?([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,Mg=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ow={},Fu={};function Le(t,e,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),t&&(Fu[t]=a),e&&(Fu[e[0]]=function(){return Ha(a.apply(this,arguments),e[1],e[2])}),r&&(Fu[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function pce(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function vce(t){var e=t.match(Pw),r,n;for(r=0,n=e.length;r<n;r++)Fu[e[r]]?e[r]=Fu[e[r]]:e[r]=pce(e[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=Ga(e[o])?e[o].call(a,t):e[o];return i}}function Ag(t,e){return t.isValid()?(e=OB(e,t.localeData()),Ow[e]=Ow[e]||vce(e),Ow[e](t)):t.localeData().invalidDate()}function OB(t,e){var r=5;function n(a){return e.longDateFormat(a)||a}for(Mg.lastIndex=0;r>=0&&Mg.test(t);)t=t.replace(Mg,n),Mg.lastIndex=0,r-=1;return t}var gce={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 mce(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(Pw).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var yce="Invalid date";function _ce(){return this._invalidDate}var bce="%d",Sce=/\d{1,2}/;function wce(t){return this._ordinal.replace("%d",t)}var xce={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 Cce(t,e,r,n){var a=this._relativeTime[r];return Ga(a)?a(t,e,r,n):a.replace(/%d/i,t)}function Tce(t,e){var r=this._relativeTime[t>0?"future":"past"];return Ga(r)?r(e):r.replace(/%s/i,e)}var RB={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 $n(t){return typeof t=="string"?RB[t]||RB[t.toLowerCase()]:void 0}function Rw(t){var e={},r,n;for(n in t)ft(t,n)&&(r=$n(n),r&&(e[r]=t[n]));return e}var Dce={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 Ece(t){var e=[],r;for(r in t)ft(t,r)&&e.push({unit:r,priority:Dce[r]});return e.sort(function(n,a){return n.priority-a.priority}),e}var VB=/\d/,dn=/\d\d/,BB=/\d{3}/,Vw=/\d{4}/,Ig=/[+-]?\d{6}/,Dt=/\d\d?/,FB=/\d\d\d\d?/,zB=/\d\d\d\d\d\d?/,kg=/\d{1,3}/,Bw=/\d{1,4}/,Lg=/[+-]?\d{1,6}/,zu=/\d+/,Ng=/[+-]?\d+/,Mce=/Z|[+-]\d\d:?\d\d/gi,Pg=/Z|[+-]\d\d(?::?\d\d)?/gi,Ace=/[+-]?\d+(\.\d{1,3})?/,wh=/[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?/,Fw=/^([1-9]\d|\d)/,Og;Og={};function xe(t,e,r){Og[t]=Ga(e)?e:function(n,a){return n&&r?r:e}}function Ice(t,e){return ft(Og,t)?Og[t](e._strict,e._locale):new RegExp(kce(t))}function kce(t){return wi(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,n,a,i){return r||n||a||i}))}function wi(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Gn(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ot(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=Gn(e)),r}var zw={};function wt(t,e){var r,n=e,a;for(typeof t=="string"&&(t=[t]),Si(e)&&(n=function(i,o){o[e]=ot(i)}),a=t.length,r=0;r<a;r++)zw[t[r]]=n}function xh(t,e){wt(t,function(r,n,a,i){a._w=a._w||{},e(r,a._w,a,i)})}function Lce(t,e,r){e!=null&&ft(zw,t)&&zw[t](e,r._a,r,t)}function Rg(t){return t%4===0&&t%100!==0||t%400===0}var Lr=0,xi=1,Wa=2,nr=3,ca=4,Ci=5,il=6,Nce=7,Pce=8;Le("Y",0,0,function(){var t=this.year();return t<=9999?Ha(t,4):"+"+t}),Le(0,["YY",2],0,function(){return this.year()%100}),Le(0,["YYYY",4],0,"year"),Le(0,["YYYYY",5],0,"year"),Le(0,["YYYYYY",6,!0],0,"year"),xe("Y",Ng),xe("YY",Dt,dn),xe("YYYY",Bw,Vw),xe("YYYYY",Lg,Ig),xe("YYYYYY",Lg,Ig),wt(["YYYYY","YYYYYY"],Lr),wt("YYYY",function(t,e){e[Lr]=t.length===2?ge.parseTwoDigitYear(t):ot(t)}),wt("YY",function(t,e){e[Lr]=ge.parseTwoDigitYear(t)}),wt("Y",function(t,e){e[Lr]=parseInt(t,10)});function Ch(t){return Rg(t)?366:365}ge.parseTwoDigitYear=function(t){return ot(t)+(ot(t)>68?1900:2e3)};var $B=Gu("FullYear",!0);function Oce(){return Rg(this.year())}function Gu(t,e){return function(r){return r!=null?(GB(this,t,r),ge.updateOffset(this,e),this):Th(this,t)}}function Th(t,e){if(!t.isValid())return NaN;var r=t._d,n=t._isUTC;switch(e){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 GB(t,e,r){var n,a,i,o,s;if(!(!t.isValid()||isNaN(r))){switch(n=t._d,a=t._isUTC,e){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=t.month(),s=t.date(),s=s===29&&o===1&&!Rg(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function Rce(t){return t=$n(t),Ga(this[t])?this[t]():this}function Vce(t,e){if(typeof t=="object"){t=Rw(t);var r=Ece(t),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](t[r[n].unit])}else if(t=$n(t),Ga(this[t]))return this[t](e);return this}function Bce(t,e){return(t%e+e)%e}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function $w(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=Bce(e,12);return t+=(e-r)/12,r===1?Rg(t)?29:28:31-r%7%2}Le("M",["MM",2],"Mo",function(){return this.month()+1}),Le("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Le("MMMM",0,0,function(t){return this.localeData().months(this,t)}),xe("M",Dt,$u),xe("MM",Dt,dn),xe("MMM",function(t,e){return e.monthsShortRegex(t)}),xe("MMMM",function(t,e){return e.monthsRegex(t)}),wt(["M","MM"],function(t,e){e[xi]=ot(t)-1}),wt(["MMM","MMMM"],function(t,e,r,n){var a=r._locale.monthsParse(t,n,r._strict);a!=null?e[xi]=a:qe(r).invalidMonth=t});var Fce="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),HB="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),WB=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zce=wh,$ce=wh;function Gce(t,e){return t?la(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||WB).test(e)?"format":"standalone"][t.month()]:la(this._months)?this._months:this._months.standalone}function Hce(t,e){return t?la(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[WB.test(e)?"format":"standalone"][t.month()]:la(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wce(t,e,r){var n,a,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=$a([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?e==="MMM"?(a=Wt.call(this._shortMonthsParse,o),a!==-1?a:null):(a=Wt.call(this._longMonthsParse,o),a!==-1?a:null):e==="MMM"?(a=Wt.call(this._shortMonthsParse,o),a!==-1?a:(a=Wt.call(this._longMonthsParse,o),a!==-1?a:null)):(a=Wt.call(this._longMonthsParse,o),a!==-1?a:(a=Wt.call(this._shortMonthsParse,o),a!==-1?a:null))}function Uce(t,e,r){var n,a,i;if(this._monthsParseExact)return Wce.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=$a([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&&e==="MMMM"&&this._longMonthsParse[n].test(t))return n;if(r&&e==="MMM"&&this._shortMonthsParse[n].test(t))return n;if(!r&&this._monthsParse[n].test(t))return n}}function UB(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=ot(e);else if(e=t.localeData().monthsParse(e),!Si(e))return t}var r=e,n=t.date();return n=n<29?n:Math.min(n,$w(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,n):t._d.setMonth(r,n),t}function YB(t){return t!=null?(UB(this,t),ge.updateOffset(this,!0),this):Th(this,"Month")}function Yce(){return $w(this.year(),this.month())}function Zce(t){return this._monthsParseExact?(ft(this,"_monthsRegex")||ZB.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(ft(this,"_monthsShortRegex")||(this._monthsShortRegex=zce),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Xce(t){return this._monthsParseExact?(ft(this,"_monthsRegex")||ZB.call(this),t?this._monthsStrictRegex:this._monthsRegex):(ft(this,"_monthsRegex")||(this._monthsRegex=$ce),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ZB(){function t(l,u){return u.length-l.length}var e=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=$a([2e3,a]),o=wi(this.monthsShort(i,"")),s=wi(this.months(i,"")),e.push(o),r.push(s),n.push(s),n.push(o);e.sort(t),r.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function jce(t,e,r,n,a,i,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,r,n,a,i,o),s}function Dh(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Vg(t,e,r){var n=7+e-r,a=(7+Dh(t,0,n).getUTCDay()-e)%7;return-a+n-1}function XB(t,e,r,n,a){var i=(7+r-n)%7,o=Vg(t,n,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=t-1,u=Ch(l)+s):s>Ch(t)?(l=t+1,u=s-Ch(t)):(l=t,u=s),{year:l,dayOfYear:u}}function Eh(t,e,r){var n=Vg(t.year(),e,r),a=Math.floor((t.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=t.year()-1,i=a+Ti(o,e,r)):a>Ti(t.year(),e,r)?(i=a-Ti(t.year(),e,r),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function Ti(t,e,r){var n=Vg(t,e,r),a=Vg(t+1,e,r);return(Ch(t)-n+a)/7}Le("w",["ww",2],"wo","week"),Le("W",["WW",2],"Wo","isoWeek"),xe("w",Dt,$u),xe("ww",Dt,dn),xe("W",Dt,$u),xe("WW",Dt,dn),xh(["w","ww","W","WW"],function(t,e,r,n){e[n.substr(0,1)]=ot(t)});function Kce(t){return Eh(t,this._week.dow,this._week.doy).week}var qce={dow:0,doy:6};function Jce(){return this._week.dow}function Qce(){return this._week.doy}function efe(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function tfe(t){var e=Eh(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}Le("d",0,"do","day"),Le("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Le("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Le("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Le("e",0,0,"weekday"),Le("E",0,0,"isoWeekday"),xe("d",Dt),xe("e",Dt),xe("E",Dt),xe("dd",function(t,e){return e.weekdaysMinRegex(t)}),xe("ddd",function(t,e){return e.weekdaysShortRegex(t)}),xe("dddd",function(t,e){return e.weekdaysRegex(t)}),xh(["dd","ddd","dddd"],function(t,e,r,n){var a=r._locale.weekdaysParse(t,n,r._strict);a!=null?e.d=a:qe(r).invalidWeekday=t}),xh(["d","e","E"],function(t,e,r,n){e[n]=ot(t)});function rfe(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function nfe(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Gw(t,e){return t.slice(e,7).concat(t.slice(0,e))}var afe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jB="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ife="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ofe=wh,sfe=wh,lfe=wh;function ufe(t,e){var r=la(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Gw(r,this._week.dow):t?r[t.day()]:r}function cfe(t){return t===!0?Gw(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ffe(t){return t===!0?Gw(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function hfe(t,e,r){var n,a,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=$a([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?e==="dddd"?(a=Wt.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=Wt.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=Wt.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=Wt.call(this._weekdaysParse,o),a!==-1||(a=Wt.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=Wt.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=Wt.call(this._shortWeekdaysParse,o),a!==-1||(a=Wt.call(this._weekdaysParse,o),a!==-1)?a:(a=Wt.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=Wt.call(this._minWeekdaysParse,o),a!==-1||(a=Wt.call(this._weekdaysParse,o),a!==-1)?a:(a=Wt.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function dfe(t,e,r){var n,a,i;if(this._weekdaysParseExact)return hfe.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=$a([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&&e==="dddd"&&this._fullWeekdaysParse[n].test(t))return n;if(r&&e==="ddd"&&this._shortWeekdaysParse[n].test(t))return n;if(r&&e==="dd"&&this._minWeekdaysParse[n].test(t))return n;if(!r&&this._weekdaysParse[n].test(t))return n}}function pfe(t){if(!this.isValid())return t!=null?this:NaN;var e=Th(this,"Day");return t!=null?(t=rfe(t,this.localeData()),this.add(t-e,"d")):e}function vfe(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function gfe(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=nfe(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function mfe(t){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||Hw.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(ft(this,"_weekdaysRegex")||(this._weekdaysRegex=ofe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function yfe(t){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||Hw.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ft(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sfe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _fe(t){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||Hw.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ft(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lfe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Hw(){function t(c,f){return f.length-c.length}var e=[],r=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=$a([2e3,1]).day(i),s=wi(this.weekdaysMin(o,"")),l=wi(this.weekdaysShort(o,"")),u=wi(this.weekdays(o,"")),e.push(s),r.push(l),n.push(u),a.push(s),a.push(l),a.push(u);e.sort(t),r.sort(t),n.sort(t),a.sort(t),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("^("+e.join("|")+")","i")}function Ww(){return this.hours()%12||12}function bfe(){return this.hours()||24}Le("H",["HH",2],0,"hour"),Le("h",["hh",2],0,Ww),Le("k",["kk",2],0,bfe),Le("hmm",0,0,function(){return""+Ww.apply(this)+Ha(this.minutes(),2)}),Le("hmmss",0,0,function(){return""+Ww.apply(this)+Ha(this.minutes(),2)+Ha(this.seconds(),2)}),Le("Hmm",0,0,function(){return""+this.hours()+Ha(this.minutes(),2)}),Le("Hmmss",0,0,function(){return""+this.hours()+Ha(this.minutes(),2)+Ha(this.seconds(),2)});function KB(t,e){Le(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}KB("a",!0),KB("A",!1);function qB(t,e){return e._meridiemParse}xe("a",qB),xe("A",qB),xe("H",Dt,Fw),xe("h",Dt,$u),xe("k",Dt,$u),xe("HH",Dt,dn),xe("hh",Dt,dn),xe("kk",Dt,dn),xe("hmm",FB),xe("hmmss",zB),xe("Hmm",FB),xe("Hmmss",zB),wt(["H","HH"],nr),wt(["k","kk"],function(t,e,r){var n=ot(t);e[nr]=n===24?0:n}),wt(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t}),wt(["h","hh"],function(t,e,r){e[nr]=ot(t),qe(r).bigHour=!0}),wt("hmm",function(t,e,r){var n=t.length-2;e[nr]=ot(t.substr(0,n)),e[ca]=ot(t.substr(n)),qe(r).bigHour=!0}),wt("hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[nr]=ot(t.substr(0,n)),e[ca]=ot(t.substr(n,2)),e[Ci]=ot(t.substr(a)),qe(r).bigHour=!0}),wt("Hmm",function(t,e,r){var n=t.length-2;e[nr]=ot(t.substr(0,n)),e[ca]=ot(t.substr(n))}),wt("Hmmss",function(t,e,r){var n=t.length-4,a=t.length-2;e[nr]=ot(t.substr(0,n)),e[ca]=ot(t.substr(n,2)),e[Ci]=ot(t.substr(a))});function Sfe(t){return(t+"").toLowerCase().charAt(0)==="p"}var wfe=/[ap]\.?m?\.?/i,xfe=Gu("Hours",!0);function Cfe(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var JB={calendar:hce,longDateFormat:gce,invalidDate:yce,ordinal:bce,dayOfMonthOrdinalParse:Sce,relativeTime:xce,months:Fce,monthsShort:HB,week:qce,weekdays:afe,weekdaysMin:ife,weekdaysShort:jB,meridiemParse:wfe},At={},Mh={},Ah;function Tfe(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r+=1)if(t[r]!==e[r])return r;return n}function QB(t){return t&&t.toLowerCase().replace("_","-")}function Dfe(t){for(var e=0,r,n,a,i;e<t.length;){for(i=QB(t[e]).split("-"),r=i.length,n=QB(t[e+1]),n=n?n.split("-"):null;r>0;){if(a=Bg(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&Tfe(i,n)>=r-1)break;r--}e++}return Ah}function Efe(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Bg(t){var e=null,r;if(At[t]===void 0&&typeof module<"u"&&module&&module.exports&&Efe(t))try{e=Ah._abbr,r=require,r("./locale/"+t),Do(e)}catch{At[t]=null}return At[t]}function Do(t,e){var r;return t&&(Qr(e)?r=Di(t):r=Uw(t,e),r?Ah=r:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ah._abbr}function Uw(t,e){if(e!==null){var r,n=JB;if(e.abbr=t,At[t]!=null)PB("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=At[t]._config;else if(e.parentLocale!=null)if(At[e.parentLocale]!=null)n=At[e.parentLocale]._config;else if(r=Bg(e.parentLocale),r!=null)n=r._config;else return Mh[e.parentLocale]||(Mh[e.parentLocale]=[]),Mh[e.parentLocale].push({name:t,config:e}),null;return At[t]=new Lw(kw(n,e)),Mh[t]&&Mh[t].forEach(function(a){Uw(a.name,a.config)}),Do(t),At[t]}else return delete At[t],null}function Mfe(t,e){if(e!=null){var r,n,a=JB;At[t]!=null&&At[t].parentLocale!=null?At[t].set(kw(At[t]._config,e)):(n=Bg(t),n!=null&&(a=n._config),e=kw(a,e),n==null&&(e.abbr=t),r=new Lw(e),r.parentLocale=At[t],At[t]=r),Do(t)}else At[t]!=null&&(At[t].parentLocale!=null?(At[t]=At[t].parentLocale,t===Do()&&Do(t)):At[t]!=null&&delete At[t]);return At[t]}function Di(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ah;if(!la(t)){if(e=Bg(t),e)return e;t=[t]}return Dfe(t)}function Afe(){return Nw(At)}function Yw(t){var e,r=t._a;return r&&qe(t).overflow===-2&&(e=r[xi]<0||r[xi]>11?xi:r[Wa]<1||r[Wa]>$w(r[Lr],r[xi])?Wa:r[nr]<0||r[nr]>24||r[nr]===24&&(r[ca]!==0||r[Ci]!==0||r[il]!==0)?nr:r[ca]<0||r[ca]>59?ca:r[Ci]<0||r[Ci]>59?Ci:r[il]<0||r[il]>999?il:-1,qe(t)._overflowDayOfYear&&(e<Lr||e>Wa)&&(e=Wa),qe(t)._overflowWeeks&&e===-1&&(e=Nce),qe(t)._overflowWeekday&&e===-1&&(e=Pce),qe(t).overflow=e),t}var Ife=/^\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)?)?$/,kfe=/^\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)?)?$/,Lfe=/Z|[+-]\d\d(?::?\d\d)?/,Fg=[["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]],Zw=[["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/]],Nfe=/^\/?Date\((-?\d+)/i,Pfe=/^(?:(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}))$/,Ofe={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 e5(t){var e,r,n=t._i,a=Ife.exec(n)||kfe.exec(n),i,o,s,l,u=Fg.length,c=Zw.length;if(a){for(qe(t).iso=!0,e=0,r=u;e<r;e++)if(Fg[e][1].exec(a[1])){o=Fg[e][0],i=Fg[e][2]!==!1;break}if(o==null){t._isValid=!1;return}if(a[3]){for(e=0,r=c;e<r;e++)if(Zw[e][1].exec(a[3])){s=(a[2]||" ")+Zw[e][0];break}if(s==null){t._isValid=!1;return}}if(!i&&s!=null){t._isValid=!1;return}if(a[4])if(Lfe.exec(a[4]))l="Z";else{t._isValid=!1;return}t._f=o+(s||"")+(l||""),jw(t)}else t._isValid=!1}function Rfe(t,e,r,n,a,i){var o=[Vfe(t),HB.indexOf(e),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function Vfe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Bfe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ffe(t,e,r){if(t){var n=jB.indexOf(t),a=new Date(e[0],e[1],e[2]).getDay();if(n!==a)return qe(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function zfe(t,e,r){if(t)return Ofe[t];if(e)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function t5(t){var e=Pfe.exec(Bfe(t._i)),r;if(e){if(r=Rfe(e[4],e[3],e[2],e[5],e[6],e[7]),!Ffe(e[1],r,t))return;t._a=r,t._tzm=zfe(e[8],e[9],e[10]),t._d=Dh.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),qe(t).rfc2822=!0}else t._isValid=!1}function $fe(t){var e=Nfe.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(e5(t),t._isValid===!1)delete t._isValid;else return;if(t5(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:ge.createFromInputFallback(t)}ge.createFromInputFallback=zn("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Hu(t,e,r){return t??e??r}function Gfe(t){var e=new Date(ge.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Xw(t){var e,r,n=[],a,i,o;if(!t._d){for(a=Gfe(t),t._w&&t._a[Wa]==null&&t._a[xi]==null&&Hfe(t),t._dayOfYear!=null&&(o=Hu(t._a[Lr],a[Lr]),(t._dayOfYear>Ch(o)||t._dayOfYear===0)&&(qe(t)._overflowDayOfYear=!0),r=Dh(o,0,t._dayOfYear),t._a[xi]=r.getUTCMonth(),t._a[Wa]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[nr]===24&&t._a[ca]===0&&t._a[Ci]===0&&t._a[il]===0&&(t._nextDay=!0,t._a[nr]=0),t._d=(t._useUTC?Dh:jce).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[nr]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(qe(t).weekdayMismatch=!0)}}function Hfe(t){var e,r,n,a,i,o,s,l,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,r=Hu(e.GG,t._a[Lr],Eh(Et(),1,4).year),n=Hu(e.W,1),a=Hu(e.E,1),(a<1||a>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,u=Eh(Et(),i,o),r=Hu(e.gg,t._a[Lr],u.year),n=Hu(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),n<1||n>Ti(r,i,o)?qe(t)._overflowWeeks=!0:l!=null?qe(t)._overflowWeekday=!0:(s=XB(r,n,a,i,o),t._a[Lr]=s.year,t._dayOfYear=s.dayOfYear)}ge.ISO_8601=function(){},ge.RFC_2822=function(){};function jw(t){if(t._f===ge.ISO_8601){e5(t);return}if(t._f===ge.RFC_2822){t5(t);return}t._a=[],qe(t).empty=!0;var e=""+t._i,r,n,a,i,o,s=e.length,l=0,u,c;for(a=OB(t._f,t._locale).match(Pw)||[],c=a.length,r=0;r<c;r++)i=a[r],n=(e.match(Ice(i,t))||[])[0],n&&(o=e.substr(0,e.indexOf(n)),o.length>0&&qe(t).unusedInput.push(o),e=e.slice(e.indexOf(n)+n.length),l+=n.length),Fu[i]?(n?qe(t).empty=!1:qe(t).unusedTokens.push(i),Lce(i,n,t)):t._strict&&!n&&qe(t).unusedTokens.push(i);qe(t).charsLeftOver=s-l,e.length>0&&qe(t).unusedInput.push(e),t._a[nr]<=12&&qe(t).bigHour===!0&&t._a[nr]>0&&(qe(t).bigHour=void 0),qe(t).parsedDateParts=t._a.slice(0),qe(t).meridiem=t._meridiem,t._a[nr]=Wfe(t._locale,t._a[nr],t._meridiem),u=qe(t).era,u!==null&&(t._a[Lr]=t._locale.erasConvertYear(u,t._a[Lr])),Xw(t),Yw(t)}function Wfe(t,e,r){var n;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(n=t.isPM(r),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function Ufe(t){var e,r,n,a,i,o,s=!1,l=t._f.length;if(l===0){qe(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,e=Iw({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[a],jw(e),Mw(e)&&(o=!0),i+=qe(e).charsLeftOver,i+=qe(e).unusedTokens.length*10,qe(e).score=i,s?i<n&&(n=i,r=e):(n==null||i<n||o)&&(n=i,r=e,o&&(s=!0));To(t,r||e)}function Yfe(t){if(!t._d){var e=Rw(t._i),r=e.day===void 0?e.date:e.day;t._a=IB([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(n){return n&&parseInt(n,10)}),Xw(t)}}function Zfe(t){var e=new Sh(Yw(r5(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function r5(t){var e=t._i,r=t._f;return t._locale=t._locale||Di(t._l),e===null||r===void 0&&e===""?Eg({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),ua(e)?new Sh(Yw(e)):(bh(e)?t._d=e:la(r)?Ufe(t):r?jw(t):Xfe(t),Mw(t)||(t._d=null),t))}function Xfe(t){var e=t._i;Qr(e)?t._d=new Date(ge.now()):bh(e)?t._d=new Date(e.valueOf()):typeof e=="string"?$fe(t):la(e)?(t._a=IB(e.slice(0),function(r){return parseInt(r,10)}),Xw(t)):al(e)?Yfe(t):Si(e)?t._d=new Date(e):ge.createFromInputFallback(t)}function n5(t,e,r,n,a){var i={};return(e===!0||e===!1)&&(n=e,e=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(al(t)&&Dw(t)||la(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=t,i._f=e,i._strict=n,Zfe(i)}function Et(t,e,r,n){return n5(t,e,r,n,!1)}var jfe=zn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Et.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Eg()}),Kfe=zn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Et.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Eg()});function a5(t,e){var r,n;if(e.length===1&&la(e[0])&&(e=e[0]),!e.length)return Et();for(r=e[0],n=1;n<e.length;++n)(!e[n].isValid()||e[n][t](r))&&(r=e[n]);return r}function qfe(){var t=[].slice.call(arguments,0);return a5("isBefore",t)}function Jfe(){var t=[].slice.call(arguments,0);return a5("isAfter",t)}var Qfe=function(){return Date.now?Date.now():+new Date},Ih=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ehe(t){var e,r=!1,n,a=Ih.length;for(e in t)if(ft(t,e)&&!(Wt.call(Ih,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(n=0;n<a;++n)if(t[Ih[n]]){if(r)return!1;parseFloat(t[Ih[n]])!==ot(t[Ih[n]])&&(r=!0)}return!0}function the(){return this._isValid}function rhe(){return fa(NaN)}function zg(t){var e=Rw(t),r=e.year||0,n=e.quarter||0,a=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ehe(e),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=Di(),this._bubble()}function $g(t){return t instanceof zg}function Kw(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function nhe(t,e,r){var n=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),i=0,o;for(o=0;o<n;o++)ot(t[o])!==ot(e[o])&&i++;return i+a}function i5(t,e){Le(t,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Ha(~~(r/60),2)+e+Ha(~~r%60,2)})}i5("Z",":"),i5("ZZ",""),xe("Z",Pg),xe("ZZ",Pg),wt(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=qw(Pg,t)});var ahe=/([\+\-]|\d\d)/gi;function qw(t,e){var r=(e||"").match(t),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(ahe)||["-",0,0],i=+(a[1]*60)+ot(a[2]),i===0?0:a[0]==="+"?i:-i)}function Jw(t,e){var r,n;return e._isUTC?(r=e.clone(),n=(ua(t)||bh(t)?t.valueOf():Et(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),ge.updateOffset(r,!1),r):Et(t).local()}function Qw(t){return-Math.round(t._d.getTimezoneOffset())}ge.updateOffset=function(){};function ihe(t,e,r){var n=this._offset||0,a;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=qw(Pg,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(a=Qw(this)),this._offset=t,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==t&&(!e||this._changeInProgress?u5(this,fa(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ge.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Qw(this)}function ohe(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function she(t){return this.utcOffset(0,t)}function lhe(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Qw(this),"m")),this}function uhe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=qw(Mce,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function che(t){return this.isValid()?(t=t?Et(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function fhe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function hhe(){if(!Qr(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Iw(t,this),t=r5(t),t._a?(e=t._isUTC?$a(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&nhe(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function dhe(){return this.isValid()?!this._isUTC:!1}function phe(){return this.isValid()?this._isUTC:!1}function o5(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vhe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ghe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function fa(t,e){var r=t,n=null,a,i,o;return $g(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:Si(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(n=vhe.exec(t))?(a=n[1]==="-"?-1:1,r={y:0,d:ot(n[Wa])*a,h:ot(n[nr])*a,m:ot(n[ca])*a,s:ot(n[Ci])*a,ms:ot(Kw(n[il]*1e3))*a}):(n=ghe.exec(t))?(a=n[1]==="-"?-1:1,r={y:ol(n[2],a),M:ol(n[3],a),w:ol(n[4],a),d:ol(n[5],a),h:ol(n[6],a),m:ol(n[7],a),s:ol(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=mhe(Et(r.from),Et(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new zg(r),$g(t)&&ft(t,"_locale")&&(i._locale=t._locale),$g(t)&&ft(t,"_isValid")&&(i._isValid=t._isValid),i}fa.fn=zg.prototype,fa.invalid=rhe;function ol(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function s5(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function mhe(t,e){var r;return t.isValid()&&e.isValid()?(e=Jw(e,t),t.isBefore(e)?r=s5(t,e):(r=s5(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function l5(t,e){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(PB(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=fa(r,n),u5(this,a,t),this}}function u5(t,e,r,n){var a=e._milliseconds,i=Kw(e._days),o=Kw(e._months);t.isValid()&&(n=n??!0,o&&UB(t,Th(t,"Month")+o*r),i&&GB(t,"Date",Th(t,"Date")+i*r),a&&t._d.setTime(t._d.valueOf()+a*r),n&&ge.updateOffset(t,i||o))}var yhe=l5(1,"add"),_he=l5(-1,"subtract");function c5(t){return typeof t=="string"||t instanceof String}function bhe(t){return ua(t)||bh(t)||c5(t)||Si(t)||whe(t)||She(t)||t===null||t===void 0}function She(t){var e=al(t)&&!Dw(t),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||ft(t,i);return e&&r}function whe(t){var e=la(t),r=!1;return e&&(r=t.filter(function(n){return!Si(n)&&c5(t)}).length===0),e&&r}function xhe(t){var e=al(t)&&!Dw(t),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||ft(t,i);return e&&r}function Che(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function The(t,e){arguments.length===1&&(arguments[0]?bhe(arguments[0])?(t=arguments[0],e=void 0):xhe(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Et(),n=Jw(r,this).startOf("day"),a=ge.calendarFormat(this,n)||"sameElse",i=e&&(Ga(e[a])?e[a].call(this,r):e[a]);return this.format(i||this.localeData().calendar(a,this,Et(r)))}function Dhe(){return new Sh(this)}function Ehe(t,e){var r=ua(t)?t:Et(t);return this.isValid()&&r.isValid()?(e=$n(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function Mhe(t,e){var r=ua(t)?t:Et(t);return this.isValid()&&r.isValid()?(e=$n(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function Ahe(t,e,r,n){var a=ua(t)?t:Et(t),i=ua(e)?e:Et(e);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 Ihe(t,e){var r=ua(t)?t:Et(t),n;return this.isValid()&&r.isValid()?(e=$n(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())):!1}function khe(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Lhe(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Nhe(t,e,r){var n,a,i;if(!this.isValid())return NaN;if(n=Jw(t,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,e=$n(e),e){case"year":i=Gg(this,n)/12;break;case"month":i=Gg(this,n);break;case"quarter":i=Gg(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:Gn(i)}function Gg(t,e){if(t.date()<e.date())return-Gg(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,"months"),a,i;return e-n<0?(a=t.clone().add(r-1,"months"),i=(e-n)/(n-a)):(a=t.clone().add(r+1,"months"),i=(e-n)/(a-n)),-(r+i)||0}ge.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ge.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Phe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ohe(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?Ag(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ga(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ag(r,"Z")):Ag(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Rhe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,n,a,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+n+a+i)}function Vhe(t){t||(t=this.isUtc()?ge.defaultFormatUtc:ge.defaultFormat);var e=Ag(this,t);return this.localeData().postformat(e)}function Bhe(t,e){return this.isValid()&&(ua(t)&&t.isValid()||Et(t).isValid())?fa({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Fhe(t){return this.from(Et(),t)}function zhe(t,e){return this.isValid()&&(ua(t)&&t.isValid()||Et(t).isValid())?fa({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function $he(t){return this.to(Et(),t)}function f5(t){var e;return t===void 0?this._locale._abbr:(e=Di(t),e!=null&&(this._locale=e),this)}var h5=zn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function d5(){return this._locale}var Hg=1e3,Wu=60*Hg,Wg=60*Wu,p5=(365*400+97)*24*Wg;function Uu(t,e){return(t%e+e)%e}function v5(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-p5:new Date(t,e,r).valueOf()}function g5(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-p5:Date.UTC(t,e,r)}function Ghe(t){var e,r;if(t=$n(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?g5:v5,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Uu(e+(this._isUTC?0:this.utcOffset()*Wu),Wg);break;case"minute":e=this._d.valueOf(),e-=Uu(e,Wu);break;case"second":e=this._d.valueOf(),e-=Uu(e,Hg);break}return this._d.setTime(e),ge.updateOffset(this,!0),this}function Hhe(t){var e,r;if(t=$n(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?g5:v5,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Wg-Uu(e+(this._isUTC?0:this.utcOffset()*Wu),Wg)-1;break;case"minute":e=this._d.valueOf(),e+=Wu-Uu(e,Wu)-1;break;case"second":e=this._d.valueOf(),e+=Hg-Uu(e,Hg)-1;break}return this._d.setTime(e),ge.updateOffset(this,!0),this}function Whe(){return this._d.valueOf()-(this._offset||0)*6e4}function Uhe(){return Math.floor(this.valueOf()/1e3)}function Yhe(){return new Date(this.valueOf())}function Zhe(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Xhe(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function jhe(){return this.isValid()?this.toISOString():null}function Khe(){return Mw(this)}function qhe(){return To({},qe(this))}function Jhe(){return qe(this).overflow}function Qhe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Le("N",0,0,"eraAbbr"),Le("NN",0,0,"eraAbbr"),Le("NNN",0,0,"eraAbbr"),Le("NNNN",0,0,"eraName"),Le("NNNNN",0,0,"eraNarrow"),Le("y",["y",1],"yo","eraYear"),Le("y",["yy",2],0,"eraYear"),Le("y",["yyy",3],0,"eraYear"),Le("y",["yyyy",4],0,"eraYear"),xe("N",ex),xe("NN",ex),xe("NNN",ex),xe("NNNN",cde),xe("NNNNN",fde),wt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,n){var a=r._locale.erasParse(t,n,r._strict);a?qe(r).era=a:qe(r).invalidEra=t}),xe("y",zu),xe("yy",zu),xe("yyy",zu),xe("yyyy",zu),xe("yo",hde),wt(["y","yy","yyy","yyyy"],Lr),wt(["yo"],function(t,e,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Lr]=r._locale.eraYearOrdinalParse(t,a):e[Lr]=parseInt(t,10)});function ede(t,e){var r,n,a,i=this._eras||Di("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=ge(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=ge(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function tde(t,e,r){var n,a,i=this.eras(),o,s,l;for(t=t.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(e){case"N":case"NN":case"NNN":if(s===t)return i[n];break;case"NNNN":if(o===t)return i[n];break;case"NNNNN":if(l===t)return i[n];break}else if([o,s,l].indexOf(t)>=0)return i[n]}function rde(t,e){var r=t.since<=t.until?1:-1;return e===void 0?ge(t.since).year():ge(t.since).year()+(e-t.offset)*r}function nde(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].name;return""}function ade(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].narrow;return""}function ide(){var t,e,r,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return n[t].abbr;return""}function ode(){var t,e,r,n,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(r=a[t].since<=a[t].until?1:-1,n=this.clone().startOf("day").valueOf(),a[t].since<=n&&n<=a[t].until||a[t].until<=n&&n<=a[t].since)return(this.year()-ge(a[t].since).year())*r+a[t].offset;return this.year()}function sde(t){return ft(this,"_erasNameRegex")||tx.call(this),t?this._erasNameRegex:this._erasRegex}function lde(t){return ft(this,"_erasAbbrRegex")||tx.call(this),t?this._erasAbbrRegex:this._erasRegex}function ude(t){return ft(this,"_erasNarrowRegex")||tx.call(this),t?this._erasNarrowRegex:this._erasRegex}function ex(t,e){return e.erasAbbrRegex(t)}function cde(t,e){return e.erasNameRegex(t)}function fde(t,e){return e.erasNarrowRegex(t)}function hde(t,e){return e._eraYearOrdinalRegex||zu}function tx(){var t=[],e=[],r=[],n=[],a,i,o,s,l,u=this.eras();for(a=0,i=u.length;a<i;++a)o=wi(u[a].name),s=wi(u[a].abbr),l=wi(u[a].narrow),e.push(o),t.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("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Le(0,["gg",2],0,function(){return this.weekYear()%100}),Le(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ug(t,e){Le(0,[t,t.length],0,e)}Ug("gggg","weekYear"),Ug("ggggg","weekYear"),Ug("GGGG","isoWeekYear"),Ug("GGGGG","isoWeekYear"),xe("G",Ng),xe("g",Ng),xe("GG",Dt,dn),xe("gg",Dt,dn),xe("GGGG",Bw,Vw),xe("gggg",Bw,Vw),xe("GGGGG",Lg,Ig),xe("ggggg",Lg,Ig),xh(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,n){e[n.substr(0,2)]=ot(t)}),xh(["gg","GG"],function(t,e,r,n){e[n]=ge.parseTwoDigitYear(t)});function dde(t){return m5.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function pde(t){return m5.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function vde(){return Ti(this.year(),1,4)}function gde(){return Ti(this.isoWeekYear(),1,4)}function mde(){var t=this.localeData()._week;return Ti(this.year(),t.dow,t.doy)}function yde(){var t=this.localeData()._week;return Ti(this.weekYear(),t.dow,t.doy)}function m5(t,e,r,n,a){var i;return t==null?Eh(this,n,a).year:(i=Ti(t,n,a),e>i&&(e=i),_de.call(this,t,e,r,n,a))}function _de(t,e,r,n,a){var i=XB(t,e,r,n,a),o=Dh(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Le("Q",0,"Qo","quarter"),xe("Q",VB),wt("Q",function(t,e){e[xi]=(ot(t)-1)*3});function bde(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}Le("D",["DD",2],"Do","date"),xe("D",Dt,$u),xe("DD",Dt,dn),xe("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),wt(["D","DD"],Wa),wt("Do",function(t,e){e[Wa]=ot(t.match(Dt)[0])});var y5=Gu("Date",!0);Le("DDD",["DDDD",3],"DDDo","dayOfYear"),xe("DDD",kg),xe("DDDD",BB),wt(["DDD","DDDD"],function(t,e,r){r._dayOfYear=ot(t)});function Sde(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}Le("m",["mm",2],0,"minute"),xe("m",Dt,Fw),xe("mm",Dt,dn),wt(["m","mm"],ca);var wde=Gu("Minutes",!1);Le("s",["ss",2],0,"second"),xe("s",Dt,Fw),xe("ss",Dt,dn),wt(["s","ss"],Ci);var xde=Gu("Seconds",!1);Le("S",0,0,function(){return~~(this.millisecond()/100)}),Le(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Le(0,["SSS",3],0,"millisecond"),Le(0,["SSSS",4],0,function(){return this.millisecond()*10}),Le(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Le(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Le(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Le(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Le(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),xe("S",kg,VB),xe("SS",kg,dn),xe("SSS",kg,BB);var Eo,_5;for(Eo="SSSS";Eo.length<=9;Eo+="S")xe(Eo,zu);function Cde(t,e){e[il]=ot(("0."+t)*1e3)}for(Eo="S";Eo.length<=9;Eo+="S")wt(Eo,Cde);_5=Gu("Milliseconds",!1),Le("z",0,0,"zoneAbbr"),Le("zz",0,0,"zoneName");function Tde(){return this._isUTC?"UTC":""}function Dde(){return this._isUTC?"Coordinated Universal Time":""}var se=Sh.prototype;se.add=yhe,se.calendar=The,se.clone=Dhe,se.diff=Nhe,se.endOf=Hhe,se.format=Vhe,se.from=Bhe,se.fromNow=Fhe,se.to=zhe,se.toNow=$he,se.get=Rce,se.invalidAt=Jhe,se.isAfter=Ehe,se.isBefore=Mhe,se.isBetween=Ahe,se.isSame=Ihe,se.isSameOrAfter=khe,se.isSameOrBefore=Lhe,se.isValid=Khe,se.lang=h5,se.locale=f5,se.localeData=d5,se.max=Kfe,se.min=jfe,se.parsingFlags=qhe,se.set=Vce,se.startOf=Ghe,se.subtract=_he,se.toArray=Zhe,se.toObject=Xhe,se.toDate=Yhe,se.toISOString=Ohe,se.inspect=Rhe,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=jhe,se.toString=Phe,se.unix=Uhe,se.valueOf=Whe,se.creationData=Qhe,se.eraName=nde,se.eraNarrow=ade,se.eraAbbr=ide,se.eraYear=ode,se.year=$B,se.isLeapYear=Oce,se.weekYear=dde,se.isoWeekYear=pde,se.quarter=se.quarters=bde,se.month=YB,se.daysInMonth=Yce,se.week=se.weeks=efe,se.isoWeek=se.isoWeeks=tfe,se.weeksInYear=mde,se.weeksInWeekYear=yde,se.isoWeeksInYear=vde,se.isoWeeksInISOWeekYear=gde,se.date=y5,se.day=se.days=pfe,se.weekday=vfe,se.isoWeekday=gfe,se.dayOfYear=Sde,se.hour=se.hours=xfe,se.minute=se.minutes=wde,se.second=se.seconds=xde,se.millisecond=se.milliseconds=_5,se.utcOffset=ihe,se.utc=she,se.local=lhe,se.parseZone=uhe,se.hasAlignedHourOffset=che,se.isDST=fhe,se.isLocal=dhe,se.isUtcOffset=phe,se.isUtc=o5,se.isUTC=o5,se.zoneAbbr=Tde,se.zoneName=Dde,se.dates=zn("dates accessor is deprecated. Use date instead.",y5),se.months=zn("months accessor is deprecated. Use month instead",YB),se.years=zn("years accessor is deprecated. Use year instead",$B),se.zone=zn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ohe),se.isDSTShifted=zn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",hhe);function Ede(t){return Et(t*1e3)}function Mde(){return Et.apply(null,arguments).parseZone()}function b5(t){return t}var ht=Lw.prototype;ht.calendar=dce,ht.longDateFormat=mce,ht.invalidDate=_ce,ht.ordinal=wce,ht.preparse=b5,ht.postformat=b5,ht.relativeTime=Cce,ht.pastFuture=Tce,ht.set=fce,ht.eras=ede,ht.erasParse=tde,ht.erasConvertYear=rde,ht.erasAbbrRegex=lde,ht.erasNameRegex=sde,ht.erasNarrowRegex=ude,ht.months=Gce,ht.monthsShort=Hce,ht.monthsParse=Uce,ht.monthsRegex=Xce,ht.monthsShortRegex=Zce,ht.week=Kce,ht.firstDayOfYear=Qce,ht.firstDayOfWeek=Jce,ht.weekdays=ufe,ht.weekdaysMin=ffe,ht.weekdaysShort=cfe,ht.weekdaysParse=dfe,ht.weekdaysRegex=mfe,ht.weekdaysShortRegex=yfe,ht.weekdaysMinRegex=_fe,ht.isPM=Sfe,ht.meridiem=Cfe;function Yg(t,e,r,n){var a=Di(),i=$a().set(n,e);return a[r](i,t)}function S5(t,e,r){if(Si(t)&&(e=t,t=void 0),t=t||"",e!=null)return Yg(t,e,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Yg(t,n,r,"month");return a}function rx(t,e,r,n){typeof t=="boolean"?(Si(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,Si(e)&&(r=e,e=void 0),e=e||"");var a=Di(),i=t?a._week.dow:0,o,s=[];if(r!=null)return Yg(e,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=Yg(e,(o+i)%7,n,"day");return s}function Ade(t,e){return S5(t,e,"months")}function Ide(t,e){return S5(t,e,"monthsShort")}function kde(t,e,r){return rx(t,e,r,"weekdays")}function Lde(t,e,r){return rx(t,e,r,"weekdaysShort")}function Nde(t,e,r){return rx(t,e,r,"weekdaysMin")}Do("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(t){var e=t%10,r=ot(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}}),ge.lang=zn("moment.lang is deprecated. Use moment.locale instead.",Do),ge.langData=zn("moment.langData is deprecated. Use moment.localeData instead.",Di);var Ei=Math.abs;function Pde(){var t=this._data;return this._milliseconds=Ei(this._milliseconds),this._days=Ei(this._days),this._months=Ei(this._months),t.milliseconds=Ei(t.milliseconds),t.seconds=Ei(t.seconds),t.minutes=Ei(t.minutes),t.hours=Ei(t.hours),t.months=Ei(t.months),t.years=Ei(t.years),this}function w5(t,e,r,n){var a=fa(e,r);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function Ode(t,e){return w5(this,t,e,1)}function Rde(t,e){return w5(this,t,e,-1)}function x5(t){return t<0?Math.floor(t):Math.ceil(t)}function Vde(){var t=this._milliseconds,e=this._days,r=this._months,n=this._data,a,i,o,s,l;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=x5(nx(r)+e)*864e5,e=0,r=0),n.milliseconds=t%1e3,a=Gn(t/1e3),n.seconds=a%60,i=Gn(a/60),n.minutes=i%60,o=Gn(i/60),n.hours=o%24,e+=Gn(o/24),l=Gn(C5(e)),r+=l,e-=x5(nx(l)),s=Gn(r/12),r%=12,n.days=e,n.months=r,n.years=s,this}function C5(t){return t*4800/146097}function nx(t){return t*146097/4800}function Bde(t){if(!this.isValid())return NaN;var e,r,n=this._milliseconds;if(t=$n(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+n/864e5,r=this._months+C5(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(nx(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+t)}}function Mi(t){return function(){return this.as(t)}}var T5=Mi("ms"),Fde=Mi("s"),zde=Mi("m"),$de=Mi("h"),Gde=Mi("d"),Hde=Mi("w"),Wde=Mi("M"),Ude=Mi("Q"),Yde=Mi("y"),Zde=T5;function Xde(){return fa(this)}function jde(t){return t=$n(t),this.isValid()?this[t+"s"]():NaN}function sl(t){return function(){return this.isValid()?this._data[t]:NaN}}var Kde=sl("milliseconds"),qde=sl("seconds"),Jde=sl("minutes"),Qde=sl("hours"),epe=sl("days"),tpe=sl("months"),rpe=sl("years");function npe(){return Gn(this.days()/7)}var Ai=Math.round,Yu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ape(t,e,r,n,a){return a.relativeTime(e||1,!!r,t,n)}function ipe(t,e,r,n){var a=fa(t).abs(),i=Ai(a.as("s")),o=Ai(a.as("m")),s=Ai(a.as("h")),l=Ai(a.as("d")),u=Ai(a.as("M")),c=Ai(a.as("w")),f=Ai(a.as("y")),h=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&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),h=h||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=n,ape.apply(null,h)}function ope(t){return t===void 0?Ai:typeof t=="function"?(Ai=t,!0):!1}function spe(t,e){return Yu[t]===void 0?!1:e===void 0?Yu[t]:(Yu[t]=e,t==="s"&&(Yu.ss=e-1),!0)}function lpe(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Yu,a,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(n=Object.assign({},Yu,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),i=ipe(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var ax=Math.abs;function Zu(t){return(t>0)-(t<0)||+t}function Zg(){if(!this.isValid())return this.localeData().invalidDate();var t=ax(this._milliseconds)/1e3,e=ax(this._days),r=ax(this._months),n,a,i,o,s=this.asSeconds(),l,u,c,f;return s?(n=Gn(t/60),a=Gn(n/60),t%=60,n%=60,i=Gn(r/12),r%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Zu(this._months)!==Zu(s)?"-":"",c=Zu(this._days)!==Zu(s)?"-":"",f=Zu(this._milliseconds)!==Zu(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(e?c+e+"D":"")+(a||n||t?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(t?f+o+"S":"")):"P0D"}var lt=zg.prototype;lt.isValid=the,lt.abs=Pde,lt.add=Ode,lt.subtract=Rde,lt.as=Bde,lt.asMilliseconds=T5,lt.asSeconds=Fde,lt.asMinutes=zde,lt.asHours=$de,lt.asDays=Gde,lt.asWeeks=Hde,lt.asMonths=Wde,lt.asQuarters=Ude,lt.asYears=Yde,lt.valueOf=Zde,lt._bubble=Vde,lt.clone=Xde,lt.get=jde,lt.milliseconds=Kde,lt.seconds=qde,lt.minutes=Jde,lt.hours=Qde,lt.days=epe,lt.weeks=npe,lt.months=tpe,lt.years=rpe,lt.humanize=lpe,lt.toISOString=Zg,lt.toString=Zg,lt.toJSON=Zg,lt.locale=f5,lt.localeData=d5,lt.toIsoString=zn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zg),lt.lang=h5,Le("X",0,0,"unix"),Le("x",0,0,"valueOf"),xe("x",Ng),xe("X",Ace),wt("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)}),wt("x",function(t,e,r){r._d=new Date(ot(t))});//! moment.js
105
+ ge.version="2.30.1",uce(Et),ge.fn=se,ge.min=qfe,ge.max=Jfe,ge.now=Qfe,ge.utc=$a,ge.unix=Ede,ge.months=Ade,ge.isDate=bh,ge.locale=Do,ge.invalid=Eg,ge.duration=fa,ge.isMoment=ua,ge.weekdays=kde,ge.parseZone=Mde,ge.localeData=Di,ge.isDuration=$g,ge.monthsShort=Ide,ge.weekdaysMin=Nde,ge.defineLocale=Uw,ge.updateLocale=Mfe,ge.locales=Afe,ge.weekdaysShort=Lde,ge.normalizeUnits=$n,ge.relativeTimeRounding=ope,ge.relativeTimeThreshold=spe,ge.calendarFormat=Che,ge.prototype=se,ge.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 upe=t=>{let e=new Date(t);return(t===""||!t)&&(e=new Date),e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()},D5=(t,e)=>{t=new Date(t),e==null&&(e="yyyy-MM-dd HH:mm:ss"),/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));let r={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(let n in r)if(new RegExp(`(${n})`).test(e)){let a=r[n]+"";e=e.replace(RegExp.$1,RegExp.$1.length===1?a:("00"+a).substr(a.length))}return e},cpe=Object.freeze(Object.defineProperty({__proto__:null,formatDate:upe,formatDateTime:D5,getFormatDateStr:(t,e)=>{if(!t)return t;let r="",n=ge(t);switch(e){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"})),Xg=t=>{if(!t)return t;let e=Array.isArray(t)?[]:{};try{e=t.constructor&&t.constructor===Array?[]:{}}catch{e=[]}if(typeof t!="object")return t;for(var r in t){if(!t[r]){e[r]=t[r];continue}t[r].constructor===RegExp||t[r].constructor===Date?e[r]=t[r]:typeof t[r]=="object"?e[r]=Xg(t[r]):e[r]=t[r]}return e},fpe=(t,e)=>{for(var r=0;r<e.length;r++){var n=e[r];if(n.bRequired&&(!t[n.sKey]&&t[n.sKey]!==0||t[n.sKey].length===0))return bl.warning(`${n.sCaption}${H.$ntt("是必须的","菜单")}`),!1}return!0},hpe=(t,e)=>{const r=Xg(e);Array.isArray(t)?t.splice(0,t.length,...r):(Object.keys(t).forEach(n=>delete t[n]),Object.assign(t,r))},jg=(t,e)=>{if(!e||e.length===0||!t)return t;if(e.constructor!==Array)return ix(t,e);for(var r="",n=0;n<e.length;n++){var a=e[n];if(a&&(r=ix(t,a),!(!r||r==="")))break}return r},ix=(t,e)=>{if(!t)return"";if(!e)return t;if(e.indexOf(".")===-1)return t[e];var r=e.split(".");try{for(var n=Xg(t),a=0;a<r.length;a++){var i=r[a];n=n[i]}return n}catch{return""}},dpe=(t,e)=>{var r="";for(var n in t){var a=t[n];if(a.sValue===null||a.sValue===void 0||a.sValue===""){a.bNotNull&&e&&e();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]):ox(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]):Kg(a.sValue[0]))+"&"+o[1]+"="+(a.sSendFun?a.sSendFun(a.sValue[1]):Kg(a.sValue[1]))+"&";continue}if(a.sType==="datetime"){if(!a.sValue||a.sValue==="")continue;r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):D5(a.sValue))+"&";continue}if(a.sType==="date"){if(!a.sValue||a.sValue==="")continue;r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):Kg(a.sValue))+"&";continue}r+=a.sKey+"="+(a.sSendFun?a.sSendFun(a.sValue):ox(a.sValue))+"&"}return r},ppe=t=>{if(!t||!t.length)return{};let e=[];for(let r=0;r<t.length;r++){let n=t[r];if(n.sValue){const a=n.sKey.indexOf("@");let i=n.sKey.substring(a+1),s={key:n.sKey.substring(0,a),type:i,val:n.sValue};e.push(s)}}return e},ox=t=>encodeURIComponent(t),Kg=t=>{if(!t||t===null)return"";var e=new Date(t);return e.getFullYear()+"-"+E5(e.getMonth()+1)+"-"+E5(e.getDate())};function E5(t){return t<10?"0"+t:t}const vpe=()=>{let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r==="x"?n:n&7|8).toString(16)})},gpe=t=>!t||t.indexOf("https")!==-1?t:t.indexOf("http")!==-1?`/hf_pub_api/loadFile?url=${t}`:"hf_pub_api"+t,mpe=(t,e)=>{for(var r=0;r<t.length-1;r++)for(var n=0;n<t.length-r-1;n++){var a=e?jg(t[n],e):t[n],i=e?jg(t[n+1],e):t[n+1];if(!(!a||!i)&&a>i){var o=t[n];t[n]=t[n+1],t[n+1]=o}}},ype=(t,e)=>{if(!t)return t;e||(e=sessionStorage.getItem("nowUrl"));var r=localStorage.getItem("lang")||"cn",n=JSON.parse(sessionStorage.getItem("allLang")??"{}");if(n){if(n[e]){for(let a in n[e])if(n[e][a][r]===t)return a}if(n.all){for(let a in n.all)if(n.all[a][r]===t)return a}}return t},_pe=(t,e,r)=>{if(!r||r.length!=e.length)for(let n=0;n<e.length;n++)r.push("1");return t.sort(function(n,a){for(let i=0;i<e.length;i++){let o=e[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}),t},bpe=(t,e)=>{if(!e)return;let r="";for(let n in e){let a=e[n];if(!a.sOrderType)continue;r&&(r+=",");let i=a.key;r+=`${i}@${a.sOrderType}`}localStorage.setItem(t+"_csOrder",r)},Spe=t=>{let e=t?t+"":H.$ntt("此操作将删除, 是否继续?");return bl.confirm(e)},wpe=t=>{if(!t)return t;var e=t.toString().split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")},xpe=function(){if(arguments.length===0)return;let t=arguments[0];return M5(t,arguments,!0)},M5=(t,e,r)=>{if(!t)return t;var n=t.match(/\[(\S*?)\]/g);if(!n)return t;for(var a=0;a<n.length;a++){var i=n[a],o=i.replace("[","").replace("]",""),s=jg(e,o);!s&&r||(t=t.replace(i,s))}return t},Cpe={...Object.freeze(Object.defineProperty({__proto__:null,arrayObjectSort:_pe,checkValid:fpe,deepCopy:Xg,formatNumberRgx:wpe,generateUUID:vpe,getCmSearchFilter:dpe,getFilterObj:ppe,getImageSrc:gpe,getKeyByLang:ype,getManyLevelData:jg,getMoreLevelData:ix,getStringDate:Kg,joinStr:xpe,matchCaptionKey:M5,reassignment:hpe,setLocalOrderBy:bpe,sortData:mpe,sureDelete:Spe,urlValueEncode:ox},Symbol.toStringTag,{value:"Module"})),...cpe,...Object.freeze(Object.defineProperty({__proto__:null,changeTheme:t=>{document.documentElement.setAttribute("components-theme",t),document.documentElement.offsetHeight},getTbHeight:t=>{var e=t;return e?(console.log("dv",window.innerHeight,e.getBoundingClientRect().top),window.innerHeight-e.getBoundingClientRect().top-45):500},updateConfig:t=>{Object.assign(H,t)}},Symbol.toStringTag,{value:"Module"}))},Tpe={install(t){t.config.globalProperties.$utils=Cpe}},Dpe=[Qu,Kx,pz,Sz,E$,G$,K$,$H,OG,OT,wH,AH,DH,PH,FH,oce,lce];return{install:function(t,e){Dpe.forEach(r=>{t.component(r.name,r)}),t.use(Tpe),Object.assign(H,e)}}});