mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 06:23:02 +08:00
31 lines
663 KiB
JavaScript
31 lines
663 KiB
JavaScript
var uC=Object.defineProperty;var rg=Object.getOwnPropertySymbols;var fC=Object.prototype.hasOwnProperty,cC=Object.prototype.propertyIsEnumerable;var Zi=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),hC=t=>{throw TypeError(t)};var ng=(t,e,r)=>e in t?uC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e||(e={}))fC.call(e,r)&&ng(t,r,e[r]);if(rg)for(var r of rg(e))cC.call(e,r)&&ng(t,r,e[r]);return t};var ur=(t,e,r)=>new Promise((n,i)=>{var a=l=>{try{s(r.next(l))}catch(u){i(u)}},o=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(t,e)).next())}),$n=function(t,e){this[0]=t,this[1]=e},$f=(t,e,r)=>{var n=(s,l,u,f)=>{try{var c=r[s](l),v=(l=c.value)instanceof $n,h=c.done;Promise.resolve(v?l[0]:l).then(d=>v?n(s==="return"?s:"next",l[1]?{done:d.done,value:d.value}:d,u,f):u({value:d,done:h})).catch(d=>n("throw",d,u,f))}catch(d){f(d)}},i=(s,l,u,f)=>o[s]=c=>(l=new Promise((v,h,d)=>(d=()=>n(s,c,v,h),a?a.then(d):d())),f=()=>a===u&&(a=0),a=u=l.then(f,f),l),a,o={};return r=r.apply(t,e),o[Zi("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Xf=t=>{var e=t[Zi("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Zi("iterator")](),n=a=>i[a]=o=>e[a](o)):(e=e.call(t),n=a=>i[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new $n(new Promise(s=>{var l=e[a](o);l instanceof Object||hC("Object expected"),s(l)}),1)}}),i[Zi("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=a=>{throw a},"return"in e&&n("return"),i},ig=(t,e,r)=>(e=t[Zi("asyncIterator")])?e.call(t):(t=t[Zi("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=a=>new Promise((o,s,l)=>(a=i.call(t,a),l=a.done,Promise.resolve(a.value).then(u=>o({value:u,done:l}),s)))),r("next"),r("return"),e);import{defineComponent as hd,ref as Pa,onMounted as vC,computed as Bt,getCurrentInstance as dC,h as eu,inject as yr,reactive as vd,watch as dd,effectScope as e1,markRaw as t1,hasInjectionContext as pC,isRef as tu,isReactive as r1,toRaw as gC,getCurrentScope as mC,onScopeDispose as yC,nextTick as n1,toRefs as _C,onUnmounted as SC,onDeactivated as bC,onActivated as wC,shallowRef as TC,unref as Mo,shallowReactive as xC,provide as qf}from"/luci-static/quickstart/card-runtime-v1.js";function i1(t,e){return function(){return t.apply(e,arguments)}}const{toString:CC}=Object.prototype,{getPrototypeOf:en}=Object,{iterator:us,toStringTag:a1}=Symbol,tn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),o1=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),ef=(t,e,r)=>t===Object.prototype||!r&&e===null,AC=t=>{if(!Object.isExtensible(t))return!1;const e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(r=>{if(o1(r))return!1;const n=Object.getOwnPropertyDescriptor(t,r);return!!n&&n.configurable&&n.writable===!0})},pd=(t,e)=>{let r=t;const n=[];for(;r!=null;){if(n.indexOf(r)!==-1)return!1;n.push(r);const i=en(r);if(ef(r,i,r===t))return!1;if(tn(r,e))return!0;r=i}return!1},DC=(t,e)=>t!=null&&pd(t,e)?t[e]:void 0,EC=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;const e=en(t);if(e===null&&AC(t))return t;const r=Object.create(null),n=Object.create(null),i=[];let a=t;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);const o=a===t?e:en(a);if(ef(a,o,a===t))break;const s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(const l of s)o1(l)||tn(n,l)||(r[l]=t[l],n[l]=!0);a=o}return r},gd=(t=>e=>{const r=CC.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ir=t=>(t=t.toLowerCase(),e=>gd(e)===t),tf=t=>e=>typeof e===t,{isArray:Ii}=Array,Li=tf("undefined");function Wa(t){return t!==null&&!Li(t)&&t.constructor!==null&&!Li(t.constructor)&&Rt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const s1=ir("ArrayBuffer");function RC(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&s1(t.buffer),e}const MC=tf("string"),Rt=tf("function"),PC=tf("number"),Ya=t=>t!==null&&typeof t=="object",IC=t=>t===!0||t===!1,Cl=t=>{if(!Ya(t))return!1;const e=en(t);return(e===null||e===Object.prototype||en(e)===null)&&(ef(t,e,!0)||!tn(t,a1)&&!tn(t,us))},LC=t=>{if(!Ya(t)||Wa(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},OC=ir("Date"),kC=ir("File"),NC=t=>!!(t&&typeof t.uri!="undefined"),BC=t=>t&&typeof t.getParts!="undefined",FC=ir("Blob"),zC=ir("FileList"),HC=ir("Set"),UC=t=>Ya(t)&&Rt(t.pipe);function VC(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const ag=VC(),og=typeof ag.FormData!="undefined"?ag.FormData:void 0,GC=t=>{if(!t)return!1;if(og&&t instanceof og)return!0;const e=en(t);if(!e||e===Object.prototype||!Rt(t.append))return!1;const r=gd(t);return r==="formdata"||r==="object"&&Rt(t.toString)&&t.toString()==="[object FormData]"},WC=ir("URLSearchParams"),[YC,$C,XC,qC]=["ReadableStream","Request","Response","Headers"].map(ir),jC=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fs(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Ii(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(Wa(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(n=0;n<o;n++)s=a[n],e.call(null,t[s],s,t)}}function ZC(t,e){if(Wa(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const yi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,l1=t=>!Li(t)&&t!==yi;function Oh(...t){const{caseless:e,skipUndefined:r}=l1(this)&&this||{},n={},i=e?Object.create(null):null,a=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let l=s;if(i&&typeof s=="string"){const f=s.toLowerCase(),c=i[f];c!==void 0&&tn(n,c)?l=c:i[f]=s}const u=tn(n,l)?n[l]:void 0;Cl(u)&&Cl(o)?n[l]=Oh(u,o):Cl(o)?n[l]=Oh({},o):Ii(o)?n[l]=o.slice():(!r||!Li(o))&&(n[l]=o)};for(let o=0,s=t.length;o<s;o++){const l=t[o];if(!l||Wa(l)||(fs(l,a),typeof l!="object"||Ii(l)||!Object.getOwnPropertySymbols))continue;const u=Object.getOwnPropertySymbols(l);for(let f=0;f<u.length;f++){const c=u[f];lA.call(l,c)&&a(l[c],c)}}return n}const KC=(t,e,r,{allOwnKeys:n}={})=>(fs(e,(i,a)=>{r&&Rt(i)?Object.defineProperty(t,a,{__proto__:null,value:i1(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),QC=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),JC=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},eA=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&en(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},tA=(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},rA=t=>{if(!t)return null;if(Ii(t))return t;let e=t.length;if(!Number.isSafeInteger(e)||e<0||e>4294967295)return null;const r=new Set,n=new Set;let i=t;for(;i!=null&&r.size<e;){if(n.has(i))return null;n.add(i);const o=en(i);if(ef(i,o,i===t))break;Object.getOwnPropertyNames(i).forEach(s=>{const l=+s;Number.isInteger(l)&&l>=0&&l<e&&String(l)===s&&tn(i,s)&&r.add(l)}),i=o}if(r.size!==e)return null;const a=new Array(e);for(;e-- >0;)a[e]=t[e];return a},nA=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&en(Uint8Array)),iA=(t,e)=>{const n=(t&&t[us]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},aA=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},oA=ir("HTMLFormElement"),sA=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),{propertyIsEnumerable:lA}=Object.prototype,uA=ir("RegExp"),u1=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};fs(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},fA=t=>{u1(t,(e,r)=>{if(Rt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(Rt(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+"'")})}})},cA=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ii(t)?n(t):n(String(t).split(e)),r},hA=()=>{},vA=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function dA(t){return!!(t&&Rt(t.append)&&t[a1]==="FormData"&&t[us])}const pA=t=>{const e=new WeakSet,r=n=>{if(Ya(n)){if(e.has(n))return;if(Wa(n))return n;if(!("toJSON"in n)){e.add(n);let i;if(HC(n)){i=[];for(const a of n){const o=r(a);!Li(o)&&i.push(o)}}else i=Ii(n)?[]:{},fs(n,(a,o)=>{const s=r(a);!Li(s)&&(i[o]=s)});return e.delete(n),i}}return n};return r(t)},gA=ir("AsyncFunction"),mA=t=>t&&(Ya(t)||Rt(t))&&Rt(t.then)&&Rt(t.catch),f1=((t,e)=>t?setImmediate:e?((r,n)=>(yi.addEventListener("message",({source:i,data:a})=>{i===yi&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),yi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rt(yi.postMessage)),yA=typeof queueMicrotask!="undefined"?queueMicrotask.bind(yi):typeof process!="undefined"&&process.nextTick||f1,c1=t=>t!=null&&Rt(t[us]),_A=t=>t!=null&&pd(t,us)&&c1(t),E={isArray:Ii,isArrayBuffer:s1,isBuffer:Wa,isFormData:GC,isArrayBufferView:RC,isString:MC,isNumber:PC,isBoolean:IC,isObject:Ya,isPlainObject:Cl,isEmptyObject:LC,isReadableStream:YC,isRequest:$C,isResponse:XC,isHeaders:qC,isUndefined:Li,isDate:OC,isFile:kC,isReactNativeBlob:NC,isReactNative:BC,isBlob:FC,isRegExp:uA,isFunction:Rt,isStream:UC,isURLSearchParams:WC,isTypedArray:nA,isFileList:zC,forEach:fs,merge:Oh,extend:KC,trim:jC,stripBOM:QC,inherits:JC,toFlatObject:eA,kindOf:gd,kindOfTest:ir,endsWith:tA,toArray:rA,forEachEntry:iA,matchAll:aA,isHTMLForm:oA,hasOwnProperty:tn,hasOwnProp:tn,hasOwnInPrototypeChain:pd,getSafeProp:DC,toSafeFlatObject:EC,reduceDescriptors:u1,freezeMethods:fA,toObjectSet:cA,toCamelCase:sA,noop:hA,toFiniteNumber:vA,findKey:ZC,global:yi,isContextDefined:l1,isSpecCompliantForm:dA,toJSONObject:pA,isAsyncFn:gA,isThenable:mA,setImmediate:f1,asap:yA,isIterable:c1,isSafeIterable:_A},SA=E.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"]),bA=t=>{const e=Object.create(null);let r,n,i;return t&&t.split(`
|
||
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim();const s=E.hasOwnProp(e,r);!r||s&&E.hasOwnProp(SA,r)||(r==="set-cookie"?s?e[r].push(n):e[r]=[n]:e[r]=s?e[r]+", "+n:n)}),e};function wA(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}const TA=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),xA=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function md(t,e){return E.isArray(t)?t.map(r=>md(r,e)):wA(String(t).replace(e,""))}const CA=t=>md(t,TA),AA=t=>md(t,xA);function h1(t){const e=Object.create(null);return E.forEach(t.toJSON(),(r,n)=>{e[n]=AA(r)}),e}const sg=Symbol("internals");function Za(t){return t&&String(t).trim().toLowerCase()}function Al(t){return t===!1||t==null?t:E.isArray(t)?t.map(Al):CA(String(t))}function DA(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 EA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function jf(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function RA(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let r="";for(let n=1;n<e;n++){const i=t.charCodeAt(n);if(i===34||i===92&&(n+=1,n>=e))return t;r+=t[n]}return r}function MA(t){const e=Object.create(null),r=String(t);let n=0,i=!1,a=!1;function o(s){const l=jf(r.slice(n,s)),u=l.indexOf("=");if(u<1)return;const f=jf(l.slice(0,u));if(!EA.test(f))return;const c=f.toLowerCase();if(c==="__proto__"||c==="constructor"||c==="prototype")return;const v=jf(l.slice(u+1));e[c]=RA(v)}for(let s=0;s<r.length;s++){const l=r.charCodeAt(s);i?a?a=!1:l===92?a=!0:l===34&&(i=!1):l===34?i=!0:(l===44||l===59)&&(o(s),n=s+1)}return o(r.length),e}const PA=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()),IA="__Proto__",lg=t=>t==="__proto__"?IA:t;function Zf(t,e,r,n,i){if(E.isFunction(n))return n.call(t,e,r);if(i&&(e=r),!!E.isString(e)){if(E.isString(n))return e.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(e)}}function LA(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function OA(t,e){const r=E.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let je=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const f=Za(l);if(!f)return;const c=E.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[lg(c||l)]=Al(s))}const o=(s,l)=>E.forEach(s,(u,f)=>a(u,f,l));if(E.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(E.isString(e)&&(e=e.trim())&&!PA(e))o(bA(e),r);else if(E.isObject(e)&&E.isSafeIterable(e)){let s=Object.create(null),l,u;for(const f of e){if(!E.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],E.hasOwnProp(s,u)?(l=s[u],s[u]=E.isArray(l)?[...l,f[1]]:[l,f[1]]):s[u]=f[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=Za(e),e){const n=E.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return DA(i);if(E.isFunction(r))return r.call(this,i,n);if(E.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Za(e),e){const n=E.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Zf(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Za(o),o){const s=E.findKey(n,o);s&&(!r||Zf(n,n[s],s,r))&&(delete n[s],i=!0)}}return E.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||Zf(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n=Object.create(null);return E.forEach(this,(i,a)=>{const o=E.findKey(n,a);if(o){r[o]=Al(i),delete r[a];return}const s=lg(e?LA(a):String(a).trim());s!==a&&delete r[a],r[s]=Al(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return E.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&E.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(`
|
||
`)}getSetCookie(){const e=this.get("set-cookie");return E.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return MA(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[sg]=this[sg]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Za(o);n[s]||(OA(i,o),n[s]=!0)}return E.isArray(e)?e.forEach(a):a(e),this}};je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(je.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});E.freezeMethods(je);const ru="[REDACTED ****]";function kA(t){if(E.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(E.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function NA(t,e){const r=new Set(e.map(a=>String(a).toLowerCase())),n=[],i=a=>{if(a===null||typeof a!="object"||E.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof je&&(a=a.toJSON()),n.push(a);let o;if(E.isArray(a))o=[],a.forEach((s,l)=>{const u=i(s);E.isUndefined(u)||(o[l]=u)});else{if(!E.isPlainObject(a)&&kA(a))return n.pop(),a;o=Object.create(null);for(const[s,l]of Object.entries(a)){const u=r.has(s.toLowerCase())?ru:i(l);E.isUndefined(u)||(o[s]=u)}}return n.pop(),o};return i(t)}function ug(t){try{return String(t)}catch(e){return""}}function BA(t){return t.errors.map(r=>{try{return r&&r.message?ug(r.message):ug(r)}catch(n){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}const FA=`
|
||
Caused by: `,kh=Symbol("causeStack");function zA(t,e){const r=E.hasOwnProp(t,kh)&&t[kh];return r&&e.endsWith(r)?e.length-r.length:-1}function HA(t,e){try{const r=e&&e.stack;if(typeof r!="string"||!r)return;const n=t.stack;if(typeof n!="string"||!n)return;const i=FA+r;t.stack=n+i,Object.defineProperty(t,kh,{__proto__:null,value:i})}catch(r){}}let V=class v1 extends Error{static from(e,r,n,i,a,o){let s=e.message;!s&&E.isArray(e.errors)&&e.errors.length&&(s=BA(e));const l=new v1(s,r||e.code,n,i,a);return Object.defineProperty(l,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),l.name=e.name,HA(l,e),e.status!=null&&l.status==null&&(l.status=e.status),o&&Object.assign(l,o),l}constructor(e,r,n,i,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,r=e&&E.hasOwnProp(e,"redact")?e.redact:void 0,n=E.isArray(r)&&r.length>0?NA(e,r):E.toJSONObject(e);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:n,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ECONNREFUSED="ECONNREFUSED";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const UA=null,d1=100;function Nh(t){return E.isPlainObject(t)||E.isArray(t)}function p1(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function Kf(t,e,r){return t?t.concat(e).map(function(i,a){return i=p1(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function VA(t){return E.isArray(t)&&!t.some(Nh)}const GA=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function rf(t,e,r){if(!E.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(y,_)=>{const S=E.getSafeProp(r,y);return E.isUndefined(S)?_:S},i=n("metaTokens",!0),a=n("visitor")||p,o=n("dots",!1),s=n("indexes",!1),l=n("Blob")||typeof Blob!="undefined"&&Blob,u=n("maxDepth",d1),f=l&&E.isSpecCompliantForm(e),c=[];if(!E.isFunction(a))throw new TypeError("visitor must be a function");function v(y){if(y===null)return"";if(E.isDate(y))return y.toISOString();if(E.isBoolean(y))return y.toString();if(!f&&E.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(y)||E.isTypedArray(y)){if(f&&typeof l=="function")return new l([y]);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return y}function h(y){if(y>u)throw new V("Object is too deeply nested ("+y+" levels). Max depth: "+u,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(y,_){if(u===1/0)return JSON.stringify(y);const S=[];return JSON.stringify(y,function(w,T){if(!E.isObject(T))return T;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(T),h(_+S.length-1),T})}function p(y,_,S){let b=y;if(E.isReactNative(e)&&E.isReactNativeBlob(y))return e.append(Kf(S,_,o),v(y)),!1;if(y&&!S&&typeof y=="object"){if(E.endsWith(_,"{}"))_=i?_:_.slice(0,-2),y=d(y,1);else if(E.isArray(y)&&VA(y)||(E.isFileList(y)||E.endsWith(_,"[]"))&&(b=E.toArray(y)))return _=p1(_),b.forEach(function(T,C){!(E.isUndefined(T)||T===null)&&e.append(s===!0?Kf([_],C,o):s===null?_:_+"[]",v(T))}),!1}return Nh(y)?!0:(e.append(Kf(S,_,o),v(y)),!1)}const m=Object.assign(GA,{defaultVisitor:p,convertValue:v,isVisitable:Nh});function g(y,_,S=0){if(!E.isUndefined(y)){if(h(S),c.indexOf(y)!==-1)throw new Error("Circular reference detected in "+_.join("."));c.push(y),E.forEach(y,function(w,T){(!(E.isUndefined(w)||w===null)&&a.call(e,w,E.isString(T)?T.trim():T,_,m))===!0&&g(w,_?_.concat(T):[T],S+1)}),c.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return g(t),e}function fg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function yd(t,e){this._pairs=[],t&&rf(t,this,e)}const g1=yd.prototype;g1.append=function(e,r){this._pairs.push([e,r])};g1.toString=function(e){const r=e?n=>e.call(this,n,fg):fg;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function WA(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function m1(t,e,r){if(!e)return t;t=t||"";const n=E.isFunction(r)?{serialize:r}:r,i=E.getSafeProp(n,"encode")||WA,a=E.getSafeProp(n,"serialize");let o;if(a?o=a(e,n):o=E.isURLSearchParams(e)?e.toString():new yd(e,n).toString(i),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}const Ka=Symbol("internals");function y1(t){return t?t.length:0}function cg(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function YA(t){return typeof t=="string"&&t!==""&&String(Number(t))===t?Number(t):t}function Qa(t,e){const r=t.handlers,n=y1(r);r!==e.handlersRef?(e.handlersRef=r,e.handlerEntries.clear()):n!==e.handlersLength&&(n?e.handlerEntries.forEach(function(a,o){r[a.index]!==a.handler&&e.handlerEntries.delete(o)}):e.handlerEntries.clear()),e.handlersLength=n}class hg{constructor(){this.handlers=[],this[Ka]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,r,n){const i={fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},a=this[Ka];this.handlers==null&&(this.handlers=[]),Qa(this,a);const o=a.nextId++;return this.handlers.push(i),a.handlerEntries.set(o,{handler:i,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,o}eject(e){const r=this[Ka];Qa(this,r);const n=YA(e),i=r.handlerEntries.get(n);if(i){if(r.handlerEntries.delete(n),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,r.iterationDepth||(cg(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Qa(this,this[Ka]))}forEach(e){const r=this[Ka];Qa(this,r),r.iterationDepth++;try{E.forEach(this.handlers,function(i){i!==null&&e(i)})}finally{--r.iterationDepth||(Qa(this,r),cg(this.handlers),r.handlersLength=y1(this.handlers))}}}const _d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},$A=typeof URLSearchParams!="undefined"?URLSearchParams:yd,XA=typeof FormData!="undefined"?FormData:null,qA=typeof Blob!="undefined"?Blob:null,jA={isBrowser:!0,classes:{URLSearchParams:$A,FormData:XA,Blob:qA},protocols:["http","https","file","blob","url","data"]},Sd=typeof window!="undefined"&&typeof document!="undefined",Bh=typeof navigator=="object"&&navigator||void 0,ZA=Sd&&(!Bh||["ReactNative","NativeScript","NS"].indexOf(Bh.product)<0),KA=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QA=Sd&&window.location.href||"http://localhost",JA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sd,hasStandardBrowserEnv:ZA,hasStandardBrowserWebWorkerEnv:KA,navigator:Bh,origin:QA},Symbol.toStringTag,{value:"Module"})),Ye=Yn(Yn({},JA),jA);function eD(t,e){return rf(t,new Ye.classes.URLSearchParams,Yn({visitor:function(r,n,i,a){return Ye.isNode&&E.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}const vg=d1;function _1(t){if(t>vg)throw new V("FormData field is too deeply nested ("+t+" levels). Max depth: "+vg,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function tD(t){const e=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(t))!==null;)_1(e.length),e.push(n[0]==="[]"?"":n[1]||n[0]);return e}function S1(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function b1(t){if(!E.isArray(t))return t;const e=Object.keys(t);return e.length!==t.length||e.some((r,n)=>r!==String(n))?S1(t):t}function rD(t){const e=[t];for(;e.length;){const r=e.pop();Object.keys(r).forEach(n=>{const i=r[n]=b1(r[n]);(E.isArray(i)||E.isPlainObject(i))&&e.push(i)})}return t}function w1(t){function e(r,n,i,a){_1(a);let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&E.isArray(i)?i.length:o,l?(E.hasOwnProp(i,o)?(i[o]=b1(i[o]),i[o]=E.isArray(i[o])?i[o].concat(n):[i[o],n]):i[o]=n,!s):((!E.hasOwnProp(i,o)||!E.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&E.isArray(i[o])&&(i[o]=S1(i[o])),!s)}if(E.isFormData(t)&&E.isFunction(t.entries)){const r={};return E.forEachEntry(t,(n,i)=>{e(tD(n),i,r,0)}),rD(r)}return null}const T1=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Ki=(t,e)=>t!=null&&E.hasOwnProp(t,e)?t[e]:void 0;function nD(t,e,r){if(E.isString(t))try{return(e||JSON.parse)(t),E.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const cs={transitional:_d,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=E.isObject(e);if(a&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return i?JSON.stringify(w1(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e)||E.isReadableStream(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){const l=Ki(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eD(e,l).toString();if((s=E.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=Ki(this,"env"),f=u&&u.FormData;return rf(s?{"files[]":e}:e,f&&new f,l)}}return a||i?(r.setContentType("application/json",!1),nD(e)):e}],transformResponse:[function(e){const r=Ki(this,"transitional")||cs.transitional,n=r&&r.forcedJSONParsing,i=Ki(this,"responseType"),a=i==="json";if(E.isResponse(e)||E.isReadableStream(e))return e;if(e&&E.isString(e)&&(n&&!i||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,Ki(this,"parseReviver"))}catch(l){if(s)throw l.name==="SyntaxError"?V.from(l,V.ERR_BAD_RESPONSE,this,null,Ki(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(T1,t=>{cs.headers[t]={}});function Qf(t,e){const r=this||cs,n=e||r,i=je.from(n.headers);let a=n.data;return E.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function x1(t){return!!(t&&t.__CANCEL__)}let hs=class extends V{constructor(e,r,n){super(e==null?"canceled":e,V.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function C1(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new V("Request failed with status code "+r.status,r.status>=400&&r.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,r.config,r.request,r))}const iD=/[\t\n\r]/g;function A1(t){if(typeof t!="string")return t;let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e).replace(iD,"")}function Jf(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1].toLowerCase()||""}const dg=t=>{try{return decodeURIComponent(t)}catch(e){return t}},D1=Ye.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document=="undefined")return;const s=[`${t}=${encodeURIComponent(e)}`];E.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),E.isString(n)&&s.push(`path=${n}`),E.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),E.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie;if(!e)return null;const r=e.split(";");for(let n=0;n<r.length;n++){const i=r[n].replace(/^\s+/,""),a=i.indexOf("=");if(a!==-1&&i.slice(0,a)===t)return dg(i.slice(a+1))}return null},readAsync(t){return ur(this,null,function*(){try{const e=typeof window!="undefined"&&window.cookieStore;if(e&&E.isFunction(e.get)){const r=yield e.get(t);return r?dg(r.value):null}}catch(e){}return this.read(t)})},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},readAsync(){return ur(this,null,function*(){return null})},remove(){}};function aD(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,v=0;for(;c!==i;)v+=r[c++],c=c%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const h=f&&u-f;return h?Math.round(v*1e3/h):void 0}}function oD(t,e){let r=0,n=1e3/e,i,a;const o=(f,c=Date.now())=>{r=c,i=null,a&&(clearTimeout(a),a=null),t(...f)};return[(...f)=>{const c=Date.now(),v=c-r;v>=n?o(f,c):(i=f,a||(a=setTimeout(()=>{a=null,o(i)},n-v)))},()=>i&&o(i),(...f)=>o(f)]}const nu=(t,e,r=3)=>{let n=0;const i=aD(50,250);return oD(a=>{if(!a||!E.isNumber(a.loaded))return;const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=Math.max(0,s!=null?Math.min(o,s):o),u=Math.max(0,l-n),f=i(u);n=Math.max(n,l);const c={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s?(s-l)/f:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(c)},r)},pg=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},gg=(t,e=E.asap)=>(...r)=>e(()=>t(...r)),sD=Ye.hasStandardBrowserEnv?(t=>e=>(e=new URL(e,document.baseURI||Ye.origin),t.protocol===e.protocol&&t.host===e.host&&t.port===e.port))(new URL(Ye.origin)):()=>!0;function lD(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function uD(t,e){if(!e)return t;let r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)+"/"+e.replace(/^\/+/,"")}const fD=/^https?:(?!\/\/)/i;function cD(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,r,n="")=>`${r}${n}${ru}`)}function hD(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ru}@`),r=e.indexOf("#"),i=(r===-1?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ru}`);return r===-1?i:`${i}#${cD(e.slice(r+1))}`}function mg(t,e){if(typeof t=="string"){const r=A1(t);if(fD.test(r))throw new V(`Invalid URL ${JSON.stringify(hD(r))}: missing "//" after protocol`,V.ERR_INVALID_URL,e)}}function E1(t,e,r,n){mg(e,n);let i=!lD(e);return t&&(i||r===!1)?(mg(t,n),uD(t,e)):e}function vD(t){const e=[{value:t}],r=new WeakSet,n=new WeakSet;for(;e.length;){const{value:i,done:a}=e.pop();if(!E.isPlainObject(i)&&!E.isArray(i))continue;if(a){r.delete(i);continue}if(r.has(i))throw new V("Circular reference detected in params",V.ERR_BAD_OPTION_VALUE);if(n.has(i))continue;n.add(i),r.add(i),e.push({value:i,done:!0});const o=Object.keys(i);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(i).forEach(s=>{const l=Object.getOwnPropertyDescriptor(i,s);l&&l.enumerable&&o.push(s)}),o.forEach(s=>{if(s==="__proto__"||s==="constructor"||s==="prototype"){const l=Object.getOwnPropertyDescriptor(i,s);l&&E.hasOwnProp(l,"value")&&e.push({value:l.value})}else e.push({value:i[s]})})}}const yg=t=>t instanceof je?Yn({},t):t,Fh=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>{const r=Object.getOwnPropertyDescriptor(t,e);return r&&r.enumerable})):Object.keys(t);function dD(t,e){const r=[],n=new WeakMap,i={};function a(s,l){if(!E.isPlainObject(l))return E.isArray(l)?l.slice():l;const u=E.isPlainObject(s)?s:i;let f=n.get(l);if(f||(f=new WeakMap,n.set(l,f)),f.has(u))return f.get(u);const c={};return f.set(u,c),r.push({base:u,source:l,result:c}),c}const o=E.isUndefined(e)?a(void 0,t):a(t,e);for(;r.length;){const{base:s,source:l,result:u}=r.pop(),f=new Set(Fh(s)),c=new Set(Fh(l));new Set([...f,...c]).forEach(h=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const d=c.has(h),p=d?l[h]:void 0,m=(!d||E.isPlainObject(p))&&f.has(h)?s[h]:void 0;u[h]=d?a(m,p):a(void 0,m)})}return vD(o),o}function Nn(t,e,r,n){return E.isPlainObject(t)&&E.isPlainObject(e)?E.merge.call({caseless:n},t,e):E.isPlainObject(e)?E.merge({},e):E.isArray(e)?e.slice():e}function R1(t,e,r,n){if(E.isUndefined(e)){if(!E.isUndefined(t))return Nn(void 0,t,r,n)}else return Nn(t,e,r,n)}function ec(t,e){if(!E.isUndefined(e))return Nn(void 0,e)}function Oe(t,e){if(E.isUndefined(e)){if(!E.isUndefined(t))return Nn(void 0,t)}else return Nn(void 0,e)}function pD(t,e,r){const n=E.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!E.isUndefined(n))if(E.isPlainObject(n)){if(E.hasOwnProp(n,r))return n[r]}else return;const i=E.hasOwnProp(t,"transitional")?t.transitional:void 0;if(E.isPlainObject(i)&&E.hasOwnProp(i,r))return i[r]}function zh(t,e,r,n,i){if(E.hasOwnProp(i,r))return Nn(t,e);if(E.hasOwnProp(n,r))return Nn(void 0,t)}function gD(t,e,r){return R1(yg(t),yg(e),r,!0)}const mD=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),_g={url:ec,method:ec,data:ec,baseURL:Oe,transformRequest:Oe,transformResponse:Oe,params:dD,paramsSerializer:Oe,timeout:Oe,timeoutErrorMessage:Oe,withCredentials:Oe,withXSRFToken:Oe,adapter:Oe,responseType:Oe,xsrfCookieName:Oe,xsrfHeaderName:Oe,onUploadProgress:Oe,onDownloadProgress:Oe,decompress:Oe,maxContentLength:Oe,maxBodyLength:Oe,beforeRedirect:Oe,transport:Oe,httpAgent:Oe,httpsAgent:Oe,cancelToken:Oe,socketPath:Oe,allowedSocketPaths:Oe,responseEncoding:Oe,validateStatus:zh,headers:gD};function Oi(t,e){t=t||{},e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",mD);const n=Fh(Yn(Yn({},t),e));for(let i=0,a=n.length;i<a;i++){const o=n[i];if(o==="__proto__"||o==="constructor"||o==="prototype")continue;const s=E.hasOwnProp(_g,o)?_g[o]:R1,l=E.hasOwnProp(t,o)?t[o]:void 0,u=E.hasOwnProp(e,o)?e[o]:void 0,f=s===zh?s(l,u,o,t,e):s(l,u,o);E.isUndefined(f)&&s!==zh||(r[o]=f)}return E.hasOwnProp(e,"validateStatus")&&E.isUndefined(e.validateStatus)&&pD(t,e,"validateStatusUndefinedResolves")===!1&&(E.hasOwnProp(t,"validateStatus")?r.validateStatus=Nn(void 0,t.validateStatus):delete r.validateStatus),r}const yD=["content-type","content-length"];function _D(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([n,i])=>{yD.includes(n.toLowerCase())&&t.set(n,i)})}const Sg=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),SD=t=>D1.read(t);function M1(t,e=SD){const r=Oi({},t),n=h=>E.hasOwnProp(r,h)?r[h]:void 0,i=n("data");let a=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let l=n("headers");const u=n("auth"),f=n("baseURL"),c=n("allowAbsoluteUrls"),v=n("url");if(r.headers=l=je.from(l),r.url=m1(E1(f,v,c,r),n("params"),n("paramsSerializer")),u){const h=E.getSafeProp(u,"username")||"",d=E.getSafeProp(u,"password")||"",p=n("transitional"),m=p&&E.hasOwnProp(p,"encodeBasicAuthUsername")&&p.encodeBasicAuthUsername===!0;try{l.set("Authorization","Basic "+btoa((m?Sg(h):h)+":"+(d?Sg(d):"")))}catch(g){throw V.from(g,V.ERR_BAD_OPTION_VALUE,t)}}if(E.isFormData(i)){const h=E.getSafeProp(i,"getHeaders");Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv||E.isReactNative(i)?l.setContentType(void 0):E.isFunction(h)&&_D(l,h.call(i),n("formDataHeaderPolicy"))}if(Ye.hasStandardBrowserEnv&&(E.isFunction(a)&&(a=a(r)),a===!0||a==null&&sD(r.url))){const d=o&&s&&e(s);d&&l.set(o,d)}return r}const bD=typeof XMLHttpRequest!="undefined",wD=bD&&function(t){return new Promise(function(r,n){let i;try{const C=Ye.hasStandardBrowserEnv&&typeof window!="undefined"&&window.cookieStore;i=C&&E.isFunction(C.get)}catch(C){}let a;const o=M1(t,i?C=>(a=C,null):void 0);let s=o.data;const l=je.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:c}=o,v,h,d,p,m,g,y;function _(){clearTimeout(h);try{m&&m()}catch(C){setTimeout(()=>{throw C})}try{g&&g()}catch(C){setTimeout(()=>{throw C})}S&&(p&&S.removeEventListener("progress",p),S.upload&&(d&&S.upload.removeEventListener("progress",d),m&&S.upload.removeEventListener("loadend",m))),o.cancelToken&&o.cancelToken.unsubscribe(v),o.signal&&o.signal.removeEventListener("abort",v)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function b(C){if(!S)return;if(S.status===0&&(Jf(A1(o.url))||Jf(Ye.origin))!=="file"&&!(S.responseURL&&S.responseURL.startsWith("file:"))){n(new V("Request aborted",V.ECONNABORTED,t,S)),_(),S=null;return}try{C?y&&y(C):g&&g()}catch(P){setTimeout(()=>{throw P})}if(!S)return;const x=je.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),D={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:x,config:t,request:S};C1(function(M){r(M),_()},function(M){n(M),_()},D),S=null}if("onloadend"in S?S.onloadend=b:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(b)},S.onabort=function(){S&&(n(new V("Request aborted",V.ECONNABORTED,t,S)),_(),S=null)},S.onerror=function(x){const A=x&&x.message?x.message:"Network Error",D=new V(A,V.ERR_NETWORK,t,S);D.event=x||null,n(D),_(),S=null},S.ontimeout=function(){if(!S)return;let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||_d;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),n(new V(x,A.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,S)),_(),S=null},s===void 0&&l.setContentType(null),E.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),u&&u!=="json"&&(S.responseType=o.responseType),c&&([p,g,y]=nu(c,!0),S.addEventListener("progress",p)),f&&S.upload&&([d,m]=nu(f),S.upload.addEventListener("progress",d),S.upload.addEventListener("loadend",m)),o.cancelToken||o.signal){if(v=C=>{if(!S)return;n(!C||C.type?new hs(null,t,S):C);const x=S;_(),S=null,x.abort()},o.cancelToken&&o.cancelToken.subscribe(v),!S)return;o.signal&&(o.signal.aborted?v():o.signal.addEventListener("abort",v))}if(!S)return;const w=Jf(o.url);if(w&&!Ye.protocols.includes(w)){n(new V("Unsupported protocol "+w+":",V.ERR_BAD_REQUEST,t)),_();return}const T=()=>{S&&("setRequestHeader"in S&&E.forEach(h1(l),function(x,A){S.setRequestHeader(A,x)}),S.send(s||null))};if(a){const C=typeof performance!="undefined"&&E.isFunction(performance.now)?()=>performance.now():Date.now,x=S.timeout>0?C()+Number(S.timeout):void 0,A=()=>{if(!S)return;const D=S;D.ontimeout(),D.abort()};if(x!==void 0){const D=()=>{const P=x-C();P>0?h=setTimeout(D,Math.min(P,2147483647)):A()};D()}D1.readAsync(a).then(D=>{if(S){if(x!==void 0&&C()>=x){A();return}if(D){const P=E.hasOwnProp(o,"xsrfHeaderName")&&o.xsrfHeaderName;l.set(P,D)}T()}}).catch(D=>{S&&(n(V.from(D,null,t,S)),_(),S=null)})}else T()})},TD=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let n=!1;const i=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof V?u:new hs(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,i(new V(`timeout of ${e}ms exceeded`,V.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{const u=E.getSafeProp(l,"unsubscribe");E.isFunction(u)?u.call(l,i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>{if(!n){if(l.aborted){i.call(l);return}l.addEventListener("abort",i,{once:!0})}});const{signal:s}=r;return s.unsubscribe=()=>E.asap(o),s},xD=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},CD=function(t,e){return $f(this,null,function*(){try{for(var r=ig(AD(t)),n,i,a;n=!(i=yield new $n(r.next())).done;n=!1){const o=i.value;yield*Xf(xD(o,e))}}catch(i){a=[i]}finally{try{n&&(i=r.return)&&(yield new $n(i.call(r)))}finally{if(a)throw a[0]}}})},AD=function(t){return $f(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Xf(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new $n(e.read());if(r)break;yield n}}finally{yield new $n(e.cancel())}})},bg=(t,e,r,n)=>{const i=CD(t,e);let a=0,o,s=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({pull(u){return ur(this,null,function*(){try{const{done:f,value:c}=yield i.next();if(f){s(),u.close();return}let v=c.byteLength;if(r){let h=a+=v;r(h)}u.enqueue(new Uint8Array(c))}catch(f){throw s(f),f}})},cancel(u){return s(u),i.return()}},{highWaterMark:2})},_n=`\r
|
||
`,wg=t=>String(t).replace(/\r\n|\r|\n/g,_n),Tg=t=>String(t).replace(/[\r\n"]/g,e=>e==="\r"?"%0D":e===`
|
||
`?"%0A":"%22"),Ja=(t,e)=>{let r=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e&&(i===13||i===10)?(i===13&&t.charCodeAt(n+1)===10&&n++,r+=2):i<128?r++:i<2048?r+=2:i>=55296&&i<=56319&&t.charCodeAt(n+1)>=56320&&t.charCodeAt(n+1)<=57343?(r+=4,n++):r+=3}return r};class Dl extends TypeError{constructor(e,r){super(e),this.name="FormDataError",this.reason=r}}function DD(t,e,r,n,i){if(!E.isFunction(e))throw new Dl("Blob is not supported","blob");if(!E.isString(i)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(i)||/ $/.test(i))throw new Dl("Invalid multipart boundary","boundary");const a="--"+i+"--"+_n;let o=a.length;const s=[],l=f=>{if(o+f>r)throw n()};l(0);for(const[f,c]of t){const v=E.isString(c),h=v?Ja(c,!0):c.size;if(!Number.isFinite(h)||h<0)throw new Dl("Unsupported FormData part size","part");l(h+Ja(f,!0)+(!v&&c.name?Ja(c.name,!1):0)+(!v&&c.type?Ja(c.type,!1):0));let d="--"+i+_n+'Content-Disposition: form-data; name="'+Tg(wg(f))+'"';v||(d+='; filename="'+Tg(E.isString(c.name)?c.name:"blob")+'"'+_n+"Content-Type: "+String(c.type||"application/octet-stream").replace(/[\r\n]/g,"")),d+=_n+_n;const p=Ja(d,!1)+h+_n.length;l(p),o+=p,s.push({header:d,value:c,isString:v})}const u=[];for(const f of s)u.push(f.header,f.isString?wg(f.value):f.value,_n);return u.push(a),new e(u,{type:"multipart/form-data; boundary="+i})}function ED(t,e,r,n,i){if(!E.isFunction(e))throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);if(i===void 0)if(E.isFunction(Ye.generateString))i="axios-"+Ye.generateString(36,"0123456789abcdef");else{const a=E.global.crypto;if(!a||!E.isFunction(a.getRandomValues))throw new V("Random byte generation is not supported",V.ERR_NOT_SUPPORT);const o=new Uint8Array(18);a.getRandomValues(o),i="axios-"+Array.from(o,s=>("0"+s.toString(16)).slice(-2)).join("")}try{return DD(t,e,r,n,i)}catch(a){if(a instanceof Dl){const o=a.reason==="boundary"?V.ERR_BAD_OPTION_VALUE:V.ERR_BAD_REQUEST;throw new V(a.message,o)}throw a}}const xg=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,P1=(t,e,r)=>e+2<r&&xg(t.charCodeAt(e+1))&&xg(t.charCodeAt(e+2)),Cg=t=>t<=57?t-48:(t&223)-55,RD=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,MD=t=>t===9||t===10||t===12||t===13||t===32,PD=t=>{const e=Math.floor(t/4),r=t%4;return e*3+(r===2?1:r===3?2:0)},ID=t=>{const e=t.length;let r=0;return e>0&&t.charCodeAt(e-1)===61&&(r++,e>1&&t.charCodeAt(e-2)===61&&r++),Math.floor((e-r)*3/4)},LD=t=>{const e=t.length;let r=0,n=0,i=!1;for(let a=0;a<e;a++){let o=t.charCodeAt(a);if(o===37&&P1(t,a,e)&&(o=Cg(t.charCodeAt(a+1))*16+Cg(t.charCodeAt(a+2)),a+=2),!MD(o)){if(o===61){n++;continue}if(!RD(o)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!==0||r%4===1?ID(t):PD(r)},OD=(t,e,r)=>{if(!t||typeof t!="string"||!/^data:/i.test(t))return 0;const n=t.indexOf(",");if(n<0)return 0;const i=t.slice(5,n),a=t.slice(n+1);if(r.test(i))return e(a);let s=0;for(let l=0,u=a.length;l<u;l++){const f=a.charCodeAt(l);if(f===37&&P1(a,l,u))s+=1,l+=2;else if(f<128)s+=1;else if(f<2048)s+=2;else if(f>=55296&&f<=56319&&l+1<u){const c=a.charCodeAt(l+1);c>=56320&&c<=57343?(s+=4,l++):s+=3}else s+=3}return s};function kD(t){const e=typeof t=="string"?t.indexOf("#"):-1;return OD(e===-1?t:t.slice(0,e),LD,/; *base64[\t\n\f\r ]*$/i)}const bd="1.21.0",Ag=64*1024,Dg={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Ms}=E,ND=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),Eg=t=>{if(!E.isString(t))return t;try{return decodeURIComponent(t)}catch(e){return t}},Ps=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},BD=t=>{const e=t.indexOf("://");let r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},FD=t=>{const e=E.global!==void 0&&E.global!==null?E.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=E.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response,Blob:e.Blob},t);const i=E.hasOwnProp(t,"fetch")?t.fetch:void 0,{Request:a,Response:o,Blob:s}=t,l=i?Ms(i):typeof fetch=="function",u=Ms(a),f=Ms(o);if(!l)return!1;const c=l&&Ms(r),v=l&&(typeof n=="function"?(_=>S=>_.encode(S))(new n):_=>ur(null,null,function*(){return new Uint8Array(yield new a(_).arrayBuffer())})),h=u&&c&&Ps(()=>{let _=!1;const S=new a(Ye.origin,{body:new r,method:"POST",get duplex(){return _=!0,"half"}}),b=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),_&&!b}),d=f&&c&&Ps(()=>E.isReadableStream(new o("").body)),p=Object.assign(Object.create(null),Dg);u&&!Ps(()=>new a(Ye.origin,p))&&(delete p.cache,Ps(()=>new a(Ye.origin,p))||(p.cache=Dg.cache));const m={stream:d&&(_=>_.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!m[_]&&(m[_]=(S,b)=>{let w=S&&S[_];if(w)return w.call(S);throw new V(`Response type '${_}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const g=_=>ur(null,null,function*(){if(_==null)return 0;if(E.isBlob(_))return _.size;if(E.isArrayBufferView(_)||E.isArrayBuffer(_))return _.byteLength;if(E.isURLSearchParams(_)&&(_=_+""),E.isString(_))return(yield v(_)).byteLength}),y=(_,S)=>ur(null,null,function*(){const b=E.toFiniteNumber(_.getContentLength());return b==null?g(S):b});return _=>ur(null,null,function*(){let{url:S,method:b,data:w,signal:T,cancelToken:C,timeout:x,onDownloadProgress:A,onUploadProgress:D,responseType:P,headers:M,withCredentials:I="same-origin",fetchOptions:k,maxContentLength:O,maxBodyLength:N,maxRedirects:U}=M1(_);const W=E.isNumber(O)&&O>-1,X=E.isNumber(N)&&N>-1,Q=F=>E.hasOwnProp(_,F)?_[F]:void 0;let J=i||fetch;P=P?(P+"").toLowerCase():"text";let j=TD([T,C&&C.toAbortSignal()],x),z=null;const re=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let se,L=null,Y=null;const B=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,_,z);try{let F;const H=Q("auth");if(H){const pe=E.getSafeProp(H,"username")||"",st=E.getSafeProp(H,"password")||"";F={username:pe,password:st}}let Z;if(BD(S)){if(Z=new URL(S,Ye.origin),!F&&(Z.username||Z.password)){const pe=Eg(Z.username),st=Eg(Z.password);F={username:pe,password:st}}(Z.username||Z.password)&&(Z.username="",Z.password="",S=Z.href)}if(F&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(ND((F.username||"")+":"+(F.password||""))))),W&&Z&&Z.protocol==="data:"&&kD(Z.href)>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z);const ue=E.isSpecCompliantForm(w)&&je.from(Q("headers")).getContentType();let ee;if(E.isString(ue)&&/^multipart\/form-data(?:\s*;|$)/i.test(ue.trim())){const pe=je.parseParameters(ue);E.hasOwnProp(pe,"boundary")&&(ee=pe.boundary)}if(E.isSpecCompliantForm(w)&&b!=="get"&&b!=="head"&&(X||D&&h||ee!==void 0)&&(w=ED(w,s,X?N:1/0,B,ee),M.setContentType(ee===void 0?w.type:ue),se=w.size),X&&b!=="get"&&b!=="head"){const pe=yield g(w);if(typeof pe=="number"&&isFinite(pe)&&(se=pe,pe>N))throw B()}const ye=X&&(E.isReadableStream(w)||E.isStream(w)),Qe=(pe,st,ji)=>bg(pe,Ag,Wn=>{if(X&&Wn>N)throw L=B();st&&st(Wn)},ji);if(h&&b!=="get"&&b!=="head"&&(D||ye)){if(se=se==null?yield y(M,w):se,se!==0||ye){let pe=new a(S,{method:"POST",body:w,duplex:"half"}),st;if(E.isFormData(w)&&(st=pe.headers.get("content-type"))&&M.setContentType(st),pe.body){const[ji,Wn]=D&&pg(se,nu(gg(D)))||[];w=Qe(pe.body,ji,Wn)}}}else if(ye&&!u&&c&&b!=="get"&&b!=="head")w=Qe(w);else if(ye&&u&&!h&&b!=="get"&&b!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,_,z);E.isString(I)||(I=I?"include":"omit");const ke=u&&"credentials"in a.prototype;if(E.isFormData(w)){const pe=M.getContentType();pe&&/^multipart\/form-data/i.test(pe)&&!/boundary=/i.test(pe)&&M.delete("content-type")}M.set("User-Agent","axios/"+bd,!1);const Ot=k==null?k:Object.assign(Object.create(null),k);Ot&&(delete Ot.body,delete Ot.headers,delete Ot.method,delete Ot.signal,delete Ot.duplex,delete Ot.credentials);const ot=Object.assign(Object.create(null),Ot,{signal:j,method:b.toUpperCase(),headers:h1(M.normalize()),body:w,duplex:"half",credentials:ke?I:void 0});u&&(E.forEach(p,(pe,st)=>{ot[st]===void 0&&(ot[st]=pe)}),ot.signal===void 0&&(ot.signal=null),ot.body===void 0&&(ot.body=null)),U===0&&(ot.redirect="manual",Ot&&(Ot.redirect="manual")),z=u&&new a(S,ot);let lr=yield u?J(z,Ot):J(S,ot);const qi=je.from(lr.headers);if(W){const pe=E.toFiniteNumber(qi.getContentLength());if(pe!=null&&pe>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z)}const Gn=d&&(P==="stream"||P==="response");if(d&&lr.body&&(A||W||Gn&&re)){const pe={};["status","statusText","headers"].forEach(ja=>{pe[ja]=lr[ja]});const st=E.toFiniteNumber(qi.getContentLength()),[ji,Wn]=A&&pg(st,nu(gg(A),!0))||[];let tg=0;const lC=ja=>{if(W&&(tg=ja,tg>O))throw Y=new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z);ji&&ji(ja)};lr=new o(bg(lr.body,Ag,lC,()=>{Wn&&Wn(),re&&re()}),pe)}P=P||"text";let Gr=yield m[E.findKey(m,P)||"text"](lr,_);if(W&&!d&&!Gn){let pe;if(Gr!=null&&(typeof Gr.byteLength=="number"?pe=Gr.byteLength:typeof Gr.size=="number"?pe=Gr.size:typeof Gr=="string"&&(pe=typeof n=="function"?new n().encode(Gr).byteLength:Gr.length)),typeof pe=="number"&&pe>O)throw new V("maxContentLength size of "+O+" exceeded",V.ERR_BAD_RESPONSE,_,z)}return!Gn&&re&&re(),yield new Promise((pe,st)=>{C1(pe,st,{data:Gr,headers:je.from(lr.headers),status:lr.status,statusText:lr.statusText,config:_,request:z})})}catch(F){if(re&&re(),j&&j.aborted&&j.reason instanceof V){const H=j.reason;throw H.config=_,z&&(H.request=z),F!==H&&Object.defineProperty(H,"cause",{__proto__:null,value:F,writable:!0,enumerable:!1,configurable:!0}),H}if(L)throw z&&!L.request&&(L.request=z),L;if(Y)throw Y;if(F instanceof V)throw z&&!F.request&&(F.request=z),F;if(F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)){const H=new V("Network Error",V.ERR_NETWORK,_,z,F&&F.response);throw Object.defineProperty(H,"cause",{__proto__:null,value:F.cause||F,writable:!0,enumerable:!1,configurable:!0}),H}throw V.from(F,F&&F.code,_,z,F&&F.response)}})},zD=new Map,I1=t=>{const e=Object.create(null),r=t&&E.hasOwnProp(t,"env")&&t.env;["fetch","Request","Response","Blob"].forEach(h=>{r&&E.hasOwnProp(r,h)&&(e[h]=r[h])});const{fetch:n,Request:i,Response:a,Blob:o}=e,s=[i,a,n,o];let l=s.length,u=l,f,c,v=zD;for(;u--;)f=s[u],c=v.get(f),c===void 0&&v.set(f,c=u?new Map:FD(e)),v=c;return c};I1();const wd={http:UA,xhr:wD,fetch:{get:I1}};E.forEach(wd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Rg=t=>`- ${t}`,HD=t=>E.isFunction(t)||t===null||t===!1;function UD(t,e){t=E.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o<r;o++){n=t[o];let s;if(i=n,!HD(n)&&(i=wd[(s=String(n)).toLowerCase()],i===void 0))throw new V(`Unknown adapter '${s}'`);if(i&&(E.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
||
`+o.map(Rg).join(`
|
||
`):" "+Rg(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,V.ERR_NOT_SUPPORT)}return i}const L1={getAdapter:UD,adapters:wd};function tc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new hs(null,t)}function Mg(t){return Math.max(0,Date.now()-t)}function rc(t){const e=E.toSafeFlatObject(t);tc(e),e.headers=je.from(E.getSafeProp(e,"headers")),e.data=Qf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=L1.getAdapter(e.adapter||cs.adapter,e),n=Date.now();return r(e).then(function(a){tc(e),a.duration=Mg(n),e.response=a;try{a.data=Qf.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=je.from(a.headers),a},function(a){if(!x1(a)&&(tc(e),a&&a.response)){a.response.duration=Mg(n),e.response=a.response;try{a.response.data=Qf.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=je.from(a.response.headers)}return Promise.reject(a)})}const nf={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{nf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pg={};nf.transitional=function(e,r,n){function i(a,o){return"[Axios v"+bd+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new V(i(o," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!Pg[o]&&(Pg[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};nf.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function VD(t,e,r){if(typeof t!="object"||t===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new V("option "+a+" must be "+l,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+a,V.ERR_BAD_OPTION)}}const El={assertOptions:VD,validators:nf},Je=El.validators,nc=t=>{if(t==null||E.isPlainObject(t)||t instanceof je)return!0;try{return E.isObject(t)&&E.getSafeProp(t,Symbol.toStringTag)==="AxiosHeaders"&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(e=>E.isFunction(E.getSafeProp(t,e)))}catch(e){return!1}};let Ci=class{constructor(e){this.defaults=e||{},this.interceptors={request:new hg,response:new hg}}request(e,r){return ur(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack;let o="";if(typeof a=="string"){const s=a.indexOf(`
|
||
`);o=s===-1?"":a.slice(s+1)}if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(`
|
||
`),l=s===-1?-1:o.indexOf(`
|
||
`,s+1),u=l===-1?o:o.slice(l+1),f=String(n.stack),c=zA(n,f),v=c===-1?f:f.slice(0,c),h=c===-1?"":f.slice(c);v.endsWith(u)||(n.stack=v+`
|
||
`+o+h)}}catch(i){}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Oi(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&El.assertOptions(n,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean),legacyInterceptorReqResOrdering:Je.transitional(Je.boolean),advertiseZstdAcceptEncoding:Je.transitional(Je.boolean),validateStatusUndefinedResolves:Je.transitional(Je.boolean),encodeBasicAuthUsername:Je.transitional(Je.boolean)},!1),i!=null&&(E.isFunction(i)?r.paramsSerializer={serialize:i}:El.assertOptions(i,{encode:Je.function,serialize:Je.function},!0)),r.allowAbsoluteUrls!==void 0||(E.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),El.assertOptions(r,{baseUrl:Je.spelling("baseURL"),withXsrfToken:Je.spelling("withXSRFToken")},!0),r.method=(E.getSafeProp(r,"method")||E.getSafeProp(this.defaults,"method")||"get").toLowerCase();const o=E.getSafeProp(a,"common"),s=E.getSafeProp(a,r.method),l=a&&E.merge(nc(o)?o:void 0,nc(s)?s:void 0);a&&E.forEach(T1.concat("common"),m=>{nc(E.getSafeProp(a,m))&&delete a[m]}),r.headers=je.concat(l,a);const u=[];let f=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;f=f&&g.synchronous;const y=r.transitional||_d;y&&y.legacyInterceptorReqResOrdering?u.unshift(g.fulfilled,g.rejected):u.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let v,h=0,d;if(!f){const m=[rc.bind(this),void 0];for(m.unshift(...u),m.push(...c),d=m.length,v=Promise.resolve(r);h<d;)v=v.then(m[h++],m[h++]);return v}d=u.length;let p=r;for(;h<d;){const m=u[h++],g=u[h++];try{p=m?m(p):p}catch(y){if(!g){v=Promise.reject(y);break}try{const _=g.call(this,y);E.isThenable(_)&&(v=Promise.resolve(_).then(()=>rc.call(this,p)))}catch(_){v=Promise.reject(_)}break}}if(!v)try{v=rc.call(this,p)}catch(m){v=Promise.reject(m)}for(h=0,d=c.length;h<d;)v=v.then(c[h++],c[h++]);return v}getUri(e){e=Oi(this.defaults,e);const r=E1(e.baseURL,e.url,e.allowAbsoluteUrls,e);return m1(r,e.params,e.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(e){Ci.prototype[e]=function(r,n){return ur(this,null,function*(){return this.request(Oi(n||{},{method:e,url:r,data:n&&E.hasOwnProp(n,"data")?n.data:void 0}))})}});E.forEach(["post","put","patch","query"],function(e){function r(n){return function(a,o,s){return ur(this,null,function*(){return this.request(Oi(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))})}}Ci.prototype[e]=r(),e!=="query"&&(Ci.prototype[e+"Form"]=r(!0))});let GD=class O1{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new hs(a,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 O1(function(i){e=i}),cancel:e}}};function WD(t){return function(r){return t.apply(null,r)}}function YD(t){return E.isObject(t)&&t.isAxiosError===!0}const Rl={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rl).forEach(([t,e])=>{Rl[e]===void 0&&(Rl[e]=t)});function k1(t){const e=new Ci(t),r=i1(Ci.prototype.request,e);return E.extend(r,Ci.prototype,e,{allOwnKeys:!0}),E.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return k1(Oi(t,i))},r}const $e=k1(cs);$e.Axios=Ci;$e.CanceledError=hs;$e.CancelToken=GD;$e.isCancel=x1;$e.VERSION=bd;$e.toFormData=rf;$e.AxiosError=V;$e.Cancel=$e.CanceledError;$e.all=function(e){return Promise.all(e)};$e.spread=WD;$e.isAxiosError=YD;$e.mergeConfig=Oi;$e.AxiosHeaders=je;$e.formToJSON=t=>w1(E.isHTMLForm(t)?new FormData(t):t);$e.getAdapter=L1.getAdapter;$e.HttpStatusCode=Rl;$e.default=$e;const{Axios:oH,AxiosError:sH,CanceledError:lH,isCancel:uH,CancelToken:fH,VERSION:cH,all:hH,Cancel:vH,isAxiosError:dH,spread:pH,toFormData:gH,AxiosHeaders:mH,HttpStatusCode:yH,formToJSON:_H,getAdapter:SH,mergeConfig:bH,create:wH}=$e;var iu=function(){return iu=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},iu.apply(this,arguments)},$D=/[[\].]{1,2}/g,N1=/%\{((?:.|\n)+?)\}/g,XD=/\{\{((?:.|\n)+?)\}\}/g,vs=function(t){return function(e,r,n,i){r===void 0&&(r={}),n===void 0&&(n=!1);var a=t.silent;!a&&XD.test(e)&&console.warn('Mustache syntax cannot be used with vue-gettext. Please use "%{}" instead of "{{}}" in: '.concat(e));var o=e.replace(N1,function(s,l){var u=l.trim(),f,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function v(d,p){for(var m=p.split($D).filter(function(g){return g});m.length;)d=d[m.shift()];return d}function h(d,p,m){try{f=v(d,p)}catch(y){}if(f==null){if(m)return h(m.ctx,p,m.parent);console.warn("Cannot evaluate expression: ".concat(p)),f=p}var g=f.toString();return n?g:g.replace(/[&<>"']/g,function(y){return c[y]})}return h(r,u,i)});return o}};vs.INTERPOLATION_RE=N1;vs.INTERPOLATION_PREFIX="%{";var Ig={getTranslationIndex:function(t,e){switch(e=Number(e),e=typeof e=="number"&&isNaN(e)?1:e,t.length>2&&t!=="pt_BR"&&(t=t.split("_")[0]),t){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return e%10!==1||e%100===11?1:0;case"jv":return e!==0?1:0;case"mk":return e===1||e%10===1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":return e>1?1:0;case"lv":return e%10===1&&e%100!==11?0:e!==0?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"mnk":return e===0?0:e===1?1:2;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"csb":return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"gd":return e===1||e===11?0:e===2||e===12?1:e>2&&e<20?2:3;case"cy":return e===1?0:e===2?1:e!==8&&e!==11?2:3;case"kw":return e===1?0:e===2?1:e===3?2:3;case"ga":return e===1?0:e===2?1:e>2&&e<7?2:e>6&&e<11?3:4;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5;default:return e!==1?1:0}}},Td=function(t){return{getTranslation:function(e,r,n,i,a,o,s){r===void 0&&(r=1),n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=!1),a===void 0&&(a=t.current);var l=function(g,y){return y?t.interpolate(g,y,s):g};if(e=e.trim(),!e)return"";var u=a?t.silent||t.muted.indexOf(a)!==-1:!1,f=i&&Ig.getTranslationIndex(a,r)>0?i:e,c=t.translations,v=c[a]||c[a.split("_")[0]];if(!v)return u||console.warn("No translations found for ".concat(a)),l(f,o);var h=function(g){var y=Ig.getTranslationIndex(a,r);if(g.length===1&&r===1&&(y=0),!g[y])throw new Error(e+" "+y+" "+t.current+" "+r);return l(g[y],o)},d=function(){if(!u){var g="Untranslated ".concat(a," key found: ").concat(e);n&&(g+=" (with context: ".concat(n,")")),console.warn(g)}return l(f,o)},p=function(g,y){if(y===void 0&&(y=null),g instanceof Object){if(Array.isArray(g))return h(g);var _=y!=null?y:"",S=g[_];return p(S)}return y||!g?d():l(g,o)},m=v[e];return p(m,n)},gettext:function(e,r,n){return n===void 0&&(n=!1),this.getTranslation(e,void 0,void 0,void 0,void 0,r,n)},pgettext:function(e,r,n,i){return i===void 0&&(i=!1),this.getTranslation(r,1,e,void 0,void 0,n,i)},ngettext:function(e,r,n,i,a){return a===void 0&&(a=!1),this.getTranslation(e,n,null,r,void 0,i,a)},npgettext:function(e,r,n,i,a,o){return o===void 0&&(o=!1),this.getTranslation(r,i,e,n,void 0,a,o)}}},Hh=Symbol("GETTEXT");function qD(t){return t.replace(/\r?\n|\r/,"").replace(/\s\s+/g," ").trim()}function Lg(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r],i={};Object.keys(n).forEach(function(a){i[qD(a)]=n[a]}),e[r]=i}),e}var jD=function(){var t=yr(Hh,null);if(!t)throw new Error("Failed to inject gettext. Make sure vue3-gettext is set up properly.");return t},Og=hd({name:"translate",props:{tag:{type:String,default:"span"},translateN:{type:Number,default:null},translatePlural:{type:String,default:null},translateContext:{type:String,default:null},translateParams:{type:Object,default:null},translateComment:{type:String,default:null}},setup:function(t,e){var r,n,i,a=t.translateN!==void 0&&t.translatePlural!==void 0;if(!a&&(t.translateN||t.translatePlural))throw new Error("`translate-n` and `translate-plural` attributes must be used together: ".concat((i=(n=(r=e.slots).default)===null||n===void 0?void 0:n.call(r)[0])===null||i===void 0?void 0:i.children,"."));var o=Pa(),s=jD(),l=Pa(null);vC(function(){!l.value&&o.value&&(l.value=o.value.innerHTML.trim())});var u=Bt(function(){var f,c=Td(s).getTranslation(l.value,t.translateN,t.translateContext,a?t.translatePlural:null,s.current);return vs(s)(c,t.translateParams,void 0,(f=dC())===null||f===void 0?void 0:f.parent)});return function(){return l.value?eu(t.tag,{ref:o,innerHTML:u.value}):eu(t.tag,{ref:o},e.slots.default?e.slots.default():"")}}}),ZD=function(t,e,r,n){var i,a=n.props||{},o=e.dataset.msgid,s=a["translate-context"],l=a["translate-n"],u=a["translate-plural"],f=l!==void 0&&u!==void 0,c=a["render-html"]==="true";if(!f&&(l||u))throw new Error("`translate-n` and `translate-plural` attributes must be used together:"+o+".");!t.silent&&a["translate-params"]&&console.warn("`translate-params` is required as an expression for v-translate directive. Please change to `v-translate='params'`: ".concat(o));var v=Td(t).getTranslation(o,l,s,f?u:null,t.current),h=Object.assign((i=r.instance)!==null&&i!==void 0?i:{},r.value),d=vs(t)(v,h,c,null);e.innerHTML=d};function kg(t){var e=function(r,n,i){r.dataset.currentLanguage=t.current,ZD(t,r,n,i)};return{beforeMount:function(r,n,i){r.dataset.msgid||(r.dataset.msgid=r.innerHTML),dd(t,function(){e(r,n,i)}),e(r,n,i)},updated:function(r,n,i){e(r,n,i)}}}var Ng={availableLanguages:{en:"English"},defaultLanguage:"en",mutedLanguages:[],silent:!1,translations:{},setGlobalProperties:!0,provideDirective:!0,provideComponent:!0};function TH(t){t===void 0&&(t={}),Object.keys(t).forEach(function(o){if(Object.keys(Ng).indexOf(o)===-1)throw new Error("".concat(o," is an invalid option for the translate plugin."))});var e=iu(iu({},Ng),t),r=Pa(Lg(e.translations)),n=vd({available:e.availableLanguages,muted:e.mutedLanguages,silent:e.silent,translations:Bt({get:function(){return r.value},set:function(o){r.value=Lg(o)}}),current:e.defaultLanguage,install:function(o){if(o[Hh]=n,o.provide(Hh,n),e.setGlobalProperties){var s=o.config.globalProperties;s.$gettext=n.$gettext,s.$pgettext=n.$pgettext,s.$ngettext=n.$ngettext,s.$npgettext=n.$npgettext,s.$gettextInterpolate=n.interpolate,s.$language=n}e.provideDirective&&o.directive("translate",kg(n)),e.provideComponent&&o.component("translate",Og)}}),i=Td(n),a=vs(n);return n.$gettext=i.gettext.bind(i),n.$pgettext=i.pgettext.bind(i),n.$ngettext=i.ngettext.bind(i),n.$npgettext=i.npgettext.bind(i),n.interpolate=a.bind(a),n.directive=kg(n),n.component=Og,n}let B1;const af=t=>B1=t,F1=Symbol();function Uh(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Po;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Po||(Po={}));function xH(){const t=e1(!0),e=t.run(()=>Pa({}));let r=[],n=[];const i=t1({install(a){af(i),i._a=a,a.provide(F1,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return this._a?r.push(a):n.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const z1=()=>{};function Bg(t,e,r,n=z1){t.push(e);const i=()=>{const a=t.indexOf(e);a>-1&&(t.splice(a,1),n())};return!r&&mC()&&yC(i),i}function Qi(t,...e){t.slice().forEach(r=>{r(...e)})}const KD=t=>t(),Fg=Symbol(),ic=Symbol();function Vh(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],i=t[r];Uh(i)&&Uh(n)&&t.hasOwnProperty(r)&&!tu(n)&&!r1(n)?t[r]=Vh(i,n):t[r]=n}return t}const QD=Symbol();function JD(t){return!Uh(t)||!t.hasOwnProperty(QD)}const{assign:Sn}=Object;function eE(t){return!!(tu(t)&&t.effect)}function tE(t,e,r,n){const{state:i,actions:a,getters:o}=e,s=r.state.value[t];let l;function u(){s||(r.state.value[t]=i?i():{});const f=_C(r.state.value[t]);return Sn(f,a,Object.keys(o||{}).reduce((c,v)=>(c[v]=t1(Bt(()=>{af(r);const h=r._s.get(t);return o[v].call(h,h)})),c),{}))}return l=H1(t,u,e,r,n,!0),l}function H1(t,e,r={},n,i,a){let o;const s=Sn({actions:{}},r),l={deep:!0};let u,f,c=[],v=[],h;const d=n.state.value[t];!a&&!d&&(n.state.value[t]={}),Pa({});let p;function m(C){let x;u=f=!1,typeof C=="function"?(C(n.state.value[t]),x={type:Po.patchFunction,storeId:t,events:h}):(Vh(n.state.value[t],C),x={type:Po.patchObject,payload:C,storeId:t,events:h});const A=p=Symbol();n1().then(()=>{p===A&&(u=!0)}),f=!0,Qi(c,x,n.state.value[t])}const g=a?function(){const{state:x}=r,A=x?x():{};this.$patch(D=>{Sn(D,A)})}:z1;function y(){o.stop(),c=[],v=[],n._s.delete(t)}const _=(C,x="")=>{if(Fg in C)return C[ic]=x,C;const A=function(){af(n);const D=Array.from(arguments),P=[],M=[];function I(N){P.push(N)}function k(N){M.push(N)}Qi(v,{args:D,name:A[ic],store:b,after:I,onError:k});let O;try{O=C.apply(this&&this.$id===t?this:b,D)}catch(N){throw Qi(M,N),N}return O instanceof Promise?O.then(N=>(Qi(P,N),N)).catch(N=>(Qi(M,N),Promise.reject(N))):(Qi(P,O),O)};return A[Fg]=!0,A[ic]=x,A},S={_p:n,$id:t,$onAction:Bg.bind(null,v),$patch:m,$reset:g,$subscribe(C,x={}){const A=Bg(c,C,x.detached,()=>D()),D=o.run(()=>dd(()=>n.state.value[t],P=>{(x.flush==="sync"?f:u)&&C({storeId:t,type:Po.direct,events:h},P)},Sn({},l,x)));return A},$dispose:y},b=vd(S);n._s.set(t,b);const T=(n._a&&n._a.runWithContext||KD)(()=>n._e.run(()=>(o=e1()).run(()=>e({action:_}))));for(const C in T){const x=T[C];if(tu(x)&&!eE(x)||r1(x))a||(d&&JD(x)&&(tu(x)?x.value=d[C]:Vh(x,d[C])),n.state.value[t][C]=x);else if(typeof x=="function"){const A=_(x,C);T[C]=A,s.actions[C]=x}}return Sn(b,T),Sn(gC(b),T),Object.defineProperty(b,"$state",{get:()=>n.state.value[t],set:C=>{m(x=>{Sn(x,C)})}}),n._p.forEach(C=>{Sn(b,o.run(()=>C({store:b,app:n._a,pinia:n,options:s})))}),d&&a&&r.hydrate&&r.hydrate(b.$state,d),u=!0,f=!0,b}function CH(t,e,r){let n,i;const a=typeof e=="function";typeof t=="string"?(n=t,i=a?r:e):(i=t,n=t.id);function o(s,l){const u=pC();return s=s||(u?yr(F1,null):null),s&&af(s),s=B1,s._s.has(n)||(a?H1(n,e,i,s):tE(n,i,s)),s._s.get(n)}return o.$id=n,o}const pa=typeof document!="undefined";function U1(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function rE(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&U1(t.default)}const Ce=Object.assign;function ac(t,e){const r={};for(const n in e){const i=e[n];r[n]=_r(i)?i.map(t):t(i)}return r}const Io=()=>{},_r=Array.isArray;function zg(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}const V1=/#/g,nE=/&/g,iE=/\//g,aE=/=/g,oE=/\?/g,G1=/\+/g,sE=/%5B/g,lE=/%5D/g,W1=/%5E/g,uE=/%60/g,Y1=/%7B/g,fE=/%7C/g,$1=/%7D/g,cE=/%20/g;function xd(t){return t==null?"":encodeURI(""+t).replace(fE,"|").replace(sE,"[").replace(lE,"]")}function hE(t){return xd(t).replace(Y1,"{").replace($1,"}").replace(W1,"^")}function Gh(t){return xd(t).replace(G1,"%2B").replace(cE,"+").replace(V1,"%23").replace(nE,"%26").replace(uE,"`").replace(Y1,"{").replace($1,"}").replace(W1,"^")}function vE(t){return Gh(t).replace(aE,"%3D")}function dE(t){return xd(t).replace(V1,"%23").replace(oE,"%3F")}function pE(t){return dE(t).replace(iE,"%2F")}function Go(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch(e){}return""+t}const gE=/\/$/,mE=t=>t.replace(gE,"");function oc(t,e,r="/"){let n,i={},a="",o="";const s=e.indexOf("#");let l=e.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=e.slice(0,l),a=e.slice(l,s>0?s:e.length),i=t(a.slice(1))),s>=0&&(n=n||e.slice(0,s),o=e.slice(s,e.length)),n=bE(n!=null?n:e,r),{fullPath:n+a+o,path:n,query:i,hash:Go(o)}}function yE(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Hg(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function _E(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ia(e.matched[n],r.matched[i])&&X1(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Ia(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function X1(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!SE(t[r],e[r]))return!1;return!0}function SE(t,e){return _r(t)?Ug(t,e):_r(e)?Ug(e,t):(t==null?void 0:t.valueOf())===(e==null?void 0:e.valueOf())}function Ug(t,e){return _r(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function bE(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const cn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Wh=(function(t){return t.pop="pop",t.push="push",t})({}),sc=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function wE(t){if(!t)if(pa){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),mE(t)}const TE=/^[^#]+#/;function xE(t,e){return t.replace(TE,"#")+e}function CE(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const of=()=>({left:window.scrollX,top:window.scrollY});function AE(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=CE(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Vg(t,e){return(history.state?history.state.position-e:-1)+t}const Yh=new Map;function DE(t,e){Yh.set(t,e)}function EE(t){const e=Yh.get(t);return Yh.delete(t),e}function RE(t){return typeof t=="string"||t&&typeof t=="object"}function q1(t){return typeof t=="string"||typeof t=="symbol"}let Be=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const j1=Symbol("");Be.MATCHER_NOT_FOUND+"",Be.NAVIGATION_GUARD_REDIRECT+"",Be.NAVIGATION_ABORTED+"",Be.NAVIGATION_CANCELLED+"",Be.NAVIGATION_DUPLICATED+"";function La(t,e){return Ce(new Error,{type:t,[j1]:!0},e)}function Wr(t,e){return t instanceof Error&&j1 in t&&(e==null||!!(t.type&e))}const ME=["params","query","hash"];function PE(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const r of ME)r in t&&(e[r]=t[r]);return JSON.stringify(e,null,2)}function IE(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(G1," "),a=i.indexOf("="),o=Go(a<0?i:i.slice(0,a)),s=a<0?null:Go(i.slice(a+1));if(o in e){let l=e[o];_r(l)||(l=e[o]=[l]),l.push(s)}else e[o]=s}return e}function Gg(t){let e="";for(let r in t){const n=t[r];if(r=vE(r),n==null){n!==void 0&&(e+=(e.length?"&":"")+r);continue}(_r(n)?n.map(i=>i&&Gh(i)):[n&&Gh(n)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+r,i!=null&&(e+="="+i))})}return e}function LE(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=_r(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const Cd=Symbol(""),Wg=Symbol(""),sf=Symbol(""),Ad=Symbol(""),$h=Symbol("");function eo(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Z1(t,e,r){const n=()=>{t[e].delete(r)};SC(n),bC(n),wC(()=>{t[e].add(r)}),t[e].add(r)}function AH(t){const e=yr(Cd,{}).value;e&&Z1(e,"leaveGuards",t)}function DH(t){const e=yr(Cd,{}).value;e&&Z1(e,"updateGuards",t)}function Tn(t,e,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=v=>{v===!1?l(La(Be.NAVIGATION_ABORTED,{from:r,to:e})):v instanceof Error?l(v):RE(v)?l(La(Be.NAVIGATION_GUARD_REDIRECT,{from:e,to:v})):(o&&n.enterCallbacks[i]===o&&typeof v=="function"&&o.push(v),s())},f=a(()=>t.call(n&&n.instances[i],e,r,u));let c=Promise.resolve(f);t.length<3&&(c=c.then(u)),c.catch(v=>l(v))})}function lc(t,e,r,n,i=a=>a()){const a=[];for(const o of t)for(const s in o.components){let l=o.components[s];if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(U1(l)){const u=(l.__vccOpts||l)[e];u&&a.push(Tn(u,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const c=rE(f)?f.default:f;o.mods[s]=f,o.components[s]=c;const v=(c.__vccOpts||c)[e];return v&&Tn(v,r,n,o,s,i)()}))}}return a}function OE(t,e){const r=[],n=[],i=[],a=Math.max(e.matched.length,t.matched.length);for(let o=0;o<a;o++){const s=e.matched[o];s&&(t.matched.find(u=>Ia(u,s))?n.push(s):r.push(s));const l=t.matched[o];l&&(e.matched.find(u=>Ia(u,l))||i.push(l))}return[r,n,i]}let kE=()=>location.protocol+"//"+location.host;function K1(t,e){const{pathname:r,search:n,hash:i}=e,a=t.indexOf("#");if(a>-1){let o=i.includes(t.slice(a))?t.slice(a).length:1,s=i.slice(o);return s[0]!=="/"&&(s="/"+s),Hg(s,"")}return Hg(r,t)+n+i}function NE(t,e,r,n){let i=[],a=[],o=null;const s=({state:v})=>{const h=K1(t,location),d=r.value,p=e.value;let m=0;if(v){if(r.value=h,e.value=v,o&&o===d){o=null;return}m=p?v.position-p.position:0}else n(h);i.forEach(g=>{g(r.value,d,{delta:m,type:Wh.pop,direction:m?m>0?sc.forward:sc.back:sc.unknown})})};function l(){o=r.value}function u(v){i.push(v);const h=()=>{const d=i.indexOf(v);d>-1&&i.splice(d,1)};return a.push(h),h}function f(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(Ce({},v.state,{scroll:of()}),"")}}function c(){for(const v of a)v();a=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:u,destroy:c}}function Yg(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?of():null}}function BE(t){const{history:e,location:r}=window,n={value:K1(t,r)},i={value:e.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=t.indexOf("#"),v=c>-1?(r.host&&document.querySelector("base")?t:t.slice(c))+l:kE()+t+l;try{e[f?"replaceState":"pushState"](u,"",v),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](v)}}function o(l,u){a(l,Ce({},e.state,Yg(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),n.value=l}function s(l,u){const f=Ce({},i.value,e.state,{forward:l,scroll:of()});a(f.current,f,!0),a(l,Ce({},Yg(n.value,l,null),{position:f.position+1},u),!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function EH(t){t=wE(t);const e=BE(t),r=NE(t,e.state,e.location,e.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Ce({location:"",base:t,go:n,createHref:xE.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}let _i=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var Xe=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(Xe||{});const FE={type:_i.Static,value:""},zE=/[a-zA-Z0-9_]/;function HE(t){if(!t)return[[]];if(t==="/")return[[FE]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=Xe.Static,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===Xe.Static?a.push({type:_i.Static,value:u}):r===Xe.Param||r===Xe.ParamRegExp||r===Xe.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:_i.Param,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&r!==Xe.ParamRegExp){n=r,r=Xe.EscapeNext;continue}switch(r){case Xe.Static:l==="/"?(u&&c(),o()):l===":"?(c(),r=Xe.Param):v();break;case Xe.EscapeNext:v(),r=n;break;case Xe.Param:l==="("?r=Xe.ParamRegExp:zE.test(l)?v():(c(),r=Xe.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case Xe.ParamRegExp:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=Xe.ParamRegExpEnd:f+=l;break;case Xe.ParamRegExpEnd:c(),r=Xe.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:e("Unknown state");break}}return r===Xe.ParamRegExp&&e(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}const $g="[^/]+?",UE={sensitive:!1,strict:!1,start:!0,end:!0};var dt=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(dt||{});const VE=/[.+*?^${}()[\]/\\]/g;function GE(t,e){const r=Ce({},UE,e),n=[];let i=r.start?"^":"";const a=[];for(const u of t){const f=u.length?[]:[dt.Root];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const v=u[c];let h=dt.Segment+(r.sensitive?dt.BonusCaseSensitive:0);if(v.type===_i.Static)c||(i+="/"),i+=v.value.replace(VE,"\\$&"),h+=dt.Static;else if(v.type===_i.Param){const{value:d,repeatable:p,optional:m,regexp:g}=v;a.push({name:d,repeatable:p,optional:m});const y=g||$g;if(y!==$g){h+=dt.BonusCustomRegExp;try{`${y}`}catch(S){throw new Error(`Invalid custom RegExp for param "${d}" (${y}): `+S.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(_=m&&u.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),i+=_,h+=dt.Dynamic,m&&(h+=dt.BonusOptional),p&&(h+=dt.BonusRepeatable),y===".*"&&(h+=dt.BonusWildcard)}f.push(h)}n.push(f)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=dt.BonusStrict}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let v=1;v<f.length;v++){const h=f[v]||"",d=a[v-1];c[d.name]=h&&d.repeatable?h.split("/"):h}return c}function l(u){let f="",c=!1;for(const v of t){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const h of v)if(h.type===_i.Static)f+=h.value;else if(h.type===_i.Param){const{value:d,repeatable:p,optional:m}=h,g=d in u?u[d]:"";if(_r(g)&&!p)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const y=_r(g)?g.join("/"):g;if(!y)if(m)v.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);f+=y}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function WE(t,e){let r=0;for(;r<t.length&&r<e.length;){const n=e[r]-t[r];if(n)return n;r++}return t.length<e.length?t.length===1&&t[0]===dt.Static+dt.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===dt.Static+dt.Segment?1:-1:0}function Q1(t,e){let r=0;const n=t.score,i=e.score;for(;r<n.length&&r<i.length;){const a=WE(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(Xg(n))return 1;if(Xg(i))return-1}return i.length-n.length}function Xg(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const YE={strict:!1,end:!0,sensitive:!1};function $E(t,e,r){const n=GE(HE(t.path),r),i=Ce(n,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function XE(t,e){const r=[],n=new Map;e=zg(YE,e);function i(c){return n.get(c)}function a(c,v,h){const d=!h,p=jg(c);p.aliasOf=h&&h.record;const m=zg(e,c),g=[p];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of S)g.push(jg(Ce({},p,{components:h?h.record.components:p.components,path:b,aliasOf:h?h.record:p})))}let y,_;for(const S of g){const{path:b}=S;if(v&&b[0]!=="/"){const w=v.record.path,T=w[w.length-1]==="/"?"":"/";S.path=v.record.path+(b&&T+b)}if(y=$E(S,v,m),h?h.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),d&&c.name&&!Zg(y)&&o(c.name)),J1(y)&&l(y),p.children){const w=p.children;for(let T=0;T<w.length;T++)a(w[T],y,h&&h.children[T])}h=h||y}return _?()=>{o(_)}:Io}function o(c){if(q1(c)){const v=n.get(c);v&&(n.delete(c),r.splice(r.indexOf(v),1),v.children.forEach(o),v.alias.forEach(o))}else{const v=r.indexOf(c);v>-1&&(r.splice(v,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){const v=ZE(c,r);r.splice(v,0,c),c.record.name&&!Zg(c)&&n.set(c.record.name,c)}function u(c,v){let h,d={},p,m;if("name"in c&&c.name){if(h=n.get(c.name),!h)throw La(Be.MATCHER_NOT_FOUND,{location:c});m=h.record.name,d=Ce(qg(v.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&qg(c.params,h.keys.map(_=>_.name))),p=h.stringify(d)}else if(c.path!=null)p=c.path,h=r.find(_=>_.re.test(p)),h&&(d=h.parse(p),m=h.record.name);else{if(h=v.name?n.get(v.name):r.find(_=>_.re.test(v.path)),!h)throw La(Be.MATCHER_NOT_FOUND,{location:c,currentLocation:v});m=h.record.name,d=Ce({},v.params,c.params),p=h.stringify(d)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:m,path:p,params:d,matched:g,meta:jE(g)}}t.forEach(c=>a(c));function f(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:s,getRecordMatcher:i}}function qg(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function jg(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:qE(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function qE(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function Zg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function jE(t){return t.reduce((e,r)=>Ce(e,r.meta),{})}function ZE(t,e){let r=0,n=e.length;for(;r!==n;){const a=r+n>>1;Q1(t,e[a])<0?n=a:r=a+1}const i=KE(t);return i&&(n=e.lastIndexOf(i,n-1)),n}function KE(t){let e=t;for(;e=e.parent;)if(J1(e)&&Q1(t,e)===0)return e}function J1({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Kg(t){const e=yr(sf),r=yr(Ad),n=Bt(()=>{const l=Mo(t.to);return e.resolve(l)}),i=Bt(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const v=c.findIndex(Ia.bind(null,f));if(v>-1)return v;const h=Qg(l[u-2]);return u>1&&Qg(f)===h&&c[c.length-1].path!==h?c.findIndex(Ia.bind(null,l[u-2])):v}),a=Bt(()=>i.value>-1&&rR(r.params,n.value.params)),o=Bt(()=>i.value>-1&&i.value===r.matched.length-1&&X1(r.params,n.value.params));function s(l={}){if(tR(l)){const u=e[Mo(t.replace)?"replace":"push"](Mo(t.to)).catch(Io);return t.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:Bt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function QE(t){return t.length===1?t[0]:t}const JE=hd({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Kg,setup(t,{slots:e}){const r=vd(Kg(t)),{options:n}=yr(sf),i=Bt(()=>({[Jg(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Jg(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=e.default&&QE(e.default(r));return t.custom?a:eu("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),eR=JE;function tR(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function rR(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!_r(i)||i.length!==n.length||n.some((a,o)=>a.valueOf()!==i[o].valueOf()))return!1}return!0}function Qg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Jg=(t,e,r)=>t!=null?t:e!=null?e:r,nR=hd({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=yr($h),i=Bt(()=>t.route||n.value),a=yr(Wg,0),o=Bt(()=>{let u=Mo(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=Bt(()=>i.value.matched[o.value]);qf(Wg,Bt(()=>o.value+1)),qf(Cd,s),qf($h,i);const l=Pa();return dd(()=>[l.value,s.value,t.name],([u,f,c],[v,h,d])=>{f&&(f.instances[c]=u,h&&h!==f&&u&&u===v&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Ia(f,h)||!v)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,c=s.value,v=c&&c.components[f];if(!v)return em(r.default,{Component:v,route:u});const h=c.props[f],d=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=eu(v,Ce({},d,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return em(r.default,{Component:m,route:u})||m}}});function em(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const iR=nR;function RH(t){const e=XE(t.routes,t),r=t.parseQuery||IE,n=t.stringifyQuery||Gg,i=t.history,a=eo(),o=eo(),s=eo(),l=TC(cn);let u=cn;pa&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=ac.bind(null,L=>""+L),c=ac.bind(null,pE),v=ac.bind(null,Go);function h(L,Y){let B,F;return q1(L)?(B=e.getRecordMatcher(L),F=Y):F=L,e.addRoute(F,B)}function d(L){const Y=e.getRecordMatcher(L);Y&&e.removeRoute(Y)}function p(){return e.getRoutes().map(L=>L.record)}function m(L){return!!e.getRecordMatcher(L)}function g(L,Y){if(Y=Ce({},Y||l.value),typeof L=="string"){const ee=oc(r,L,Y.path),ye=e.resolve({path:ee.path},Y),Qe=i.createHref(ee.fullPath);return Ce(ee,ye,{params:v(ye.params),hash:Go(ee.hash),redirectedFrom:void 0,href:Qe})}let B;if(L.path!=null)B=Ce({},L,{path:oc(r,L.path,Y.path).path});else{const ee=Ce({},L.params);for(const ye in ee)ee[ye]==null&&delete ee[ye];B=Ce({},L,{params:c(ee)}),Y.params=c(Y.params)}const F=e.resolve(B,Y),H=L.hash||"";F.params=f(v(F.params));const Z=yE(n,Ce({},L,{hash:hE(H),path:F.path})),ue=i.createHref(Z);return Ce({fullPath:Z,hash:H,query:n===Gg?LE(L.query):L.query||{}},F,{redirectedFrom:void 0,href:ue})}function y(L){return typeof L=="string"?oc(r,L,l.value.path):Ce({},L)}function _(L,Y){if(u!==L)return La(Be.NAVIGATION_CANCELLED,{from:Y,to:L})}function S(L){return T(L)}function b(L){return S(Ce(y(L),{replace:!0}))}function w(L,Y){const B=L.matched[L.matched.length-1];if(B&&B.redirect){const{redirect:F}=B;let H=typeof F=="function"?F(L,Y):F;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=y(H):{path:H},H.params={}),Ce({query:L.query,hash:L.hash,params:H.path!=null?{}:L.params},H)}}function T(L,Y){const B=u=g(L),F=l.value,H=L.state,Z=L.force,ue=L.replace===!0,ee=w(B,F);if(ee)return T(Ce(y(ee),{state:typeof ee=="object"?Ce({},H,ee.state):H,force:Z,replace:ue}),Y||B);const ye=B;ye.redirectedFrom=Y;let Qe;return!Z&&_E(n,F,B)&&(Qe=La(Be.NAVIGATION_DUPLICATED,{to:ye,from:F}),Q(F,F,!0,!1)),(Qe?Promise.resolve(Qe):A(ye,F)).catch(ke=>Wr(ke)?Wr(ke,Be.NAVIGATION_GUARD_REDIRECT)?ke:X(ke):U(ke,ye,F)).then(ke=>{if(ke){if(Wr(ke,Be.NAVIGATION_GUARD_REDIRECT))return T(Ce({replace:ue},y(ke.to),{state:typeof ke.to=="object"?Ce({},H,ke.to.state):H,force:Z}),Y||ye)}else ke=P(ye,F,!0,ue,H);return D(ye,F,ke),ke})}function C(L,Y){const B=_(L,Y);return B?Promise.reject(B):Promise.resolve()}function x(L){const Y=z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(L):L()}function A(L,Y){let B;const[F,H,Z]=OE(L,Y);B=lc(F.reverse(),"beforeRouteLeave",L,Y);for(const ee of F)ee.leaveGuards.forEach(ye=>{B.push(Tn(ye,L,Y))});const ue=C.bind(null,L,Y);return B.push(ue),se(B).then(()=>{B=[];for(const ee of a.list())B.push(Tn(ee,L,Y));return B.push(ue),se(B)}).then(()=>{B=lc(H,"beforeRouteUpdate",L,Y);for(const ee of H)ee.updateGuards.forEach(ye=>{B.push(Tn(ye,L,Y))});return B.push(ue),se(B)}).then(()=>{B=[];for(const ee of Z)if(ee.beforeEnter)if(_r(ee.beforeEnter))for(const ye of ee.beforeEnter)B.push(Tn(ye,L,Y));else B.push(Tn(ee.beforeEnter,L,Y));return B.push(ue),se(B)}).then(()=>(L.matched.forEach(ee=>ee.enterCallbacks={}),B=lc(Z,"beforeRouteEnter",L,Y,x),B.push(ue),se(B))).then(()=>{B=[];for(const ee of o.list())B.push(Tn(ee,L,Y));return B.push(ue),se(B)}).catch(ee=>Wr(ee,Be.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function D(L,Y,B){s.list().forEach(F=>x(()=>F(L,Y,B)))}function P(L,Y,B,F,H){const Z=_(L,Y);if(Z)return Z;const ue=Y===cn,ee=pa?history.state:{};B&&(F||ue?i.replace(L.fullPath,Ce({scroll:ue&&ee&&ee.scroll},H)):i.push(L.fullPath,H)),l.value=L,Q(L,Y,B,ue),X()}let M;function I(){M||(M=i.listen((L,Y,B)=>{if(!re.listening)return;const F=g(L),H=w(F,re.currentRoute.value);if(H){T(Ce(H,{replace:!0,force:!0}),F).catch(Io);return}u=F;const Z=l.value;pa&&DE(Vg(Z.fullPath,B.delta),of()),A(F,Z).catch(ue=>Wr(ue,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?ue:Wr(ue,Be.NAVIGATION_GUARD_REDIRECT)?(T(Ce(y(ue.to),{force:!0}),F).then(ee=>{Wr(ee,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!B.delta&&B.type===Wh.pop&&i.go(-1,!1)}).catch(Io),Promise.reject()):(B.delta&&i.go(-B.delta,!1),U(ue,F,Z))).then(ue=>{ue=ue||P(F,Z,!1),ue&&(B.delta&&!Wr(ue,Be.NAVIGATION_CANCELLED)?i.go(-B.delta,!1):B.type===Wh.pop&&Wr(ue,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(F,Z,ue)}).catch(Io)}))}let k=eo(),O=eo(),N;function U(L,Y,B){X(L);const F=O.list();return F.length?F.forEach(H=>H(L,Y,B)):console.error(L),Promise.reject(L)}function W(){return N&&l.value!==cn?Promise.resolve():new Promise((L,Y)=>{k.add([L,Y])})}function X(L){return N||(N=!L,I(),k.list().forEach(([Y,B])=>L?B(L):Y()),k.reset()),L}function Q(L,Y,B,F){const{scrollBehavior:H}=t;if(!pa||!H)return Promise.resolve();const Z=!B&&EE(Vg(L.fullPath,0))||(F||!B)&&history.state&&history.state.scroll||null;return n1().then(()=>H(L,Y,Z)).then(ue=>ue&&AE(ue)).catch(ue=>U(ue,L,Y))}const J=L=>i.go(L);let j;const z=new Set,re={currentRoute:l,listening:!0,addRoute:h,removeRoute:d,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:p,resolve:g,options:t,push:S,replace:b,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:W,install(L){L.component("RouterLink",eR),L.component("RouterView",iR),L.config.globalProperties.$router=re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>Mo(l)}),pa&&!j&&l.value===cn&&(j=!0,S(i.location).catch(F=>{}));const Y={};for(const F in cn)Object.defineProperty(Y,F,{get:()=>l.value[F],enumerable:!0});L.provide(sf,re),L.provide(Ad,xC(Y)),L.provide($h,l);const B=L.unmount;z.add(L),L.unmount=function(){z.delete(L),z.size<1&&(u=cn,M&&M(),M=null,l.value=cn,j=!1,N=!1),B()}}};function se(L){return L.reduce((Y,B)=>Y.then(()=>x(B)),Promise.resolve())}return re}function MH(){return yr(sf)}function PH(t){return yr(Ad)}var Xh=function(t,e){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Xh(t,e)};function q(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var aR=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),oR=(function(){function t(){this.browser=new aR,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!="undefined"}return t})(),ve=new oR;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ve.wxa=!0,ve.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ve.worker=!0:!ve.hasGlobalWindow||"Deno"in window||typeof navigator!="undefined"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ve.node=!0,ve.svgSupported=!0):sR(navigator.userAgent,ve);function sR(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document!="undefined";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Dd=12,lR="sans-serif",Bn=Dd+"px "+lR,uR=20,fR=100,cR="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hR(t){var e={};if(typeof JSON=="undefined")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-uR)/fR;e[n]=i}return e}var vR=hR(cR),it={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=it.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Bn),t.measureText(r);r=r||"",n=n||Bn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Dd,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=vR[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},getTime:function(){return Date.now?Date.now():+new Date}};function eS(t){for(var e in it)it.hasOwnProperty(e)&&t[e]&&(it[e]=t[e])}var tS=kr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),rS=kr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),$a=Object.prototype.toString,lf=Array.prototype,dR=lf.forEach,pR=lf.filter,Ed=lf.slice,gR=lf.map,tm=function(){}.constructor,Is=tm?tm.prototype:null,Rd="__proto__",uc=2311,mR=Math.pow(2,53)-1;function Md(){return uc>=mR&&(uc=0),uc++}function uf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,t)}function de(t){if(t==null||typeof t!="object")return t;var e=t,r=$a.call(t);if(r==="[object Array]"){if(!Ta(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=de(t[n])}}else if(rS[r]){if(!Ta(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!tS[r]&&!Ta(t)&&!Oa(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Rd&&(e[o]=de(t[o]))}return e}function be(t,e,r){if(!ie(e)||!ie(t))return r?de(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Rd){var i=t[n],a=e[n];ie(a)&&ie(i)&&!K(a)&&!K(i)&&!Oa(a)&&!Oa(i)&&!qh(a)&&!qh(i)&&!Ta(a)&&!Ta(i)?be(i,a,r):(r||!(n in t))&&(t[n]=de(e[n]))}return t}function yR(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=be(r,t[n],e);return r}function G(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Rd&&(t[r]=e[r]);return t}function nS(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function Te(t,e,r){for(var n=Pe(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var _R=it.createCanvas;function ge(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 Pd(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function ar(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else Te(t,e,r)}function Tt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function R(t,e,r){if(t&&e)if(t.forEach&&t.forEach===dR)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function oe(t,e,r){if(!t)return[];if(!e)return ff(t);if(t.map&&t.map===gR)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function kr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function ze(t,e,r){if(!t)return[];if(!e)return ff(t);if(t.filter&&t.filter===pR)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function iS(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Pe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function SR(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Ed.call(arguments)))}}var Ae=Is&&fe(Is.bind)?Is.call.bind(Is.bind):SR;function Ue(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Ed.call(arguments)))}}function K(t){return Array.isArray?Array.isArray(t):$a.call(t)==="[object Array]"}function fe(t){return typeof t=="function"}function te(t){return typeof t=="string"}function au(t){return $a.call(t)==="[object String]"}function Re(t){return typeof t=="number"}function ie(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function qh(t){return!!tS[$a.call(t)]}function xt(t){return!!rS[$a.call(t)]}function Oa(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ds(t){return t.colorStops!=null}function aS(t){return t.image!=null}function bR(t){return $a.call(t)==="[object RegExp]"}function ka(t){return t!==t}function Wo(){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 ne(t,e){return t!=null?t:e}function Mn(t,e,r){return t!=null?t:e!=null?e:r}function ff(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Ed.apply(t,e)}function cf(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 Nr(t,e){if(!t)throw new Error(e)}function dr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var oS="__ec_primitive__";function Yo(t){t[oS]=!0}function Ta(t){return t[oS]}var wR=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Pe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),sS=typeof Map=="function";function TR(){return sS?new Map:new wR}var lS=(function(){function t(e){var r=K(e);this.data=TR();var n=this;e instanceof t?e.each(i):e&&R(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return sS?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ce(t){return new lS(t)}function uS(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function ps(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&G(r,e),r}function Id(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Mt(t,e){return t.hasOwnProperty(e)}function at(){}var fS=180/Math.PI,xR=Number.EPSILON||Math.pow(2,-52);const CR=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:xR,HashMap:lS,RADIAN_TO_DEGREE:fS,assert:Nr,assignProps:nS,bind:Ae,clone:de,concatArray:uS,createCanvas:_R,createHashMap:ce,createObject:ps,curry:Ue,defaults:Te,disableUserSelect:Id,each:R,eqNaN:ka,extend:G,filter:ze,find:iS,guid:Md,hasOwn:Mt,indexOf:ge,inherits:Pd,isArray:K,isArrayLike:Tt,isBuiltInObject:qh,isDom:Oa,isFunction:fe,isGradientObject:ds,isImagePatternObject:aS,isNumber:Re,isObject:ie,isPrimitive:Ta,isRegExp:bR,isString:te,isStringSafe:au,isTypedArray:xt,keys:Pe,logError:uf,map:oe,merge:be,mergeAll:yR,mixin:ar,noop:at,normalizeCssArray:cf,reduce:kr,retrieve:Wo,retrieve2:ne,retrieve3:Mn,setAsPrimitive:Yo,slice:ff,trim:dr},Symbol.toStringTag,{value:"Module"}));function Vi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function AR(t,e){return t[0]=e[0],t[1]=e[1],t}function cS(t){return[t[0],t[1]]}function Ml(t,e,r){return t[0]=e,t[1]=r,t}function jh(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function DR(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function hS(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Ld(t){return Math.sqrt(Od(t))}var ER=Ld;function Od(t){return t[0]*t[0]+t[1]*t[1]}var RR=Od;function MR(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function PR(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function IR(t,e){return t[0]*e[0]+t[1]*e[1]}function Pl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function vS(t,e){var r=Ld(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ou(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var su=ou;function dS(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ai=dS;function LR(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Il(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 bt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Cn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function An(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const OR=Object.freeze(Object.defineProperty({__proto__:null,add:jh,applyTransform:bt,clone:cS,copy:AR,create:Vi,dist:su,distSquare:Ai,distance:ou,distanceSquare:dS,div:PR,dot:IR,len:Ld,lenSquare:Od,length:ER,lengthSquare:RR,lerp:Il,max:An,min:Cn,mul:MR,negate:LR,normalize:vS,scale:Pl,scaleAndAdd:DR,set:Ml,sub:hS},Symbol.toStringTag,{value:"Module"}));var Ji=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),kR=(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 Ji(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Ji(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ji(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ji(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ji(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ji(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Ur=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),NR=Math.log(2);function Zh(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/NR);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*Zh(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function rm(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Zh(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Zh(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var lu="___zrEVENTSAVED",fc=[];function BR(t,e,r,n,i){return Kh(fc,e,n,i,!0)&&Kh(t,r,fc[0],fc[1])}function FR(t,e){t&&r(t),e&&r(e);function r(n){var i=n[lu];i&&(i.clearMarkers&&i.clearMarkers(),delete n[lu])}}function Kh(t,e,r,n,i){if(e.getBoundingClientRect&&ve.domSupported&&!pS(e)){var a=e[lu]||(e[lu]={}),o=zR(e,a),s=HR(o,a,i);if(s)return s(t,r,n),!0}return!1}function zR(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){R(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HR(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?rm(s,o):rm(o,s))}function pS(t){return t.nodeName.toUpperCase()==="CANVAS"}var UR=/([&<>"'])/g,VR={"&":"&","<":"<",">":">",'"':""","'":"'"};function yt(t){return t==null?"":(t+"").replace(UR,function(e,r){return VR[r]})}var GR=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cc=[],WR=ve.browser.firefox&&+ve.browser.version.split(".")[0]<39;function Qh(t,e,r,n){return r=r||{},n?nm(t,e,r):WR&&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):nm(t,e,r),r}function nm(t,e,r){if(ve.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(pS(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Kh(cc,t,n,i)){r.zrX=cc[0],r.zrY=cc[1];return}}r.zrX=r.zrY=0}function kd(t){return t||window.event}function Gt(t,e,r){if(e=kd(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qh(t,o,e,r)}else{Qh(t,e,e,r);var a=YR(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&GR.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function YR(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function $R(t,e,r,n){t.addEventListener(e,r,n)}function XR(t,e,r,n){t.removeEventListener(e,r,n)}var gS=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},qR=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Qh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in hc)if(hc.hasOwnProperty(r)){var n=hc[r](this._track,e);if(n)return n}},t})();function im(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function jR(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var hc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=im(n)/im(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=jR(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jt(){return[1,0,0,1,0,0]}function Gi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function gs(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 Di(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function uu(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 hf(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function mS(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Hn(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function ZR(t){var e=Jt();return gs(e,t),e}const KR=Object.freeze(Object.defineProperty({__proto__:null,clone:ZR,copy:gs,create:Jt,identity:Gi,invert:Hn,mul:Di,rotate:hf,scale:mS,translate:uu},Symbol.toStringTag,{value:"Module"}));var he=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Si=Math.min,ya=Math.max,Jh=Math.abs,am=["x","y"],QR=["width","height"],Xn=new he,qn=new he,jn=new he,Zn=new he,Nt=yS(),wo=Nt.minTv,ev=Nt.maxTv,Lo=[0,0],le=(function(){function t(e,r,n,i){vc(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Si(e.x,this.x),n=Si(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ya(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ya(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){return JR(Jt(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&he.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=vc(eM,e.x,e.y,e.width,e.height)),r instanceof t||(r=vc(tM,r.x,r.y,r.width,r.height));var s=!!n;Nt.reset(i,s);var l=Nt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,m=r.y+r.height-l;if(u>f||c>v||h>d||p>m)return!1;var g=!(f<h||d<u||v<p||m<c);return(s||a)&&(Lo[0]=1/0,Lo[1]=0,sm(u,f,h,d,0,s,a,o),sm(c,v,p,m,1,s,a,o),s&&he.copy(n,g?Nt.useDir?Nt.dirMinTv:wo:ev)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){om(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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&om(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xn.x=jn.x=r.x,Xn.y=Zn.y=r.y,qn.x=Zn.x=r.x+r.width,qn.y=jn.y=r.y+r.height,Xn.transform(n),Zn.transform(n),qn.transform(n),jn.transform(n),e.x=Si(Xn.x,qn.x,jn.x,Zn.x),e.y=Si(Xn.y,qn.y,jn.y,Zn.y);var l=ya(Xn.x,qn.x,jn.x,Zn.x),u=ya(Xn.y,qn.y,jn.y,Zn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Gi(e||[]),uu(e,e,Ml(dc,-r.x,-r.y)),mS(e,e,Ml(dc,i,a)),uu(e,e,Ml(dc,n.x,n.y)),e},t})();le.create;var vc=le.set,om=le.copy,JR=le.calculateTransform;le.applyTransform;le.contain;var eM=new le(0,0,0,0),tM=new le(0,0,0,0),dc=[];function sm(t,e,r,n,i,a,o,s){var l=Jh(e-r),u=Jh(n-t),f=Si(l,u),c=am[i],v=am[1-i],h=QR[i];e<r||n<t?l<u?(a&&(ev[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(ev[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=ya(t,r),o[h]=Si(e,n)-o[c]),a&&(f<Lo[0]||Nt.useDir)&&(Lo[0]=Si(f,Lo[0]),(l<u||!Nt.bidirectional)&&(wo[c]=l,wo[v]=0,Nt.useDir&&Nt.calcDirMTV()),(l>=u||!Nt.bidirectional)&&(wo[c]=-u,wo[v]=0,Nt.useDir&&Nt.calcDirMTV())))}function yS(){var t=0,e=new he,r=new he,n={minTv:new he,maxTv:new he,useDir:!1,dirMinTv:new he,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=ya(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Jh(a)<1e-10}return n}var _S="silent";function rM(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:nM}}function nM(){gS(this.event)}var iM=(function(t){q(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})(Ur),to=(function(){function t(e,r){this.x=e,this.y=r}return t})(),aM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pc=new le(0,0,0,0),SS=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new to(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new iM,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new kR(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(aM,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=bS(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new to(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new to(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=rM(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new to(r,n);if(lm(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new le(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(pc.copy(v.getBoundingRect()),v.transform&&pc.applyTransform(v.transform),pc.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<p;g+=d){var y=r+m*Math.cos(g),_=n+m*Math.sin(g);if(lm(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new qR);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new to;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Ur);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){SS.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=bS(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||su(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function oM(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?_S:!0}return!1}function lm(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=oM(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==_S)){e.target=o;break}}}function bS(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var wS=32,ro=7;function sM(t){for(var e=0;t>=wS;)e|=t&1,t>>=1;return t+e}function um(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;lM(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function lM(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function fm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function gc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function mc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function uM(t,e){var r=ro,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=i[h],m=n[h+1],g=i[h+1];i[h]=p+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=mc(t[m],t,d,p,0,e);d+=y,p-=y,p!==0&&(g=gc(t[d+p-1],t,m,g,g-1,e),g!==0&&(p<=g?c(d,p,m,g):v(d,p,m,g)))}function c(h,d,p,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=p,S=h;if(t[S++]=t[_++],--m===0){for(g=0;g<d;g++)t[S+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[S+g]=t[_+g];t[S+m]=o[y];return}for(var b=r,w,T,C;;){w=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],T++,w=0,--m===0){C=!0;break}}else if(t[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=mc(t[_],o,y,d,0,e),w!==0){for(g=0;g<w;g++)t[S+g]=o[y+g];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--m===0){C=!0;break}if(T=gc(o[y],t,_,m,0,e),T!==0){for(g=0;g<T;g++)t[S+g]=t[_+g];if(S+=T,_+=T,m-=T,m===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=ro||T>=ro);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[S+g]=t[_+g];t[S+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[S+g]=o[y+g]}}function v(h,d,p,m){var g=0;for(g=0;g<m;g++)o[g]=t[p+g];var y=h+d-1,_=m-1,S=p+m-1,b=0,w=0;if(t[S--]=t[y--],--d===0){for(b=S-(m-1),g=0;g<m;g++)t[b+g]=o[g];return}if(m===1){for(S-=d,y-=d,w=S+1,b=y+1,g=d-1;g>=0;g--)t[w+g]=t[b+g];t[S]=o[_];return}for(var T=r;;){var C=0,x=0,A=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,x=0,--d===0){A=!0;break}}else if(t[S--]=o[_--],x++,C=0,--m===1){A=!0;break}while((C|x)<T);if(A)break;do{if(C=d-mc(o[_],t,h,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,g=C-1;g>=0;g--)t[w+g]=t[b+g];if(d===0){A=!0;break}}if(t[S--]=o[_--],--m===1){A=!0;break}if(x=m-gc(t[y],o,0,m,m-1,e),x!==0){for(S-=x,_-=x,m-=x,w=S+1,b=_+1,g=0;g<x;g++)t[w+g]=o[b+g];if(m<=1){A=!0;break}}if(t[S--]=t[y--],--d===0){A=!0;break}T--}while(C>=ro||x>=ro);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),m===1){for(S-=d,y-=d,w=S+1,b=y+1,g=d-1;g>=0;g--)t[w+g]=t[b+g];t[S]=o[_]}else{if(m===0)throw new Error;for(b=S-(m-1),g=0;g<m;g++)t[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ll(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<wS){a=um(t,r,n,e),fm(t,r,n,r+a,e);return}var o=uM(t,e),s=sM(i);do{if(a=um(t,r,n,e),a<s){var l=i;l>s&&(l=s),fm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Et=1,To=2,ga=4,cm=!1;function yc(){cm||(cm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hm(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var fM=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hm}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Ll(n,hm)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=Et),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yc(),d.z=0),isNaN(d.z2)&&(yc(),d.z2=0),isNaN(d.zlevel)&&(yc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ge(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),fu;fu=ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Oo={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-Oo.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?Oo.bounceIn(t*2)*.5:Oo.bounceOut(t*2-1)*.5+.5}},Ls=Math.pow,Pn=Math.sqrt,cu=1e-8,TS=1e-4,vm=Pn(3),Os=1/3,Er=Vi(),$t=Vi(),xa=Vi();function Dn(t){return t>-cu&&t<cu}function xS(t){return t>cu||t<-cu}function qe(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function dm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function hu(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Dn(f)&&Dn(c))if(Dn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Dn(p)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(p>0){var y=Pn(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-Ls(-_,Os):_=Ls(_,Os),S<0?S=-Ls(-S,Os):S=Ls(S,Os);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Pn(f*f*f)),w=Math.acos(b)/3,T=Pn(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),g=(-s+T*(C+vm*Math.sin(w)))/(3*o),x=(-s+T*(C-vm*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),x>=0&&x<=1&&(a[h++]=x)}}return h}function CS(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Dn(o)){if(xS(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Dn(f))i[0]=-a/(2*o);else if(f>0){var c=Pn(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function vu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function AS(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,m,g;Er[0]=l,Er[1]=u;for(var y=0;y<1;y+=.05)$t[0]=qe(t,r,i,o,y),$t[1]=qe(e,n,a,s,y),m=Ai(Er,$t),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(v<TS);_++)d=c-v,p=c+v,$t[0]=qe(t,r,i,o,d),$t[1]=qe(e,n,a,s,d),m=Ai($t,Er),d>=0&&m<h?(c=d,h=m):(xa[0]=qe(t,r,i,o,p),xa[1]=qe(e,n,a,s,p),g=Ai(xa,Er),p<=1&&g<h?(c=p,h=g):v*=.5);return f&&(f[0]=qe(t,r,i,o,c),f[1]=qe(e,n,a,s,c)),Pn(h)}function cM(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=qe(t,r,i,o,d),m=qe(e,n,a,s,d),g=p-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=p,f=m}return c}function ft(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function pm(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function hM(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Dn(a)){if(xS(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Dn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Pn(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function DS(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function du(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function ES(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Er[0]=o,Er[1]=s;for(var v=0;v<1;v+=.05){$t[0]=ft(t,r,i,v),$t[1]=ft(e,n,a,v);var h=Ai(Er,$t);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<TS);d++){var p=u-f,m=u+f;$t[0]=ft(t,r,i,p),$t[1]=ft(e,n,a,p);var h=Ai($t,Er);if(p>=0&&h<c)u=p,c=h;else{xa[0]=ft(t,r,i,m),xa[1]=ft(e,n,a,m);var g=Ai(xa,Er);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=ft(t,r,i,u),l[1]=ft(e,n,a,u)),Pn(c)}function vM(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=ft(t,r,i,v),d=ft(e,n,a,v),p=h-s,m=d-l;u+=Math.sqrt(p*p+m*m),s=h,l=d}return u}var dM=/cubic-bezier\(([0-9,\.e ]+)\)/;function RS(t){var e=t&&dM.exec(t);if(e){var r=e[1].split(","),n=+dr(r[0]),i=+dr(r[1]),a=+dr(r[2]),o=+dr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:hu(0,n,a,1,l,s)&&qe(0,i,o,1,s[0])}}}var pM=(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||at,this.ondestroy=e.ondestroy||at,this.onrestart=e.onrestart||at,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=fe(e)?e:Oo[e]||RS(e)},t})(),MS=(function(){function t(e){this.value=e}return t})(),gM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new MS(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})(),Na=(function(){function t(e){this._list=new gM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new MS(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gm={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 gr(t){return t=Math.round(t),t<0?0:t>255?255:t}function mM(t){return t=Math.round(t),t<0?0:t>360?360:t}function $o(t){return t<0?0:t>1?1:t}function Ol(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?gr(parseFloat(e)/100*255):gr(parseInt(e,10))}function In(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?$o(parseFloat(e)/100):$o(parseFloat(e))}function _c(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 En(t,e,r){return t+(e-t)*r}function Ut(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function tv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var PS=new Na(20),ks=null;function ea(t,e){ks&&tv(ks,e),ks=PS.put(t,ks||e.slice())}function Ft(t,e){if(t){e=e||[];var r=PS.get(t);if(r)return tv(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gm)return tv(e,gm[n]),ea(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Ut(e,0,0,0,1);return}return Ut(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ea(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ut(e,0,0,0,1);return}return Ut(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ea(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ut(e,+u[0],+u[1],+u[2],1):Ut(e,0,0,0,1);f=In(u.pop());case"rgb":if(u.length>=3)return Ut(e,Ol(u[0]),Ol(u[1]),Ol(u[2]),u.length===3?f:In(u[3])),ea(t,e),e;Ut(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ut(e,0,0,0,1);return}return u[3]=In(u[3]),rv(u,e),ea(t,e),e;case"hsl":if(u.length!==3){Ut(e,0,0,0,1);return}return rv(u,e),ea(t,e),e;default:return}}Ut(e,0,0,0,1)}}function rv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=In(t[1]),i=In(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Ut(e,gr(_c(o,a,r+1/3)*255),gr(_c(o,a,r)*255),gr(_c(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function yM(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function nv(t,e){var r=Ft(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 Un(r,r.length===4?"rgba":"rgb")}}function _M(t){var e=Ft(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function IS(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=gr(En(o[0],s[0],l)),r[1]=gr(En(o[1],s[1],l)),r[2]=gr(En(o[2],s[2],l)),r[3]=$o(En(o[3],s[3],l)),r}}var SM=IS;function Nd(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ft(e[i]),s=Ft(e[a]),l=n-i,u=Un([gr(En(o[0],s[0],l)),gr(En(o[1],s[1],l)),gr(En(o[2],s[2],l)),$o(En(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var bM=Nd;function pu(t,e,r,n){var i=Ft(t);if(t)return i=yM(i),e!=null&&(i[0]=mM(fe(e)?e(i[0]):e)),r!=null&&(i[1]=In(fe(r)?r(i[1]):r)),n!=null&&(i[2]=In(fe(n)?n(i[2]):n)),Un(rv(i),"rgba")}function wM(t,e){var r=Ft(t);if(r&&e!=null)return r[3]=$o(e),Un(r,"rgba")}function Un(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 Xo(t,e){var r=Ft(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function TM(){return Un([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var mm=new Na(100);function iv(t){if(te(t)){var e=mm.get(t);return e||(e=nv(t,-.1),mm.put(t,e)),e}else if(ds(t)){var r=G({},t);return r.colorStops=oe(t.colorStops,function(n){return{offset:n.offset,color:nv(n.color,-.1)}}),r}return t}const xM=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:IS,fastMapToColor:SM,lerp:Nd,lift:nv,liftColor:iv,lum:Xo,mapToColor:bM,modifyAlpha:wM,modifyHSL:pu,parse:Ft,parseCssFloat:In,parseCssInt:Ol,random:TM,stringify:Un,toHex:_M},Symbol.toStringTag,{value:"Module"}));function CM(t){return t.type==="linear"}function AM(t){return t.type==="radial"}(function(){return typeof Buffer!="undefined"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var av=Array.prototype.slice;function jr(t,e,r){return(e-t)*r+t}function Sc(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=jr(e[a],r[a],n);return t}function DM(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=jr(e[o][s],r[o][s],n)}return t}function Ns(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function ym(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function EM(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function RM(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:av.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function kl(t){if(Tt(t)){var e=t.length;if(Tt(t[0])){for(var r=[],n=0;n<e;n++)r.push(av.call(t[n]));return r}return av.call(t)}return t}function Nl(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 MM(t){return Tt(t&&t[0])?2:1}var Bs=0,Bl=1,LS=2,xo=3,ov=4,sv=5,_m=6;function Sm(t){return t===ov||t===sv}function Fs(t){return t===Bl||t===LS}var no=[0,0,0,0],PM=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_m,l=r;if(Tt(r)){var u=MM(r);s=u,(u===1&&!Re(r[0])||u===2&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!ka(r))s=Bs;else if(te(r))if(!isNaN(+r))s=Bs;else{var f=Ft(r);f&&(l=f,s=xo)}else if(ds(r)){var c=G({},l);c.colorStops=oe(r.colorStops,function(h){return{offset:h.offset,color:Ft(h.color)}}),CM(r)?s=ov:AM(r)&&(s=sv),l=c}a===0?this.valType=s:(s!==this.valType||s===_m)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=fe(n)?n:Oo[n]||RS(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Sm(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?RM(v,h,i):u&&EM(v.colorStops,h.colorStops))}if(!s&&i!==sv&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Bs?n[f].additiveValue=n[f].value-d:i===xo?n[f].additiveValue=Ns([],n[f].value,d,-1):Fs(i)&&(n[f].additiveValue=i===Bl?Ns([],n[f].value,d,-1):ym([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===xo,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:v((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?no:e[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(Fs(a))a===Bl?Sc(y,h[i],d[i],g):DM(y,h[i],d[i],g);else if(Sm(a)){var _=h[i],S=d[i],b=a===ov;e[l]={type:b?"linear":"radial",x:jr(_.x,S.x,g),y:jr(_.y,S.y,g),colorStops:oe(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:jr(T.offset,x.offset,g),color:Nl(Sc([],T.color,x.color,g))}}),global:S.global},b?(e[l].x2=jr(_.x2,S.x2,g),e[l].y2=jr(_.y2,S.y2,g)):e[l].r=jr(_.r,S.r,g)}else if(u)Sc(y,h[i],d[i],g),n||(e[l]=Nl(y));else{var w=jr(h[i],d[i],g);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bs?e[n]=e[n]+i:r===xo?(Ft(e[n],no),Ns(no,no,i,1),e[n]=Nl(no)):r===Bl?Ns(e[n],e[n],i,1):r===LS&&ym(e[n],e[n],i,1)},t})(),Bd=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){uf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Pe(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new PM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===xo&&u&&(u=Nl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,kl(u),i),this._trackKeys.push(s)}l.addKeyframe(e,kl(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new pM({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,m=0;m<d.length;m++)if(d[m]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return oe(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=kl(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Pe(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function _a(){return new Date().getTime()}var IM=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=_a()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(fu(n),!r._paused&&r.update())}fu(n)},e.prototype.start=function(){this._running||(this._time=_a(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=_a(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=_a()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Bd(r,n.loop);return this.addAnimator(i),i},e})(Ur),LM=300,bc=ve.domSupported,wc=(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=oe(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),bm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wm=!1;function lv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function OM(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 Tc(t){t&&(t.zrByTouch=!0)}function kM(t,e){return Gt(t.dom,new NM(t,e),!0)}function OS(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 NM=(function(){function t(e,r){this.stopPropagation=at,this.stopImmediatePropagation=at,this.preventDefault=at,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),hr={mousedown:function(t){t=Gt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Gt(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=Gt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Gt(this.dom,t);var e=t.toElement||t.relatedTarget;OS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wm=!0,t=Gt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wm||(t=Gt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Gt(this.dom,t),Tc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),hr.mousemove.call(this,t),hr.mousedown.call(this,t)},touchmove:function(t){t=Gt(this.dom,t),Tc(t),this.handler.processGesture(t,"change"),hr.mousemove.call(this,t)},touchend:function(t){t=Gt(this.dom,t),Tc(t),this.handler.processGesture(t,"end"),hr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<LM&&hr.click.call(this,t)},pointerdown:function(t){hr.mousedown.call(this,t)},pointermove:function(t){lv(t)||hr.mousemove.call(this,t)},pointerup:function(t){hr.mouseup.call(this,t)},pointerout:function(t){lv(t)||hr.mouseout.call(this,t)}};R(["click","dblclick","contextmenu"],function(t){hr[t]=function(e){e=Gt(this.dom,e),this.trigger(t,e)}});var uv={pointermove:function(t){lv(t)||uv.mousemove.call(this,t)},pointerup:function(t){uv.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 BM(t,e){var r=e.domHandlers;ve.pointerEventsSupported?R(wc.pointer,function(n){Fl(e,n,function(i){r[n].call(t,i)})}):(ve.touchEventsSupported&&R(wc.touch,function(n){Fl(e,n,function(i){r[n].call(t,i),OM(e)})}),R(wc.mouse,function(n){Fl(e,n,function(i){i=kd(i),e.touching||r[n].call(t,i)})}))}function FM(t,e){ve.pointerEventsSupported?R(bm.pointer,r):ve.touchEventsSupported||R(bm.mouse,r);function r(n){function i(a){a=kd(a),OS(t,a.target)||(a=kM(t,a),e.domHandlers[n].call(t,a))}Fl(e,n,i,{capture:!0})}}function Fl(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,$R(t.domTarget,e,r,n)}function xc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&XR(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Tm=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),zM=(function(t){q(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Tm(r,hr),bc&&(i._globalHandlerScope=new Tm(document,uv)),BM(i,i._localHandlerScope),i}return e.prototype.dispose=function(){xc(this._localHandlerScope),bc&&xc(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,bc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?FM(this,n):xc(n)}},e})(Ur),kS=1;ve.hasGlobalWindow&&(kS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var gu=kS,fv=.4,cv="#333",hv="#ccc",HM="#eee",xm=Gi,Cm=5e-5;function Kn(t){return t>Cm||t<-Cm}var Qn=[],ta=[],Cc=Jt(),Ac=Math.abs,Xa=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return UM(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 Kn(this.rotation)||Kn(this.x)||Kn(this.y)||Kn(this.scaleX-1)||Kn(this.scaleY-1)||Kn(this.skewX)||Kn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(xm(n),this.invTransform=null);return}n=n||Jt(),r?this.getLocalTransform(n):xm(n),e&&(r?Di(n,e,n):gs(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Jt(),Hn(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qn);var n=Qn[0]<0?-1:1,i=Qn[1]<0?-1:1,a=((Qn[0]-n)*r+n)/Qn[0]||0,o=((Qn[1]-i)*r+i)/Qn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Jt(),Di(ta,e.invTransform,r),r=ta);var n=this.originX,i=this.originY;(n||i)&&(Cc[4]=n,Cc[5]=i,Di(ta,r,Cc),ta[4]-=n,ta[5]-=i,r=ta),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&bt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&bt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Ac(e[0]-1)>1e-10&&Ac(e[3]-1)>1e-10?Math.sqrt(Ac(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){mu(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&hf(r,r,u),r[4]+=n+f,r[5]+=i+c,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})(),UM=Xa.getLocalTransform,vf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mu(t,e){return nS(t,e,vf)}function Ir(t){zs||(zs=new Na(100)),t=t||Bn;var e=zs.get(t);return e||(e={font:t,strWidthCache:new Na(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:it.measureText("国",t).width,asciiCharWidth:it.measureText("a",t).width},zs.put(t,e)),e}var zs;function VM(t){if(!(Dc>=Am)){t=t||Bn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=it.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Dc=Am:i>2&&Dc++,e}}var Dc=0,Am=5;function NS(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=VM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Lr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=it.measureText(e,t.font).width,r.put(e,n)),n}function Dm(t,e,r,n){var i=Lr(Ir(e),t),a=df(e),o=Ba(0,i,r),s=Ei(0,a,n),l=new le(o,s,i,a);return l}function BS(t,e,r,n){var i=((t||"")+"").split(`
|
||
`),a=i.length;if(a===1)return Dm(i[0],e,r,n);for(var o=new le(0,0,0,0),s=0;s<i.length;s++){var l=Dm(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Ba(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Ei(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function df(t){return Ir(t).stWideCharWidth}function ki(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function FS(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ki(n[0],r.width),u+=ki(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Ec="__zr_normal__",Rc=vf.concat(["ignore"]),GM=kr(vf,function(t,e){return t[e]=!0,t},{ignore:!1}),ra={},WM=new le(0,0,0,0),Hs=[],zl=0,pf=1,gf=(function(){function t(e){this.id=Md(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=WM,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ra,n,v):FS(ra,n,v),a.x=ra.x,a.y=ra.y,o=ra.align,s=ra.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ki(h[0],v.width),p=ki(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new le(0,0,0,0);a.getLocalTransform(Hs),Hn(Hs,Hs),le.copy(y,v),y.applyTransform(Hs)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==g.fill||b!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=S,g.stroke=b,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Et,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()?hv:cv},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ft(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Un(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||{},G(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(ie(e))for(var n=e,i=Pe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Ec)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Rc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Ec,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Ec,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ge(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){uf("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Em(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Mm(this,n,l),l);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=zl,this.__dirty&=~Et),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=this._textContent,h=Em(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Mm(this,r,p),p);var m=this._textGuide;v&&v.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=zl,this.__dirty&=~Et)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ge(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ge(i,e),o=ge(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];G(r,a),a.textConfig&&(n=n||{},G(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==pf){var s=!(r&&i);r&&r.textConfig?(this.textConfig=G({},i?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Rc.length;f++){var c=Rc[f],v=a&&GM[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Xa,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(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|=Et;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new Bd(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ge(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Mc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Mc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Mc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=zl,e.__dirty=Et;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();ar(gf,Ur);ar(gf,Xa);function Mc(t,e,r,n,i){r=r||{};var a=[];zS(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Pc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function YM(t){return Tt(t[0])}function $M(t,e,r){if(Tt(e[r]))if(Tt(t[r])||(t[r]=[]),xt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Pc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(YM(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Pc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Pc(a,i,o);a.length=i.length}else t[r]=e[r]}function XM(t,e){return t===e||Tt(t)&&Tt(e)&&qM(t,e)}function qM(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 zS(t,e,r,n,i,a,o,s){for(var l=Pe(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!ie(a),d=t.animators,p=[],m=0;m<l.length;m++){var g=l[m],y=n[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(ie(y)&&!Tt(y)&&!ds(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}zS(t,g,r[g],y,i,a&&a[g],o,s)}else p.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),p.push(g))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(p);if(w){var T=ge(d,b);d.splice(T,1)}}}if(i.force||(p=ze(p,function(D){return!XM(n[D],r[D])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,x=void 0,A=void 0;if(s){x={},v&&(C={});for(var S=0;S<_;S++){var g=p[S];x[g]=r[g],v?C[g]=n[g]:r[g]=n[g]}}else if(v){A={};for(var S=0;S<_;S++){var g=p[S];A[g]=kl(r[g]),$M(r,n,g)}}var b=new Bd(r,!1,!1,c?ze(d,function(P){return P.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u==null?500:u,s?x:n,p).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Em(t,e,r,n){return!(r&&r.hoverLayer||n)||Rm(t)||e&&Rm(e)?zl:pf}function Rm(t){return t.type==="text"||t.type==="tspan"}function Mm(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var rt=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=ge(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ge(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new le(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(le.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(gf);rt.prototype.type="group";var Hl={},bi={};function jM(t){delete bi[t]}function ZM(t){if(!t)return!1;if(typeof t=="string")return Xo(t,1)<fv;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Xo(e[i].color,1);return r/=n,r<fv}return!1}var KM=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new fM,o=n.renderer||"canvas";Hl[o]||(o=Pe(Hl)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Hl[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ve.node&&!ve.worker&&!l?new zM(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ve.touchEventsSupported:!!f,v=44,h;c&&(h=ne(n.pointerSize,v)),this.handler=new SS(a,s,u,s.root,h),this.animation=new IM({stage:{update:l?null:function(){return i._flush(!1)}}}),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=ZM(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||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=_a(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=_a();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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 rt&&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,jM(this.id))},t})();function vv(t,e){var r=new KM(Md(),t,e);return bi[r.id]=r,r}function QM(t){t.dispose()}function JM(){for(var t in bi)bi.hasOwnProperty(t)&&bi[t].dispose();bi={}}function eP(t){return bi[t]}function HS(t,e){Hl[t]=e}var dv;function tP(t){if(typeof dv=="function")return dv(t)}function US(t){dv=t}var rP="6.1.0";const nP=Object.freeze(Object.defineProperty({__proto__:null,dispose:QM,disposeAll:JM,getElementSSRData:tP,getInstance:eP,init:vv,registerPainter:HS,registerSSRDataGetter:US,version:rP},Symbol.toStringTag,{value:"Module"}));var Pm=1e-4,yu=20;function iP(t){return t.replace(/^\s+|\s+$/g,"")}var It=Math.min,Ee=Math.max,Ze=Math.abs,Br=Math.round,rn=Math.floor,ms=Math.ceil,Wi=Math.pow,Ni=Math.log,qo=Math.LN10,aP=Math.PI,oP=Math.random;function _u(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var He=sP;function sP(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return pv(t,e,r)}function pv(t,e,r){return te(t)?lP(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function lP(t){return!!iP(t).match(/%$/)}function _e(t,e,r){return isNaN(e)?r?""+t:+t:(e=It(Ee(0,e),yu),t=(+t).toFixed(e),r?t:+t)}function uP(t,e,r){return e==null&&(e=10),_e(t,e,r)}function Fd(t){return t.sort(function(e,r){return e-r}),t}function Kr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Br(t*e)/e===t)return r}return VS(t)}function VS(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Ee(0,o-n)}function fP(t,e){var r=rn(Ni(t[1]-t[0])/qo),n=Br(Ni(Ze(e[1]-e[0]))/qo),i=It(Ee(-r+n,0),yu);return isFinite(i)?i:yu}function cP(t,e,r){var n=Ze(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Ni(2*Ze(r||1)*Ze(n))/qo,a=Ni(Ze(e))/qo,o=Ee(0,ms(-i+a));return isFinite(o)||(o=NaN),o}function hP(t,e,r){if(!t[e])return 0;var n=GS(t,r);return n[e]||0}function GS(t,e){var r=kr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Wi(10,e),i=oe(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=oe(i,function(h){return rn(h)}),s=kr(o,function(h,d){return h+d},0),l=oe(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return oe(o,function(h){return h/n})}function vP(t,e){var r=Ee(Kr(t),Kr(e)),n=t+e;return r>yu?n:_e(n,r)}var gv=Wi(2,53)-1;function zd(t){var e=aP*2;return(t%e+e)%e}function jo(t){return t>-Pm&&t<Pm}var dP=/^(?:(\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(te(t)){var e=dP.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(Br(t))}function Hd(t){return Wi(10,mf(t))}function mf(t){if(t===0)return 0;var e=rn(Ni(t)/qo);return t/Wi(10,e)>=10&&e++,e}var WS=2;function yf(t,e){var r=mf(t),n=Wi(10,r),i=t/n,a;return e===WS?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,_e(t,-r)}function pP(t,e){var r=(t.length-1)*e+1,n=rn(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function gP(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 i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Zo(t){var e=parseFloat(t);return e==t&&(e!==0||!te(t)||t.indexOf("x")<=0)?e:NaN}function YS(t){return!isNaN(Zo(t))}function $S(){return Br(oP()*9)}function XS(t,e){return e===0?t:XS(e,t%e)}function Im(t,e){return t==null?e:e==null?t:t*e/XS(t,e)}function Fr(t){return t!=null&&isFinite(t)}var mP="[ECharts] ",yP=typeof console!="undefined"&&console.warn&&console.log;function _P(t,e,r){yP&&console[t](mP+e)}function qS(t,e){_P("error",t)}function Dt(t){throw new Error(t)}function Lm(t,e,r){return(e-t)*r+t}var jS="series\0",SP="\0_ec_\0";function wt(t){return t instanceof Array?t:t==null?[]:[t]}function mv(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Om=["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 ys(t){return ie(t)&&!K(t)&&!(t instanceof Date)?t.value:t}function bP(t){return ie(t)&&!(t instanceof Array)}function wP(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ce();R(e,function(l,u){if(!ie(l)){e[u]=null;return}});var s=TP(t,o,r);return(n||i)&&xP(s,t,o,e),n&&CP(s,e),n||i?AP(s,e,i):a&&DP(s,e),EP(s),s}function TP(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||Ko(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function xP(t,e,r,n){R(n,function(i,a){if(!(!i||i.id==null)){var o=ko(i.id),s=r.get(o);if(s!=null){var l=t[s];Nr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function CP(t,e){R(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!Ko(r)&&!Ko(a)&&ZS("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function AP(t,e,r){R(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Ko(i.existing)||i.existing&&n.id!=null&&!ZS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function DP(t,e){R(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function EP(t){var e=ce();R(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),R(t,function(r){var n=r.newOption;Nr(!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={})}),R(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(ie(a)){if(o.name=a.name!=null?ko(a.name):i?i.name:jS+n,i)o.id=ko(i.id);else if(a.id!=null)o.id=ko(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function ZS(t,e,r){var n=Or(e[t],null),i=Or(r[t],null);return n!=null&&i!=null&&n===i}function ko(t){return Or(t,"")}function Or(t,e){return t==null?e:te(t)?t:Re(t)||au(t)?t+"":e}function Ud(t){var e=t.name;return!!(e&&e.indexOf(jS))}function Ko(t){return t&&t.id!=null&&ko(t.id).indexOf(SP)===0}function RP(t,e,r){R(t,function(n){var i=n.newOption;ie(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=MP(e,i,n.existing,r))})}function MP(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Bi(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return K(e.dataIndex)?oe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return K(e.name)?oe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function we(){var t="__ec_inner_"+PP++;return function(e){return e[t]||(e[t]={})}}var PP=$S();function Ic(t,e,r){var n=Vd(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=_s(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Vd(t,e){var r;if(te(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ce(),a={},o=!1;return R(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ge(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Zt={useDefault:!0,enableAll:!1,enableNone:!1};function _s(t,e,r,n){n=n||Zt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function IP(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function KS(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function LP(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function OP(t){return t==="auto"?ve.domSupported?"html":"richText":t||"html"}function QS(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Re(n)){var o=Lm(r||0,n,i);return _e(o,a?Math.max(Kr(r||0),Kr(n)):e)}else{if(te(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=Lm(h,d,i);s[c]=_e(o,a?Math.max(Kr(h),Kr(d)):e)}}return s}}function Xt(){return[1/0,-1/0]}function yv(t,e){nn(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function JS(t,e){nn(e)&&e<t[0]&&(t[0]=e)}function eb(t,e){nn(e)&&e>t[1]&&(t[1]=e)}function kP(t,e){Fa(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function nn(t){return t!=null&&isFinite(t)}function Fa(t,e){return nn(t)&&nn(e)&&t<=e}function NP(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function BP(t){Fa(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Gd(t,e,r){var n=ce(),i=0;R(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function FP(t){return t.value+""}function zP(t){return t+""}function HP(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function UP(t,e){return{seriesType:t,overallReset:e}}function Wd(t){return{overallReset:t}}var VP=".",Jn="___EC__COMPONENT__CONTAINER___",tb="___EC__EXTENDED_CLASS___";function Mr(t){var e={main:"",sub:""};if(t){var r=t.split(VP);e.main=r[0]||"",e.sub=r[1]||""}return e}function GP(t){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function WP(t){return!!(t&&t[tb])}function Yd(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return YP(n)?i=(function(a){q(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Pd(i,this)),G(i.prototype,r),i[tb]=!0,i.extend=this.extend,i.superCall=qP,i.superApply=jP,i.superClass=n,i}}function YP(t){return fe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function rb(t,e){t.extend=e.extend}var $P=Math.round(Math.random()*10);function XP(t){var e=["__\0is_clz",$P++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function qP(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 jP(t,e,r){return this.superClass.prototype[e].apply(t,r)}function _f(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){GP(i),n.prototype.type=i;var a=Mr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Jn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Jn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=Mr(n),a=[],o=e[i.main];return o&&o[Jn]?R(o,function(s,l){l!==Jn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Mr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return R(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Mr(n),a=e[i.main];return a&&a[Jn]};function r(n){var i=e[n.main];return(!i||!i[Jn])&&(i=e[n.main]={},i[Jn]=!0),i}}function Qo(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&ge(i,l)>=0||a&&ge(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var ZP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KP=Qo(ZP),QP=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return KP(this,e,r)},t})(),_v=new Na(50);function JP(t){if(typeof t=="string"){var e=_v.get(t);return e&&e.image}else return t}function nb(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=_v.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Sf(e)&&a.pending.push(o)):(e=it.loadImage(t,km,km),e.__zrImageSrc=t,_v.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function km(){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 Sf(t){return t&&t.width&&t.height}var Lc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eI(t,e,r,n,i){var a={};return ib(a,t,e,r,n,i),a.text}function ib(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
||
`);a=ab(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ob(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
||
`),t.isTruncated=s}function ab(t,e,r,n){n=n||{};var i=G({},n);r=ne(r,"..."),i.maxIterations=ne(n.maxIterations,2);var a=i.minChar=ne(n.minChar,0),o=i.fontMeasureInfo=Ir(e),s=o.asciiCharWidth;i.placeholder=ne(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Lr(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function ob(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Lr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?tI(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Lr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function tI(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=NS(r,t.charCodeAt(i));return i}function rI(t,e,r,n){var i=$d(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=df(u),v=ne(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&r!=null&&(p=r-s);var m=e.height;m==null&&n!=null&&(m=n-l);var g;p!=null&&(a==="break"||a==="breakAll")?g=i?sb(i,e.font,p,a==="breakAll",0).lines:[]:g=i?i.split(`
|
||
`):[];var y=g.length*v;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/v);d=d||g.length>_,g=g.slice(0,_),y=g.length*v}if(i&&f&&p!=null)for(var S=ab(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<g.length;w++)ob(b,g[w],S),g[w]=b.textLine,d=d||b.isTruncated;for(var T=m,C=0,x=Ir(u),w=0;w<g.length;w++)C=Math.max(Lr(x,g[w]),C);p==null&&(p=C);var A=p;return T+=l,A+=s,{lines:g,height:m,outerWidth:A,outerHeight:T,lineHeight:v,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var nI=(function(){function t(){}return t})(),Nm=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),iI=(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 aI(t,e,r,n,i){var a=new iI,o=$d(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Lc.lastIndex=0,p;(p=Lc.exec(o))!=null;){var m=p.index;m>d&&Oc(a,o.substring(d,m),e,h),Oc(a,p[2],e,h,p[1]),d=Lc.lastIndex}d<o.length&&Oc(a,o.substring(d,o.length),e,h);var g=[],y=0,_=0,S=v==="truncate",b=e.lineOverflow==="truncate",w={};function T(se,L,Y){se.width=L,se.lineHeight=Y,y+=Y,_=Math.max(_,L)}e:for(var C=0;C<a.lines.length;C++){for(var x=a.lines[C],A=0,D=0,P=0;P<x.tokens.length;P++){var M=x.tokens[P],I=M.styleName&&e.rich[M.styleName]||{},k=M.textPadding=I.padding,O=k?k[1]+k[3]:0,N=M.font=I.font||e.font;M.contentHeight=df(N);var U=ne(I.height,M.contentHeight);if(M.innerHeight=U,k&&(U+=k[0]+k[2]),M.height=U,M.lineHeight=Mn(I.lineHeight,e.lineHeight,U),M.align=I&&I.align||i,M.verticalAlign=I&&I.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var W=a.lines.length;P>0?(x.tokens=x.tokens.slice(0,P),T(x,D,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<W;break e}var X=I.width,Q=X==null||X==="auto";if(typeof X=="string"&&X.charAt(X.length-1)==="%")M.percentWidth=X,g.push(M),M.contentWidth=Lr(Ir(N),M.text);else{if(Q){var J=I.backgroundColor,j=J&&J.image;j&&(j=JP(j),Sf(j)&&(M.width=Math.max(M.width,j.width*U/j.height)))}var z=S&&f!=null?f-D:null;z!=null&&z<M.width?!Q||z<O?(M.text="",M.width=M.contentWidth=0):(ib(w,M.text,z-O,N,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=Lr(Ir(N),M.text)):M.contentWidth=Lr(Ir(N),M.text)}M.width+=O,D+=M.width,I&&(A=Math.max(A,M.lineHeight))}T(x,D,A)}a.outerWidth=a.width=ne(f,_),a.outerHeight=a.height=ne(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<g.length;C++){var M=g[C],re=M.percentWidth;M.width=parseInt(re,10)/100*a.width}return a}function Oc(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ki(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
||
`),u=!0),n.accumWidth=d}else{var p=sb(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=e.split(`
|
||
`));for(var m=Ir(l),g=0;g<f.length;g++){var y=f[g],_=new nI;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Lr(m,y),!g&&!u){var S=(s[s.length-1]||(s[0]=new Nm)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new Nm([_]))}}function oI(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var sI=kr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lI(t){return oI(t)?!!sI[t]:!0}function sb(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=Ir(e),v=0;v<t.length;v++){var h=t.charAt(v);if(h===`
|
||
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=NS(c,h.charCodeAt(0)),p=n?!1:!lI(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Bm(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;le.set(Fm,Ba(r,o,i),Ei(n,s,a),o,s),le.intersect(e,Fm,null,zm);var l=zm.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ba(l.x,l.width,i,!0),t.baseY=Ei(l.y,l.height,a,!0)}}var Fm=new le(0,0,0,0),zm={outIntersectRect:{},clamp:!0};function $d(t){return t!=null?t+="":t=""}function uI(t){var e=$d(t.text),r=t.font,n=Lr(Ir(r),e),i=df(r);return Sv(t,n,i,null)}function Sv(t,e,r,n){var i=new le(Ba(t.x||0,e,t.textAlign),Ei(t.y||0,r,t.textBaseline),e,r),a=n!=null?n:lb(t)?t.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function lb(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var bv="__zr_style_"+Math.round(Math.random()*10),Ri={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ri[bv]=!0;var Hm=["z","z2","invisible"],fI=["invisible"],Ss=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&cI(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new le(0,0,0,0)),n?le.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new le(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:G(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=To,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&To)},e.prototype.styleUpdated=function(){this.__dirty&=~To},e.prototype.createStyle=function(r){return ps(Ri,r)},e.prototype.useStyle=function(r){r[bv]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[bv]},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,Hm)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===pf,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=Pe(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=Pe(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?fI:Hm,h=0;h<m.length;h++){var d=m[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return G(r,n),r},e.prototype.getAnimationStyleProps=function(){return bf},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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Et|To})(),e})(gf),kc=new le(0,0,0,0),Nc=new le(0,0,0,0);function cI(t,e,r){return kc.copy(t.getBoundingRect()),t.transform&&kc.applyTransform(t.transform),Nc.width=e,Nc.height=r,!kc.intersect(Nc)}var qt=Math.min,jt=Math.max,Bc=Math.sin,Fc=Math.cos,ei=Math.PI*2,Us=Vi(),Vs=Vi(),Gs=Vi();function Um(t,e,r,n,i,a){i[0]=qt(t,r),i[1]=qt(e,n),a[0]=jt(t,r),a[1]=jt(e,n)}var Vm=[],Gm=[];function hI(t,e,r,n,i,a,o,s,l,u){var f=CS,c=qe,v=f(t,r,i,o,Vm);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,Vm[h]);l[0]=qt(d,l[0]),u[0]=jt(d,u[0])}v=f(e,n,a,s,Gm);for(var h=0;h<v;h++){var p=c(e,n,a,s,Gm[h]);l[1]=qt(p,l[1]),u[1]=jt(p,u[1])}l[0]=qt(t,l[0]),u[0]=jt(t,u[0]),l[0]=qt(o,l[0]),u[0]=jt(o,u[0]),l[1]=qt(e,l[1]),u[1]=jt(e,u[1]),l[1]=qt(s,l[1]),u[1]=jt(s,u[1])}function vI(t,e,r,n,i,a,o,s){var l=DS,u=ft,f=jt(qt(l(t,r,i),1),0),c=jt(qt(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=qt(t,i,v),o[1]=qt(e,a,h),s[0]=jt(t,i,v),s[1]=jt(e,a,h)}function dI(t,e,r,n,i,a,o,s,l){var u=Cn,f=An,c=Math.abs(i-a);if(c%ei<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Us[0]=Fc(i)*r+t,Us[1]=Bc(i)*n+e,Vs[0]=Fc(a)*r+t,Vs[1]=Bc(a)*n+e,u(s,Us,Vs),f(l,Us,Vs),i=i%ei,i<0&&(i=i+ei),a=a%ei,a<0&&(a=a+ei),i>a&&!o?a+=ei:i<a&&o&&(i+=ei),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Gs[0]=Fc(h)*r+t,Gs[1]=Bc(h)*n+e,u(s,Gs,s),f(l,Gs,l))}var xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ti=[],ri=[],Tr=[],hn=[],xr=[],Cr=[],zc=Math.min,Hc=Math.max,ni=Math.cos,ii=Math.sin,Yr=Math.abs,wv=Math.PI,bn=wv*2,Uc=typeof Float32Array!="undefined",io=[];function Vc(t){var e=Math.round(t/wv*1e8)/1e8;return e%2*wv}function ub(t,e){var r=Vc(t[0]);r<0&&(r+=bn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=bn?i=r+bn:e&&r-i>=bn?i=r-bn:!e&&r>i?i=r+(bn-Vc(r-i)):e&&r<i&&(i=r-(bn-Vc(i-r))),t[0]=r,t[1]=i}var Fn=(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=Yr(n/gu/e)||0,this._uy=Yr(n/gu/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(xe.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=Yr(e-this._xi),i=Yr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(xe.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(xe.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(xe.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),io[0]=i,io[1]=a,ub(io,o),i=io[0],a=io[1];var s=a-i;return this.addData(xe.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ni(a)*n+e,this._yi=ii(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(xe.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xe.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Uc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Uc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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,Uc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Tr[0]=Tr[1]=xr[0]=xr[1]=Number.MAX_VALUE,hn[0]=hn[1]=Cr[0]=Cr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case xe.M:r=i=e[o++],n=a=e[o++],xr[0]=i,xr[1]=a,Cr[0]=i,Cr[1]=a;break;case xe.L:Um(r,n,e[o],e[o+1],xr,Cr),r=e[o++],n=e[o++];break;case xe.C:hI(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],xr,Cr),r=e[o++],n=e[o++];break;case xe.Q:vI(r,n,e[o++],e[o++],e[o],e[o+1],xr,Cr),r=e[o++],n=e[o++];break;case xe.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(i=ni(h)*c+u,a=ii(h)*v+f),dI(u,f,c,v,h,d,p,xr,Cr),r=ni(d)*c+u,n=ii(d)*v+f;break;case xe.R:i=r=e[o++],a=n=e[o++];var m=e[o++],g=e[o++];Um(i,a,i+m,a+g,xr,Cr);break;case xe.Z:r=i,n=a;break}Cn(Tr,Tr,xr),An(hn,hn,Cr)}return o===0&&(Tr[0]=Tr[1]=hn[0]=hn[1]=0),new le(Tr[0],Tr[1],hn[0]-Tr[0],hn[1]-Tr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var p=-1;switch(h){case xe.M:a=s=e[v++],o=l=e[v++];break;case xe.L:{var m=e[v++],g=e[v++],y=m-a,_=g-o;(Yr(y)>n||Yr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=m,o=g);break}case xe.C:{var S=e[v++],b=e[v++],m=e[v++],g=e[v++],w=e[v++],T=e[v++];p=cM(a,o,S,b,m,g,w,T,10),a=w,o=T;break}case xe.Q:{var S=e[v++],b=e[v++],m=e[v++],g=e[v++];p=vM(a,o,S,b,m,g,10),a=m,o=g;break}case xe.A:var C=e[v++],x=e[v++],A=e[v++],D=e[v++],P=e[v++],M=e[v++],I=M+P;v+=1,d&&(s=ni(P)*A+C,l=ii(P)*D+x),p=Hc(A,D)*zc(bn,Math.abs(M)),a=ni(I)*A+C,o=ii(I)*D+x;break;case xe.R:{s=a=e[v++],l=o=e[v++];var k=e[v++],O=e[v++];p=k*2+O*2;break}case xe.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,m=0,g=0,y,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==xe.L&&_>0&&(e.lineTo(S,b),_=0),T){case xe.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case xe.L:{c=n[w++],v=n[w++];var x=Yr(c-u),A=Yr(v-f);if(x>i||A>a){if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+c*P,f*(1-P)+v*P);break e}m+=D}e.lineTo(c,v),u=c,f=v,_=0}else{var M=x*x+A*A;M>_&&(S=c,b=v,_=M)}break}case xe.C:{var I=n[w++],k=n[w++],O=n[w++],N=n[w++],U=n[w++],W=n[w++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;vu(u,I,O,U,P,ti),vu(f,k,N,W,P,ri),e.bezierCurveTo(ti[1],ri[1],ti[2],ri[2],ti[3],ri[3]);break e}m+=D}e.bezierCurveTo(I,k,O,N,U,W),u=U,f=W;break}case xe.Q:{var I=n[w++],k=n[w++],O=n[w++],N=n[w++];if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;du(u,I,O,P,ti),du(f,k,N,P,ri),e.quadraticCurveTo(ti[1],ri[1],ti[2],ri[2]);break e}m+=D}e.quadraticCurveTo(I,k,O,N),u=O,f=N;break}case xe.A:var X=n[w++],Q=n[w++],J=n[w++],j=n[w++],z=n[w++],re=n[w++],se=n[w++],L=!n[w++],Y=J>j?J:j,B=Yr(J-j)>.001,F=z+re,H=!1;if(h){var D=d[g++];m+D>y&&(F=z+re*(y-m)/D,H=!0),m+=D}if(B&&e.ellipse?e.ellipse(X,Q,J,j,se,z,F,L):e.arc(X,Q,Y,z,F,L),H)break e;C&&(s=ni(z)*J+X,l=ii(z)*j+Q),u=ni(F)*J+X,f=ii(F)*j+Q;break;case xe.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var Z=n[w++],ue=n[w++];if(h){var D=d[g++];if(m+D>y){var ee=y-m;e.moveTo(c,v),e.lineTo(c+zc(ee,Z),v),ee-=Z,ee>0&&e.lineTo(c+Z,v+zc(ee,ue)),ee-=ue,ee>0&&e.lineTo(c+Hc(Z-ee,0),v+ue),ee-=Z,ee>0&&e.lineTo(c,v+Hc(ue-ee,0));break e}m+=D}e.rect(c,v,Z,ue);break;case xe.Z:if(h){var D=d[g++];if(m+D>y){var P=(y-m)/D;e.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break e}m+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=xe,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function na(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function pI(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=AS(t,e,r,n,i,a,o,s,u,f,null);return v<=c/2}function gI(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=ES(t,e,r,n,i,a,s,l,null);return f<=u/2}var Wm=Math.PI*2;function Qr(t){return t%=Wm,t<0&&(t+=Wm),t}var ao=Math.PI*2;function mI(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%ao<1e-4)return!0;if(a){var c=n;n=Qr(i),i=Qr(c)}else n=Qr(n),i=Qr(i);n>i&&(i+=ao);var v=Math.atan2(l,s);return v<0&&(v+=ao),v>=n&&v<=i||v+ao>=n&&v+ao<=i}function Zr(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var vn=Fn.CMD,ai=Math.PI*2,yI=1e-4;function _I(t,e){return Math.abs(t-e)<yI}var pt=[-1,-1,-1],Yt=[-1,-1];function SI(){var t=Yt[0];Yt[0]=Yt[1],Yt[1]=t}function bI(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=hu(e,n,a,s,u,pt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var m=pt[p],g=m===0||m===1?.5:1,y=qe(t,r,i,o,m);y<l||(v<0&&(v=CS(e,n,a,s,Yt),Yt[1]<Yt[0]&&v>1&&SI(),h=qe(e,n,a,s,Yt[0]),v>1&&(d=qe(e,n,a,s,Yt[1]))),v===2?m<Yt[0]?c+=h<e?g:-g:m<Yt[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Yt[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function wI(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=hM(e,n,a,s,pt);if(l===0)return 0;var u=DS(e,n,a);if(u>=0&&u<=1){for(var f=0,c=ft(e,n,a,u),v=0;v<l;v++){var h=pt[v]===0||pt[v]===1?.5:1,d=ft(t,r,i,pt[v]);d<o||(pt[v]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=pt[0]===0||pt[0]===1?.5:1,d=ft(t,r,i,pt[0]);return d<o?0:a<e?h:-h}}function TI(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);pt[0]=-l,pt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ai-1e-4){n=0,i=ai;var f=a?1:-1;return o>=pt[0]+t&&o<=pt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=ai,i+=ai);for(var v=0,h=0;h<2;h++){var d=pt[h];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=ai+p),(p>=n&&p<=i||p+ai>=n&&p+ai<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function fb(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=a[d++],m=d===1;switch(p===vn.M&&d>1&&(r||(s+=Zr(l,u,f,c,n,i))),m&&(l=a[d],u=a[d+1],f=l,c=u),p){case vn.M:f=a[d++],c=a[d++],l=f,u=c;break;case vn.L:if(r){if(na(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Zr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vn.C:if(r){if(pI(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=bI(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vn.Q:if(r){if(gI(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=wI(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vn.A:var g=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*S+y,m?(f=v,c=h):s+=Zr(l,u,v,h,n,i);var C=(n-g)*S/_+g;if(r){if(mI(g,y,S,b,b+w,T,e,C,i))return!0}else s+=TI(g,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+g,u=Math.sin(b+w)*S+y;break;case vn.R:f=l=a[d++],c=u=a[d++];var x=a[d++],A=a[d++];if(v=f+x,h=c+A,r){if(na(f,c,v,c,e,n,i)||na(v,c,v,h,e,n,i)||na(v,h,f,h,e,n,i)||na(f,h,f,c,e,n,i))return!0}else s+=Zr(v,c,v,h,n,i),s+=Zr(f,h,f,c,n,i);break;case vn.Z:if(r){if(na(l,u,f,c,e,n,i))return!0}else s+=Zr(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!_I(u,c)&&(s+=Zr(l,u,f,c,n,i)||0),s!==0}function xI(t,e,r){return fb(t,0,!1,e,r)}function CI(t,e,r,n){return fb(t,e,!0,r,n)}var cb=Te({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ri),AI={style:Te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bf.style)},Gc=vf.concat(["invisible","culling","z","z2","zlevel","parent"]),Me=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Gc.length;++s)i[Gc[s]]=this[Gc[s]];i.__dirty|=Et}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Pe(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(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(te(r)){var n=Xo(r,0);return n>.5?cv:n>.2?HM:hv}else if(r)return hv}return cv},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Xo(r,0)<fv;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~ga},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 Fn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ga)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CI(s,l/u,r,n)))return!0}if(this.hasFill())return xI(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ga,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:G(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ga)},e.prototype.createStyle=function(r){return ps(cb,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==pf){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=G({},i.shape),G(u,n.shape)):(u=G({},a?this.shape:i.shape),G(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=Pe(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return AI},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){q(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return de(r.style)},o.prototype.getDefaultShape=function(){return de(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Et|To|ga})(),e})(Ss),DI=Te({strokeFirst:!0,font:Bn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},cb),Su=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return lb(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ps(DI,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=uI(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Ss);Su.prototype.type="tspan";var EI=Te({x:0,y:0},Ri),RI={style:Te({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bf.style)};function MI(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var un=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ps(EI,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=MI(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return RI},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new le(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ss);un.prototype.type="image";function PI(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Sa=Math.round;function hb(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Sa(n*2)===Sa(i*2)&&(t.x1=t.x2=wi(n,s,!0)),Sa(a*2)===Sa(o*2)&&(t.y1=t.y2=wi(a,s,!0))),t}}function vb(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=wi(n,s,!0),t.y=wi(i,s,!0),t.width=Math.max(wi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(wi(i+o,s,!1)-t.y,o===0?0:1)),t}}function wi(t,e,r){if(!e)return t;var n=Sa(t*2);return(n+Sa(e))%2===0?n/2:(n+(r?1:-1))/2}var II=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),LI={},Ge=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=vb(LI,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?PI(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Me);Ge.prototype.type="rect";var Ym={fill:"#000"},$m=2,Ar={},OI={style:Te({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},bf.style)},Ke=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ym,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,zI(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 le(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Ym},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return G(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Pe(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},G(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OI},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||Bn,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Bm(Ar,a.overflowRect,o,s,l,u),o=Ar.baseX,s=Ar.baseY;var f=Jm(r),c=rI(f,r,Ar.outerWidth,Ar.outerHeight),v=Wc(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Ei(s,c.contentHeight,u);if(v||i){var S=Ba(o,p,l),b=Ei(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=g/2,i&&(y=Qm(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,x=Km("fill"in r?r.fill:(C=!0,a.fill)),A=Zm("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(w=$m,T=!0,a.stroke):null),D=r.textShadowBlur>0,P=0;P<m.length;P++){var M=this._getOrCreateChild(Su),I=M.createStyle();M.useStyle(I),I.text=m[P],I.x=y,I.y=_,I.textAlign=l,I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=A,I.fill=x,A&&(I.lineWidth=r.lineWidth||w,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=n,qm(I,r),_+=g,M.setBoundingRect(Sv(I,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Bm(Ar,n.overflowRect,o,s,i,a),o=Ar.baseX,s=Ar.baseY;var l=Jm(r),u=aI(l,r,Ar.outerWidth,Ar.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Ba(o,c,i),p=Ei(s,v,a),m=d,g=p;h&&(m+=h[3],g+=h[0]);var y=m+f;Wc(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,x=b.width,A=0,D=m,P=y,M=T-1,I=void 0;A<T&&(I=w[A],!I.align||I.align==="left");)this._placeToken(I,r,C,g,D,"left",_),x-=I.width,D+=I.width,A++;for(;M>=0&&(I=w[M],I.align==="right");)this._placeToken(I,r,C,g,P,"right",_),x-=I.width,P-=I.width,M--;for(D+=(f-(D-m)-(y-P)-x)/2;A<=M;)I=w[A],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,A++;g+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&Wc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Qm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Su),m=p.createStyle();p.useStyle(m);var g=this._defaultStyle,y=!1,_=0,S=!1,b=Km("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),w=Zm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!g.autoStroke||y)?(_=$m,S=!0,g.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,T&&(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||Bn,m.opacity=Mn(u.opacity,n.opacity,1),qm(m,u),w&&(m.lineWidth=Mn(u.lineWidth,n.lineWidth,_),m.lineDash=ne(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=w),b&&(m.fill=b),p.setBoundingRect(Sv(m,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,m;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Ge),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=ne(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(un),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=ne(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||m).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Mn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return FI(r)&&(n=[r.fontStyle,r.fontWeight,BI(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dr(n)||r.textFont||r.font},e})(Ss),kI={left:!0,right:1,center:1},NI={top:1,bottom:1,middle:1},Xm=["fontStyle","fontWeight","fontSize","fontFamily"];function BI(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Dd+"px":t+"px"}function qm(t,e){for(var r=0;r<Xm.length;r++){var n=Xm[r],i=e[n];i!=null&&(t[n]=i)}}function FI(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function zI(t){return jm(t),R(t.rich,jm),t}function jm(t){if(t){t.font=Ke.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||kI[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||NI[r]?r:"top";var n=t.padding;n&&(t.padding=cf(t.padding))}}function Zm(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Km(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Qm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Jm(t){var e=t.text;return e!=null&&(e+=""),e}function Wc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var me=we(),HI=function(t,e,r,n){if(n){var i=me(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=me(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},bs="undefined",db="series",pb=ce(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),zt="original",ht="arrayRows",or="objectRows",br="keyedColumns",Ln="typedArray",gb="unknown",mr="column",Yi="row",UI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],mb=(function(){function t(e){R(UI,function(r){this[r]=Ae(e[r],e)},this)}return t})();function VI(t,e){return e.mainType===db?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var e0=1,t0={},yb=we(),Xd=we(),qd=0,wf=1,Tf=2,rr=["emphasis","blur","select"],bu=["normal","emphasis","blur","select"],GI=10,WI=9,Mi="highlight",Ul="downplay",wu="select",Tv="unselect",Tu="toggleSelect",jd="selectchanged";function ia(t){return t!=null&&t!=="none"}function xf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function _b(t){xf(t,"emphasis",Tf)}function Sb(t){t.hoverState===Tf&&xf(t,"normal",qd)}function Zd(t){xf(t,"blur",wf)}function bb(t){t.hoverState===wf&&xf(t,"normal",qd)}function YI(t){t.selected=!0}function $I(t){t.selected=!1}function r0(t,e,r){e(t,r)}function fn(t,e,r){r0(t,e,r),t.isGroup&&t.traverse(function(n){r0(n,e,r)})}function n0(t,e){switch(e){case"emphasis":t.hoverState=Tf;break;case"normal":t.hoverState=qd;break;case"blur":t.hoverState=wf;break;case"select":t.selected=!0}}function XI(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function qI(t,e,r,n){var i=r&&ge(r,"select")>=0,a=!1;if(t instanceof Me){var o=yb(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ia(s)||ia(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=G({},n),u=G({},u),u.fill=s):!ia(u.fill)&&ia(s)?(a=!0,n=G({},n),u=G({},u),u.fill=iv(s)):!ia(u.stroke)&&ia(l)&&(a||(n=G({},n),u=G({},u)),u.stroke=iv(l)),n.style=u}}if(n&&n.z2==null){a||(n=G({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f!=null?f:GI)}return n}function jI(t,e,r){if(r&&r.z2==null){r=G({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:WI)}return r}function ZI(t,e,r){var n=ge(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:XI(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Yc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return qI(this,t,e,r);if(t==="blur")return ZI(this,t,r);if(t==="select")return jI(this,t,r)}return r}function KI(t){t.stateProxy=Yc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Yc),r&&(r.stateProxy=Yc)}function i0(t,e){!Cb(t,e)&&!t.__highByOuter&&fn(t,_b)}function a0(t,e){!Cb(t,e)&&!t.__highByOuter&&fn(t,Sb)}function xu(t,e){t.__highByOuter|=1<<(e||0),fn(t,_b)}function Cu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&fn(t,Sb)}function QI(t){fn(t,Zd)}function wb(t){fn(t,bb)}function Tb(t){fn(t,YI)}function xb(t){fn(t,$I)}function Cb(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ab(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Xd(a),s=VI(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){bb(u)}),l&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function xv(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&wb(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Zd(m)}),Tt(e))a(u.getData(),e);else if(ie(e))for(var d=Pe(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),Xd(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Cv(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Xd(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Zd(a)})}}}function JI(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Bi(i,e);a=(K(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=me(o);xv(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&xv(n,f,c,r)}}}function Kd(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(me(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function eL(t,e,r){var n=me(t),i=Kd(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Cv(n.componentMainType,n.componentIndex,r),R(a,function(s){return i0(s,e)})):(xv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Cv(n.componentMainType,n.componentIndex,r),i0(t,e))}function tL(t,e,r){Ab(r);var n=me(t),i=Kd(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?R(i,function(a){return a0(a,e)}):a0(t,e)}function rL(t,e,r){if(Ev(e)){var n=e.dataType,i=t.getData(n),a=Bi(i,e);K(a)||(a=[a]),t[e.type===Tu?"toggleSelect":e.type===wu?"select":"unselect"](a,n)}}function o0(t){var e=t.getAllData();R(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Tb(a):xb(a)})})}function nL(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();R(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Au(t,e,r){Db(t,!0),fn(t,KI),aL(t,e,r)}function iL(t){Db(t,!1)}function Du(t,e,r,n){n?iL(t):Au(t,e,r)}function aL(t,e,r){var n=me(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var s0=["emphasis","blur","select"],oL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Av(t,e,r,n){r=r||"itemStyle";for(var i=0;i<s0.length;i++){var a=s0[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[oL[r]]()}}function Db(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 Dv(t){return!!(t&&t.__highDownDispatcher)}function sL(t){var e=t0[t];return e==null&&e0<=32&&(e=t0[t]=e0++),e}function Ev(t){var e=t.type;return e===wu||e===Tv||e===Tu}function l0(t){var e=t.type;return e===Mi||e===Ul}function lL(t){var e=yb(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 aa=Fn.CMD,uL=[[],[],[]],u0=Math.sqrt,fL=Math.atan2;function cL(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=aa.M,c=aa.C,v=aa.L,h=aa.R,d=aa.A,p=aa.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case p:a=2;break;case d:var m=e[4],g=e[5],y=u0(e[0]*e[0]+e[1]*e[1]),_=u0(e[2]*e[2]+e[3]*e[3]),S=fL(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],bt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],bt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=uL[l];b[0]=r[o++],b[1]=r[o++],bt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var $c=Math.sqrt,Ws=Math.sin,Ys=Math.cos,oo=Math.PI;function f0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Rv(t,e){return(t[0]*e[0]+t[1]*e[1])/(f0(t)*f0(e))}function c0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Rv(t,e))}function h0(t,e,r,n,i,a,o,s,l,u,f){var c=l*(oo/180),v=Ys(c)*(t-r)/2+Ws(c)*(e-n)/2,h=-1*Ws(c)*(t-r)/2+Ys(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=$c(d),s*=$c(d));var p=(i===a?-1:1)*$c((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,m=p*o*h/s,g=p*-s*v/o,y=(t+r)/2+Ys(c)*m-Ws(c)*g,_=(e+n)/2+Ws(c)*m+Ys(c)*g,S=c0([1,0],[(v-m)/o,(h-g)/s]),b=[(v-m)/o,(h-g)/s],w=[(-1*v-m)/o,(-1*h-g)/s],T=c0(b,w);if(Rv(b,w)<=-1&&(T=oo),Rv(b,w)>=1&&(T=0),T<0){var C=Math.round(T/oo*1e6)/1e6;T=oo*2+C%2*oo}f.addData(u,y,_,o,s,S,T,c,a)}var hL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,vL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dL(t){var e=new Fn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Fn.CMD,l=t.match(hL);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(vL)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=r,x=n,A=void 0,D=void 0;switch(c){case"l":r+=h[m++],n+=h[m++],v=s.L,e.addData(v,r,n);break;case"L":r=h[m++],n=h[m++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[m++],n+=h[m++],v=s.M,e.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[m++],n=h[m++],v=s.M,e.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[m++],v=s.L,e.addData(v,r,n);break;case"H":r=h[m++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[m++],v=s.L,e.addData(v,r,n);break;case"V":n=h[m++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":v=s.C,e.addData(v,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":g=r,y=n,A=e.len(),D=e.data,o===s.C&&(g+=r-D[A-4],y+=n-D[A-3]),v=s.C,C=h[m++],x=h[m++],r=h[m++],n=h[m++],e.addData(v,g,y,C,x,r,n);break;case"s":g=r,y=n,A=e.len(),D=e.data,o===s.C&&(g+=r-D[A-4],y+=n-D[A-3]),v=s.C,C=r+h[m++],x=n+h[m++],r+=h[m++],n+=h[m++],e.addData(v,g,y,C,x,r,n);break;case"Q":C=h[m++],x=h[m++],r=h[m++],n=h[m++],v=s.Q,e.addData(v,C,x,r,n);break;case"q":C=h[m++]+r,x=h[m++]+n,r+=h[m++],n+=h[m++],v=s.Q,e.addData(v,C,x,r,n);break;case"T":g=r,y=n,A=e.len(),D=e.data,o===s.Q&&(g+=r-D[A-4],y+=n-D[A-3]),r=h[m++],n=h[m++],v=s.Q,e.addData(v,g,y,r,n);break;case"t":g=r,y=n,A=e.len(),D=e.data,o===s.Q&&(g+=r-D[A-4],y+=n-D[A-3]),r+=h[m++],n+=h[m++],v=s.Q,e.addData(v,g,y,r,n);break;case"A":_=h[m++],S=h[m++],b=h[m++],w=h[m++],T=h[m++],C=r,x=n,r=h[m++],n=h[m++],v=s.A,h0(C,x,r,n,w,T,_,S,b,v,e);break;case"a":_=h[m++],S=h[m++],b=h[m++],w=h[m++],T=h[m++],C=r,x=n,r+=h[m++],n+=h[m++],v=s.A,h0(C,x,r,n,w,T,_,S,b,v,e);break}}(c==="z"||c==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var Eb=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Me);function Rb(t){return t.setData!=null}function Mb(t,e){var r=dL(t),n=G({},e);return n.buildPath=function(i){var a=Rb(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){cL(r,i),this.dirtyShape()},n}function pL(t,e){return new Eb(Mb(t,e))}function gL(t,e){var r=Mb(t,e),n=(function(i){q(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(Eb);return n}function mL(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Me(e);return o.createPathProxy(),o.buildPath=function(s){if(Rb(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var yL=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),ws=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yL},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})(Me);ws.prototype.type="circle";var _L=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Cf=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new _L},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(Me);Cf.prototype.type="ellipse";var Pb=Math.PI,Xc=Pb*2,oi=Math.sin,oa=Math.cos,SL=Math.acos,lt=Math.atan2,v0=Math.abs,No=Math.sqrt,Co=Math.max,Dr=Math.min,cr=1e-4;function bL(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<cr))return v=(f*(e-a)-c*(t-i))/v,[t+v*l,e+v*u]}function $s(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/No(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,p=n+c,m=(v+d)/2,g=(h+p)/2,y=d-v,_=p-h,S=y*y+_*_,b=i-a,w=v*p-d*h,T=(_<0?-1:1)*No(Co(0,b*b*S-w*w)),C=(w*_-y*T)/S,x=(-w*y-_*T)/S,A=(w*_+y*T)/S,D=(-w*y+_*T)/S,P=C-m,M=x-g,I=A-m,k=D-g;return P*P+M*M>I*I+k*k&&(C=A,x=D),{cx:C,cy:x,x0:-f,y0:-c,x1:C*(i/b-1),y1:x*(i/b-1)}}function wL(t){var e;if(K(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 TL(t,e){var r,n=Co(e.r,0),i=Co(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,v=!!e.clockwise,h=v0(u-l),d=h>Xc&&h%Xc;if(d>cr&&(h=d),!(n>cr))t.moveTo(f,c);else if(h>Xc-cr)t.moveTo(f+n*oa(l),c+n*oi(l)),t.arc(f,c,n,l,u,!v),i>cr&&(t.moveTo(f+i*oa(u),c+i*oi(u)),t.arc(f,c,i,u,l,v));else{var p=void 0,m=void 0,g=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,x=void 0,A=void 0,D=void 0,P=void 0,M=void 0,I=void 0,k=n*oa(l),O=n*oi(l),N=i*oa(u),U=i*oi(u),W=h>cr;if(W){var X=e.cornerRadius;X&&(r=wL(X),p=r[0],m=r[1],g=r[2],y=r[3]);var Q=v0(n-i)/2;if(_=Dr(Q,g),S=Dr(Q,y),b=Dr(Q,p),w=Dr(Q,m),x=T=Co(_,S),A=C=Co(b,w),(T>cr||C>cr)&&(D=n*oa(u),P=n*oi(u),M=i*oa(l),I=i*oi(l),h<Pb)){var J=bL(k,O,M,I,D,P,N,U);if(J){var j=k-J[0],z=O-J[1],re=D-J[0],se=P-J[1],L=1/oi(SL((j*re+z*se)/(No(j*j+z*z)*No(re*re+se*se)))/2),Y=No(J[0]*J[0]+J[1]*J[1]);x=Dr(T,(n-Y)/(L+1)),A=Dr(C,(i-Y)/(L-1))}}}if(!W)t.moveTo(f+k,c+O);else if(x>cr){var B=Dr(g,x),F=Dr(y,x),H=$s(M,I,k,O,n,B,v),Z=$s(D,P,N,U,n,F,v);t.moveTo(f+H.cx+H.x0,c+H.cy+H.y0),x<T&&B===F?t.arc(f+H.cx,c+H.cy,x,lt(H.y0,H.x0),lt(Z.y0,Z.x0),!v):(B>0&&t.arc(f+H.cx,c+H.cy,B,lt(H.y0,H.x0),lt(H.y1,H.x1),!v),t.arc(f,c,n,lt(H.cy+H.y1,H.cx+H.x1),lt(Z.cy+Z.y1,Z.cx+Z.x1),!v),F>0&&t.arc(f+Z.cx,c+Z.cy,F,lt(Z.y1,Z.x1),lt(Z.y0,Z.x0),!v))}else t.moveTo(f+k,c+O),t.arc(f,c,n,l,u,!v);if(!(i>cr)||!W)t.lineTo(f+N,c+U);else if(A>cr){var B=Dr(p,A),F=Dr(m,A),H=$s(N,U,D,P,i,-F,v),Z=$s(k,O,M,I,i,-B,v);t.lineTo(f+H.cx+H.x0,c+H.cy+H.y0),A<C&&B===F?t.arc(f+H.cx,c+H.cy,A,lt(H.y0,H.x0),lt(Z.y0,Z.x0),!v):(F>0&&t.arc(f+H.cx,c+H.cy,F,lt(H.y0,H.x0),lt(H.y1,H.x1),!v),t.arc(f,c,i,lt(H.cy+H.y1,H.cx+H.x1),lt(Z.cy+Z.y1,Z.cx+Z.x1),v),B>0&&t.arc(f+Z.cx,c+Z.cy,B,lt(Z.y1,Z.x1),lt(Z.y0,Z.x0),!v))}else t.lineTo(f+N,c+U),t.arc(f,c,i,u,l,v)}t.closePath()}}}var xL=(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})(),$i=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xL},e.prototype.buildPath=function(r,n){TL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Me);$i.prototype.type="sector";var CL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Af=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Me);Af.prototype.type="ring";function AL(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)Cn(f,f,t[v]),An(c,c,t[v]);Cn(f,f,n[0]),An(c,c,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(cS(t[v]));continue}else l=t[v-1],u=t[v+1];hS(a,u,l),Pl(a,a,e);var p=ou(d,l),m=ou(d,u),g=p+m;g!==0&&(p/=g,m/=g),Pl(o,a,-p),Pl(s,a,m);var y=jh([],d,o),_=jh([],d,s);n&&(An(y,y,f),Cn(y,y,c),An(_,_,f),Cn(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Ib(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=AL(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var DL=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Df=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DL},e.prototype.buildPath=function(r,n){Ib(r,n,!0)},e})(Me);Df.prototype.type="polygon";var EL=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),qa=(function(t){q(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 EL},e.prototype.buildPath=function(r,n){Ib(r,n,!1)},e})(Me);qa.prototype.type="polyline";var RL={},ML=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),an=(function(t){q(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 ML},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=hb(RL,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Me);an.prototype.type="line";var At=[],PL=(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 d0(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?dm:qe)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?dm:qe)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?pm:ft)(t.x1,t.cpx1,t.x2,e),(r?pm:ft)(t.y1,t.cpy1,t.y2,e)]}var Ef=(function(t){q(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 PL},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(du(i,l,o,v,At),l=At[1],o=At[2],du(a,u,s,v,At),u=At[1],s=At[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(vu(i,l,f,o,v,At),l=At[1],f=At[2],o=At[3],vu(a,u,c,s,v,At),u=At[1],c=At[2],s=At[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return d0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=d0(this.shape,r,!0);return vS(n,n)},e})(Me);Ef.prototype.type="bezier-curve";var IL=(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})(),Ts=(function(t){q(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 IL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e})(Me);Ts.prototype.type="arc";var Lb=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Me.prototype.getBoundingRect.call(this)},e})(Me),Ob=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Qd=(function(t){q(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e})(Ob),kb=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return e})(Ob),qc=Math.min,LL=Math.max,Xs=Math.abs,si=[0,0],li=[0,0],tt=yS(),qs=tt.minTv,js=tt.maxTv,Nb=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new he;for(var n=0;n<2;n++)this._axes[n]=new he;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);he.sub(i[0],n[1],n[0]),he.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&he.set(r,0,0),tt.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!tt.negativeSize&&he.copy(r,i?tt.useDir?tt.dirMinTv:qs:js),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,si),e._getProjMinMaxOnAxis(o,r._corners,li),tt.negativeSize||si[1]<li[0]||si[0]>li[1]){if(a=!1,tt.negativeSize||n)return a;var l=Xs(li[0]-si[1]),u=Xs(si[0]-li[1]);qc(l,u)>js.len()&&(l<u?he.scale(js,s,-l*i):he.scale(js,s,u*i))}else if(!n){var l=Xs(li[0]-si[1]),u=Xs(si[0]-li[1]);(tt.useDir||qc(l,u)<qs.len())&&((l<u||!tt.bidirectional)&&(he.scale(qs,s,l*i),tt.useDir&&tt.calcDirMTV()),(l>=u||!tt.bidirectional)&&(he.scale(qs,s,-u*i),tt.useDir&&tt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=qc(f,s),l=LL(f,l)}n[0]=s+tt.touchThreshold,n[1]=l-tt.touchThreshold,tt.negativeSize=n[1]<n[0]},t})(),Bb=0,OL=1,kL=2,NL=1,Vl=0,BL=[],Fb=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=OL,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._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new le(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(BL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Ss),FL=we();function zL(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ne(n.duration,200),f=ne(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),fe(c)&&(c=c(r,i)),fe(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Jd(t,e,r,n,i,a,o){var s=!1,l;fe(i)?(o=a,a=i,i=null):ie(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=zL(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Lt(t,e,r,n,i,a){Jd("update",t,e,r,n,i,a)}function er(t,e,r,n,i,a){Jd("enter",t,e,r,n,i,a)}function Ca(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 Eu(t,e,r,n,i,a){Ca(t)||Jd("leave",t,e,r,n,i,a)}function p0(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Eu(t,{style:{opacity:0}},e,r,n)}function zb(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||p0(i,e,r,n)}):p0(t,e,r,n)}function Hb(t){FL(t).oldStyle=t.style}var Mv={},xn=["x","y"],za=["width","height"],Ub=0,Vb=1,ep=2;function Gb(t){return Me.extend(t)}var HL=gL;function Wb(t,e){return HL(t,e)}function sr(t,e){Mv[t]=e}function Yb(t){if(Mv.hasOwnProperty(t))return Mv[t]}function Rf(t,e,r,n){var i=pL(t,e);return r&&(n==="center"&&(r=$b(r,i.getBoundingRect())),rp(i,r)),i}function tp(t,e,r){var n=new un({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle($b(e,a))}}});return n}function $b(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Xb=mL;function rp(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Jo(t,e){return hb(t,t,{lineWidth:e}),t}function UL(t,e){return vb(t,t,e),t}var VL=wi;function qb(t,e){for(var r=Gi([]);t&&t!==e;)Di(r,t.getLocalTransform(),r),t=t.parent;return r}function np(t,e,r){return e&&!Tt(e)&&(e=Xa.getLocalTransform(e)),r&&(e=Hn([],e)),bt([],t,e)}function GL(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Ze(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Ze(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=np(a,e,r),Ze(a[0])>Ze(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function g0(t){return!t.isGroup}function WL(t){return t.shape!=null}function jb(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){g0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return WL(o)&&(s.shape=de(o.shape)),s}var a=n(t);e.traverse(function(o){if(g0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,r,me(o).dataIndex)}}})}function Zb(t,e){return oe(t,function(r){var n=r[0];n=Ee(n,e.x),n=It(n,e.x+e.width);var i=r[1];return i=Ee(i,e.y),i=It(i,e.y+e.height),[n,i]})}function Kb(t,e){var r=Ee(t.x,e.x),n=It(t.x+t.width,e.x+e.width),i=Ee(t.y,e.y),a=It(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Mf(t,e,r){var n=G({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Te(i,r),new un(n)):Rf(t.replace("path://",""),n,r,"center")}function YL(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Qb(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Qb(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=jc(f,c,l,u);if($L(v))return!1;var h=t-i,d=e-a,p=jc(h,d,l,u)/v;if(p<0||p>1)return!1;var m=jc(h,d,f,c)/v;return!(m<0||m>1)}function jc(t,e,r,n){return t*n-r*e}function $L(t){return t<=1e-6&&t>=-1e-6}function Ru(t,e,r,n,i){return e==null||(Re(e)?Ie[0]=Ie[1]=Ie[2]=Ie[3]=e:(Ie[0]=e[0],Ie[1]=e[1],Ie[2]=e[2],Ie[3]=e[3]),n&&(Ie[0]=Ee(0,Ie[0]),Ie[1]=Ee(0,Ie[1]),Ie[2]=Ee(0,Ie[2]),Ie[3]=Ee(0,Ie[3])),r&&(Ie[0]=-Ie[0],Ie[1]=-Ie[1],Ie[2]=-Ie[2],Ie[3]=-Ie[3]),m0(t,Ie,"x","width",3,1,i&&i[0]||0),m0(t,Ie,"y","height",0,2,i&&i[1]||0)),t}var Ie=[0,0,0,0];function m0(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Ee(0,It(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Ze(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Pf(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=te(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&R(Pe(l),function(f){Mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=me(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Te({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Pv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function ip(t,e){if(t)if(K(t))for(var r=0;r<t.length;r++)Pv(t[r],e);else Pv(t,e)}function ap(t){return!t||Ze(t[1])<Zs&&Ze(t[2])<Zs||Ze(t[0])<Zs&&Ze(t[3])<Zs}var Zs=1e-5;function es(t,e){return t?le.copy(t,e):e.clone()}function op(t,e){return e?gs(t||Jt(),e):void 0}function Jb(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function XL(t){var e=-1/0,r=1/0;Pv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function ew(t,e,r){tw(t,e,r,-1/0)}function tw(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Ee(tw(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Ee(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function qL(t){return t.animation={duration:0},t}function jL(t,e){return e?gs(Ao.transform,e):Gi(Ao.transform),Ao.decomposeTransform(),mu(t,Ao),t}var Ao=new Xa;Ao.transform=Jt();function ZL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}sr("circle",ws);sr("ellipse",Cf);sr("sector",$i);sr("ring",Af);sr("polygon",Df);sr("polyline",qa);sr("rect",Ge);sr("line",an);sr("bezierCurve",Ef);sr("arc",Ts);const KL=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ts,BezierCurve:Ef,BoundingRect:le,Circle:ws,CompoundPath:Lb,Ellipse:Cf,Group:rt,HOVER_LAYER_FOR_INCREMENTAL:ep,HOVER_LAYER_FROM_THRESHOLD:Vb,HOVER_LAYER_NO:Ub,Image:un,IncrementalDisplayable:Fb,Line:an,LinearGradient:Qd,OrientedBoundingRect:Nb,Path:Me,Point:he,Polygon:Df,Polyline:qa,RadialGradient:kb,Rect:Ge,Ring:Af,Sector:$i,Text:Ke,WH:za,XY:xn,applyTransform:np,calcZ2Range:XL,clipPointsByRect:Zb,clipRectByRect:Kb,createIcon:Mf,decomposeTransform:jL,ensureCopyRect:es,ensureCopyTransform:op,expandOrShrinkRect:Ru,extendPath:Wb,extendShape:Gb,getCurrentCanvasPainter:ZL,getShapeClass:Yb,getTransform:qb,groupTransition:jb,initProps:er,isBoundingRectAxisAligned:ap,isElementRemoved:Ca,lineLineIntersect:Qb,linePolygonIntersect:YL,makeImage:tp,makePath:Rf,mergePath:Xb,payloadDisableAnimation:qL,registerShape:sr,removeElement:Eu,removeElementWithFadeOut:zb,resizePath:rp,retrieveZInfo:Jb,setTooltipConfig:Pf,subPixelOptimize:VL,subPixelOptimizeLine:Jo,subPixelOptimizeRect:UL,transformDirection:GL,traverseElements:ip,traverseUpdateZ:ew,updateProps:Lt},Symbol.toStringTag,{value:"Module"}));var If={};function rw(t,e){for(var r=0;r<rr.length;r++){var n=rr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Iv(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=fe(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<rr.length;u++){var f=rr[u],c=e[f];l[f]=ne(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Lf(t,e,r,n){r=r||If;for(var i=t instanceof Ke,a=!1,o=0;o<bu.length;o++){var s=e[bu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Ke,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Iv(r,e),f=e.normal,c=!!f.getShallow("show"),v=on(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||t.setTextConfig(y0(f,r,!1));for(var o=0;o<rr.length;o++){var h=rr[o],s=e[h];if(s){var d=l.ensureState(h),p=!!ne(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=on(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var m=t.ensureState(h);m.textConfig=y0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(kf(l).setLabelText=function(g){var y=Iv(r,e,g);rw(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Of(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<rr.length;n++){var i=rr[n];r[i]=t.getModel([i,e])}return r}function on(t,e,r,n,i){var a={};return QL(a,t,r,n,i),e&&G(a,e),a}function y0(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ne(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function QL(t,e,r,n,i){r=r||If;var a=e.ecModel,o=a&&a.option.textStyle,s=JL(e),l;if(s){l={};var u="richInheritPlainLabel",f=ne(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);w0(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,m=e.get("minMargin");if(m!=null)m=Re(m)?m/2:0,p.margin=[m,m,m,m],p.__marginType=ba.minMargin;else{var g=e.get("textMargin");g!=null&&(p.margin=cf(g),p.__marginType=ba.textMargin)}w0(t,e,o,null,null,r,n,i,!0,!1)}function JL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||If).rich;if(r){e=e||{};for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var _0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],S0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],b0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function w0(t,e,r,n,i,a,o,s,l,u){r=!o&&r||If;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=ne(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var d=ne(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=ne(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var m=ne(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<_0.length;g++){var y=_0[g],_=i!==!1&&n?Mn(e.getShallow(y),n.getShallow(y),r[y]):ne(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<S0.length;g++){var y=S0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!l||!a.disableBox){for(var g=0;g<b0.length;g++){var y=b0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function e2(t,e){var r=e&&e.getModel("textStyle");return dr([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 kf=we();function t2(t,e,r,n,i){var a=kf(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=ne(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=QS(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=Iv({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);rw(t,v)}t.percent=0,(a.prevValue==null?er:Lt)(t,{percent:1},n,e,null,u)}var ba={minMargin:1,textMargin:2},r2=["textStyle","color"],Zc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Kc=new Ke,n2=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(r2):null)},t.prototype.getFont=function(){return e2({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<Zc.length;n++)r[Zc[n]]=this.getShallow(Zc[n]);return Kc.useStyle(r),Kc.update(),Kc.getBoundingRect()},t})(),nw=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],i2=Qo(nw),a2=(function(){function t(){}return t.prototype.getLineStyle=function(e){return i2(this,e)},t})(),iw=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o2=Qo(iw),s2=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return o2(this,e,r)},t})(),Le=(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){be(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(de(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(!ve.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();Yd(Le);XP(Le);ar(Le,a2);ar(Le,s2);ar(Le,QP);ar(Le,n2);var l2=Math.round(Math.random()*10);function Nf(t){return[t||"",l2++].join("_")}function u2(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Mr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Mr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function f2(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(R(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),R(d.successor,p?g:m)}R(v,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){v[y]=!0,m(y)}};function r(a){var o={},s=[];return R(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),R(c,function(v){ge(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);ge(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return R(a,function(l){ge(o,l)>=0&&s.push(l)}),s}}function c2(t,e){return be(be({},t,!0),e,!0)}const h2={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:". "}}}},v2={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 Mu="ZH",sp="EN",Aa=sp,Gl={},lp={},aw=ve.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Aa).toUpperCase();return t.indexOf(Mu)>-1?Mu:Aa})():Aa;function up(t,e){t=t.toUpperCase(),lp[t]=new Le(e),Gl[t]=e}function d2(t){if(te(t)){var e=Gl[t.toUpperCase()]||{};return t===Mu||t===sp?de(e):be(de(e),de(Gl[Aa]),!1)}else return be(de(t),de(Gl[Aa]),!1)}function p2(t){return lp[t]}function g2(){return lp[Aa]}up(sp,h2);up(Mu,v2);var m2=null;function St(){return m2}function ow(t,e){var r=St(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Pu(t){var e=t.brk;return e?e.breaks:[]}function Iu(t){var e=t.brk;return e?e.hasBreaks():!1}var fp=1e3,cp=fp*60,Bo=cp*60,Kt=Bo*24,T0=Kt*365,y2={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Wl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},_2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ks="{yyyy}-{MM}-{dd}",x0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ks,hour:Ks+" "+Wl.hour,minute:Ks+" "+Wl.minute,second:Ks+" "+Wl.second,millisecond:_2},kt=["year","month","day","hour","minute","second","millisecond"],S2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function b2(t){return!te(t)&&!fe(t)?w2(t):t}function w2(t){t=t||{};var e={},r=!0;return R(kt,function(n){r&&(r=t[n]==null)}),R(kt,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=kt[s],u=ie(a)&&!K(a)?a[l]:a,f=void 0;K(u)?(f=u.slice(),o=f[0]||""):te(u)?(o=u,f=[o]):(o==null?o=Wl[n]:y2[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function gt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Fo(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 T2(t){return t===Fo(t)}function x2(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xs(t,e,r,n){var i=ln(t),a=i[sw(r)](),o=i[hp(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[vp(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[dp(r)](),c=(f-1)%12+1,v=i[pp(r)](),h=i[gp(r)](),d=i[mp(r)](),p=f>=12?"pm":"am",m=p.toUpperCase(),g=n instanceof Le?n:p2(n||aw)||g2(),y=g.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,gt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,gt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,gt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,gt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,gt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,gt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,gt(d,3)).replace(/{S}/g,d+"")}function C2(t,e,r,n,i){var a=null;if(te(r))a=r;else if(fe(r)){var o={time:t.time,level:t.time?t.time.level:0},s=St();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Da(t.value,i);a=r[f][f][0]}}return xs(new Date(t.value),a,i,n)}function Da(t,e){var r=ln(t),n=r[hp(e)]()+1,i=r[vp(e)](),a=r[dp(e)](),o=r[pp(e)](),s=r[gp(e)](),l=r[mp(e)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Lu(t,e,r){switch(e){case"year":t[lw(r)](0);case"month":t[uw(r)](1);case"day":t[fw(r)](0);case"hour":t[cw(r)](0);case"minute":t[hw(r)](0);case"second":t[vw(r)](0)}return t}function sw(t){return t?"getUTCFullYear":"getFullYear"}function hp(t){return t?"getUTCMonth":"getMonth"}function vp(t){return t?"getUTCDate":"getDate"}function dp(t){return t?"getUTCHours":"getHours"}function pp(t){return t?"getUTCMinutes":"getMinutes"}function gp(t){return t?"getUTCSeconds":"getSeconds"}function mp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function A2(t){return t?"setUTCFullYear":"setFullYear"}function lw(t){return t?"setUTCMonth":"setMonth"}function uw(t){return t?"setUTCDate":"setDate"}function fw(t){return t?"setUTCHours":"setHours"}function cw(t){return t?"setUTCMinutes":"setMinutes"}function hw(t){return t?"setUTCSeconds":"setSeconds"}function vw(t){return t?"setUTCMilliseconds":"setMilliseconds"}function D2(t,e,r,n,i,a,o,s){var l=new Ke({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function yp(t){if(!YS(t))return te(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function _p(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 Cs=cf;function Lv(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&dr(f)?f:"-"}function a(f){return Fr(f)}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 xs(l,n,r)}if(e==="ordinal")return au(t)?i(t):Re(t)&&a(t)?t+"":"-";var u=Zo(t);return a(u)?yp(u):au(t)?i(t):typeof t=="boolean"?t+"":"-"}var C0=["a","b","c","d","e","f","g"],Qc=function(t,e){return"{"+t+(e==null?"":e)+"}"};function Sp(t,e,r){K(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=C0[a];t=t.replace(Qc(o),Qc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Qc(C0[l],s),r?yt(u):u)}return t}function dw(t,e){var r=te(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function E2(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
||
yyyy`);var n=ln(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",gt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",gt(a%100+"",2)).replace("dd",gt(s,2)).replace("d",s).replace("hh",gt(l,2)).replace("h",l).replace("mm",gt(u,2)).replace("m",u).replace("ss",gt(f,2)).replace("s",f).replace("SSS",gt(c,3)),t}function R2(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Fi(t,e){return e=e||"transparent",te(t)?t:ie(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function A0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Yl={},Jc={},Bf=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Yl),this._normalMasterList=n(Jc);function n(i,a){var o=[];return R(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){R(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Yl[e]=r;return}Jc[e]=r},t.get=function(e){return Jc[e]||Yl[e]},t})();function M2(t){return!!Yl[t]}var P2=1,pw=2;function I2(t){gw.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var gw=ce();function mw(t){var e=t.getShallow("coord",!0),r=P2;if(e==null){var n=gw.get(t.type);n&&n.getCoord2&&(r=pw,e=n.getCoord2(t))}return{coord:e,from:r}}var Ea=0,$l=1,L2=2;function O2(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Ea;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=$l,a||(i=Ea)):n==="box"&&(i=L2,!a&&!M2(r)&&(i=Ea))}return{coordSysType:r,kind:i}}function k2(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=O2(e),o=a.kind,s=a.coordSysType;if(i&&o!==$l&&(o=$l,s=r),o===Ea||s!==r)return Ea;var l=n(r,e);return l?(o===$l?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):Ea}var Xl=R,N2=["left","right","top","bottom","width","height"],Qs=[["width","left","right"],["height","top","bottom"]];function bp(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(v?-v.y+f.y:0);d=o+m,d>i||l.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var zo=bp;Ue(bp,"vertical");Ue(bp,"horizontal");function B2(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function F2(t,e){var r=Ff(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Do.point)a=r.refPoint,i=sn(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=K(o)?o:[o,o];i=sn(n,r.refContainer),a=r.boxCoordFrom===pw?r.refPoint:[He(s[0],i.width)+i.x,He(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function z2(t,e){var r=F2(t,e),n=r.viewRect,i=r.center,a=t.get("radius");K(a)||(a=[0,a]);var o=He(n.width,e.getWidth()),s=He(n.height,e.getHeight()),l=Math.min(o,s),u=He(a[0],l/2),f=He(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function sn(t,e,r){r=Cs(r||0);var n=e.width,i=e.height,a=He(t.left,n),o=He(t.top,i),s=He(t.right,n),l=He(t.bottom,i),u=He(t.width,n),f=He(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new le((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Do={rect:1,point:2};function Ff(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=mw(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Do.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Do.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Do.rect),a===Do.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function ts(t){var e=t.layoutMode||t.constructor.layoutMode;return ie(e)?e:e?{type:e}:null}function zn(t,e,r){var n=r&&r.ignoreSize;!K(n)&&(n=[n,n]);var i=o(Qs[0],0),a=o(Qs[1],1);l(Qs[0],t,i),l(Qs[1],t,a);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Xl(u,function(y){h[y]=t[y]}),Xl(u,function(y){Mt(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Mt(c,g)&&Mt(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Xl(u,function(v){f[v]=c[v]})}}function As(t){return H2({},t)}function H2(t,e){return e&&t&&Xl(N2,function(r){Mt(e,r)&&(t[r]=e[r])}),t}var U2=we(),Se=(function(t){q(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Nf("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=ts(this),a=i?As(r):{},o=n.getTheme();be(r,o.get(this.mainType)),be(r,this.getDefaultOption()),i&&zn(r,a,i)},e.prototype.mergeOption=function(r,n){be(this.option,r,!0);var i=ts(this);i&&zn(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!WP(r))return r.defaultOption;var n=U2(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=be(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return _s(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return B2(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Le);rb(Se,Le);_f(Se);u2(Se);f2(Se,V2);function V2(t){var e=[];return R(Se.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=oe(e,function(r){return Mr(r).main}),t!=="dataset"&&ge(e,"dataset")<=0&&e.unshift("dataset"),e}var ae={color:{},darkColor:{},size:{}},Ne=ae.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(Ne,{primary:Ne.neutral80,secondary:Ne.neutral70,tertiary:Ne.neutral60,quaternary:Ne.neutral50,disabled:Ne.neutral20,border:Ne.neutral30,borderTint:Ne.neutral20,borderShade:Ne.neutral40,background:Ne.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ne.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ne.neutral70,axisLineTint:Ne.neutral40,axisTick:Ne.neutral70,axisTickMinor:Ne.neutral60,axisLabel:Ne.neutral70,axisSplitLine:Ne.neutral15,axisMinorSplitLine:Ne.neutral05});for(var ui in Ne)if(Ne.hasOwnProperty(ui)){var D0=Ne[ui];ui==="theme"?ae.darkColor.theme=Ne.theme.slice():ui==="highlight"?ae.darkColor.highlight="rgba(255,231,130,0.4)":ui.indexOf("accent")===0?ae.darkColor[ui]=pu(D0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ae.darkColor[ui]=pu(D0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ae.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var yw="";typeof navigator!="undefined"&&(yw=navigator.platform||"");var sa="rgba(0, 0, 0, 0.2)",_w=ae.color.theme[0],G2=pu(_w,null,null,.9);const Sw={darkMode:"auto",colorBy:"series",color:ae.color.theme,gradientColor:[G2,_w],aria:{decal:{decals:[{color:sa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yw.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 nt={Must:1,Might:2,Not:3},bw=we();function W2(t){bw(t).datasetMap=ce()}function Y2(t,e,r){var n={},i=wp(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=bw(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),R(t,function(p,m){var g=ie(p)?p:t[m]={name:p};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(t,function(p,m){var g=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[g],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[g],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,m,g){for(var y=0;y<g;y++)p.push(m+y)}function d(p){var m=p.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function $2(t,e,r){var n={},i=wp(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===or||a===br)&&R(o,function(f,c){(ie(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=Tw(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var m=p===nt.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&v[f.n]===nt.Not)&&(f.n=h),g(f)&&v[f.n]!==nt.Not)return f;m||(p===nt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function wp(t){var e=t.get("data",!0);if(!e)return _s(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Zt).models[0]}function X2(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:_s(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Zt).models}function ww(t,e){return Tw(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Tw(t,e,r,n,i,a){var o,s=5;if(xt(t))return nt.Not;var l,u;if(n){var f=n[a];ie(f)?(l=f.name,u=f.type):te(f)&&(l=f)}if(u!=null)return u==="ordinal"?nt.Must:nt.Not;if(e===ht){var c=t;if(r===Yi){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=S(d[a]))!=null)return o}}else if(e===or){var p=t;if(!l)return nt.Not;for(var h=0;h<p.length&&h<s;h++){var m=p[h];if(m&&(o=S(m[l]))!=null)return o}}else if(e===br){var g=t;if(!l)return nt.Not;var v=g[l];if(!v||xt(v))return nt.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(e===zt)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=ys(m);if(!K(_))return nt.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=te(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?nt.Might:nt.Not;if(w&&b!=="-")return nt.Must}return nt.Not}var q2=ce();function j2(t,e,r){var n=q2.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var E0=we();we();var Tp=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=wt(this.get("color",!0)),a=this.get("colorLayer",!0);return K2(this,E0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){Q2(this,E0)},t})();function Z2(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 K2(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:Z2(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function Q2(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Js,so,R0,M0="\0_ec_inner",J2=1,xp=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Le(a),this._locale=new Le(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=L0(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,L0(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?R0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ce(),u=n&&n.replaceMergeMainTypeMap;W2(this),R(r,function(c,v){c!=null&&(Se.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?de(c):be(i[v],c,!0))}),u&&u.each(function(c,v){Se.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(c){var v=j2(this,c,wt(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=wP(h,v,d);RP(p,c,Se),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_;R(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",x=Se.getClass(c,S.keyInfo.subType,!C);if(!x)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===x)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var A=G({componentIndex:b},S.keyInfo);w=new x(T,this,this,A),G(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Js(this)}this._seriesIndices||Js(this)},e.prototype.getOption=function(){var r=de(this.option);return R(r,function(n,i){if(Se.hasClass(i)){for(var a=wt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ko(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[M0],r},e.prototype.setTheme=function(r){this._theme=new Le(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],R(wt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=P0("id",a,s):o!=null?l=P0("name",o,s):l=ze(s,function(u){return!!u}),I0(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):ze(this._componentsMap.get(i),function(u){return!!u});return l(I0(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?ze(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(fe(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=te(r)?a.get(r):ie(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Or(r,null);return ze(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return ze(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){so(this),R(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){R(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){so(this),R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return R(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return so(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){so(this);var i=[];R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ce(i)},e.prototype.restoreData=function(r){Js(this);var n=this._componentsMap,i=[];n.each(function(a,o){Se.hasClass(o)&&i.push(o)}),Se.topologicalTravel(i,Se.getAllClassMainTypes(),function(a){R(n.get(a),function(o){o&&(a!=="series"||!eO(o,r))&&o.restoreData()})})},e.internalField=(function(){Js=function(r){var n=r._seriesIndices=[];R(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ce(n)},so=function(r){},R0=function(r,n){r.option={},r.option[M0]=J2,r._componentsMap=ce({series:[]}),r._componentsCount=ce();var i=n.aria;ie(i)&&i.enabled==null&&(i.enabled=!0),tO(n,r._theme.option),be(n,Sw,!1),r._mergeOption(n,null)}})(),e})(Le);function eO(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function tO(t,e){var r=t.color&&!t.colorLayer;R(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||Se.hasClass(i)||(typeof n=="object"?t[i]=t[i]?be(t[i],n,!1):de(n):t[i]==null&&(t[i]=n))})}function P0(t,e,r){if(K(e)){var n=ce();return R(e,function(a){if(a!=null){var o=Or(a,null);o!=null&&n.set(a,!0)}}),ze(r,function(a){return a&&n.get(a[t])})}else{var i=Or(e,null);return ze(r,function(a){return a&&i!=null&&a[t]===i})}}function I0(t,e){return e.hasOwnProperty("subType")?ze(t,function(r){return r&&r.subType===e.subType}):t}function L0(t){var e=ce();return t&&R(wt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}ar(xp,Tp);var rO=/^(min|max)?(.+)$/,nO=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(R(wt(e.series),function(o){o&&o.data&&xt(o.data)&&Yo(o.data)}),R(wt(e.dataset),function(o){o&&o.source&&xt(o.source)&&Yo(o.source)})),e=de(e);var i=this._optionBackup,a=iO(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],de(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=de(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)aO(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!sO(o,this._currentMediaIndices)&&(s=oe(o,function(f){return de(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function iO(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&K(u)&&R(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),R(l,function(h){return v(h)}),R(n,function(h){return v(h.option)});function v(h){R(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function aO(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return R(t,function(a,o){var s=o.match(rO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();oO(n[u],a,l)||(i=!1)}}),i}function oO(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function sO(t,e){return t.join(",")===e.join(",")}var fr=R,rs=ie,O0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function eh(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=O0.length;r<n;r++){var i=O0[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?be(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?be(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function ct(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Te(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Eo(t){ct(t,"itemStyle"),ct(t,"lineStyle"),ct(t,"areaStyle"),ct(t,"label"),ct(t,"labelLine"),ct(t,"upperLabel"),ct(t,"edgeLabel")}function Ve(t,e){var r=rs(t)&&t[e],n=rs(r)&&r.textStyle;if(n)for(var i=0,a=Om.length;i<a;i++){var o=Om[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Wt(t){t&&(Eo(t),Ve(t,"label"),t.emphasis&&Ve(t.emphasis,"label"))}function lO(t){if(rs(t)){eh(t),Eo(t),Ve(t,"label"),Ve(t,"upperLabel"),Ve(t,"edgeLabel"),t.emphasis&&(Ve(t.emphasis,"label"),Ve(t.emphasis,"upperLabel"),Ve(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(eh(e),Wt(e));var r=t.markLine;r&&(eh(r),Wt(r));var n=t.markArea;n&&Wt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!xt(a))for(var o=0;o<a.length;o++)Wt(a[o]);R(t.categories,function(u){Eo(u)})}if(i&&!xt(i))for(var o=0;o<i.length;o++)Wt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Wt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)K(l[o])?(Wt(l[o][0]),Wt(l[o][1])):Wt(l[o]);t.type==="gauge"?(Ve(t,"axisLabel"),Ve(t,"title"),Ve(t,"detail")):t.type==="treemap"?(ct(t.breadcrumb,"itemStyle"),R(t.levels,function(u){Eo(u)})):t.type==="tree"&&Eo(t.leaves)}}function $r(t){return K(t)?t:t?[t]:[]}function k0(t){return(K(t)?t[0]:t)||{}}function uO(t,e){fr($r(t.series),function(n){rs(n)&&lO(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),fr(r,function(n){fr($r(t[n]),function(i){i&&(Ve(i,"axisLabel"),Ve(i.axisPointer,"label"))})}),fr($r(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ve(i,"axisLabel"),Ve(i&&i.axisPointer,"label")}),fr($r(t.calendar),function(n){ct(n,"itemStyle"),Ve(n,"dayLabel"),Ve(n,"monthLabel"),Ve(n,"yearLabel")}),fr($r(t.radar),function(n){Ve(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),fr($r(t.geo),function(n){rs(n)&&(Wt(n),fr($r(n.regions),function(i){Wt(i)}))}),fr($r(t.timeline),function(n){Wt(n),ct(n,"label"),ct(n,"itemStyle"),ct(n,"controlStyle",!0);var i=n.data;K(i)&&R(i,function(a){ie(a)&&(ct(a,"label"),ct(a,"itemStyle"))})}),fr($r(t.toolbox),function(n){ct(n,"iconStyle"),fr(n.feature,function(i){ct(i,"iconStyle")})}),Ve(k0(t.axisPointer),"label"),Ve(k0(t.tooltip).axisPointer,"label")}function fO(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function cO(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function N0(t){t&&R(hO,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var hO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],th=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function lo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<th.length;r++){var n=th[r][1],i=th[r][0];e[n]!=null&&(e[i]=e[n])}}function B0(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function F0(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function dO(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function xw(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&xw(t[r].children,e)}function Cw(t,e){uO(t,e),t.series=wt(t.series),R(t.series,function(r){if(ie(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),B0(r.label);var i=r.data;if(i&&!xt(i))for(var a=0;a<i.length;a++)B0(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=fO(r,"pointer.color");o!=null&&cO(r,"itemStyle.color",o)}else if(n==="bar"){lo(r),lo(r.backgroundStyle),lo(r.emphasis);var i=r.data;if(i&&!xt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(lo(i[a]),lo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),F0(r),xw(r.data,F0)}else n==="graph"||n==="sankey"?dO(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Te(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),N0(r)}}),t.dataRange&&(t.visualMap=t.dataRange),R(vO,function(r){var n=t[r];n&&(K(n)||(n=[n]),R(n,function(i){N0(i)}))})}var pO=Wd(gO);function gO(t){var e=ce();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),R(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),mO(r)}})}function mO(t){R(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(e.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=vP(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var zf=(function(){function t(e){this.data=e.data||(e.sourceFormat===br?{}:[]),this.sourceFormat=e.sourceFormat||gb,this.seriesLayoutBy=e.seriesLayoutBy||mr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&ww(this,n)===nt.Must&&(i.type="ordinal")}}return t})();function Cp(t){return t instanceof zf}function Ov(t,e,r){r=r||Dw(t);var n=e.seriesLayoutBy,i=_O(t,r,n,e.sourceHeader,e.dimensions),a=new zf({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:de(e)});return a}function Aw(t){return new zf({data:t,sourceFormat:xt(t)?Ln:zt})}function yO(t){return new zf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:de(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Dw(t){var e=gb;if(xt(t))e=Ln;else if(K(t)){t.length===0&&(e=ht);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(K(i)||xt(i)){e=ht;break}else if(ie(i)){e=or;break}}}}else if(ie(t)){for(var a in t)if(Mt(t,a)&&Tt(t[a])){e=br;break}}return e}function _O(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:z0(i),startIndex:o,dimensionsDetectedCount:a};if(e===ht){var s=t;n==="auto"||n==null?H0(function(u){u!=null&&u!=="-"&&(te(u)?o==null&&(o=1):o=0)},r,s,10):o=Re(n)?n:n?1:0,!i&&o===1&&(i=[],H0(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Yi?s.length:s[0]?s[0].length:null}else if(e===or)i||(i=SO(t));else if(e===br)i||(i=[],R(t,function(u,f){i.push(f)}));else if(e===zt){var l=ys(t[0]);a=K(l)&&l.length||1}return{startIndex:o,dimensionsDefine:z0(i),dimensionsDetectedCount:a}}function SO(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Pe(r)}function z0(t){if(t){var e=ce();return oe(t,function(r,n){r=ie(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function H0(t,e,r,n){if(e===Yi)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Ew(t){var e=t.sourceFormat;return e===or||e===br}var fi,ci,hi,vi,U0,V0,Rw=(function(){function t(e,r){var n=Cp(e)?e:Aw(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Ln&&(this._offset=0,this._dimSize=r,this._data=i),V0(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;V0=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=U0[Ap(u,f)];if(G(o,h),u===Ln)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Mw(u,f);o.getItem=Ae(d,null,s,c,v);var p=Pw(u,f);o.count=Ae(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],m=s-o,g=l[v],y=0;y<m;y++){var _=f[y*c+v];g[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};U0=(e={},e[ht+"_"+mr]={pure:!0,appendData:a},e[ht+"_"+Yi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[or]={pure:!0,appendData:a},e[br]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[zt]={appendData:a},e[Ln]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),el=function(t){K(t)||qS("series.data or dataset.source must be an array.")};fi={},fi[ht+"_"+mr]=el,fi[ht+"_"+Yi]=el,fi[or]=el,fi[br]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&qS("dimension name must not be null/undefined.")}},fi[zt]=el;var G0=function(t,e,r,n){return t[n]},bO=(ci={},ci[ht+"_"+mr]=function(t,e,r,n){return t[n+e]},ci[ht+"_"+Yi]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ci[or]=G0,ci[br]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},ci[zt]=G0,ci);function Mw(t,e){var r=bO[Ap(t,e)];return r}var W0=function(t,e,r){return t.length},wO=(hi={},hi[ht+"_"+mr]=function(t,e,r){return Math.max(0,t.length-e)},hi[ht+"_"+Yi]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},hi[or]=W0,hi[br]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},hi[zt]=W0,hi);function Pw(t,e){var r=wO[Ap(t,e)];return r}var rh=function(t,e,r){return t[e]},TO=(vi={},vi[ht]=rh,vi[or]=function(t,e,r){return t[r]},vi[br]=rh,vi[zt]=function(t,e,r){var n=ys(t);return n instanceof Array?n[e]:n},vi[Ln]=rh,vi);function Iw(t){var e=TO[t];return e}function Ap(t,e){return t===ht?t+"_"+e:t}function Ha(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Iw(a)(n,o,s)}else{var l=n;return a===zt&&(l=ys(n)),l}}}}var xO=/\{@(.+?)\}/g,CO=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&K(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(fe(a))return l.status=r,l.dimensionIndex=i,a(l);if(te(a)){var f=Sp(a,l);return f.replace(xO,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=Ha(s,e,d);if(o&&K(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Ha(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Y0(t){var e,r;return ie(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ho(t){return new AO(t)}var AO=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(K(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){$0.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:$0.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),K(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),$0=(function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function ql(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Re(t)&&t!=null&&t!=="-"&&(t=+ln(t)),t==null||t===""?NaN:Number(t))}ce({number:function(t){return parseFloat(t)},time:function(t){return+ln(t)},trim:function(t){return te(t)?dr(t):t}});var DO=(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=Re(e)?e:Zo(e),i=Re(r)?r:Zo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=te(e),l=te(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function EO(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function RO(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var MO=(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 ql(e,r)},t})();function PO(t,e){var r=new MO,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==mr&&Dt(o);var s=[],l={},u=t.dimensionsDefine;if(u)R(u,function(p,m){var g=p.name,y={index:m,name:g,displayName:p.displayName};if(s.push(y),g!=null){var _="";Mt(l,g)&&Dt(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Mw(i,mr);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=Ae(IO,null,t)),r.cloneRawData=Ae(LO,null,t);var v=Pw(i,mr);r.count=Ae(v,null,n,a,s);var h=Iw(i);r.retrieveValue=function(p,m){var g=c(n,a,s,p);return d(g,m)};var d=r.retrieveValueFromItem=function(p,m){if(p!=null){var g=s[m];if(g)return h(p,m,g.name)}};return r.getDimensionInfo=Ae(OO,null,s,l),r.cloneAllDimensionInfo=Ae(kO,null,s),r}function IO(t){var e=t.sourceFormat;if(!Dp(e)){var r="";Dt(r)}return t.data}function LO(t){var e=t.sourceFormat,r=t.data;if(!Dp(e)){var n="";Dt(n)}if(e===ht){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===or){for(var i=[],a=0,o=r.length;a<o;a++)i.push(G({},r[a]));return i}}function OO(t,e,r){if(r!=null){if(Re(r)||!isNaN(r)&&!Mt(e,r))return t[r];if(Mt(e,r))return e[r]}}function kO(t){return de(t)}var Lw=ce();function NO(t){t=de(t);var e=t.type,r="";e||Dt(r);var n=e.split(":");n.length!==2&&Dt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Lw.set(e,t)}function BO(t,e,r){var n=wt(t),i=n.length,a="";i||Dt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=FO(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function FO(t,e,r,n){var i="";e.length||Dt(i),ie(t)||Dt(i);var a=t.type,o=Lw.get(a);o||Dt(i);var s=oe(e,function(u){return PO(u,o)}),l=wt(o.transform({upstream:s[0],upstreamList:s,config:de(t.config)}));return oe(l,function(u,f){var c="";ie(u)||Dt(c),u.data||Dt(c);var v=Dw(u.data);Dp(v)||Dt(c);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:mr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:mr,sourceHeader:0,dimensions:u.dimensions};return Ov(u.data,h,null)})}function Dp(t){return t===ht||t===or}var zO=typeof Uint32Array===bs?Array:Uint32Array,HO=typeof Uint16Array===bs?Array:Uint16Array,Ow=typeof Int32Array===bs?Array:Int32Array,X0=typeof Float64Array===bs?Array:Float64Array,kw={float:X0,int:Ow,ordinal:Array,number:Array,time:X0},nh;function la(t){return t>65535?zO:HO}function UO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function q0(t,e,r,n,i){var a=kw[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var kv=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ce()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=nh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Ew(i),this._dimensions=oe(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new kw[r||"float"](this._rawCount),this._rawExtent[a]=Xt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Xt());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];q0(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],p=nh.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][v]=p;var m=o[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=oe(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Xt()),q0(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],m=this._dimValueGetter(v,u[d],h,d);p[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Fd(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=la(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=la(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Pe(e),a=i.length;if(!a)return this;var o=r.count(),s=la(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var m=h[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],S=e[i[1]][0],b=e[i[1]][1],g=0;g<n;g++){var y=m[g],w=_[g];(y>=c&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[i[0]][T];(y>=c&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var C=!0,T=r.getRawIndex(g),x=0;x<a;x++){var A=i[x],y=h[A][T];(y<e[A][0]||y>e[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Xt();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],m=d[f],g=u[p],y=i[p];y&&(y[v]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(la(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+p)/2,y=0,_=p;_<m;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=m-p;var w=d,T=Math.min(d+l,o),C=d-1,x=a[u];f=-1,v=w;for(var A=-1,D=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,A<0&&(A=S);continue}c=Math.abs((C-g)*(b-x)-(C-_)*(y-x)),c>f&&(f=c,v=S)}D>0&&D<T-w&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(la(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=a;f+a>s&&(p=s-f);for(var m=0;m<p;m++){var g=this.getRawIndex(f+m),y=o[g];y<v&&(v=y,c=f+m),y>d&&(d=y,h=f+m)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Xt(),v=new(la(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var m=this.getRawIndex(d+p);s[p]=u[m]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Xt();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=EO(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=i[0],h=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),m=n[p];(!r||RO(u,m))&&(m<v&&(v=m),m>h&&(h=m))}return l[f]=[v,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&kr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?UO(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=de(this._extent),e._rawExtent=de(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return ql(r[a],this._dimensions[a])}nh={arrayRows:e,objectRows:function(r,n,i,a){return ql(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ql(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),Nw=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(tl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=xt(s)?Ln:zt,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ne(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=ne(c.sourceHeader,v.sourceHeader),p=ne(c.dimensions,v.dimensions),m=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=m?[Ov(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Ov(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Z0(a)}var o,s=[],l=[];return R(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Z0(c),s.push(f),l.push(u._getVersionSign())}),n?o=BO(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yO(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];tl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new kv,s.initData(new Rw(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(tl(e)){var r=wp(e);return r?[r.getSourceManager()]:[]}else return oe(X2(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(tl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function j0(t){var e=t.option.transform;e&&Yo(t.option.transform)}function tl(t){return t.mainType==="series"}function Z0(t){throw new Error(t)}var VO="line-height:1";function Bw(t){var e=t.lineHeight;return e==null?VO:"line-height:"+yt(e+"")+"px"}function Fw(t,e){var r=t.color||ae.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ae.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+yt(n+"")+"px;color:"+yt(r)+";font-weight:"+yt(i+""),valueStyle:"font-size:"+yt(o+"")+"px;color:"+yt(a)+";font-weight:"+yt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var GO=[0,10,20,30],WO=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function ns(t,e){return e.type=t,e}function Nv(t){return t.type==="section"}function zw(t){return Nv(t)?YO:$O}function Hw(t){if(Nv(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return R(t.blocks,function(i){var a=Hw(i);a>=e&&(e=a+ +(n&&(!a||Nv(i)&&!i.noHeader)))}),e}return 0}function YO(t,e,r,n){var i=e.noHeader,a=XO(Hw(e)),o=[],s=e.blocks||[];Nr(!s||K(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mt(u,l)){var f=new DO(u[l],null);s.sort(function(p,m){return f.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(p,m){var g=e.valueFormatter,y=zw(p)(g?G(G({},t),{valueFormatter:g}):t,p,m>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Bv(n,o.join(""),i?r:a.html);if(i)return c;var v=Lv(e.header,"ordinal",t.useUTC),h=Fw(n,t.renderMode).nameStyle,d=Bw(n);return t.renderMode==="richText"?Uw(t,v,h)+a.richText+c:Bv(n,'<div style="'+h+";"+d+';">'+yt(v)+"</div>"+c,r)}function $O(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=K(S)?S:[S],oe(S,function(b,w){return Lv(b,K(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ae.color.secondary,i),v=a?"":Lv(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,m=!s&&a,g=Fw(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":Uw(t,v,y))+(o?"":ZO(t,d,p,m,_)):Bv(n,(s?"":c)+(a?"":qO(v,!s,y))+(o?"":jO(d,p,m,_)),r)}}function K0(t,e,r,n,i,a){if(t){var o=zw(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function XO(t){return{html:GO[t],richText:WO[t]}}function Bv(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Bw(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function qO(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+yt(t)+"</span>"}function jO(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=K(t)?t:[t],'<span style="'+a+";"+n+'">'+oe(t,function(o){return yt(o)}).join(" ")+"</span>"}function Uw(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function ZO(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(K(e)?e.join(" "):e,a)}function KO(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Fi(n)}function Vw(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var ih=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=$S()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=dw({color:r,type:e,renderMode:n,markerId:i});return te(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};K(r)?R(r,function(a){return G(n,a)}):G(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function QO(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=K(s),u=KO(e,r),f,c,v,h;if(o>1||l&&!o){var d=JO(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Ha(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var m=Ud(e),g=m&&e.name||"",y=i.getName(r),_=n?g:y;return ns("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[ns("nameValue",{markerType:"item",markerColor:u,name:_,noName:!dr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function JO(t,e,r,n,i){var a=e.getData(),o=kr(t,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Ha(a,r,c),c)}):R(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ns("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var dn=we();function rl(t,e){return t.getName(e)||t.getId(e)}var ek="__universalTransitionEnabled",nr=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:rk,reset:nk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=dn(this).sourceManager=new Nw(this);a.prepareSource();var o=this.getInitialData(r,i);J0(o,this),this.dataTask.context.data=o,dn(this).dataBeforeProcessed=o,Q0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=ts(this),a=i?As(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),be(r,n.getTheme().get(this.subType)),be(r,this.getDefaultOption()),mv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&zn(r,a,i)},e.prototype.mergeOption=function(r,n){r=be(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ts(this);i&&zn(this.option,r,i);var a=dn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);J0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,dn(this).dataBeforeProcessed=o,Q0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!xt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&mv(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Fv(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return dn(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=Fv(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}dn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ce(r)},e.prototype.getSourceManager=function(){return dn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return dn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),m=0,g=p.count();m<g;m++){var y=p.get(d,m),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return QO({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ve.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Tp.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=rl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Pe(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[rl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ek])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=rl(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=rl(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Se.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})(Se);ar(nr,CO);ar(nr,Tp);rb(nr,Se);function Q0(t){var e=t.name;Ud(t)||(t.name=tk(t)||e)}function tk(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function rk(t){return t.model.getRawData().count()}function nk(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ik}function ik(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function J0(t,e){R(uS(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ue(ak,e))})}function ak(t,e){var r=Fv(t);return r&&r.setOutputEnd((e||this).count()),e}function Fv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Ct=(function(){function t(){this.group=new rt,this.uid=Nf("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Yd(Ct);_f(Ct);function Gw(){var t=we();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Ww=we(),ok=Gw(),Pt=(function(){function t(){this.group=new rt,this.uid=Nf("viewChart"),this.renderTask=Ho({plan:sk,reset:lk}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&ty(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&ty(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){ip(this.group,e)},t.markUpdateMethod=function(e,r){Ww(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function ey(t,e,r){t&&Dv(t)&&(e==="emphasis"?xu:Cu)(t,r)}function ty(t,e,r){var n=Bi(t,e),i=e&&e.highlightKey!=null?sL(e.highlightKey):null;n!=null?R(wt(n),function(a){ey(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){ey(a,r,i)})}Yd(Pt);_f(Pt);function sk(t){return ok(t.model)}function lk(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ww(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),uk[l]}var uk={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)}}},Ou="\0__throttleOriginMethod",ry="\0__throttleRate",ny="\0__throttleType";function Ep(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,m=f||r;f=null,s=n-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Yw(t,e,r,n){var i=t[e];if(i){var a=i[Ou]||i,o=i[ny],s=i[ry];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Ep(a,r,n==="debounce"),i[Ou]=a,i[ny]=n,i[ry]=r}return i}}function zv(t,e){var r=t[e];r&&r[Ou]&&(r.clear&&r.clear(),t[e]=r[Ou])}var iy=we(),ay={itemStyle:Qo(iw,!0),lineStyle:Qo(nw,!0)},fk={lineStyle:"stroke",itemStyle:"fill"};function $w(t,e){var r=t.visualStyleMapper||ay[e];return r||(console.warn("Unknown style type '"+e+"'."),ay.itemStyle)}function Xw(t,e){var r=t.visualDrawType||fk[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var ck={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=$w(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Xw(t,n),u=o[l],f=fe(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||fe(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||fe(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),m=G({},o);m[l]=f(p),h.setItemVisual(d,"style",m)}}}},uo=new Le,hk={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=$w(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){uo.option=l[n];var u=i(uo),f=o.ensureUniqueItemVisual(s,"style");G(f,u),uo.option.decal&&(o.setItemVisual(s,"decal",uo.option.decal),uo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vk={performRawSeries:!0,overallReset:function(t){var e=ce();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();iy(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=iy(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Xw(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},nl=Math.PI;function dk(t,e){e=e||{},Te(e,{text:"loading",textColor:ae.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ae.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new rt,n=new Ge({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Ke({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ge({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ts({shape:{startAngle:-nl/2,endAngle:-nl/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:nl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:nl*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var qw=(function(){function t(e,r,n,i){this._stageTaskMap=ce(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):HP(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=ce();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Nr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;R(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(m){m.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ce(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Ho({plan:_k,reset:Sk,count:wk}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ho({reset:pk});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ce(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1,h="";Nr(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):R(n.getSeries(),d);function d(p){var m=p.uid,g=l.set(m,s&&s.get(m)||(v=!0,Ho({reset:gk,onDirty:yk})));g.context={model:p,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(p,g)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return fe(e)&&(e={overallReset:e,seriesType:Tk(e)}),e.uid=Nf("stageHandler"),r&&(e.visualType=r),e},t})();function pk(t){t.overallReset(t.ecModel,t.api,t.payload)}function gk(t){return t.dirtyOnOverallProgress&&mk}function mk(){this.agent.dirty(),this.getDownstream().dirty()}function yk(){this.agent&&this.agent.dirty()}function _k(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Sk(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?oe(e,function(r,n){return jw(n)}):bk}var bk=jw(0);function jw(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function wk(t){return t.data.count()}function Tk(t){ku=null;try{t(is,Zw)}catch(e){}return ku}var is={},Zw={},ku;Kw(is,xp);Kw(Zw,mb);is.eachSeriesByType=is.eachRawSeriesByType=function(t){ku=t};is.eachComponent=function(t){t.mainType==="series"&&t.subType&&(ku=t.subType)};function Kw(t,e){for(var r in e.prototype)t[r]=at}var $=ae.darkColor,oy=$.background,fo=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},sy={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Qw={darkMode:!0,color:$.theme,backgroundColor:oy,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:oy,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:sy,y:sy,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:fo(),logAxis:fo(),valueAxis:fo(),categoryAxis:fo(),line:{symbol:"circle"},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$.background}},radar:(function(){var t=fo();return t.axisName={color:$.axisLabel},t.axisLine.lineStyle.color=$.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};Qw.categoryAxis.splitLine.show=!1;var xk=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(te(e)){var a=Mr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Hv=["symbol","symbolSize","symbolRotate","symbolOffset"],ly=Hv.concat(["symbolKeepAspect"]),Ck={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Hv.length;o++){var s=Hv[o],l=t.get(s);fe(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(G({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Pe(i);function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var m=u[p];c.setItemVisual(v,m,i[m](h,d))}}return{dataEach:a?f:null}}},Ak={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<ly.length;s++){var l=ly[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Dk(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function Ek(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Rk(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}R([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=G({},i),o.dispatchAction(G(i,{type:n[1],seriesIndex:r(a,i)}))})})}function ua(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Bi(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:K(v)?c.getName(v[0]):c.getName(v),selected:te(l)?l:G({},l)})}})}function Mk(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ua("map","selectchanged",e,i,n),ua("pie","selectchanged",e,i,n)):n.fromAction==="select"?(ua("map","selected",e,i,n),ua("pie","selected",e,i,n)):n.fromAction==="unselect"&&(ua("map","unselected",e,i,n),ua("pie","unselected",e,i,n))})}function Ro(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Vt=new Ur,Jw={};function Pk(t,e){Jw[t]=e}function eT(t){return Jw[t]}var Rp=we();function Ik(t){Rp(t).prepare={}}function Lk(t){Rp(t).fullUpdate={}}function Ds(t){return Rp(t).fullUpdate}var Ok=Math.round(Math.random()*9),kk=typeof Object.defineProperty=="function",Nk=(function(){function t(){this._id="__ec_inner_"+Ok++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return kk?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})(),Bk=Me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),Fk=Me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),zk=Me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),Hk=Me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),Uk={line:an,rect:Ge,roundRect:Ge,square:Ge,circle:ws,diamond:Fk,pin:zk,arrow:Hk,triangle:Bk},Vk={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Uv={};R(Uk,function(t,e){Uv[e]=new t});var Gk=Me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=FS(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Uv[n];i||(n="rect",i=Uv[n]),Vk[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function Wk(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ae.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function zi(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=tp(t.slice(8),new le(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Rf(t.slice(7),{},new le(e,r,n,i),o?"center":"cover"):l=new Gk({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Wk,a&&l.setColor(a),l}function Yk(t){return K(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function tT(t,e){if(t!=null)return K(t)||(t=[t,t]),[He(t[0],e[0])||0,He(ne(t[1],t[0]),e[1])||0]}function Ti(t){return isFinite(t)}function $k(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Ti(n)?n:0,i=Ti(i)?i:1,a=Ti(a)?a:0,o=Ti(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function Xk(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Ti(o)?o:.5,s=Ti(s)?s:.5,l=l>=0&&Ti(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Vv(t,e,r){for(var n=e.type==="radial"?Xk(t,e,r):$k(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function qk(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 il(t){return parseInt(t,10)}function al(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||il(s[n])||il(t.style[n]))-(il(s[a])||0)-(il(s[o])||0)||0}function jk(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Re(t)?[t]:K(t)?t:null}function rT(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&jk(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=oe(r,function(a){return a/i}),n/=i)}return[r,n]}var Zk=new Fn(!0);function Nu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function uy(t){return typeof t=="string"&&t!=="none"}function Bu(t){var e=t.fill;return e!=null&&e!=="none"}function fy(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 cy(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 Gv(t,e,r){var n=nb(e.image,e.__image,r);if(Sf(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*fS),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Kk(t,e,r,n,i){var a,o=Nu(r),s=Bu(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||Zk,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||m)&&(T=e.getBoundingRect()),p&&(_=v?Vv(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(S=v?Vv(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(b=v||!e.__canvasFillPattern?Gv(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=v||!e.__canvasStrokePattern?Gv(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=_:g&&(b?t.fillStyle=b:s=!1),m?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var x,A;t.setLineDash&&r.lineDash&&(a=rT(e),x=a[0],A=a[1]);var D=!0;(f||v&ga)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(t,u?l:1),x&&(t.setLineDash(x),t.lineDashOffset=A),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&cy(t,r),s&&fy(t,r)):(s&&fy(t,r),o&&cy(t,r)),x&&t.setLineDash([])}function Qk(t,e,r){var n=e.__image=nb(r.image,e.__image,e,e.onload);if(!(!n||!Sf(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;t.drawImage(n,u,f,c,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function Jk(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Bn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=rT(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Nu(r)&&t.strokeText(i,r.x,r.y),Bu(r)&&t.fillText(i,r.x,r.y)):(Bu(r)&&t.fillText(i,r.x,r.y),Nu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var hy=["shadowBlur","shadowOffsetX","shadowOffsetY"],vy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nT(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){_t(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ri.opacity:o}(n||e.blend!==r.blend)&&(a||(_t(t,i),a=!0),t.globalCompositeOperation=e.blend||Ri.blend);for(var s=0;s<hy.length;s++){var l=hy[s];(n||e[l]!==r[l])&&(a||(_t(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(_t(t,i),a=!0),t.shadowColor=e.shadowColor||Ri.shadowColor),a}function dy(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=nT(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(_t(t,i),s=!0),uy(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(_t(t,i),s=!0),uy(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(_t(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(_t(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<vy.length;f++){var c=vy[f],v=c[0];(n||a[v]!==o[v])&&(s||(_t(t,i),s=!0),t[v]=a[v]||c[1])}return s}function eN(t,e,r,n,i){return nT(t,e.style,r&&r.style,n,i)}function iT(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 tN(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),iT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function rN(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 py=1,gy=2,my=3,yy=4;function nN(t){var e=Bu(t),r=Nu(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 _t(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Mp(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};xi(t,e,r),Ra(t,r)}function xi(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Et,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||qk(i,a))&&(a&&(_t(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(_t(t,r),t.save(),tN(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~Et,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Me&&e.autoBatch&&nN(o);s||rN(n,u.transform)?(_t(t,r),iT(t,e)):f||_t(t,r),e instanceof Me?(r.lastDrawType!==py&&(l=!0,r.lastDrawType=py),dy(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),Kk(t,e,o,f,r)):e instanceof Su?(r.lastDrawType!==my&&(l=!0,r.lastDrawType=my),dy(t,e,u,l,r),Jk(t,e,o)):e instanceof un?(r.lastDrawType!==gy&&(l=!0,r.lastDrawType=gy),eN(t,e,u,l,r),Qk(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==yy&&(l=!0,r.lastDrawType=yy),iN(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&_t(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ra(t,e){_t(t,e),e.prevElClipPaths&&t.restore()}function iN(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),xi(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ra(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),xi(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ra(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var ah=new Nk,_y=new Na(100),Sy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Wv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&ah.delete(t);var a=ah.get(t);if(a)return a;var o=Te(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,ah.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<Sy.length;++v){var h=o[Sy[v]];if(h!=null&&!K(h)&&!te(h)&&!Re(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=_y.get(d);p&&(i?u.svgElement=p:u.image=p)}var m=oT(o.dashArrayX),g=aN(o.dashArrayY),y=aT(o.symbol),_=oN(m),S=sT(g),b=!i&&it.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),A(),c&&_y.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var D=1,P=0,M=_.length;P<M;++P)D=Im(D,_[P]);for(var I=1,P=0,M=y.length;P<M;++P)I=Im(I,y[P].length);D*=I;var k=S*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,P=0;P<g.length;++P)D+=g[P];if(D<=0)return;for(var M=-S,I=0,k=0,O=0;M<T.height;){if(I%2===0){for(var N=k/2%y.length,U=0,W=0,X=0;U<T.width*2;){for(var Q=0,P=0;P<m[O].length;++P)Q+=m[O][P];if(Q<=0)break;if(W%2===0){var J=(1-o.symbolSize)*.5,j=U+m[O][W]*J,z=M+g[I]*J,re=m[O][W]*o.symbolSize,se=g[I]*o.symbolSize,L=X/2%y[N].length;Y(j,z,re,se,y[N][L])}U+=m[O][W],++X,++W,W===m[O].length&&(W=0)}++O,O===m.length&&(O=0)}M+=g[I],++k,++I,I===g.length&&(I=0)}function Y(B,F,H,Z,ue){var ee=i?1:r,ye=zi(ue,B*ee,F*ee,H*ee,Z*ee,o.color,o.symbolKeepAspect);if(i){var Qe=n.painter.renderOneToVNode(ye);Qe&&w.children.push(Qe)}else Mp(C,ye)}}}}function aT(t){if(!t||t.length===0)return[["rect"]];if(te(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!te(t[r])){e=!1;break}if(e)return aT([t]);for(var n=[],r=0;r<t.length;++r)te(t[r])?n.push([t[r]]):n.push(t[r]);return n}function oT(t){if(!t||t.length===0)return[[0,0]];if(Re(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Re(t[n])){r=!1;break}if(r)return oT([t]);for(var i=[],n=0;n<t.length;++n)if(Re(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=oe(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function aN(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Re(t)){var e=Math.ceil(t);return[e,e]}var r=oe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function oN(t){return oe(t,function(e){return sT(e)})}function sT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var sN=Wd(lN);function lN(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=Wv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Wv(i,e)}}})}var uN="6.1.0",fN={zrender:"6.1.0"},cN=1,hN=800,vN=900,dN=920,pN=1e3,gN=2e3,by=5e3,lT=1e3,mN=1100,Pp=2e3,uT=3e3,yN=4e3,Hf=4500,_N=4600,SN=5e3,bN=6e3,fT=7e3,cT={PROCESSOR:{SERIES_FILTER:hN,AXIS_STATISTICS:dN,FILTER:pN,STATISTIC:by,STATISTICS:by},VISUAL:{LAYOUT:lT,PROGRESSIVE_LAYOUT:mN,GLOBAL:Pp,CHART:uT,POST_CHART_LAYOUT:_N,COMPONENT:yN,BRUSH:SN,CHART_ITEM:Hf,ARIA:bN,DECAL:fT}},We="__flagInMainProcess",ol="__mainProcessVersion",et="__pendingUpdate",oh="__needsUpdateStatus",wy=/^[a-zA-Z0-9_]+$/,sh="__connectUpdateStatus",Ty=0,wN=1,TN=2;function hT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return dT(this,t,e)}}function vT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return dT(this,t,e)}}function dT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Ur.prototype[e].apply(t,r)}var pT=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Ur),gT=pT.prototype;gT.on=vT("on");gT.off=vT("off");var di,lh,sl,Xr,ll,uh,fh,fa,ca,xy,Cy,ch,Ay,ul,Dy,mT,Ht,Ey,ha,Fu=(function(t){q(e,t);function e(r,n,i){var a=t.call(this,new xk)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[ol]=1,i.ssr&&US(function(v){var h=me(v),d=h.dataIndex;if(d!=null){var p=ce();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=vv(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ne(i.useDirtyRect,l),useCoarsePointer:ne(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Ep(Ae(u.flush,u),17),a._updateTheme(n),a._locale=d2(i.locale||aw),a._coordSysMgr=new Bf;var f=a._api=Dy(a);function c(v,h){return v.__prio-h.__prio}return Ll(Hu,c),Ll(Xv,c),a._scheduler=new qw(a,f,Xv,Hu),a._messageCenter=new pT,a._initEvents(),a.resize=Ae(a.resize,a),u.animation.on("frame",a._onframe,a),xy(u,a),Cy(u,a),Yo(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Ey(this),this[et]){var a=this[et].silent;this[We]=!0,ha(this);try{di(this),Xr.update.call(this,null,this[et].updateParams)}catch(l){throw this[We]=!1,this[et]=null,l}this._zr.flush(),this[We]=!1,this[et]=null,fa.call(this,a),ca.call(this,a)}else if(r.unfinished){var o=cN;do{r.unfinished=!1;var s=it.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),uh(this,n),r.performVisualTasks(n),ul(this,this._model,i,"remain",{}),o-=it.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[We]){if(this._disposed){this.id;return}var a,o,s;if(ie(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[We]=!0,ha(this),!this._model||n){var l=new nO(this._api),u=this._theme,f=this._model=new xp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},qv);var c={seriesTransition:s,optionChanged:!0};if(i)this[et]={silent:a,updateParams:c},this[We]=!1,this.getZr().wakeUp();else{try{di(this),Xr.update.call(this,null,c)}catch(v){throw this[et]=null,this[We]=!1,v}this._ssr||this._zr.flush(),this[et]=null,this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[We]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[et]&&(a==null&&(a=this[et].silent),o=this[et].updateParams,this[et]=null),this[We]=!0,ha(this);try{this._updateTheme(r),i.setTheme(this._theme),di(this),Xr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[We]=!1,s}this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype._updateTheme=function(r){te(r)&&(r=yT[r]),r&&(r=de(r),r&&Cw(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ve.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Uu[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(Pi,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(de(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:b,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,m=it.createCanvas(),g=vv(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var y="";return R(v,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ge({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),R(v,function(_){var S=new un({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return ll(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return ll(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return ll(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ic(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Ic(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Dk(s,l,n):Ek(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;R(xN,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Ro(l,function(p){var m=me(p);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=G({},m.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;R($v,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Mk(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&KS(this.getDom(),Lp,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Pi[n.id]},e.prototype.resize=function(r){if(!this[We]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[et]&&(a==null&&(a=this[et].silent),i=!0,this[et]=null),this[We]=!0,ha(this);try{i&&di(this),Xr.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[We]=!1,o}this[We]=!1,fa.call(this,a),ca.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ie(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!jv[r]){var i=jv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=Yv[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ie(n)||(n={silent:!!n}),!!zu[r.type]&&this._model){if(this[We]){this._pendingActions.push(r);return}var i=n.silent;fh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ve.browser.weChat&&this._throttledZrFlush(),fa.call(this,i),ca.call(this,i)}},e.prototype.updateLabelLayout=function(){Vt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){di=function(c){Ik(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),lh(c,!0),lh(c,!1),v.plan()},lh=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,m=v?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(w,T){w!=="series"&&S(T)}):h.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,x=!T&&m[C];if(!x){var A=Mr(w.type),D=v?Ct.getClass(A.main,A.sub):Pt.getClass(A.sub);x=new D,x.init(h,y),m[C]=x,p.push(x),g.add(x.group)}w.__viewId=x.__id=C,x.__alive=!0,x.__model=w,x.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(x,w,h,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),p.splice(_,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},sl=function(c,v,h,d,p){var m=c._model;if(m.setUpdatePayload(h),!d){R([].concat(c._componentsViews).concat(c._chartsViews),S);return}var g=IP(h,d,p),y=h.excludeSeriesId,_;y!=null&&(_=ce(),R(wt(y),function(b){var w=Or(b,null);w!=null&&_.set(w,!0)})),m&&m.eachComponent(g,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(l0(h))if(b instanceof nr)h.type===Mi&&!h.notBlur&&!b.get(["emphasis","disabled"])&&JI(b,h,c._api);else{var T=Kd(b.mainType,b.componentIndex,h.name,c._api),C=T.focusSelf,x=T.dispatchers;h.type===Mi&&C&&!h.notBlur&&Cv(b.mainType,b.componentIndex,c._api),x&&R(x,function(A){h.type===Mi?xu(A):Cu(A)})}else Ev(h)&&b instanceof nr&&(rL(b,h,c._api),o0(b),Ht(c))},c),m&&m.eachComponent(g,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,m,c._api,h)}},Xr={prepareAndUpdate:function(c){di(this),Xr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){Lk(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),Vt.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),uh(this,h),m.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),ch(this,h,d,c,v),Vt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(g,y){if(g!==db){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var m=ce();h.eachSeries(function(g){var y=v._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(g,h,d,c);S&&S.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),ul(v,h,d,c,{},m),Vt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),Pt.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),ch(this,v,this._api,c,{}),Vt.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),Pt.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var m=v.getViewOfComponentModel(p);m&&m.__alive&&m.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Vt.trigger("afterupdate",h,this._api))},updateLayout:function(c){Xr.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Ic(m,h),S=0;S<g.length;S++){var b=g[S];if(b[v]&&(y=b[v](m,_,d,p))!=null)return y}}ll=r,uh=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},fh=function(c,v){var h=this,d=this.getModel(),p=c.type,m=c.escapeConnect,g=zu[p],y=(g.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&Mr(y[0]);this[We]=!0,ha(this);var b=[c],w=!1;c.batch&&(w=!0,b=oe(c.batch,function(O){return O=Te(G({},O),c),O.batch=null,O}));var T=[],C,x=[],A=g.nonRefinedEventType,D=Ev(c),P=l0(c);if(P&&Ab(this._api),R(b,function(O){var N=g.action(O,d,h._api);if(g.refineEvent?x.push(N):C=N,C=C||G({},O),C.type=A,T.push(C),P){var U=Vd(c),W=U.queryOptionMap,X=U.mainTypeSpecified,Q=X?W.keys()[0]:"series";sl(h,_,O,Q),Ht(h)}else D?(sl(h,_,O,"series"),Ht(h)):S&&sl(h,_,O,S.main,S.sub)}),_!=="none"&&!P&&!D&&!S)try{this[et]?(di(this),Xr.update.call(this,c),this[et]=null):Xr[_].call(this,c)}catch(O){throw this[We]=!1,O}if(w?C={type:A,escapeConnect:m,batch:T}:C=T[0],this[We]=!1,!v){var M=void 0;if(g.refineEvent){var I=g.refineEvent(x,c,d,this._api).eventContent;Nr(ie(I)),M=Te({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var k=this._messageCenter;k.trigger(C.type,C),M&&k.trigger(M.type,M)}},fa=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();fh.call(this,h,c)}},ca=function(c){!c&&this.trigger("updated")},xy=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[et]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},Cy=function(c,v){c.on("mouseover",function(h){var d=h.target,p=Ro(d,Dv);p&&(eL(p,h,v._api),Ht(v))}).on("mouseout",function(h){var d=h.target,p=Ro(d,Dv);p&&(tL(p,h,v._api),Ht(v))}).on("click",function(h){var d=h.target,p=Ro(d,function(y){return me(y).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",g=me(p);v._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(h),m,g;Ll(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),R(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;m!=null&&(S=Math.max(m,S)),b?(S===m&&b!==g&&S++,g=b):g&&(S===m&&S++,g=""),m=S,_.setZLevel(S)})}}ch=function(c,v,h,d,p){i(v),Ay(c,v,h,d,p),R(c._chartsViews,function(m){m.__alive=!1}),ul(c,v,h,d,p),R(c._chartsViews,function(m){m.__alive||m.remove(v,h)})},Ay=function(c,v,h,d,p,m){R(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,v,h,d),l(y,g),f(y,g)})},ul=function(c,v,h,d,p,m){var g=c._scheduler;p=G(p||{},{updatedSeries:v.getSeries()}),Vt.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),m&&m.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),o0(_)}),g.unfinished=y||g.unfinished,Vt.trigger("series:layoutlabels",v,h,p),Vt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Vt.trigger("series:afterupdate",v,h,p)},Ht=function(c){c[oh]=!0,c.getZr().wakeUp()},ha=function(c){c[ol]=(c[ol]+1)%1e6},Ey=function(c){c[oh]&&(c.getZr().storage.traverse(function(v){Ca(v)||a(v)}),c[oh]=!1)};function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Tf&&c.states.emphasis?v.push("emphasis"):c.hoverState===wf&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++});var m=p>ne(v.get("hoverLayerThreshold"),Sw.hoverLayerThreshold)&&!ve.node&&!ve.worker;(c._usingTHL||m)&&(v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==ep&&(S.hoverLayer=m?Vb:Ub)})}}),c._usingTHL=m)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Jb(c);v.eachRendered(function(d){return ew(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Ca(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),m=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ca(g))return;if(g instanceof Me&&lL(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}g.__dirty&&a(g)}})}Dy=function(c){return new((function(v){q(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){xu(d,p),Ht(c)},h.prototype.leaveEmphasis=function(d,p){Cu(d,p),Ht(c)},h.prototype.enterBlur=function(d){QI(d),Ht(c)},h.prototype.leaveBlur=function(d){wb(d),Ht(c)},h.prototype.enterSelect=function(d){Tb(d),Ht(c)},h.prototype.leaveSelect=function(d){xb(d),Ht(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[ol]},h.prototype.usingTHL=function(){return c._usingTHL},h})(mb))(c)},mT=function(c){function v(h,d){for(var p=0;p<h.length;p++){var m=h[p];m[sh]=d}}R(Yv,function(h,d){c._messageCenter.on(d,function(p){if(Uu[c.group]&&c[sh]!==Ty){if(p&&p.escapeConnect)return;var m=c.makeActionFromEvent(p),g=[];R(Pi,function(y){y!==c&&y.group===c.group&&g.push(y)}),v(g,Ty),R(g,function(y){y[sh]!==wN&&y.dispatchAction(m)}),v(g,TN)}})})}})(),e})(Ur),Ip=Fu.prototype;Ip.on=hT("on");Ip.off=hT("off");Ip.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var xN=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var zu={},Yv={},$v={},Xv=[],qv=[],Hu=[],yT={},jv={},Pi={},Uu={},CN=+new Date-0,AN=+new Date-0,Lp="_echarts_instance_";function _T(t,e,r){var n=!(r&&r.ssr);if(n){var i=Op(t);if(i)return i}var a=new Fu(t,e,r);return a.id="ec_"+CN++,Pi[a.id]=a,n&&KS(t,Lp,a.id),mT(a),Vt.trigger("afterinit",a),a}function DN(t){if(K(t)){var e=t;t=null,R(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+AN++,R(e,function(r){r.group=t})}return Uu[t]=!0,t}function ST(t){Uu[t]=!1}var EN=ST;function RN(t){te(t)?t=Pi[t]:t instanceof Fu||(t=Op(t)),t instanceof Fu&&!t.isDisposed()&&t.dispose()}function Op(t){return Pi[LP(t,Lp)]}function MN(t){return Pi[t]}function kp(t,e){yT[t]=e}function Np(t){ge(qv,t)<0&&qv.push(t)}function Bp(t,e){Fp(Xv,t,e,gN)}function bT(t){Uf("afterinit",t)}function wT(t){Uf("afterupdate",t)}function Uf(t,e){Vt.on(t,e)}function Xi(t,e,r){var n,i,a,o,s;fe(e)&&(r=e,e=""),ie(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;zu[n]||(Nr(wy.test(n)&&wy.test(i)),a&&Nr(i!==n),zu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},$v[i]=1,a&&s&&($v[u]=1),Yv[u]=n)}function TT(t,e){Bf.register(t,e)}function PN(t){var e=Bf.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function IN(t,e){}function xT(t,e){Fp(Hu,t,e,lT,"layout")}function Vn(t,e){Fp(Hu,t,e,uT,"visual")}var Ry=[];function Fp(t,e,r,n,i,a){if((fe(e)||ie(e))&&(r=e,e=n),!(ge(Ry,r)>=0)){Ry.push(r);var o=qw.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function zp(t,e){jv[t]=e}function LN(t){eS({createCanvas:t})}function CT(t,e,r){var n=eT("registerMap");n&&n(t,e,r)}function ON(t){var e=eT("getMap");return e&&e(t)}var AT=NO;Vn(Pp,ck);Vn(Hf,hk);Vn(Hf,vk);Vn(Pp,Ck);Vn(Hf,Ak);Vn(fT,sN);Np(Cw);Bp(vN,pO);zp("default",dk);Xi({type:Mi,event:Mi,update:Mi},at);Xi({type:Ul,event:Ul,update:Ul},at);Xi({type:wu,event:jd,update:wu,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});Xi({type:Tv,event:jd,update:Tv,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});Xi({type:Tu,event:jd,update:Tu,action:at,refineEvent:Hp,publishNonRefinedEvent:!0});function Hp(t,e,r,n){return{eventContent:{selected:nL(r),isFromClick:e.isFromClick||!1}}}kp("default",{});kp("dark",Qw);var kN={};function co(t){return t==null?0:t.length||1}function My(t){return t}var NN=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||My,this._newKeyGetter=i||My,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=co(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=co(u),v=co(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=co(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=co(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),BN=(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 FN(t,e){var r={},n=r.encode={},i=ce(),a=[],o=[],s={};R(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;hh(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),HN(h.type)&&(a[0]=v),hh(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}pb.each(function(m,g){var y=hh(n,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=oe(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new BN(s,e),r}function hh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function zN(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function HN(t){return!(t==="ordinal"||t==="time")}var jl=(function(){function t(e){this.otherDims={},e!=null&&G(this,e)}return t})(),UN=we(),VN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},DT=(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=RT(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ne(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=Ew(this.source),n=!MT(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=VN[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function ET(t){return t instanceof DT}function Up(t){for(var e=ce(),r=0;r<(t||[]).length;r++){var n=t[r],i=ie(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function RT(t){var e=UN(t);return e.dimNameMap||(e.dimNameMap=Up(t.dimensionsDefine))}function MT(t){return t>30}var ho=ie,pn=oe,GN=typeof Int32Array=="undefined"?Array:Int32Array,WN="e\0\0",Py=-1,YN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$N=["_approximateExtent"],Iy,fl,vo,po,vh,go,dh,Vp=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;ET(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=te(c)?new jl({name:c}):c instanceof jl?c:new jl(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),i&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ce();R(o,function(m){p.set(a[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 i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Re(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof kv&&(a=e),!a){var o=this.dimensions,s=Cp(e)||Tt(e)?new Rw(e,o.length):e;a=new kv;var l=pn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=FN(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&dh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ln&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===zt;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&bP(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=Or(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Or(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)dh(this,f);Iy(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},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){ho(e)?G(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=vo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return fl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return K(e)?i.getValues(pn(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?Py:i},t.prototype.each=function(e,r,n){fe(e)&&(n=r,r=e,e=[]);var i=n||this,a=pn(po(e),this._getStoreDimIndex,this);this._store.each(a,i?Ae(r,i):r)},t.prototype.filterSelf=function(e,r,n){fe(e)&&(n=r,r=e,e=[]);var i=n||this,a=pn(po(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ae(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Pe(e);return R(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){fe(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=pn(po(e),this._getStoreDimIndex,this),s=go(this);return s._store=this._store.map(o,a?Ae(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=pn(po(e),this._getStoreDimIndex,this);this._store.modify(o,a?Ae(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=go(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=go(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=go(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 Le(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new NN(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return fl(e,n)},function(n){return fl(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||{},ho(e)?G(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i==null?this.getVisual(r):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),K(a)?a=a.slice():ho(a)&&(a=G({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ho(r)?G(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ho(e)?G(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?G(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;HI(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){R(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:pn(this.dimensions,this._getDimInfo,this),this.hostModel)),vh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];fe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ff(arguments)))})},t.internalField=(function(){Iy=function(e){var r=e._invertedIndicesMap;R(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new GN(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Py;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},vo=function(e,r,n){return Or(e._getCategory(r,n),null)},fl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=vo(e,e._idDimIdx,r)),n==null&&(n=WN+r),n},po=function(e){return K(e)||(e=e!=null?[e]:[]),e},go=function(e){var r=new t(e._schema?e._schema:pn(e.dimensions,e._getDimInfo,e),e.hostModel);return vh(r,e),r},vh=function(e,r){R(YN.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,R($N,function(n){e[n]=de(r[n])}),e._calculationInfo=G({},r._calculationInfo)},dh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=vo(e,a,r)),l==null&&o!=null&&(i[r]=l=vo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function XN(t,e){return Gp(t,e).dimensions}function Gp(t,e){Cp(t)||(t=Aw(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ce(),a=[],o=qN(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&MT(o),l=n===t.dimensionsDefine,u=l?RT(t):Up(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ce(f),v=new Ow(o),h=0;h<v.length;h++)v[h]=-1;function d(x){var A=v[x];if(A<0){var D=n[x],P=ie(D)?D:{name:D},M=new jl,I=P.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),P.type!=null&&(M.type=P.type),P.displayName!=null&&(M.displayName=P.displayName);var k=a.length;return v[x]=k,M.storeDimIndex=x,a.push(M),M}return a[A]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(x,A){var D=wt(x).slice();if(D.length===1&&!te(D[0])&&D[0]<0){c.set(A,!1);return}var P=c.set(A,[]);R(D,function(M,I){var k=te(M)?u.get(M):M;k!=null&&k<o&&(P[I]=k,m(d(k),A,I))})});var p=0;R(r,function(x){var A,D,P,M;if(te(x))A=x,M={};else{M=x,A=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=G({},M),M.ordinalMeta=I,D=M.dimsDef,P=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var k=c.get(A);if(k!==!1){if(k=wt(k),!k.length)for(var O=0;O<(D&&D.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}R(k,function(N,U){var W=d(N);if(l&&M.type!=null&&(W.type=M.type),m(Te(W,M),A,U),W.name==null&&D){var X=D[U];!ie(X)&&(X={name:X}),W.name=W.displayName=X.name,W.defaultTooltip=X.defaultTooltip}P&&Te(W.otherDims,P)})}});function m(x,A,D){pb.get(A)!=null?x.otherDims[A]=D:(x.coordDim=A,x.coordDimIndex=D,i.set(A,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var S=g||"value";function b(x){x.name==null&&(x.name=x.coordDim)}if(s)R(a,function(x){b(x)}),a.sort(function(x,A){return x.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=jN(S,i,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(ww(t,w)===nt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Gd(a,function(x){return x.name},function(x,A){A>0&&(x.name=x.name+(A-1))}),new DT({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qN(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return R(e,function(a){var o;ie(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jN(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 ZN=(function(){function t(e){this.coordSysDims=[],this.axisMap=ce(),this.categoryAxisMap=ce(),this.coordSysName=e}return t})();function KN(t){var e=t.get("coordinateSystem"),r=new ZN(e),n=QN[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var QN={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Zt).models[0],a=t.getReferringComponents("yAxis",Zt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Zt).models[0];e.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Zt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),va(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Zt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function va(t){return t.get("type")==="category"}function PT(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;JN(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(R(a,function(S,b){te(S)&&(a[b]=S={name:S}),d(S)||(h=!1)}),R(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,m=f.type,g=0;R(a,function(S){S.coordDim===p&&g++});var y={name:c,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function JN(t){return!ET(t.schema)}function Ua(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function IT(t,e){return Ua(t,e)?t.getCalculationInfo("stackResultDimension"):e}function eB(t,e){var r=t.get("coordinateSystem"),n=Bf.get(r),i;return e&&e.coordSysDims&&(i=oe(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=zN(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function tB(t,e,r){var n,i;return r&&R(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function LT(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===zt;var o=KN(e),s=eB(e,o),l=r.useEncodeDefaulter,u=fe(l)?l:l?Ue(Y2,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Gp(i,f),v=tB(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=PT(e,{schema:c,store:h}),p=new Vp(c,e);p.setCalculationInfo(d);var m=v!=null&&rB(i)?function(g,y,_,S){return S===v?_:this.defaultDimValueGetter(g,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,m),p}function rB(t){if(t.sourceFormat===zt){var e=nB(t.data||[]);return!K(ys(e))}}function nB(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var wr=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();_f(wr);var iB=0,Zv=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iB,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&oe(n,aB);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!te(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ce(this.categories))},t})();function aB(t){return ie(t)&&t.value!=null?t.value:t+""}var Qt=0,as=1,oB={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},OT=Pe(oB),Vu=2,kT=3;function Wp(t,e,r){var n;t=t||{};var i=St();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(R(OT,function(o){a[o]&&(t[o]=Ae(a[o],a))}),n=a)}return n==null&&lB(t,r),{brk:n,mapper:t}}function NT(t,e){R(OT,function(r){t[r]=e[r]})}function BT(t,e){t.freeze=at}function os(t){return t.getExtentUnsafe(Qt,Vu)}function Gu(t,e){return t.getExtentUnsafe(as,e)||t.getExtentUnsafe(Qt,e)}function sB(t){var e=Gu(t,kT);return e[1]-e[0]}function Vf(t){var e=t.getExtentUnsafe(Qt,kT);return e[1]-e[0]}function lB(t,e){var r=t||{},n=[];return r._extents=n,n[Qt]=e?e.slice():Xt(),G(r,uB),r}var uB={needTransform:function(){return!1},normalize:function(t){var e=this._extents[as]||this._extents[Qt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[as]||this._extents[Qt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Gu(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Qt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){Ly(this._extents,Qt,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Qt].slice()),Ly(n,t,e,r)},freeze:function(){}};function Ly(t,e,r,n){Fa(r,n)&&(t[e][0]=r,t[e][1]=n)}function FT(t){return Wu(t)||Va(t)}function Wu(t){return t.type==="interval"}function Yp(t){return t.type==="time"}function Va(t){return t.type==="log"}function Vr(t){return t.type==="ordinal"}function fB(t){var e=mf(t),r=Wi(10,e),n=Br(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,_e(n*r,-e)}function Hi(t){return Kr(t)+2}function cl(t,e){return Ni(t)/Ni(e)}function ph(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Wi(e,t)}function zT(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Ze(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!nn(n[0])||!nn(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function cB(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function $p(t,e){return t=t||e,Br(Ee(t,1))}function HT(t,e,r){var n=os(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var UT=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,NT(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Zv({})),K(i)&&(i=new Zv({categories:oe(i,function(o){return ie(o)?o.value:o})})),n._ordinalMeta=i;var a=Wp(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,BT(n),n}return e.parse=function(r){return r==null?r=NaN:te(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Br(r),r},e.prototype.getTicks=function(){var r=[];return HT(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=It(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=os(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Br(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(wr);wr.registerClass(UT);function Xp(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/e,d=Hi(h);f<e-1;){var p=_e(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var m=St();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},n,o),a.push(c)}}return a}var Ma=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=ow(n,r),a=Wp(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return de(this._cfg)},e.prototype.setConfig=function(r){var n=os(this);this._cfg=r=de(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Hi(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=os(this),o=n.niceExtent,s=n.intervalPrecision,l=St(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var v=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?_e(o[0]-i,s):a[0]});for(var h=function(_,S){return Br((S-_)/i)},d=n.intervalCount,p=o[0],m=0;;m++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(m>d)break;p=It(p,o[1]),m===d&&(p=o[1])}if(c.push({value:p}),p=_e(p+i,s),u){var g=u.calcNiceTickMultiple(p,h);g>=0&&(p=_e(p+g*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?_e(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Xp(this,r,Pu(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Kr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=_e(r.value,i,!0);return yp(a)},e.type="interval",e})(wr);wr.registerClass(Ma);var hB=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},VT=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=ow(n,r),a=Wp(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return xs(r.value,x0[x2(Fo(this._minLevelUnit))]||x0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return C2(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=os(this),a=St(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return St().addBreaksToTicks(l,o.breaks,i),l;l=_B(this._minLevelUnit,this._approxInterval,u,i,Vf(this),o);var f=kt.length-1,c=0;return R(l,function(v){v.time&&(f=Math.min(f,ge(kt,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&St().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&St().addBreaksToTicks(l,o.breaks,i,function(v){for(var h=Math.max(ge(kt,Da(v.vmin,u)),ge(kt,Da(v.vmax,u))),d=0,p=0;p<kt.length;p++)if(!GT(kt[p],v.vmin,v.vmax,u)){d=p;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:kt[g],upperTimeUnit:kt[m]}}),l},e.prototype.getMinorTicks=function(r){return Xp(this,r,Pu(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return Re(r)?Math.round(r):+ln(r)},e.type="time",e})(wr),hl=[["second",fp],["minute",cp],["hour",Bo],["quarter-day",Bo*6],["half-day",Bo*12],["day",Kt*1.2],["half-week",Kt*3.5],["week",Kt*7],["month",Kt*31],["quarter",Kt*95],["half-year",T0/2],["year",T0]];function GT(t,e,r,n){return Lu(new Date(e),t,n).getTime()===Lu(new Date(r),t,n).getTime()}function vB(t,e){return t/=Kt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dB(t){var e=30*Kt;return t/=e,t>6?6:t>3?3:t>2?2:1}function pB(t){return t/=Bo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Oy(t,e){return t/=e?cp:fp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gB(t){return Ee(yf(t,!0),1)}function mB(t,e,r){var n=Math.max(0,ge(kt,e)-1);return Lu(new Date(t),kt[n],r).getTime()}function yB(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function _B(t,e,r,n,i,a){var o=3e3,s=S2,l=0;function u(O,N,U,W,X,Q,J){for(var j=yB(X,O),z=N,re=new Date(z);z<U&&z<=n[1]&&(J.push({value:z}),!(l++>o));)if(re[X](re[W]()+O),z=re.getTime(),a){var se=a.calcNiceTickMultiple(z,j);se>0&&(re[X](re[W]()+se*O),z=re.getTime())}J.push({value:z,notAdd:z>n[1]})}function f(O,N,U){var W=[],X=!N.length;if(!GT(Fo(O),n[0],n[1],r)){X&&(N=[{value:mB(n[0],O,r)},{value:n[1]}]);for(var Q=0;Q<N.length-1;Q++){var J=N[Q].value,j=N[Q+1].value;if(J!==j){var z=void 0,re=void 0,se=void 0,L=!1;switch(O){case"year":z=Math.max(1,Math.round(e/Kt/365)),re=sw(r),se=A2(r);break;case"half-year":case"quarter":case"month":z=dB(e),re=hp(r),se=lw(r);break;case"week":case"half-week":case"day":z=vB(e),re=vp(r),se=uw(r),L=!0;break;case"half-day":case"quarter-day":case"hour":z=pB(e),re=dp(r),se=fw(r);break;case"minute":z=Oy(e,!0),re=pp(r),se=cw(r);break;case"second":z=Oy(e,!1),re=gp(r),se=hw(r);break;case"millisecond":z=gB(e),re=mp(r),se=vw(r);break}j>=n[0]&&J<=n[1]&&u(z,J,j,re,se,L,W),O==="year"&&U.length>1&&Q===0&&U.unshift({value:U[0].value-z})}}for(var Q=0;Q<W.length;Q++)U.push(W[Q])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var m=Fo(s[p]);if(T2(s[p])){f(s[p],c[c.length-1]||[],v);var g=s[p+1]?Fo(s[p+1]):null;if(m!==g){if(v.length){d=h,v.sort(function(O,N){return O.value-N.value});for(var y=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(y.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[p]))break}v=[]}}}for(var w=ze(oe(c,function(O){return ze(O,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(O){return O.length>0}),T=w.length-1,C=[],p=0;p<w.length;++p)for(var x=w[p],A=0;A<x.length;++A){var D=Da(x[A].value,r);C.push({value:x[A].value,time:{level:T-p,upperTimeUnit:D,lowerTimeUnit:D}})}Gd(C,FP,null),C.sort(function(O,N){return O.value-N.value});var P=C[0],M=C[C.length-1],I=Da(n[0],r),k=Da(n[1],r);return(!P||P.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),C}var SB=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Kt,r[1]+=Kt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Kt}t.setExtent(r[0],r[1]);var i=$p(e.splitNumber,10),a=Vf(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=hl.length,u=Math.min(hB(hl,a,0,l),l-1),f=hl[u][1],c=hl[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};wr.registerClass(VT);var vl=0,dl=1,bB=2,WT=(function(t){q(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Ma.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[vl]=i[dl]=a[vl]=a[dl]=NaN,NT(n,e.mapperMethods);var s=St(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},bB,u),n.powStub=new Ma({breakParsed:u.original}),n.intervalStub=new Ma({breakParsed:u.transformed}),BT(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=St(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return oe(o.getTicks(r||{}),function(f){var c=f.value,v=ph(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Pu(i),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return Xp(this,r,Pu(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(cl(r,this.base))},scale:function(r){return ph(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=cl(r,this.base),n&&n.depth===Vu?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return ky.depth=i,Ny.lookup=this._lookup,ph(i===Vu?r:this.intervalStub.transformOut(r,ky),this.base,Ny)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Qt,r,n)},setExtent2:function(r,n,i){if(!(!Fa(n,i)||n<=0||i<=0)){var a=By,o=By;if(r===Qt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[vl]=n,a[dl]=i);var l=this.base;this.intervalStub.setExtent2(r,o[vl]=cl(n,l),o[dl]=cl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Fa(n[0],n[1])&&Fr(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(wr);wr.registerClass(WT);var ky={},Ny={},By=[],YT={value:1,category:1,time:1,log:1},$T=we();function XT(t){var e=t.get("type");return(e==null||!Mt(YT,e)&&!wr.getClass(e))&&(e="value"),e}function qT(t,e,r){var n=St(),i;switch(n&&(i=jT(t,e,r)),e){case"category":return new UT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Xt()});case"time":return new VT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new WT({logBase:t.get("logBase"),breakOption:i});case"value":return new Ma({breakOption:i});default:return new(wr.getClass(e)||Ma)({})}}function wB(t,e,r){var n=t.getExtentUnsafe(Qt,null),i=n[0],a=n[1];return Fa(i,a)?i===e||a===e?xB:i<e&&a>e?TB:Kv:Kv}var TB=1,xB=2,Kv=3;function CB(t){$T(t).noOnMyZero=!0}function AB(t){return $T(t).noOnMyZero}function Gf(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=b2(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(te(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a!=null?a:"");return o};if(fe(e)){if(t.type==="category")return function(i,a){return e(Yu(t,i),i.value-t.scale.getExtent()[0],null)};var n=St();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Yu(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Yu(t,e){var r=t.scale;return Vr(r)?r.getLabel(e):e.value}function qp(t){var e=t.get("interval");return e==null?"auto":e}function DB(t){return t.type==="category"&&qp(t.getLabelModel())===0}function EB(t,e){var r={};return R(t.mapDimensionsAll(e),function(n){r[IT(t,n)]=!0}),Pe(r)}function Ga(t){return t==="middle"||t==="center"}function ss(t){return t.getShallow("show")}function jT(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!St()||!r||!RB(e)?void 0:n}function RB(t){return t!=="category"}function ZT(t,e,r,n,i,a){var o=Va(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Vu},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),v=cB(r,n);e[0]&&!v[0]&&(f=i[0]),e[1]&&!v[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Es(t,e){return Vr(t)?t.getRawOrdinalNumber(e.value):e.value}function KT(t,e){return Vr(t)&&!!e.get("boundaryGap")}var QT=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),Fy="|&",Rs=we(),MB=-2;we();function PB(t,e){var r=t.model,n=Rs(Ds(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function IB(t,e){return JT(PB(t,e))}function LB(t,e){var r=[];return OB(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(JT(n))}),r}function OB(t,e){var r=Rs(Ds(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function JT(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function kB(t,e){var r=t.model.ecModel,n=Rs(Ds(r)).axSer;n&&NB(r,n.get(t.model.uid),e)}function NB(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function ex(t,e){var r=t.model,n=Rs(Ds(r.ecModel)).keys;n&&R(n.get(r.uid),function(i){e(i)})}function zy(t,e,r){if(t){var n=e.ecModel,i=Rs(Ds(n)),a=t.model.uid,o=i.axSer||(i.axSer=ce()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,f=Uy.get(Hy(l,u,r))||Uy.get(Hy(l,u,null));if(f){var c=i.keyed||(i.keyed=ce()),v=i.keys||(i.keys=ce()),h=f.key,d=c.get(h)||c.set(h,ce()),p=d.get(a);p||(p=d.set(a,{axis:t,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(t),(v.get(a)||v.set(a,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function Hy(t,e,r){return t+Fy+ne(e,!0)+Fy+(r||"")}var Uy=ce(),BB=we(),FB=1,zB=3,tx=(function(){function t(e,r,n,i,a){var o=Vr(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(Wu(e)||Va(e)||Yp(e))&&(JS(f,mo(e,r.get("dataMin",!0))),eb(f,mo(e,r.get("dataMax",!0)))),NP(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=mo(e,fe(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=mo(e,fe(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=HB(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*m),!nn(c[0])&&(c[0]=NaN),!nn(c[1])&&(c[1]=NaN);var g=l||ka(c[0])||ka(c[1])||o&&!s,y=Wu(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=mo(e,r.get("startValue",!0)),w=b!=null;!Fr(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Fr(b)&&(w||!y||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:_,tggAxInv:S,ctnShp:a};Vy(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Vy(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Vy(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),BP(e))}function mo(t,e){return e==null?null:ka(e)?NaN:t.parse(e)}function HB(t,e){var r;if(Vr(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=K(n)?n:[n,n]}return[Gy(r[0]),Gy(r[1])]}function Gy(t){return ki(typeof t=="boolean"?0:t,1)||0}function rx(t){var e=BB(t.scale);return e.extent||(e.extent=Xt()),e}function UB(t,e){rx(t).dimIdxInCoord=e.get(t.dim)}function VB(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||GB(r,t,i,n,e)}function GB(t,e,r,n,i){var a=rx(e),o=a.extent,s=!1;kB(e,function(f){if(f.boxCoordinateSystem){var c=mw(f).coord,v=a.dimIdxInCoord;if(v>=0){if(K(c)){var h=c[v];h!=null&&!K(h)&&yv(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=t.getFilter?t.getFilter():null;R(EB(d,r),function(m){kP(o,d.getApproximateExtent(m,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=YB(t,e,n),u=new tx(t,n,o,s,l);nx(t,u,i),a.extent=null}function WB(t,e){var r=t.scale;nx(r,new tx(r,t.model,e,!1,!1),zB)}function nx(t,e,r){t.rawExtentInfo=e,e.from=r}var ix=ce();function ax(t,e,r,n,i){t.rawExtentInfo||WB({scale:t,model:e},i||Xt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function YB(t,e,r){var n=KT(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return ex(e,function(o){a=!!ix.get(o)||a}),a}function $B(t,e,r,n){if(r.ctnShp){var i;if(ex(t,function(s){var l=ix.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],JS(i,u[0]),eb(i,u[1]),CB(t))}}),!!i){var a=e.getExtent();if(Vr(e))t.onBand||e.setExtent2(as,It(a[0],a[0]+i[0]),Ee(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=It(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=Ee(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(as,o[0],o[1])}}}}function Wy(t,e){var r=Va(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=zT(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?qB(n,e):XB(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Hi(c)),i[0]||(s[0]=_e(rn(s[0]/f)*f,u)),i[1]||(s[1]=_e(ms(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),ZT(t,i,o,s,a,l)}function XB(t,e){var r=$p(e.splitNumber,5),n=Vf(t),i=e.minInterval,a=e.maxInterval,o=yf(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Hi(o),l=t.getExtent(),u=[_e(ms(l[0]/o)*o,s),_e(rn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function qB(t,e){var r=$p(e.splitNumber,10),n=t.getExtent(),i=Vf(t),a=Ee(Hd(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Hi(a),l=[_e(ms(n[0]/a)*a,s),_e(rn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Yy(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;ox(e,r,n,i,null)}function ox(t,e,r,n,i){var a=ax(t,e,n,r,i),o=Wu(t)||Yp(t);jB(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&$B(r,t,a,n)}function jB(t,e){ZB[t.type](t,e)}var ZB={interval:Wy,log:Wy,time:SB,ordinal:at};function KB(t){return LT(null,t)}var QB={isDimensionStacked:Ua,enableDataStack:PT,getStackedDimension:IT};function JB(t,e){var r=e;e instanceof Le||(r=new Le(e));var n=XT(r),i=qT(r,n,!1);return t[1]<t[0]&&(t=t.slice().reverse()),ox(i,r,null,null,t),i}function e5(t){ar(t,QT)}function t5(t,e){return e=e||{},on(t,null,null,e.state!=="normal")}const r5=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:XN,createList:KB,createScale:JB,createSymbol:zi,createTextStyle:t5,dataStack:QB,enableHoverEmphasis:Au,getECData:me,getLayoutRect:sn,mixinAxisModelCommonMethods:e5},Symbol.toStringTag,{value:"Module"}));var $y=[],n5={registerPreprocessor:Np,registerProcessor:Bp,registerPostInit:bT,registerPostUpdate:wT,registerUpdateLifecycle:Uf,registerAction:Xi,registerCoordinateSystem:TT,registerLayout:xT,registerVisual:Vn,registerTransform:AT,registerLoading:zp,registerMap:CT,registerImpl:Pk,PRIORITY:cT,ComponentModel:Se,ComponentView:Ct,SeriesModel:nr,ChartView:Pt,registerComponentModel:function(t){Se.registerClass(t)},registerComponentView:function(t){Ct.registerClass(t)},registerSeriesModel:function(t){nr.registerClass(t)},registerChartView:function(t){Pt.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){Se.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){HS(t,e)}};function zr(t){if(K(t)){R(t,function(e){zr(e)});return}ge($y,t)>=0||($y.push(t),fe(t)&&(t={install:t}),t.install(n5))}var i5=1e-8;function Xy(t,e){return Math.abs(t-e)<i5}function qy(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Zr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!Xy(i[0],s[0])||!Xy(i[1],s[1]))&&(n+=Zr(i[0],i[1],s[0],s[1],e,r)),n!==0}var a5=[];function gh(t,e){for(var r=0;r<t.length;r++)bt(t[r],t[r],e)}function jy(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Cn(e,e,a),An(r,r,a))}}function o5(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var sx=(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})(),Zy=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})(),Ky=(function(){function t(e){this.type="linestring",this.points=e}return t})(),s5=(function(t){q(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return o5(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 i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?jy(s.exterior,i,a,r):R(s.points,function(l){jy(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new le(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(qy(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(qy(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new le(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(gh(v.exterior,u),R(v.interiors,function(h){gh(h,u)})):R(v.points,function(h){gh(h,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})(sx);(function(t){q(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Gi(a5),o=r;o&&!o.isGeoSVGGraphicRoot;)Di(a,o.getLocalTransform(),a),o=o.parent;return Hn(a,a),bt(i,i,a),i},e})(sx);function l5(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return R(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=lx(s,o,r);break;case"Polygon":mh(s,o,r);break;case"MultiLineString":mh(s,o,r);break;case"MultiPolygon":R(s,function(l,u){return mh(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function mh(t,e,r){for(var n=0;n<t.length;n++)t[n]=lx(t[n],e[n],r)}function lx(t,e,r){for(var n=[],i=e[0],a=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+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Qy(t,e){return t=l5(t),oe(ze(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Zy(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new Zy(l[0],l.slice(1)))});break;case"LineString":a.push(new Ky([i.coordinates]));break;case"MultiLineString":a.push(new Ky(i.coordinates))}var s=new s5(n[e||"name"],a,n.cp);return s.properties=n,s})}const u5=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:gv,asc:Fd,getPercentWithPrecision:hP,getPixelPrecision:fP,getPrecision:Kr,getPrecisionSafe:VS,isNumeric:YS,isRadianAroundZero:jo,linearMap:_u,nice:yf,numericToNumber:Zo,parseDate:ln,parsePercent:He,quantile:pP,quantity:Hd,quantityExponent:mf,reformIntervals:gP,remRadian:zd,round:uP},Symbol.toStringTag,{value:"Module"})),f5=Object.freeze(Object.defineProperty({__proto__:null,format:xs,parse:ln,roundTime:Lu},Symbol.toStringTag,{value:"Module"})),c5=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ts,BezierCurve:Ef,BoundingRect:le,Circle:ws,CompoundPath:Lb,Ellipse:Cf,Group:rt,Image:un,IncrementalDisplayable:Fb,Line:an,LinearGradient:Qd,Polygon:Df,Polyline:qa,RadialGradient:kb,Rect:Ge,Ring:Af,Sector:$i,Text:Ke,clipPointsByRect:Zb,clipRectByRect:Kb,createIcon:Mf,extendPath:Wb,extendShape:Gb,getShapeClass:Yb,getTransform:qb,initProps:er,makeImage:tp,makePath:Rf,mergePath:Xb,registerShape:sr,resizePath:rp,updateProps:Lt},Symbol.toStringTag,{value:"Module"})),h5=Object.freeze(Object.defineProperty({__proto__:null,addCommas:yp,capitalFirst:R2,encodeHTML:yt,formatTime:E2,formatTpl:Sp,getTextRect:D2,getTooltipMarker:dw,normalizeCssArray:Cs,toCamelCase:_p,truncateText:eI},Symbol.toStringTag,{value:"Module"})),v5=Object.freeze(Object.defineProperty({__proto__:null,bind:Ae,clone:de,curry:Ue,defaults:Te,each:R,extend:G,filter:ze,indexOf:ge,inherits:Pd,isArray:K,isFunction:fe,isObject:ie,isString:te,map:oe,merge:be,reduce:kr},Symbol.toStringTag,{value:"Module"}));var d5=we(),Uo=we(),Sr={estimate:1,determine:2};function $u(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function p5(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:oe(ux(r,n),function(i,a){return{formattedLabel:Gf(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?m5(t,e):_5(t)}function g5(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:ux(i,n)}:t.type==="category"?y5(t,e):{ticks:n.getTicks(r)}}function ux(t,e){var r=e.getExtent(),n=[];return R(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Gd(n,zP,null),Fd(n),oe(n,function(i){return{value:i}})}function m5(t,e){var r=t.getLabelModel(),n=fx(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function fx(t,e,r){var n=b5(t),i=qp(e),a=r.kind===Sr.estimate;if(!a){var o=hx(n,i);if(o)return o}var s,l;fe(i)?s=Xu(t,i,!1):(l=i==="auto"?w5(t,r):i,s=Xu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Qv(n,i,u),!0}):Qv(n,i,u),u}function y5(t,e){var r=S5(t),n=qp(e),i=hx(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),fe(n))a=Xu(t,n,!0);else if(n==="auto"){var s=fx(t,t.getLabelModel(),$u(Sr.determine));o=s.labelCategoryInterval,a=oe(s.labels,function(l){return l.tick})}else o=n,a=Xu(t,o,!0);return Qv(r,n,{ticks:a,tickCategoryInterval:o})}function _5(t){var e=t.scale.getTicks(),r=Gf(t);return{labels:oe(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var S5=cx("axisTick"),b5=cx("axisLabel");function cx(t){return function(r){return Uo(r)[t]||(Uo(r)[t]={list:[]})}}function hx(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Qv(t,e,r){return t.list.push({key:e,value:r}),r}function w5(t,e){if(e.kind===Sr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Uo(t).autoInterval=r,!0}),r}var n=Uo(t).autoInterval;return n!=null?n:Uo(t).autoInterval=t.calculateCategoryInterval(e)}function T5(t,e){var r=e.kind,n=C5(t),i=Gf(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=BS(i({value:c}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var S=p/h,b=m/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Sr.estimate)return e.out.noPxChangeTryDetermine.push(Ae(x5,null,t,w,l)),w;var T=vx(t,w,l);return T!=null?T:w}function x5(t,e,r){return vx(t,e,r)==null}function vx(t,e,r){var n=d5(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function C5(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 Xu(t,e,r){var n=Gf(t),i=t.scale,a=[],o=fe(e);return HT(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var A5=.8;function Wf(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=sB(n);Fr(o)||(o=NaN);var s=t.getExtent(),l=Ze(s[1]-s[0]);return Vr(n)?D5(r,t,o,l):i&&E5(r,t,o,l,i),a!=null&&(r.w=Fr(r.w)?Ee(a,r.w):a),r}function D5(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function E5(t,e,r,n,i){var a=!1,o=-1/0;R(i.key?[IB(e,i.key)]:LB(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===MB&&(a=!0))}),Fr(r)&&r>0&&Fr(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*A5,t.w2=t.w*r/n)}var Jy=[0,1],dx=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),_u(e,Jy,e_(this),r)},t.prototype.coordToData=function(e,r){var n=_u(e,e_(this),Jy,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=g5(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=oe(n.ticks,function(s){return{coord:this.dataToCoord(Es(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=R5(this,i,a);return oe(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Vr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=oe(n,function(a){return oe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||$u(Sr.determine),p5(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Wf(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||$u(Sr.determine),T5(this,e)},t})();function e_(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function R5(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Wf(t).w;if(!i)return!1;R(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function M5(t){var e=Se.extend(t);return Se.registerClass(e),e}function P5(t){var e=Ct.extend(t);return Ct.registerClass(e),e}function I5(t){var e=nr.extend(t);return nr.registerClass(e),e}function L5(t){var e=Pt.extend(t);return Pt.registerClass(e),e}var yo=Math.PI*2,pi=Fn.CMD,O5=["top","right","bottom","left"];function k5(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0);break}}function N5(t,e,r,n,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,c=s*r+e;if(Math.abs(n-i)%yo<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var v=n;n=Qr(i),i=Qr(v)}else n=Qr(n),i=Qr(i);n>i&&(i+=yo);var h=Math.atan2(s,o);if(h<0&&(h+=yo),h>=n&&h<=i||h+yo>=n&&h+yo<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,m=r*Math.cos(i)+t,g=r*Math.sin(i)+e,y=(d-o)*(d-o)+(p-s)*(p-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function qu(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function px(t,e,r,n,i,a,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(i,t),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var vr=[];function B5(t,e,r){var n=px(e.x,e.y,e.width,e.height,t.x,t.y,vr);return r.set(vr[0],vr[1]),n}function F5(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=e.data,c=t.x,v=t.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var p=u;switch(d){case pi.M:a=f[h++],o=f[h++],n=a,i=o;break;case pi.L:p=qu(n,i,f[h],f[h+1],c,v,vr,!0),n=f[h++],i=f[h++];break;case pi.C:p=AS(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,vr),n=f[h++],i=f[h++];break;case pi.Q:p=ES(n,i,f[h++],f[h++],f[h],f[h+1],c,v,vr),n=f[h++],i=f[h++];break;case pi.A:var m=f[h++],g=f[h++],y=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var w=!!(1-f[h++]);s=Math.cos(S)*y+m,l=Math.sin(S)*_+g,h<=1&&(a=s,o=l);var T=(c-m)*_/y+m;p=N5(m,g,_,S,S+b,w,T,v,vr),n=Math.cos(S+b)*y+m,i=Math.sin(S+b)*_+g;break;case pi.R:a=n=f[h++],o=i=f[h++];var C=f[h++],x=f[h++];p=px(a,o,C,x,c,v,vr);break;case pi.Z:p=qu(n,i,a,o,c,v,vr,!0),n=a,i=o;break}p<u&&(u=p,r.set(vr[0],vr[1]))}return u}var pr=new he,De=new he,Fe=new he,Pr=new he,Rr=new he;function t_(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||O5,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=t.getComputedTransform(),c=f&&Hn([],f),v=e.get("length2")||0;u&&Fe.copy(u);for(var h=0;h<o.length;h++){var d=o[h];k5(d,0,s,pr,Pr),he.scaleAndAdd(De,pr,Pr,v),De.transform(c);var p=t.getBoundingRect(),m=u?u.distance(De):t instanceof Me?F5(De,t.path,Fe):B5(De,p,Fe);m<l&&(l=m,De.transform(f),Fe.transform(f),Fe.toArray(a[0]),De.toArray(a[1]),pr.toArray(a[2]))}gx(a,e.get("minTurnAngle")),r.setShape({points:a})}}}var ju=[],mt=new he;function gx(t,e){if(e<=180&&e>0){e=e/180*Math.PI,pr.fromArray(t[0]),De.fromArray(t[1]),Fe.fromArray(t[2]),he.sub(Pr,pr,De),he.sub(Rr,Fe,De);var r=Pr.len(),n=Rr.len();if(!(r<.001||n<.001)){Pr.scale(1/r),Rr.scale(1/n);var i=Pr.dot(Rr),a=Math.cos(e);if(a<i){var o=qu(De.x,De.y,Fe.x,Fe.y,pr.x,pr.y,ju,!1);mt.fromArray(ju),mt.scaleAndAdd(Rr,o/Math.tan(Math.PI-e));var s=Fe.x!==De.x?(mt.x-De.x)/(Fe.x-De.x):(mt.y-De.y)/(Fe.y-De.y);if(isNaN(s))return;s<0?he.copy(mt,De):s>1&&he.copy(mt,Fe),mt.toArray(t[1])}}}}function z5(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,pr.fromArray(t[0]),De.fromArray(t[1]),Fe.fromArray(t[2]),he.sub(Pr,De,pr),he.sub(Rr,Fe,De);var n=Pr.len(),i=Rr.len();if(!(n<.001||i<.001)){Pr.scale(1/n),Rr.scale(1/i);var a=Pr.dot(e),o=Math.cos(r);if(a<o){var s=qu(De.x,De.y,Fe.x,Fe.y,pr.x,pr.y,ju,!1);mt.fromArray(ju);var l=Math.PI/2,u=Math.acos(Rr.dot(e)),f=l+u-r;if(f>=l)he.copy(mt,Fe);else{mt.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-f));var c=Fe.x!==De.x?(mt.x-De.x)/(Fe.x-De.x):(mt.y-De.y)/(Fe.y-De.y);if(isNaN(c))return;c<0?he.copy(mt,De):c>1&&he.copy(mt,Fe)}mt.toArray(t[1])}}}}function yh(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function H5(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=su(n[0],n[1]),a=su(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Il([],n[1],n[0],o/i),l=Il([],n[1],n[2],o/a),u=Il([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function mx(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<bu.length;l++){var u=bu[l],f=e[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:ne(i.states[u]&&i.states[u].ignore,s);if(h||!ne(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&yh(n,!0,u,f);continue}n||(n=new qa,t.setTextGuideLine(n),!c&&(s||!o)&&yh(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),yh(n,!1,u,f)}}if(n){Te(n.style,r),n.style.fill=null;var p=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=H5}}function yx(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<rr.length;n++){var i=rr[n];r[i]=t.getModel([i,e])}return r}var r_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],U5=1,Zu=2,_x=U5|Zu;function Ku(t,e,r){r=r||_x,e?t.dirty|=r:t.dirty&=~r}function Sx(t,e){return e=e||_x,t.dirty==null||!!(t.dirty&e)}function Hr(t){if(t)return Sx(t)&&bx(t,t.label,t),t}function bx(t,e,r){var n=e.getComputedTransform();t.transform=op(t.transform,n);var i=t.localRect=es(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=ba.textMargin);for(var c=0;c<4;c++)_h[c]=f===ba.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ba.textMargin&&Ru(i,_h,!1,!1);var v=t.rect=es(t.rect,i);return n&&v.applyTransform(n),f===ba.minMargin&&Ru(v,_h,!1,!1),t.axisAligned=ap(n),(t.label=t.label||{}).ignore=e.ignore,Ku(t,!1),Ku(t,!0,Zu),t}var _h=[0,0,0,0];function V5(t,e,r){return t.transform=op(t.transform,r),t.localRect=es(t.localRect,e),t.rect=es(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=ap(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function G5(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Jv(t,e){for(var r=0;r<r_.length;r++){var n=r_[r];t[n]==null&&(t[n]=e[n])}return Hr(t)}function n_(t){var e=t.obb;return(!e||Sx(t,Zu))&&(t.obb=e=e||new Nb,e.fromBoundingRect(t.localRect,t.transform),Ku(t,!1,Zu)),e}function ed(t,e,r,n,i){var a=t.length,o=xn[e],s=za[e];if(a<2)return!1;t.sort(function(T,C){return T.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var v=t[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=t[0],p=t[a-1],m,g;y(),m<0&&b(-m,.8),g<0&&b(g,.8),y(),_(m,g,1),_(g,m,-1),y(),m<0&&w(-m),g<0&&w(g);function y(){m=d.rect[o]-r,g=n-p.rect[o]-p.rect[s]}function _(T,C,x){if(T<0){var A=Math.min(C,-T);if(A>0){S(A*x,0,a);var D=A+T;D<0&&b(-D*x,1)}else b(-T*x,1)}}function S(T,C,x){T!==0&&(f=!0);for(var A=C;A<x;A++){var D=t[A],P=D.rect;P[o]+=T,D.label[o]+=T}}function b(T,C){for(var x=[],A=0,D=1;D<a;D++){var P=t[D-1].rect,M=Math.max(t[D].rect[o]-P[o]-P[s],0);x.push(M),A+=M}if(A){var I=Math.min(Math.abs(T)/A,C);if(T>0)for(var D=0;D<a-1;D++){var k=x[D]*I;S(k,0,D+1)}else for(var D=a-1;D>0;D--){var k=x[D-1]*I;S(-k,D,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var x=Math.ceil(T/(a-1)),A=0;A<a-1;A++)if(C>0?S(x,0,A+1):S(-x,a-A-1,a),T-=x,T<=0)return}return f}function W5(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,i=r.labelLine;r.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}}function Tx(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Hr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(jp(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function jp(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:n_(t).intersect(n_(e),r,n)}function Y5(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function $5(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:Y5(n&&n.shape.points)}}var i_=["align","verticalAlign","width","height","fontSize"],vt=new Xa,Sh=we(),X5=we();function pl(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];e[i]!=null&&(t[i]=e[i])}}var gl=["x","y","rotation"],q5=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();le.applyTransform(f,f,u),u?vt.setLocalTransform(u):(vt.x=vt.y=vt.rotation=vt.originX=vt.originY=0,vt.scaleX=vt.scaleY=1),vt.rotation=Qr(vt.rotation);var c=i.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();le.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:vt.x,y:vt.y,scaleX:vt.scaleX,scaleY:vt.scaleY,rotation:vt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(fe(i)||Pe(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=me(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function i(_,S){return function(){t_(_,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;fe(o.layoutOptionOrCb)?f=o.layoutOptionOrCb($5(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=He(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=He(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=Sh(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<i_.length;p++){var m=i_[p];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",i(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),i=[];R(this._labelList,function(l){l.defaultAttr.ignore||i.push(Jv({},l))});var a=ze(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ze(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});ed(a,0,0,r),ed(o,1,0,n);var s=ze(i,function(l){return l.layoutOption.hideOverlap});W5(s),Tx(s)},t.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Sh(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),i=me(e),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");mx(e,yx(s),l),t_(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Ca(e))){var a=Sh(n),o=a.oldLayout,s=me(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(ge(v,"select")>=0&&n.attr(a.oldLayoutSelect),ge(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,r,l)}else if(n.attr(u),!kf(n).valueAnimation){var c=ne(n.style.opacity,1);n.style.opacity=0,er(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};pl(h,u,gl),pl(h,n.states.select,gl)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};pl(d,u,gl),pl(d,n.states.emphasis,gl)}t2(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=X5(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,er(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},t})(),bh=we();function j5(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=bh(r).labelManager;i||(i=bh(r).labelManager=new q5),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=bh(r).labelManager;R(n.updatedSeries,function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function Z5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function K5(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(a){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ml={};function a_(t,e,r){var n=it.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}function wh(t){return!t.__cursors.get(Bb)}function o_(t){var e=t.__cursors.get(Bb);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var xx=(function(t){q(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Vl,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||gu,typeof r=="string"?o=a_(r,n,i):ie(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Id(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=o_(this)},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=a_("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new le(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new le(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,T=1/0,C=0,x=0;x<o.length;++x){var A=o[x];if(A.intersect(S)){var D=new le(0,0,0,0);D.copy(A),D.union(S),o[x]=D,w=!0;break}else if(l){u.copy(S),u.union(A);var P=S.width*S.height,M=A.width*A.height,I=u.width*u.height,k=I-P-M;k<T&&(T=k,C=x)}}if(l&&(o[C].union(S),w=!0),!w){var b=new le(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var c=o_(this),v=c.startIdx;v<c.endIdx;++v){var h=r[v];if(h){var d=h.shouldBePainted(i,a,!0,!0),p=h.__isRendered&&(h.__dirty&Et||!d)?h.getPrevPaintRect():null;p&&f(p);var m=d&&(h.__dirty&Et||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,v=g.startIdx;v<g.endIdx;++v){var h=n[v],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var y;do{y=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(y=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(p,m,g,y){if(o.clearRect(p,m,g,y),n&&n!=="transparent"){var _=void 0;if(ds(n)){var S=n.global||n.__width===g&&n.__height===y;_=S&&n.__canvasGradient||Vv(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else aS(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Gv(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,m,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&R(i,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},e})(Ur),s_=1e5,gi=314159,Th=void 0,Q5=1,xh=2;function J5(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function eF(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}function l_(t,e,r,n){var i=new xx(t,e,e.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,Cx(i),i}function Cx(t){t.__cursorStack=[],t.__cursors=ce()}function tF(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function rF(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,tF({key:n})))}function yl(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function Ch(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function ut(t,e,r){for(var n=t.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=t.layers[a][o];(!r||(!(r&Vo)||s.__builtin__)&&(!(r&td)||!s.__builtin__)&&(!(r&Ax)||s!==t.hoverlayer))&&e(s,a,o,i)}}var Vo=1,td=2,Ax=4,_l=Vo|Ax,nF=(function(){function t(e,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||gu,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Id(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=l_(l,this,gi,Vl);c.initContext(),this._insertLayer(c,gi,Vl,!0),this._domRoot=e}else{this._width=al(e,0,n),this._height=al(e,1,n);var s=this._domRoot=eF(this._width,this._height);e.appendChild(s)}}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;e&&!ie(e)?r={paintAll:!!e}:r=e||{};var n=ne(r.refresh,!0),i=ne(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=xh),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return ut(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},td),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Th,n!==Th&&(!r&&n===xh&&(r=this._i.hoverlayer=this._ensureLayer(s_)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),xi(a,l,i),u&&(l.style=f)}}a&&(Ra(a,i),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(s_)},t.prototype.paintOne=function(e,r){Mp(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var i=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)ut(this._i,function(o){o.afterBrush&&o.afterBrush()},_l),this._paintHoverList(e);else{var a=this;fu(function(){a._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(gi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),ut(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)},Vo)},t.prototype._doPaintList=function(e,r){var n=this,i=!0;return ut(this._i,function(a){var o=!1;if(yl(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!wh(a)?a.createRepaintRects(e,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}yl(a,function(c){var v=n._paintPerCursor(a,c,e,s,u);i=i&&v})}},_l),ve.wxa&&ut(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=wh(e),u=l&&it.getTime(),f=r.drawIdx,c=r.notClearIdx,v=c>=0?Math.min(c,f):f;v<r.endIdx;v++){var h=n[v];if(!(v<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=xh),i!=null){var d=h.getPaintRect();d&&d.intersect(i)&&(xi(s,h,o),h.setPrevPaintRect(d))}else xi(s,h,o);if(l){var p=it.getTime()-u;if(p>15){v++;break}}}}Ra(s,o),r.drawIdx=Math.max(v,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=gi,r=0);var a=Ch(this._i,e)[r];return a||(a=l_("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&be(a,this._layerConfig[e],!0),(n||i&&e!==gi)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&J5(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<n);)c++;if(c>0&&(u=Ch(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:n}),Ch(a,r)[n]=e,!i&&!e.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(e.dom,v.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)},Vo)},t.prototype.eachOtherLayer=function(e,r){return ut(this._i,function(n,i){e.call(r,n,i)},td)},t.prototype.getLayers=function(){var e={};return ut(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}ut(n._i,function(m){m.__dirty=!1,yl(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},_l);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],v=a.zlevel,h=a.incremental,d=void 0;if(o!==v&&(o=v,u=!1),h?(u=!0,d=NL):d=u?kL:Vl,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){uf("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=rF(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Et&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}ut(n._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var S=y.get(g[_]);if(!S.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var b=S.endIdxNew;(wh(m)?b<S.drawIdx:b!==S.endIdx||!b||e[b-1].id!==S.last)&&(m.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?e[b-1].id:NaN}}m.__dirty&&(yl(m,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Th&&(n._hoverLayerDirty=Q5))},_l)},t.prototype.clear=function(){return ut(this._i,function(e){e.clear(),Cx(e)},Vo),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,ut(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?be(n[e],r,!0):n[e]=r,ut(this._i,function(i,a){be(i,n[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),r!=null&&(i.height=r),e=al(a,0,i),r=al(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",ut(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(gi).resize(e,r)}return this},t.prototype.clearLayer=function(e){R(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[gi][0].dom;var r=new xx("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;ut(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];xi(n,f,o)}Ra(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function iF(t){t.registerPainter("canvas",nF)}var aF=(function(t){q(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,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new Nw(this),j0(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),j0(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:mr},e})(Se),oF=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Ct);function sF(t){t.registerComponentModel(aF),t.registerComponentView(oF)}zr([iF,sF]);const lF={init:function(){return _T.apply(null,arguments)}};zr(j5);const uF=Object.freeze(Object.defineProperty({__proto__:null,Axis:dx,ChartView:Pt,ComponentModel:Se,ComponentView:Ct,List:Vp,Model:Le,PRIORITY:cT,SeriesModel:nr,color:xM,connect:DN,dataTool:kN,default:lF,dependencies:fN,disConnect:EN,disconnect:ST,dispose:RN,env:ve,extendChartView:L5,extendComponentModel:M5,extendComponentView:P5,extendSeriesModel:I5,format:h5,getCoordinateSystemDimensions:PN,getInstanceByDom:Op,getInstanceById:MN,getMap:ON,graphic:c5,helper:r5,init:_T,innerDrawElementOnCanvas:Mp,matrix:KR,number:u5,parseGeoJSON:Qy,parseGeoJson:Qy,registerAction:Xi,registerCoordinateSystem:TT,registerCustomSeries:IN,registerLayout:xT,registerLoading:zp,registerLocale:up,registerMap:CT,registerPostInit:bT,registerPostUpdate:wT,registerPreprocessor:Np,registerProcessor:Bp,registerTheme:kp,registerTransform:AT,registerUpdateLifecycle:Uf,registerVisual:Vn,setCanvasCreator:LN,setPlatformAPI:eS,throttle:Ep,time:f5,use:zr,util:v5,vector:OR,version:uN,zrUtil:CR,zrender:nP},Symbol.toStringTag,{value:"Module"})),fF=K5(uF);var u_;function cF(){return u_||(u_=1,(function(t){(function(e,r){typeof t.nodeName!="string"?r(t,fF):r({},e.echarts)})(ml,function(e,r){var n=function(s){typeof console!="undefined"&&console&&console.error&&console.error(s)};if(!r){n("ECharts is not Loaded");return}var i=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],a=function(){return{axisLine:{lineStyle:{color:"#6E7079"}},axisLabel:{color:null},splitLine:{lineStyle:{color:["#E0E6F1"]}},splitArea:{areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}},minorSplitLine:{color:"#F4F7FD"}}},o=["#f6efa6","#d88273","#bf444c"];r.registerTheme("v5",{color:i,gradientColor:o,loading:{textColor:"red"},bar:{defaultBarGap:"20%",select:{itemStyle:{borderColor:"#212121",borderWidth:1}}},boxplot:{emphasis:{itemStyle:{shadowColor:"rgba(0,0,0,0.2)"}}},funnel:{bottom:60,select:{itemStyle:{borderColor:"#212121",borderWidth:1}},label:{color:"inherit"}},gauge:{axisLine:{lineStyle:{color:[[1,"#E6EBF8"]]}},splitLine:{lineStyle:{color:"#63677A"}},axisTick:{lineStyle:{color:"#63677A"}},axisLabel:{color:"#464646"},anchor:{itemStyle:{color:"#fff",borderColor:"#5470c6"}},title:{color:"#464646"},detail:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",color:"#464646"}},graph:{lineStyle:{color:"#aaa"},select:{itemStyle:{borderColor:"#212121"}}},heatmap:{select:{itemStyle:{borderColor:"#212121"}}},line:{symbolSize:4},pictorialBar:{select:{itemStyle:{borderColor:"#212121",borderWidth:1}}},pie:{radius:[0,"75%"],labelLine:{length2:15}},map:{defaultItemStyleColor:"#eee",label:{color:"#000"},itemStyle:{borderColor:"#444",areaColor:"#eee"},emphasis:{label:{color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}}},sankey:{lineStyle:{color:"#314656"},select:{itemStyle:{borderColor:"#212121"}}},scatter:{select:{itemStyle:{borderColor:"#212121"}}},tree:{lineStyle:{color:"#ccc"}},treemap:{left:"center",top:"middle",width:"80%",height:"80%",scaleLimit:{max:null,min:null},breadcrumb:{top:"bottom",bottom:null,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:(()=>{const s=a();return s.axisTick={show:!0},s})(),axisPointer:{lineStyle:{color:"#B9BEC9"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{backgroundColor:"auto",color:"#fff"},handle:{color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2}},brush:{brushStyle:{color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},defaultOutOfBrushColor:"#ddd"},calendar:{splitLine:{lineStyle:{color:"#000"}},itemStyle:{borderColor:"#ccc"},dayLabel:{margin:"50%",color:"#000"},monthLabel:{margin:5,color:"#000"},yearLabel:{margin:30,color:"#ccc"}},dataZoom:{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}},handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleStyle:{color:"#D2DBEE",opacity:.7},textStyle:{color:"#6E7079"},brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7",opacity:.7}},defaultLocationEdgeGap:7},geo:{defaultItemStyleColor:"#eee",label:{color:"#000"},itemStyle:{borderColor:"#444"},emphasis:{label:{color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}}},grid:{left:"10%",top:60,bottom:70,borderColor:"#ccc"},legend:{top:0,bottom:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",itemGap:10,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",lineStyle:{inactiveColor:"#ccc"},textStyle:{color:"#333"},selectorLabel:{color:"#666",borderColor:"#666"},emphasis:{selectorLabel:{color:"#eee",backgroundColor:"#666"}},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageTextStyle:{color:"#333"}},radar:(()=>{const s=a();return s.radius="75%",s.axisName={color:"#bbb"},s.axisLine.lineStyle.color="#bbb",s})(),timeline:{padding:5,borderColor:"#ccc",lineStyle:{color:"#DAE1F5"},label:{color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)"},controlStyle:{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",color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}}},title:{left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",textStyle:{color:"#464646"},subtextStyle:{color:"#6E7079"}},toolbox:{borderColor:"#ccc",padding:5,itemGap:8,iconStyle:{borderColor:"#666"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}},tooltip:{axisPointer:{crossStyle:{color:"#999"}},textStyle:{color:"#666"},backgroundColor:"#fff",borderWidth:1,defaultBorderColor:"#fff"},visualMap:{color:[o[2],o[1],o[0]],inactive:["rgba(0,0,0,0)"],indicatorStyle:{shadowColor:"rgba(0,0,0,0.2)"},backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",padding:5,textStyle:{color:"#333"}}})})})(ml)),ml}cF();var Dx={left:0,right:0,top:0,bottom:0},Qu=["25%","25%"],Zl="cartesian2d",hF=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=As(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&zn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&zn(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Dx,outerBoundsContain:"all",outerBoundsClampWidth:Qu[0],outerBoundsClampHeight:Qu[1],backgroundColor:ae.color.transparent,borderWidth:1,borderColor:ae.color.neutral30},e})(Se),rd=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zt).models[0]},e.type="cartesian2dAxis",e})(Se);ar(rd,QT);var Ex={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:"auto",onZeroAxisIndex:null,lineStyle:{color:ae.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:ae.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ae.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ae.color.backgroundTint,ae.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ae.color.neutral00,borderColor:ae.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},vF=be({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ex),Zp=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ae.color.axisMinorSplitLine,width:1}}},Ex),dF=be({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zp),pF=Te({logBase:10},Zp);const gF={category:vF,value:Zp,time:dF,log:pF};var mF=null;function Yf(){return mF}function f_(t,e,r,n){R(YT,function(i,a){var o=be(be({},gF[a],!0),n,!0),s=(function(l){q(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=ts(this),h=v?As(f):{},d=c.getTheme();be(f,d.get(a+"Axis")),be(f,this.getDefaultOption()),f.type=c_(f),v&&zn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Zv.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Yf();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",c_)}function c_(t){return t.type||(t.data?"category":"value")}var yF=(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 oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ze(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})(),Kl=["x","y"];function h_(t){return(t.type==="interval"||t.type==="time")&&!Iu(t)}var _F=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zl,r.dimensions=Kl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!h_(r)||!h_(n))){var i=Gu(r,null),a=Gu(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Hn([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new le(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return bt(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return bt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new le(a,o,s,l)},e})(yF),SF=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(dx),bF="expandAxisBreak",Rn=Math.PI,wF=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],TF=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ui=we(),Rx=we(),Mx=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function xF(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Kp(t.axisName)&&Ga(t.nameLocation);R(n,function(d){var p=Hr(d);if(!(!p||p.label.ignore)){o.push(p);var m=a.transGroup;l&&(m.transform?Hn(_o,m.transform):Gi(_o),p.transform&&Di(_o,_o,p.transform),le.copy(Sl,p.localRect),Sl.applyTransform(_o),s?s.union(Sl):le.copy(s=new le(0,0,0,0),Sl))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new le(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var _o=Jt(),Sl=new le(0,0,0,0),Px=function(t,e,r,n,i,a){if(Ga(t.nameLocation)){var o=a.stOccupiedRect;o&&Ix(V5({},o,a.transGroup.transform),n,i)}else Lx(a.labelInfoList,a.dirVec,n,i)};function Ix(t,e,r){var n=new he;jp(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&G5(e,n)}function Lx(t,e,r,n){for(var i=he.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||Ix(s,r,n)}}var On=(function(){function t(e,r,n,i){this.group=new rt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new Mx(Px),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=ne(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ne(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:ne(e.nameDirection,1),tickDirection:ne(e.tickDirection,1),labelDirection:ne(e.labelDirection,1),labelOffset:ne(e.labelOffset,0),silent:ne(e.silent,!0),axisName:i,nameLocation:Mn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Kp(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new rt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new he(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),R(CF,function(i){e[i]&&AF[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=zd(r-e),a,o;return jo(i)?(o=n>0?"top":"bottom",a="center"):jo(i-Rn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Rn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),CF=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],AF={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(bt(f,f,u),bt(c,c,u));var h=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&Iu(n.axis.scale))Yf().buildAxisBreakLine(n,i,a,d);else{var p=new an(G({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Jo(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var g=n.get(["axisLine","symbolSize"]);te(m)&&(m=[m,m]),(te(g)||Re(g))&&(g=[g,g]);var y=tT(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];R([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(m[w]!=="none"&&m[w]!=null){var T=zi(m[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,x=v?c:f;T.attr({rotation:b.rotate,x:x[0]+C*Math.cos(t.rotation),y:x[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=d_(e,i,s);l&&v_(t,e,r,n,i,a,o,Sr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=d_(e,i,s);l&&v_(t,e,r,n,i,a,o,Sr.determine);var u=MF(t,i,a,n);RF(t,e.labelLayoutList,u),PF(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Kp(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new he(0,0),g=new he(0,0);f==="start"?(m.x=d[0]-p*h,g.x=-p):f==="end"?(m.x=d[1]+p*h,g.x=p):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+c*h,g.y=c);var y=Jt();g.transform(hf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Rn/180);var S,b;Ga(f)?S=On.innerTextLayout(t.rotation,_!=null?_:t.rotation,c):(S=DF(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,x=Wo(t.raw.nameTruncateMaxWidth,T.maxWidth,b),A=s.nameMarginLevel||0,D=new Ke({x:m.x,y:m.y,rotation:S.rotation,silent:On.isLabelSilent(n),style:on(v,{text:u,font:w,overflow:"truncate",width:x,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Pf({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var P=On.makeAxisEventDataBase(n);P.targetType="axisName",P.name=u,me(D).eventData=P}a.add(D),D.updateTransform(),e.nameEl=D;var M=l.nameLayout=Hr({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Ga(f)?wF[A]:TF[A]});if(l.nameLocation=f,i.add(D),D.decomposeTransform(),t.shouldNameMoveOverlap&&M){var I=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,g,I)}}}};function v_(t,e,r,n,i,a,o,s){kx(e)||IF(t,e,i,s,n,o);var l=e.labelLayoutList;LF(t,n,l,a),NF(n,t.rotation,l);var u=t.optionHideOverlap;EF(n,l,u),u&&Tx(ze(l,function(f){return f&&!f.label.ignore})),xF(t,r,n,l)}function DF(t,e,r,n){var i=zd(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return jo(i-Rn/2)?(o=l?"bottom":"top",a="center"):jo(i-Rn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Rn*1.5&&i>Rn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function EF(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(DB(n))return;function a(u,f,c){var v=Hr(e[f]),h=Hr(e[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&i)return;var p=Ui(v.label).labelInfo.tick;if(Yp(d)&&p.notNice||Vr(d)&&p.offInterval){ma(v.label);return}}if(u===!1||v.suggestIgnore){ma(v.label);return}if(h.suggestIgnore){ma(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];v=Jv({marginForce:g},v),h=Jv({marginForce:g},h)}jp(v,h,null,{touchThreshold:m})&&ma(u?h.label:v.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function RF(t,e,r){t.showMinorTicks||R(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=Rx(a),s=Ui(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){ma(a);return}}})}function ma(t){t&&(t.ignore=!0)}function Ox(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(bt(o,o,e),bt(s,s,e));var f=new an({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Jo(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=Rx(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function MF(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=Ox(u,r.transform,l,Te(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function PF(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=Te(l.getLineStyle(),Te(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=Ox(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}function d_(t,e,r){if(kx(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),nd(t,null,null,null))}return!0}function IF(t,e,r,n,i,a){var o=i.axis,s=Wo(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new rt;r.add(l);var u=$u(n);if(!s||o.scale.isBlank()){nd(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(Wo(t.raw.labelRotate,f.get("rotate"))||0)*Rn/180,h=On.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;R(c,function(S,b){var w,T=S.tick,C=S.formattedLabel,x=S.rawLabel,A=f,D=Es(o.scale,T);if(d&&d[D]){var P=d[D];ie(P)&&P.textStyle&&(A=new Le(P.textStyle,f,i.ecModel))}var M=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),I=A.getShallow("align",!0)||h.textAlign,k=ne(A.getShallow("alignMinLabel",!0),I),O=ne(A.getShallow("alignMaxLabel",!0),I),N=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,U=ne(A.getShallow("verticalAlignMinLabel",!0),N),W=ne(A.getShallow("verticalAlignMaxLabel",!0),N),X=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);g=Math.min(g,X),y=Math.max(y,X);var Q=new Ke({x:0,y:0,rotation:0,silent:On.isLabelSilent(i),z2:X,style:on(A,{text:C,align:b===0?k:b===c.length-1?O:I,verticalAlign:b===0?U:b===c.length-1?W:N,fill:fe(M)?M(o.type==="category"?x:o.type==="value"?D+"":D,b):M})});Q.anid="label_"+D;var J=Ui(Q);if(J.labelInfo=S,J.layoutRotation=h.rotation,Pf({el:Q,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return Q.isTruncated},value:x,tickIndex:b}}),m){var j=On.makeAxisEventDataBase(i);j.targetType="axisLabel",j.value=x,j.tickIndex=b;var z=S.tick.break;if(z){var re=z.parsedBreak;j.break={start:re.vmin,end:re.vmax}}o.type==="category"&&(j.dataIndex=D),me(Q).eventData=j,z&&kF(i,a,Q,z)}p.push(Q),l.add(Q)});var _=oe(p,function(S){return{label:S,priority:Ui(S).labelInfo.tick.break?S.z2+(y-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});nd(e,_,l,u)}function kx(t){return!!t.labelLayoutList}function nd(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function LF(t,e,r,n){var i=e.get(["axisLabel","margin"]);R(r,function(a,o){var s=Hr(a);if(s){var l=s.label,u=Ui(l);s.suggestIgnore=l.ignore,l.ignore=!1,mu(qr,OF);var f=e.axis;qr.x=f.dataToCoord(Es(f.scale,u.labelInfo.tick)),qr.y=t.labelOffset+t.labelDirection*i,qr.rotation=u.layoutRotation,n.add(qr),qr.updateTransform(),n.remove(qr),qr.decomposeTransform(),mu(l,qr),l.markRedraw(),Ku(s,!0),Hr(s)}})}var qr=new Ge,OF=new Ge;function Kp(t){return!!t}function kF(t,e,r,n){r.on("click",function(i){var a={type:bF,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function NF(t,e,r){var n=St();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&Ui(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&R(i,function(o){Yf().adjustBreakLabelPair(t.axis.inverse,e,[Hr(r[o[0]]),Hr(r[o[1]])])})}}function Ju(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wo(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function BF(t){var e={xAxisModel:null,yAxisModel:null};return R(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Zt).models[0];e[n]=a}),e}function FF(t,e,r,n,i,a){for(var o=Ju(t,r),s=!1,l=!1,u=0;u<e.length;u++)FT(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new On(r,n,o,i)}function zF(t,e,r){var n=Ju(e,r);t.updateCfg(n)}function HF(t,e){var r=t.scale,n=t.model,i=ax(r,n,n.ecModel,t,null),a=Va(r),o=Va(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Ze(u[0].value-u[1].value),m=Ze(u[1].value-u[2].value);v=h=0,p===m?d=2:(d=1,p<m?v=p/m:h=m/p)}else{var g=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(v?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),T=zT(w,S),C,x,A,D,P,M;function I(J){for(var j=50,z=0;z<j&&!J();z++)A=a?A*Ee(l,2):fB(A),D=Hi(A)}function k(){C=_e(M-A*v,D)}function O(){x=_e(P+A*h,D)}function N(){M=v?_e(C+A*v,D):C}function U(){P=h?_e(x-A*h,D):x}if(S[0]&&S[1]){C=T[0],x=T[1],A=(x-C)/(d+v+h);var W=t.getExtent(),X=Ze(W[1]-W[0]);D=cP([x,C],X,.5/d),N(),U(),Fr(D)&&(A=_e(A,D))}else{var Q=T[1]-T[0];A=a?Ee(Hd(Q),1):yf(Q/d,WS),D=Hi(A),S[0]?(C=T[0],I(function(){if(N(),P=_e(M+A*d,D),O(),x>=T[1])return!0})):S[1]?(x=T[1],I(function(){if(U(),M=_e(P-A*d,D),k(),C<=T[0])return!0})):I(function(){M=_e(ms(T[0]/A)*A,D),P=_e(rn(T[1]/A)*A,D);var J=Br((P-M)/A);if(J<=d){var j=d-J,z=void 0,re=i.incl0||a;if(re&&T[0]===0)z=[0,j];else if(re&&T[1]===0)z=[j,0];else{var se=rn(j/2);z=j%2===0?[se,se]:C+x<T[0]+T[1]?[se,se+1]:[se+1,se]}if(M=_e(M-A*z[0],D),P=_e(P+A*z[1],D),k(),O(),C<=T[0]&&x>=T[1])return!0}})}ZT(r,S,w,[C,x],b,{interval:A,intervalCount:d,intervalPrecision:D,niceExtent:[M,P]})}var p_=[[3,1],[0,2]],UF=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Kl,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;R(this._axesList,function(o){VB(o,FB);var s=o.scale;Vr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Pe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Yy(f)}R(l,function(c){GF(c,c.__alignTo)?Yy(c):HF(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};R(n.x,function(o){g_(n,"y",o,a)}),R(n.y,function(o){g_(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Ff(e,r),a=this._rect=sn(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Nx(o,a),!n){var u=YF(a,s,o,l,r),f=void 0;if(l)f=S_(a.clone(),"axisLabel",null,a,o,u,i);else{var c=$F(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=S_(v,h,d,a,o,u,i))}Bx(a,o,Sr.determine,null,f,i),R(this._coordsList,function(p){p.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}ie(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Zt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Zt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ge(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,R(s.x,function(f,c){R(s.y,function(v,h){var d="x"+c+"y"+h,p=new _F(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),y_(s.x),y_(s.y);function u(f){return function(c,v){if(VF(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=XT(c),p=new SF(f,qT(c,d,!0),[0,0],d,h);p.onBand=KT(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return R(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ge(r,a)<0&&r.push(a),ge(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),R(o._axesList,function(s){UB(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;k2({targetModel:i,coordSysType:Zl,coordSysProvider:s});function s(){var l=BF(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(zy(a,i,Zl),zy(o,i,Zl))},this),n},t.dimensions=Kl,t.dimIdxMap=Up(Kl),t})();function VF(t,e){return t.getCoordSysModel()===e}function g_(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)m_(s,i[l])&&(a=i[l]);else for(var u in i)if(Mt(i,u)&&m_(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function m_(t,e){if(!e)return!1;var r=e.scale,n=wB(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==Kv;return i&&t==="auto"&&AB(e)&&(i=!1),i}function y_(t){for(var e=Pe(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];FT(a.scale)&&jT(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&R(n,function(o){o.__alignTo=r})}function GF(t,e){return Iu(t.scale)||Iu(e.scale)||e.scale.getTicks().length<2}function WF(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function Nx(t,e){R(t.x,function(r){return __(r,e.x,e.width)}),R(t.y,function(r){return __(r,e.y,e.height)})}function __(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),WF(t,e)}function S_(t,e,r,n,i,a,o){Bx(n,i,Sr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=iS(s,function(v){return v>0})==null;return Ru(n,s,!0,!0,r),Nx(i,n),l;function u(v){R(i[xn[v]],function(h){if(ss(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var m=0;m<p.length;m++){var g=p[m],y=h.scale.normalize(Es(h.scale,Ui(g.label).labelInfo.tick));y=v===1?1-y:y,f(g.rect,v,y),f(g.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Ga(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=t[xn[h]]-v[xn[h]],m=v[za[h]]+v[xn[h]]-(t[za[h]]+t[xn[h]]);p=c(p,1-d),m=c(m,d);var g=p_[h][0],y=p_[h][1];s[g]=Ee(s[g],p),s[y]=Ee(s[y],m)}function c(v,h){return v>0&&!ka(h)&&h>1e-4&&(v/=h),v}}function YF(t,e,r,n,i){var a=new Mx(XF);return R(r,function(o){return R(o,function(s){if(ss(s.model)){var l=!n;s.axisBuilder=FF(t,e,s.model,i,a,l)}})}),a}function Bx(t,e,r,n,i,a){var o=r===Sr.determine;R(e,function(u){return R(u,function(f){ss(f.model)&&(zF(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[xn[1-u]]=t[za[u]]<=a.refContainer[za[u]]*.5?0:1-u===1?2:1}R(e,function(u,f){return R(u,function(c){ss(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function $F(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=sn(t.get("outerBounds",!0)||Dx,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ge(["all","axisLabel"],a)<0?o="all":o=a;var s=[pv(ne(t.get("outerBoundsClampWidth",!0),Qu[0]),e.width),pv(ne(t.get("outerBoundsClampHeight",!0),Qu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var XF=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Px(t,e,r,n,i,a),Ga(t.nameLocation)||R(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Lx(s.labelInfoList,s.dirVec,n,i)})};function qF(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jF(r,t,e),r.seriesInvolved&&KF(r,t),r}function jF(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ls(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Ue(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&R(d.baseAxes,Ue(p,h?"cross":!0,v)),h&&R(d.otherAxes,Ue(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!m&&!id(_))){g==null&&(g=_.get("triggerTooltip")),_=m?ZF(y,c,i,e,m,g):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=ls(y.model),C=g||b||y.type==="category",x=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:id(_),seriesModels:[],linkGroup:null};u[T]=x,t.seriesInvolved=t.seriesInvolved||C;var A=QF(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[T]=x,D.mapper=a[A].mapper,x.linkGroup=D}}}})}function ZF(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(v){l[v]=de(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Te(u,c.textStyle)}}return t.model.getModel("axisPointer",new Le(l,r,n))}function KF(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||R(t.coordSysAxesInfo[ls(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 QF(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Ah(a[n+"AxisId"],r.id)||Ah(a[n+"AxisIndex"],r.componentIndex)||Ah(a[n+"AxisName"],r.name))return i}}function Ah(t,e){return t==="all"||K(t)&&ge(t,e)>=0||t===e}function JF(t){var e=Qp(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=id(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Qp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ls(t)]}function ez(t){var e=Qp(t);return e&&e.axisPointerModel}function id(t){return!!t.get(["handle","show"])}function ls(t){return t.type+"||"+t.id}var b_={},Fx=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&JF(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=ez(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){b_[r]=n},e.getAxisPointerClass=function(r){return r&&b_[r]},e.type="axis",e})(Ct),ad=we();function tz(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=ad(t).splitAreaColors,v=ce(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=K(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=m,S=l.y,b=y-_,w=l.height,m=_+b):(_=l.x,S=m,b=l.width,w=y-S,m=S+w);var T=u[d-1].tickValue;T!=null&&v.set(T,h),e.add(new Ge({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:w},style:Te({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}ad(t).splitAreaColors=v}}}function rz(t){ad(t).splitAreaColors=null}var nz=["splitArea","splitLine","minorSplitLine","breakArea"],zx=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!ss(r)){this._axisGroup.add(r.axis.axisBuilder.group),R(nz,function(l){r.get([l,"show"])&&iz[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||jb(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){rz(this)},e.type="cartesianAxis",e})(Fx),iz={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=K(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;v?(p[0]=_,p[1]=c.y,m[0]=_,m[1]=c.y+c.height):(p[0]=c.x,p[1]=_,m[0]=c.x+c.width,m[1]=_);var b=h++%l.length,w=new an({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:Te({stroke:l[b]},g),silent:!0});Jo(w.shape,g.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var m=a.toGlobalCoord(f[d][p].coord);u?(c[0]=m,c[1]=l.y,v[0]=m,v[1]=l.y+l.height):(c[0]=l.x,c[1]=m,v[0]=l.x+l.width,v[1]=m);var g=new an({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});Jo(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){tz(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=Yf(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},Hx=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(zx),az=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Hx.type,r}return e.type="yAxis",e})(zx),oz=(function(t){q(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 Ge({shape:r.coordinateSystem.getRect(),style:Te({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ct),w_={offset:0};function sz(t){t.registerComponentView(oz),t.registerComponentModel(hF),t.registerCoordinateSystem("cartesian2d",UF),f_(t,"x",rd,w_),f_(t,"y",rd,w_),t.registerComponentView(Hx),t.registerComponentView(az),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var mi=we(),T_=de,Dh=Ae,lz=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new rt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=Ue(x_,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}A_(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&Wf(i).w>s)return!0;if(o){var l=Qp(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=mi(e).pointerEl=new KL[a.type](T_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=mi(e).labelEl=new Ke(T_(r.label));e.add(a),C_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=mi(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=mi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),C_(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Mf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gS(u.event)},onmousedown:Dh(this._onHandleDragMove,this,0,0),drift:Dh(this._onHandleDragMove,this),ondragend:Dh(this._onHandleDragEnd,this)}),n.add(i)),A_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");K(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Yw(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){x_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Eh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Eh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Eh(i)),mi(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),zv(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 x_(t,e,r,n){Ux(mi(r).lastProp,n)||(mi(r).lastProp=n,e?Lt(r,n,t):(r.stopAnimation(),r.attr(n)))}function Ux(t,e){if(ie(t)&&ie(e)){var r=!0;return R(e,function(n,i){r=r&&Ux(t[i],n)}),!!r}else return t===e}function C_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Eh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function A_(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function uz(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 fz(t,e,r,n,i){var a=r.get("value"),o=Vx(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Cs(s.get("padding")||0),u=s.getFont(),f=BS(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),cz(c,v,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:on(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function cz(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Vx(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Yu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),te(o)?a=o.replace("{value}",a):fe(o)&&(a=o(s))}return a}function Gx(t,e,r){var n=Jt();return hf(n,n,r.rotation),uu(n,n,r.position),np([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function hz(t,e,r,n,i,a){var o=On.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),fz(e,n,i,a,{position:Gx(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vz(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function dz(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function pz(t,e,r){return Wf(t,{fromStat:{sers:oe(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function gz(t,e,r){return[Ee(It(e[0],e[1]),t-r/2),It(t+r/2,Ee(e[0],e[1]))]}var mz=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=D_(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=uz(a),d=yz[u](s,v,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=Ju(l.getRect(),i);hz(n,r,p,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Ju(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Gx(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=D_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=It(l[1],c[f]),c[f]=Ee(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(lz);function D_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var yz={line:function(t,e,r,n){var i=vz([e,n[0]],[e,n[1]],E_(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=pz(t,i,a),s=n[1]-n[0],l=gz(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:dz([u,n[0]],[f-u,s],E_(t))}}};function E_(t){return t.dim==="x"?0:1}var _z=(function(t){q(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:ae.color.border,width:1,type:"dashed"},shadowStyle:{color:ae.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ae.color.neutral00,padding:[5,7,5,7],backgroundColor:ae.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ae.color.accent40,throttle:40}},e})(Se),Jr=we(),Sz=R;function Wx(t,e,r){if(!ve.node){var n=e.getZr();Jr(n).records||(Jr(n).records={}),bz(n,e);var i=Jr(n).records[t]||(Jr(n).records[t]={});i.handler=r}}function bz(t,e){if(Jr(t).initialized)return;Jr(t).initialized=!0,r("click",Ue(Rh,"click")),r("mousemove",Ue(Rh,"mousemove")),r("mousewheel",Ue(Rh,"mousewheel")),r("globalout",Tz);function r(n,i){t.on(n,function(a){var o=xz(e);Sz(Jr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),wz(o.pendings,e)})}}function wz(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Tz(t,e,r){t.handler("leave",null,r)}function Rh(t,e,r,n){e.handler(t,r,n)}function xz(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function od(t,e){if(!ve.node){var r=e.getZr(),n=(Jr(r).records||{})[t];n&&(Jr(r).records[t]=null)}}var Cz=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Wx("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){od("axisPointer",n)},e.prototype.dispose=function(r,n){od("axisPointer",n)},e.type="axisPointer",e})(Ct);function Yx(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Bi(a,t);if(o==null||o<0||K(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(oe(l.dimensions,function(g){return a.mapDimension(g)}),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 R_=we();function Az(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Ae(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ql(i)&&(i=Yx({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Ql(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Ql(i),v={},h={},d={list:[],map:{}},p={showPointer:Ue(Ez,h),showTooltip:Ue(Rz,d)};R(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);R(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=Lz(u,S);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&M_(S,C,p,!1,v)}})});var m={};return R(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&R(_.axesInfo,function(S,b){var w=h[b];if(S!==g&&w){var T=w.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,P_(S),P_(g)))),m[g.key]=T}})}),R(m,function(g,y){M_(f[y],g,p,!0,v)}),Mz(h,f,v),Pz(d,i,t,o),Iz(f,o,r),v}}function M_(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=Dz(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&G(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function Dz(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return R(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Fr(c)){var d=t-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),R(v,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function Ez(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Rz(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ls(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Mz(t,e,r){var n=r.axesInfo=[];R(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Pz(t,e,r,n){if(Ql(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Iz(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=R_(n)[i]||{},o=R_(n)[i]={};R(t,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&R(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}R(a,function(f,c){!o[c]&&l.push(u(f))}),R(o,function(f,c){!a[c]&&s.push(u(f))}),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 Lz(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 P_(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 Ql(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function $x(t){Fx.registerAxisPointerClass("CartesianAxisPointer",mz),t.registerComponentModel(_z),t.registerComponentView(Cz),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!K(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=qF(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Az)}function IH(t){zr(sz),zr($x)}var Oz=typeof Float32Array!==bs?Float32Array:void 0;function wa(t){return kz({ctor:Oz},t).arr}function kz(t,e){var r=t.arr,n=t.ctor;if(e>gv&&(e=gv),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch(s){}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function Nz(t,e,r){e=K(e)&&{coordDimensions:e}||G({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Gp(n,e).dimensions,a=new Vp(i,t);return a.initData(n,r),a}function Bz(t,e){var r=Cs(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ge({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var Fz=(function(t){q(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ae.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ae.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ae.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ae.color.tertiary,fontSize:14}},e})(Se);function Xx(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function qx(t){if(ve.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var jx=qx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zz=qx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Zx(t,e){if(!t)return e;e=_p(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function Hz(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var Uz=Zx(zz,"transition"),Jp=Zx(jx,"transform"),Vz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ve.transform3dSupported?"will-change:transform;":"");function Gz(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function Wz(t,e,r){if(!te(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Fi(e);var a=Gz(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Jp+":",u;ge(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function Yz(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ve.transformSupported?""+Jp+i:",left"+i+",top"+i)),Uz+":"+a}function I_(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ve.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ve.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Jp+":"+o+";":[["top",0],["left",0],[jx,o]]}function $z(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ne(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),R(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Xz(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Vw(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(Yz(a,r,n)),o&&i.push("background-color:"+o),R(["width","color","radius"],function(d){var p="border-"+d,m=_p(p),g=t.get(m);g!=null&&i.push(p+":"+g+(d==="color"?"":"px"))}),i.push($z(c)),v!=null&&i.push("padding:"+Cs(v).join("px ")+"px"),i.join(";")+";"}function L_(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&BR(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var qz=(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,ve.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(te(a)?document.querySelector(a):Oa(a)?a:fe(a)&&a(e.getDom()));L_(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Gt(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=Hz(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Vz+Xz(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+I_(a[0],a[1],!0)+("border-color:"+Fi(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(te(a)&&n.get("trigger")==="item"&&!Xx(n)&&(s=Wz(n,i,a)),te(e))o.innerHTML=e+s;else if(e){o.innerHTML="",K(e)||(e=[e]);for(var l=0;l<e.length;l++)Oa(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(L_(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=I_(n[0],n[1]);R(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ve.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(Ae(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;FR(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),jz=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),k_(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;ie(e)&&Dt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ke({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Vw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["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=O_(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;k_(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=wn(a.borderWidth||0),s=O_(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Ae(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function wn(t){return Math.max(0,t)}function O_(t){var e=wn(t.shadowBlur||0),r=wn(t.shadowOffsetX||0),n=wn(t.shadowOffsetY||0);return{left:wn(e-r),right:wn(e+r),top:wn(e-n),bottom:wn(e+n)}}function k_(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Zz=new Ge({shape:{x:-1,y:-1,width:2,height:2}}),Kz=(function(t){q(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(!(ve.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=OP(i.get("renderMode"));this._tooltipContent=a==="richText"?new jz(n):new qz(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ve.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Yw(this,"_updatePosition",50,"fixRate"):zv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Wx("itemTooltip",this._api,Ae(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ve.node||!i.getDom())){var o=N_(a,i);this._ticket="";var s=a.dataByCoordSys,l=t3(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Zz;f.x=a.x,f.y=a.y,f.update(),me(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Yx(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(N_(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=So([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=me(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Ro(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(me(f).dataIndex!=null?l=f:me(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ae(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=So([n.tooltipOption],a),l=this._renderMode,u=[],f=ns("section",{blocks:[],noHeader:!0}),c=[],v=new ih;R(r,function(y){R(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=Vx(b,w,i,_.seriesDataIndices,_.valueLabelOpt),x=ns("section",{header:C,noHeader:!dr(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),R(_.seriesDataIndices,function(A){var D=i.getSeriesByIndex(A.seriesIndex),P=A.dataIndexInside,M=D.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Yu(S.axis,{value:T}),M.axisValueLabel=C,M.marker=v.makeTooltipMarker("item",Fi(M.color),l);var I=Y0(D.formatTooltip(P,!0,null)),k=I.frag;if(k){var O=So([D],a).get("valueFormatter");x.blocks.push(O?G({valueFormatter:O},k):k)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=K0(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var m=l==="richText"?`
|
||
|
||
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=me(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=So([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new ih;g.marker=y.makeTooltipMarker("item",Fi(g.color),h);var _=Y0(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?K0(b?G({valueFormatter:b},w):w,y,h,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,g,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=me(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(te(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=de(l),l.content=yt(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=So(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),m=Math.random()+"",g=new ih;this._showOrMove(d,function(){var y=de(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(te(v)){var m=r.ecModel.get("useUTC"),g=K(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=v,y&&(h=xs(g.axisValue,h,m)),h=Sp(h,i,!0)}else if(fe(v)){var _=Ae(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||K(n))return{color:a||o};if(!K(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),fe(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),K(n))i=He(n[0],u),a=He(n[1],f);else if(ie(n)){var p=n;p.width=c[0],p.height=c[1];var m=sn(p,{width:u,height:f});i=m.x,a=m.y,v=null,h=null}else if(te(n)&&l){var g=e3(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=Qz(i,a,o,u,f,v?null:20,h?null:20);i=g[0],a=g[1]}if(v&&(i-=B_(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=B_(h)?c[1]/2:h==="bottom"?c[1]:0),Xx(r)){var g=Jz(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===m.length,o&&R(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&R(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ve.node||!n.getDom()||(zv(this,"_updatePosition"),this._tooltipContent.dispose(),od("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Ct);function So(t,e,r){var n=e.ecModel,i;r?(i=new Le(r,n,n),i=new Le(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Le&&(o=o.get("tooltip",!0)),te(o)&&(o={formatter:o}),o&&(i=new Le(o,i,n)))}return i}function N_(t,e){return t.dispatchAction||Ae(e.dispatchAction,e)}function Qz(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function Jz(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function e3(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function B_(t){return t==="center"||t==="middle"}function t3(t,e,r){var n=Vd(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=_s(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=me(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function LH(t){zr($x),t.registerComponentModel(Fz),t.registerComponentView(Kz),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},at),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},at)}var r3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ae.size.m,backgroundColor:ae.color.transparent,borderColor:ae.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ae.color.primary},subtextStyle:{fontSize:12,color:ae.color.quaternary}},e})(Se),n3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ne(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ke({style:on(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ke({style:on(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!p&&!m,d&&f.on("click",function(){A0(d,"_"+r.get("target"))}),p&&h.on("click",function(){A0(p,"_"+r.get("subtarget"))}),me(f).eventData=me(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Ff(r,i),S=sn(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new Ge({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(Ct);function OH(t){t.registerComponentModel(r3),t.registerComponentView(n3)}function Kx(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ha(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Ha(t,e,r[o]));return a.join(" ")}}function i3(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!K(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var eg=(function(t){q(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=zi(r,-1,-1,2,2,null,s);l.attr({z2:ne(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=a3,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){xu(this.childAt(0))},e.prototype.downplay=function(){Cu(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Lt(h,d,s,n),Hb(h)}if(this._updateCommon(r,n,l,i,a),f){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,er(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Of(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=tT(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof un){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),A=this._z2;x!=null?A==null&&(this._z2=s.z2,s.z2+=x):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Lf(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:P,inheritColor:T,defaultOpacity:w.opacity});function P(k){return D?r.getName(k):Kx(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Du(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=me(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Eu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Eu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Yk(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(rt);function a3(t,e){this.parent.drift(t,e)}function bl(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function F_(t){return t!=null&&!ie(t)&&(t={isIgnore:t}),t||{}}function z_(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:Of(e),cursorStyle:e.get("cursor")}}function H_(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var o3=(function(){function t(e){this.group=new rt,this._SymbolCtor=e||eg}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=F_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=z_(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var v=f(c);bl(e,v,c,r)&&H_(o,e,c,l,u,v,n)}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!bl(e,d,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Lt(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);bl(r,l,a,e)?(s=s||H_(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=z_(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=F_(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=ep)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(bl(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){ip(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function s3(t,e){return t.type===e}var l3=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"])}},sd=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),K(n)&&R(n,function(a,o){te(a)&&(a={type:a}),n[o]=be(a,l3(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Ud(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ce(),s=oe(a,function(l){return(te(l)||Re(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Le(l,this,this.ecModel))},this);this._data=ze(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;R(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ge(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:ae.size.m,align:"auto",backgroundColor:ae.color.transparent,borderColor:ae.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ae.color.disabled,inactiveBorderColor:ae.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:ae.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ae.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ae.color.tertiary,borderWidth:1,borderColor:ae.color.border},emphasis:{selectorLabel:{show:!0,color:ae.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Se),da=Ue,ld=R,wl=rt,Qx=(function(t){q(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 wl),this.group.add(this._selectorGroup=new wl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Ff(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=sn(c,f,v),d=this.layoutInner(r,o,h,a,l,u),p=sn(Te({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Bz(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ce(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),ld(n.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
||
`)){var y=new wl;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,g,p,d,n,r,b,T,w,c,a);C.on("click",da(U_,g,null,a,h)).on("mouseover",da(ud,_.name,null,a,h)).on("mouseout",da(fd,_.name,null,a,h)),i.ssr&&C.eachChild(function(x){var A=me(x);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&C.eachChild(function(x){m.packEventData(x,n,_,p,g)}),f.set(g,!0)}else i.eachRawSeries(function(x){var A=this;if(!f.get(g)&&x.legendVisualProvider){var D=x.legendVisualProvider;if(!D.containName(g))return;var P=D.indexOfName(g),M=D.getItemVisual(P,"style"),I=D.getItemVisual(P,"legendIcon"),k=Ft(M.fill);k&&k[3]===0&&(k[3]=.2,M=G(G({},M),{fill:Un(k,"rgba")}));var O=this._createItem(x,g,p,d,n,r,{},M,I,c,a);O.on("click",da(U_,null,g,a,h)).on("mouseover",da(ud,null,g,a,h)).on("mouseout",da(fd,null,g,a,h)),i.ssr&&O.eachChild(function(N){var U=me(N);U.seriesIndex=x.seriesIndex,U.dataIndex=p,U.ssrType="legend"}),v&&O.eachChild(function(N){A.packEventData(N,n,x,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};me(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();ld(r,function(u){var f=u.type,c=new Ke({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Lf(c,{normal:v,emphasis:h},{defaultText:u.title}),Au(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=u3(f,a,l,u,h,m,v),b=new wl,w=a.getModel("textStyle");if(fe(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;b.add(f3({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,x=s,A=o.get("formatter"),D=n;te(A)&&A?D=A.replace("{name}",n!=null?n:""):fe(A)&&(D=A(n));var P=m?w.getTextColor():a.get("inactiveColor");b.add(new Ke({style:on(w,{text:D,x:C,y:p/2,fill:P,align:x,verticalAlign:"middle"},{inheritColor:P})}));var M=new Ge({shape:b.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Pf({el:M,componentModel:o,itemName:n,itemTooltipOption:I.option}),b.add(M),b.eachChild(function(k){k.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Au(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();zo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){zo("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[m]+d:c[p]+=v[m]+d,h[1-p]+=f[g]/2-v[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+v[m],_[g]=Math.max(f[g],v[g]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Ct);function u3(t,e,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ld(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Wv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function f3(t){var e=t.icon||"roundRect",r=zi(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=ae.color.neutral00,r.style.lineWidth=2),r}function U_(t,e,r,n){fd(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t!=null?t:e}),ud(t,e,r,n)}function ud(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function fd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function bo(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),V_(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){R(i,function(l,u){s[l?"select":"unSelect"](u)}),V_(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function V_(t,e){var r=e||{};return R(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
||
`||i==="")){var a=t.isSelected(i);Mt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function c3(t){t.registerAction("legendToggleSelect","legendselectchanged",Ue(bo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ue(bo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ue(bo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ue(bo,"select")),t.registerAction("legendUnSelect","legendunselected",Ue(bo,"unSelect"))}var h3=Wd(v3);function v3(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 Jx(t){t.registerComponentModel(sd),t.registerComponentView(Qx),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,h3),t.registerSubTypeDefaulter("legend",function(){return"plain"}),c3(t)}var d3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=As(r);t.prototype.init.call(this,r,n,i),G_(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),G_(this,this.option,r)},e.type="legend.scroll",e.defaultOption=c2(sd.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:ae.color.accent50,pageIconInactiveColor:ae.color.accent10,pageIconSize:15,pageTextStyle:{color:ae.color.tertiary},animationDurationUpdate:800}),e})(sd);function G_(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,zn(e,r,{type:"box",ignoreSize:!!i})}var W_=rt,Mh=["width","height"],Ph=["x","y"],p3=(function(t){q(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 W_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new W_)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=K(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Ke({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,m){var g=p+"DataIndex",y=Mf(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:Ae(u._pageGo,u,g,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Mh[u],c=Ph[u],v=Mh[1-u],h=Ph[1-u];o&&zo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=de(i);o&&(g[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,v,h,c);if(o){if(s==="end")m[u]+=y[f]+d;else{var _=p[f]+d;m[u]-=_,y[c]-=_}y[f]+=p[f]+d,m[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;zo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),zo("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new Ge({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Lt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",te(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Mh[o],l=Ph[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=v;++m)_=S(f[m]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=S(f[m]),(!_||!b(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},e.type="legend.scroll",e})(Qx);function g3(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function m3(t){zr(Jx),t.registerComponentModel(d3),t.registerComponentView(p3),g3(t)}function kH(t){zr(Jx),zr(m3)}var y3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return LT(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new rt,i=zi("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=zi(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=ae.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(nr);function eC(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=_3(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=oe(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,h=e.getCalculationInfo("stackResultDimension");return Ua(e,c[0])&&(v=!0,c[0]=h),Ua(e,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _3(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Re(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function tC(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function tr(t,e){return!isFinite(t)||!isFinite(e)}function S3(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function b3(t,e,r,n,i,a,o,s){for(var l=S3(t,e),u=[],f=[],c=[],v=[],h=[],d=[],p=[],m=eC(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,T=void 0;switch(S.cmd){case"=":w=S.idx*2,T=S.idx1*2;var C=g[w],x=g[w+1],A=y[T],D=y[T+1];(isNaN(C)||isNaN(x))&&(C=A,x=D),u.push(C,x),f.push(A,D),c.push(r[w],r[w+1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var P=S.idx,M=m.dataDimsForPoint,I=i.dataToPoint([e.get(M[0],P),e.get(M[1],P)]);T=P*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var k=tC(m,i,e,P);c.push(k[0],k[1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(P));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(re,se){return p[re]-p[se]});for(var O=u.length,N=wa(O),U=wa(O),W=wa(O),X=wa(O),Q=[],_=0;_<d.length;_++){var J=d[_],j=_*2,z=J*2;N[j]=u[z],N[j+1]=u[z+1],U[j]=f[z],U[j+1]=f[z+1],W[j]=c[z],W[j+1]=c[z+1],X[j]=v[z],X[j+1]=v[z+1],Q[_]=h[J]}return{current:N,next:U,stackedOnCurrent:W,stackedOnNext:X,status:Q}}var gn=Math.min,mn=Math.max;function cd(t,e,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,p=r,m=0;m<n;m++){var g=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if(tr(g,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,v=y;else{var _=g-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],T=e[b*2+1];w===g&&T===y&&m<n;)m++,b+=a,p+=a,w=e[b*2],T=e[b*2+1],g=e[p*2],y=e[p*2+1],_=g-u,S=y-f;var C=m+1;if(l)for(;tr(w,T)&&C<n;)C++,b+=a,w=e[b*2],T=e[b*2+1];var x=.5,A=0,D=0,P=void 0,M=void 0;if(C>=n||tr(w,T))h=g,d=y;else{A=w-u,D=T-f;var I=g-u,k=w-g,O=y-f,N=T-y,U=void 0,W=void 0;if(s==="x"){U=Math.abs(I),W=Math.abs(k);var X=A>0?1:-1;h=g-X*U*o,d=y,P=g+X*W*o,M=y}else if(s==="y"){U=Math.abs(O),W=Math.abs(N);var Q=D>0?1:-1;h=g,d=y-Q*U*o,P=g,M=y+Q*W*o}else U=Math.sqrt(I*I+O*O),W=Math.sqrt(k*k+N*N),x=W/(W+U),h=g-A*o*(1-x),d=y-D*o*(1-x),P=g+A*o*x,M=y+D*o*x,P=gn(P,mn(w,g)),M=gn(M,mn(T,y)),P=mn(P,gn(w,g)),M=mn(M,gn(T,y)),A=P-g,D=M-y,h=g-A*U/W,d=y-D*U/W,h=gn(h,mn(u,g)),d=gn(d,mn(f,y)),h=mn(h,gn(u,g)),d=mn(d,gn(f,y)),A=g-h,D=y-d,P=g+A*W/U,M=y+D*W/U}t.bezierCurveTo(c,v,h,d,g,y),c=P,v=M}else t.lineTo(g,y)}u=g,f=y,p+=a}return m}var rC=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),w3=(function(t){q(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:ae.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new rC},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&tr(i[o*2-2],i[o*2-1]);o--);for(;a<o&&tr(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=cd(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Fn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,p=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?hu(s,h,p,g,r,f):hu(l,d,m,y,r,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var S=u?qe(l,d,m,y,T):qe(s,h,p,g,T);return u?[r,S]:[S,r]}}s=g,l=y;break}}},e})(Me),T3=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(rC),x3=(function(t){q(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 T3},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&tr(i[s*2-2],i[s*2-1]);s--);for(;o<s&&tr(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=cd(r,i,o,s,s,1,n.smooth,l,n.connectNulls);cd(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(Me);function C3(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ge({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=fe(i)?function(m){i(m,c)}:null;er(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function A3(t,e,r){var n=t.getArea(),i=_e(n.r0,1),a=_e(n.r,1),o=new $i({shape:{cx:_e(t.cx,1),cy:_e(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,er(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Y_(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function $_(t){for(var e=Xt(),r=Xt(),n=0;n<t.length;){var i=t[n++],a=t[n++];tr(i,a)||(yv(e,i),yv(r,a))}return[e,r]}function X_(t,e){var r=$_(t),n=r[0],i=r[1],a=$_(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function q_(t){return Re(t)?t:t?.5:0}function D3(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=wa(n*2),a=0;a<n;a++){var o=tC(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yn(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(i){for(l=0;l<t.length;l+=2){var h=e||t;tr(h[l],h[l+1])||v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function E3(t,e){var r=[],n=t.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=Nd(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function R3(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=oe(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=E3(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,m=v[h-1].coord+d,g=m-p;if(g<.001)return"transparent";R(v,function(_){_.offset=(_.coord-p)/g}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new Qd(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=m,y}}}function M3(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&P3(a,e))){var o=e.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){l.tick.offInterval||(s[Es(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function P3(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(eg.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function I3(t){for(var e=t.length/2;e>0&&tr(t[e*2-2],t[e*2-1]);e--);return e-1}function j_(t,e){return[t[e*2],t[e*2+1]]}function L3(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!tr(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function nC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<rr.length;e++)if(t.get([rr[e],"endLabel","show"]))return!0;return!1}function Ih(t,e,r,n){if(s3(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=nC(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=C3(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return A3(e,r,n)}function O3(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var k3=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new rt,n=new o3;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Ae(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,m=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=eC(a,s,_),b=y&&D3(a,s,S),w=r.get("showSymbol"),T=r.get("connectNulls"),C=w&&!c&&M3(r,s,a),x=this._data;x&&x.eachItemGraphicEl(function(B,F){B.__temp&&(o.remove(B),x.setItemGraphicEl(F,null))}),w||h.remove(),o.add(m);var A=c?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=R3(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&A===this._step))w&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(B){return[f[B*2],f[B*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),A&&(b&&(b=yn(b,f,a,A,T)),f=yn(f,null,a,A,T)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Fi(P)),m.setClipPath(Ih(this,a,!0,r));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Fi(P));var M=m.getClipPath();if(M){var I=Ih(this,a,!1,r);er(M,{shape:I.shape},r)}else m.setClipPath(Ih(this,a,!0,r));w&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(B){return[f[B*2],f[B*2+1]]}}),(!Y_(this._stackedOnPoints,b)||!Y_(this._points,f))&&(g?this._doUpdateAnimation(s,b,a,i,A,_,T):(A&&(b&&(b=yn(b,f,a,A,T)),f=yn(f,null,a,A,T)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var k=r.getModel("emphasis"),O=k.get("focus"),N=k.get("blurScope"),U=k.get("disabled");if(d.useStyle(Te(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Av(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var W=d.getState("emphasis").style;W.lineWidth=+d.style.lineWidth+1}me(d).seriesIndex=r.seriesIndex,Du(d,O,N,U);var X=q_(r.get("smooth")),Q=r.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:Q,connectNulls:T}),p){var J=s.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(Te(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(j=q_(J.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:j,smoothMonotone:Q,connectNulls:T}),Av(p,r,"areaStyle"),me(p).seriesIndex=r.seriesIndex,Du(p,O,N,U)}var z=this._changePolyState;s.eachItemGraphicEl(function(B){B&&(B.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_;var re=r.get("triggerEvent"),se=r.get("triggerLineEvent"),L=se===!0||re===!0||re==="line",Y=se===!0||re===!0||re==="area";this.packEventData(r,d,L),p&&this.packEventData(r,p,Y)},e.prototype.packEventData=function(r,n,i){me(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Bi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(tr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new eg(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Pt.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Bi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Pt.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;n0(this._polyline,r),n&&n0(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new w3({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x3({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");fe(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=fe(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(m);a?(g=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,y=S.r,_=b[0])}else{var w=i;a?(g=w.x,y=w.x+w.width,_=h.x):(g=w.y+w.height,y=w.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var C=fe(c)?c(d):f*T+v,x=p.getSymbolPath(),A=x.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(nC(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 Ke({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=I3(l);f>=0&&(Lf(s,Of(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?i3(o,h):Kx(o,c)},enableTextSetter:!0},O3(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,S=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(y?-1:1),w=(g?0:-p)*(y?-1:1),T=g?"x":"y",C=L3(c,S,T),x=C.range,A=x[1]-x[0],D=void 0;if(A>=1){if(A>1&&!h){var P=j_(c,x[0]);u.attr({x:P[0]+b,y:P[1]+w}),o&&(D=v.getRawValue(x[0]))}else{var P=f.getPointOn(S,T);P&&u.attr({x:P[0]+b,y:P[1]+w});var M=v.getRawValue(x[0]),I=v.getRawValue(x[1]);o&&(D=QS(i,d,M,I,C.t))}a.lastFrameIndex=x[0]}else{var k=r===1||a.lastFrameIndex>0?x[0]:0,P=j_(c,k);o&&(D=v.getRawValue(k)),u.attr({x:P[0]+b,y:P[1]+w})}if(o){var O=kf(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=b3(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,m=v.stackedOnNext;if(o&&(d=yn(v.stackedOnCurrent,v.current,i,o,l),h=yn(v.current,null,i,o,l),m=yn(v.stackedOnNext,v.next,i,o,l),p=yn(v.next,null,i,o,l)),X_(h,p)>3e3||f&&X_(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=v.current,u.shape.points=h;var g={shape:{points:p}};v.current!==h&&(g.shape.__points=v.next),u.stopAnimation(),Lt(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var x=y[C].el,A=y[C].ptIdx*2;x.x=T[A],x.y=T[A+1],x.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Pt);function N3(t,e){return{seriesType:t,plan:Gw(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=oe(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Ua(n,a[0])&&(a[0]=s),Ua(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(c,v){for(var h=c.end-c.start,d=wa(h*o),p=[],m=[],g=c.start,y=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=i.dataToPoint(S,null,m)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=i.dataToPoint(p,null,m);d[y++]=_[0],d[y++]=_[1]}v.setLayout("points",d),v.setLayout("pointsRange",{start:c.start,end:c.end})}}}}}}var B3={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]}},F3=function(t){return Math.round(t.length/2)};function z3(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;te(a)?d=B3[a]:fe(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,F3))}}}}}function NH(t){t.registerChartView(k3),t.registerSeriesModel(y3),t.registerLayout(N3("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,z3("line"))}function Tl(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;K(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:oe(n,function(a){return ki(a,i)})}}function H3(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var U3=(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})(),kn="pie",V3=we(),iC=(function(t){q(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 U3(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Nz(this,{coordDimensions:["value"],encodeDefaulter:Ue($2,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=V3(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=GS(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){mv(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series."+kn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(nr);I2({fullType:iC.type,getCoord2:function(t){return t.getShallow("center")}});var G3=Math.PI/180;function Z_(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var m=p.rB,g=m*m,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-r),b=n+_.len,w=b*b,T=Math.sqrt(Math.abs((1-S*S/g)*w)),C=e+(T+_.len2)*i,x=C-_.label.x,A=_.targetTextWidth-x*i;aC(_,A,!0),_.label.x=C}}function c(p){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>r?g:m,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,C=Math.abs(w)<T?Math.sqrt(b*b/(1-w*w/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(m),f(g)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}ed(t,1,l,l+o)&&c(t)}function W3(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Lh(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Lh(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=p[2][0]-d.labelDistance-o-d.edgeDistance:m=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=f-o-d.bleedMargin:m=o+i-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+i-h.x-d.bleedMargin,d.targetTextWidth=m,aC(d,m,!1)}}Z_(u,e,r,n,1,i,a,o,s,c),Z_(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Lh(d)&&d.linePoints){var h=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];g?h.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function aC(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}oC(a,n)}}}function oC(t,e){K_.rect=t,bx(K_,e,Y3)}var Y3={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},K_={};function Lh(t){return t.position==="center"}function $3(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*G3,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),C=T.shape,x=T.getTextContent(),A=T.getTextGuideLine(),D=e.getItemModel(w),P=D.getModel("label"),M=P.get("position")||D.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),k=P.get("alignTo"),O=He(P.get("edgeDistance"),u),N=P.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var U=D.getModel("labelLine"),W=U.get("length");W=He(W,u);var X=U.get("length2");if(X=He(X,u),Math.abs(C.endAngle-C.startAngle)<o){R(x.states,h),x.ignore=!0,A&&(R(A.states,h),A.ignore=!0);return}if(d(x)){var Q=(C.startAngle+C.endAngle)/2,J=Math.cos(Q),j=Math.sin(Q),z,re,se,L;n=C.cx,i=C.cy;var Y=M==="inside"||M==="inner";if(M==="center")z=C.cx,re=C.cy,L="center";else{var B=(Y?(C.r+C.r0)/2*J:C.r*J)+n,F=(Y?(C.r+C.r0)/2*j:C.r*j)+i;if(z=B+J*3,re=F+j*3,!Y){var H=B+J*(W+l-C.r),Z=F+j*(W+l-C.r),ue=H+(J<0?-1:1)*X,ee=Z;k==="edge"?z=J<0?f+O:f+u-O:z=ue+(J<0?-I:I),re=ee,se=[[B,F],[H,Z],[ue,ee]]}L=Y?"center":k==="edge"?J>0?"right":"left":J>0?"left":"right"}var ye=Math.PI,Qe=0,ke=P.get("rotate");if(Re(ke))Qe=ke*(ye/180);else if(M==="center")Qe=0;else if(ke==="radial"||ke===!0){var Ot=J<0?-Q+ye:-Q;Qe=Ot}else if(ke==="tangential"||ke==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var ot=Math.atan2(J,j);ot<0&&(ot=ye*2+ot);var lr=j>0;lr&&ke!=="tangential-noflip"&&(ot=ye+ot),Qe=ot-ye}if(a=!!Qe,x.x=z,x.y=re,x.rotation=Qe,x.setStyle({verticalAlign:"middle"}),Y){x.setStyle({align:L});var Gn=x.states.select;Gn&&(Gn.x+=x.x,Gn.y+=x.y)}else{var qi=new le(0,0,0,0);oC(qi,x),r.push({label:x,labelLine:A,position:M,len:W,len2:X,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new he(J,j),linePoints:se,textAlign:L,labelDistance:I,labelAlignTo:k,edgeDistance:O,bleedMargin:N,rect:qi,unconstrainedWidth:qi.width,labelStyleWidth:x.style.width})}T.setTextConfig({inside:Y})}}),!a&&t.get("avoidLabelOverlap")&&W3(r,n,i,l,u,v,f,c);for(var p=0;p<r.length;p++){var m=r[p],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(R(g.states,h),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(y){var b=m.linePoints;_||!b?(R(y.states,h),y.ignore=!0):(gx(b,m.minTurnAngle),z5(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new he(b[0][0],b[0][1])})}}}var Q_=Math.PI*2,xl=Math.PI/180,X3=UP(kn,q3);function q3(t,e){t.eachSeriesByType(kn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=z2(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*xl,v=r.get("endAngle"),h=r.get("padAngle")*xl;v=v==="auto"?c-Q_:-v*xl;var d=r.get("minAngle")*xl,p=d+h,m=0;n.each(i,function(O){!isNaN(O)&&m++});var g=n.getSum(i),y=Math.PI/(g||m)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=_?1:-1,C=[c,v],x=T*h/2;ub(C,!_),c=C[0],v=C[1];var A=sC(r);A.startAngle=c,A.endAngle=v,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var D=Math.abs(v-c),P=D,M=0,I=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(O,N){var U;if(isNaN(O)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?U=g===0&&b?y:O*y:U=D/m,U<p?(U=p,P-=p):M+=O;var W=I+T*U,X=0,Q=0;h>U?(X=I+T*U/2,Q=X):(X=I+x,Q=W-x),n.setItemLayout(N,{angle:U,startAngle:X,endAngle:Q,clockwise:_,cx:o,cy:s,r0:u,r:S?_u(O,w,[u,l]):l}),I=W}),P<Q_&&m)if(P<=.001){var k=D/m;n.each(i,function(O,N){if(!isNaN(O)){var U=n.getItemLayout(N);U.angle=k;var W=0,X=0;k<h?(W=c+T*(N+1/2)*k,X=W):(W=c+T*N*k+x,X=c+T*(N+1)*k-x),U.startAngle=W,U.endAngle=X}})}else y=P/M,I=c,n.each(i,function(O,N){if(!isNaN(O)){var U=n.getItemLayout(N),W=U.angle===p?p:O*y,X=0,Q=0;W<h?(X=I+T*W/2,Q=X):(X=I+x,Q=I+T*W-x),U.startAngle=X,U.endAngle=Q,I+=T*W}})})}var sC=we(),j3=(function(t){q(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Ke;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=G(Tl(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(er(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,er(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),er(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Lt(o,{shape:{endAngle:f.endAngle}},s,n))}else Hb(o),Lt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Av(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Tl(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:m,shape:Tl(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Tl(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&G(y.ensureState("select"),{x:p,y:m}),G(_.ensureState("select"),{x:p,y:m}),Du(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Lf(a,Of(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new qa,this.setTextGuideLine(h)),mx(this,yx(o),{stroke:u,opacity:Mn(s.get(["lineStyle","opacity"]),f,1)})}},e})($i),Z3=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=kn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=sC(r),h=new $i({shape:de(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new j3(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var m=s.getItemGraphicEl(p);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var p=s.getItemGraphicEl(d);zb(p,r,d)}).execute(),$3(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=kn,e})(Pt);function K3(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function BH(t){t.registerChartView(Z3),t.registerSeriesModel(iC),Rk(kn,t.registerAction),t.registerLayout(X3),t.registerProcessor(H3(kn)),t.registerProcessor(K3(kn))}var Jl={exports:{}},Q3=Jl.exports,J_;function J3(){return J_||(J_=1,(function(t){(function(e){const r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),o="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",l={zoneIndex:new RegExp(o,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${o})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${r}\\.${r}\\.${r}\\.${r}(${o})?$`,"i")};function u(d,p){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let m=0,g=-1,y=(d.match(l.zoneIndex)||[])[0],_,S;for(y&&(y=y.substring(1),d=d.replace(/%.+$/,""));(g=d.indexOf(":",g+1))>=0;)m++;if(d.substr(0,2)==="::"&&m--,d.substr(-2,2)==="::"&&m--,m>=p)return null;for(S=p-m,_=":";S--;)_+="0:";return d=d.replace("::",_),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),p=(function(){const b=d.split(":"),w=[];for(let T=0;T<b.length;T++)w.push(b[T].length>4?NaN:parseInt(b[T],16));return w})(),{parts:p,zoneId:y}}function f(d,p,m,g){if(d.length!==p.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,_;for(;g>0;){if(_=m-g,_<0&&(_=0),d[y]>>_!==p[y]>>_)return!1;g-=m,y+=1}return!0}function c(d){if(a.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(i.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}function v(d,p){for(;d.length<p;)d=`0${d}`;return d}const h={};h.IPv4=(function(){function d(p){if(p.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let m,g;for(m=0;m<p.length;m++)if(g=p[m],!(0<=g&&g<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=p}return d.prototype.SpecialRanges={unspecified:[[new d([0,0,0,0]),8]],broadcast:[[new d([255,255,255,255]),32]],multicast:[[new d([224,0,0,0]),4]],linkLocal:[[new d([169,254,0,0]),16]],loopback:[[new d([127,0,0,0]),8]],carrierGradeNat:[[new d([100,64,0,0]),10]],private:[[new d([10,0,0,0]),8],[new d([172,16,0,0]),12],[new d([192,168,0,0]),16]],reserved:[[new d([192,0,0,0]),24],[new d([192,0,2,0]),24],[new d([192,88,99,0]),24],[new d([198,18,0,0]),15],[new d([198,51,100,0]),24],[new d([203,0,113,0]),24],[new d([240,0,0,0]),4]],as112:[[new d([192,175,48,0]),24],[new d([192,31,196,0]),24]],amt:[[new d([192,52,193,0]),24]]},d.prototype.kind=function(){return"ipv4"},d.prototype.match=function(p,m){let g;if(m===void 0&&(g=p,p=g[0],m=g[1]),p.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return f(this.octets,p.octets,8,m)},d.prototype.prefixLengthFromSubnetMask=function(){let p=0,m=!1;const g={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let y,_,S;for(y=3;y>=0;y-=1)if(_=this.octets[y],_ in g){if(S=g[_],m&&S!==0)return null;S!==8&&(m=!0),p+=S}else return null;return 32-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d})(),h.IPv4.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),m=p[0].toByteArray(),g=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<4;)y.push(parseInt(m[_],10)|parseInt(g[_],10)^255),_++;return new this(y)}catch(p){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:p})}},h.IPv4.isIPv4=function(d){return this.parser(d)!==null},h.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch(p){return!1}},h.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch(p){return!1}},h.IPv4.isValidFourPartDecimal=function(d){return!!(h.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.isValidCIDRFourPartDecimal=function(d){const p=d.match(/^(.+)\/(\d+)$/);return!h.IPv4.isValidCIDR(d)||!p?!1:h.IPv4.isValidFourPartDecimal(p[1])},h.IPv4.networkAddressFromCIDR=function(d){let p,m,g,y,_;try{for(p=this.parseCIDR(d),g=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],m=0;m<4;)y.push(parseInt(g[m],10)&parseInt(_[m],10)),m++;return new this(y)}catch(S){throw new Error("ipaddr: the address does not have IPv4 CIDR format",{cause:S})}},h.IPv4.parse=function(d){const p=this.parser(d);if(p===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(p)},h.IPv4.parseCIDR=function(d){let p;if(p=d.match(/^(.+)\/(\d+)$/)){const m=parseInt(p[2]);if(m>=0&&m<=32){const g=[this.parse(p[1]),m];return Object.defineProperty(g,"toString",{value:function(){return this.join("/")}}),g}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(d){let p,m,g;if(p=d.match(n.fourOctet))return(function(){const y=p.slice(1,6),_=[];for(let S=0;S<y.length;S++)m=y[S],_.push(c(m));return _})();if(p=d.match(n.longValue)){if(g=c(p[1]),g>4294967295||g<0)throw new Error("ipaddr: address outside defined range");return(function(){const y=[];let _;for(_=0;_<=24;_+=8)y.push(g>>_&255);return y})().reverse()}else return(p=d.match(n.twoOctet))?(function(){const y=p.slice(1,4),_=[];if(g=c(y[1]),g>16777215||g<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(g>>16&255),_.push(g>>8&255),_.push(g&255),_})():(p=d.match(n.threeOctet))?(function(){const y=p.slice(1,5),_=[];if(g=c(y[2]),g>65535||g<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(c(y[1])),_.push(g>>8&255),_.push(g&255),_})():null},h.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),Number.isNaN(d)||d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");const p=[0,0,0,0];let m=0;const g=Math.floor(d/8);for(;m<g;)p[m]=255,m++;return g<4&&(p[g]=Math.pow(2,d%8)-1<<8-d%8),new this(p)},h.IPv6=(function(){function d(p,m){let g,y;if(p.length===16)for(this.parts=[],g=0;g<=14;g+=2)this.parts.push(p[g]<<8|p[g+1]);else if(p.length===8)this.parts=p;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(g=0;g<this.parts.length;g++)if(y=this.parts[g],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");m&&(this.zoneId=m)}return d.prototype.SpecialRanges={unspecified:[new d([0,0,0,0,0,0,0,0]),128],linkLocal:[new d([65152,0,0,0,0,0,0,0]),10],multicast:[new d([65280,0,0,0,0,0,0,0]),8],loopback:[new d([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new d([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new d([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new d([65216,0,0,0,0,0,0,0]),10],discard:[new d([256,0,0,0,0,0,0,0]),64],rfc6145:[new d([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new d([100,65435,0,0,0,0,0,0]),96],[new d([100,65435,1,0,0,0,0,0]),48]],"6to4":[new d([8194,0,0,0,0,0,0,0]),16],teredo:[new d([8193,0,0,0,0,0,0,0]),32],benchmarking:[new d([8193,2,0,0,0,0,0,0]),48],amt:[new d([8193,3,0,0,0,0,0,0]),32],as112v6:[[new d([8193,4,274,0,0,0,0,0]),48],[new d([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new d([8193,16,0,0,0,0,0,0]),28],orchid2:[new d([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new d([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new d([24320,0,0,0,0,0,0,0]),16],reserved:[[new d([8193,0,0,0,0,0,0,0]),23],[new d([8193,3512,0,0,0,0,0,0]),32],[new d([16383,0,0,0,0,0,0,0]),20]]},d.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},d.prototype.kind=function(){return"ipv6"},d.prototype.match=function(p,m){let g;if(m===void 0&&(g=p,p=g[0],m=g[1]),p.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return f(this.parts,p.parts,16,m)},d.prototype.prefixLengthFromSubnetMask=function(){let p=0,m=!1;const g={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let y,_;for(let S=7;S>=0;S-=1)if(y=this.parts[S],y in g){if(_=g[y],m&&_!==0)return null;_!==16&&(m=!0),p+=_}else return null;return 128-p},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let p;const m=[],g=this.parts;for(let y=0;y<g.length;y++)p=g[y],m.push(p>>8),m.push(p&255);return m},d.prototype.toFixedLengthString=function(){const p=(function(){const g=[];for(let y=0;y<this.parts.length;y++)g.push(v(this.parts[y].toString(16),4));return g}).call(this).join(":");let m="";return this.zoneId&&(m=`%${this.zoneId}`),p+m},d.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const p=this.parts.slice(-2),m=p[0],g=p[1];return new h.IPv4([m>>8,m&255,g>>8,g&255])},d.prototype.toNormalizedString=function(){const p=(function(){const g=[];for(let y=0;y<this.parts.length;y++)g.push(this.parts[y].toString(16));return g}).call(this).join(":");let m="";return this.zoneId&&(m=`%${this.zoneId}`),p+m},d.prototype.toRFC5952String=function(){const p=/((^|:)(0(:|$)){2,})/g;let m="";this.zoneId&&(m=`%${this.zoneId}`);const g=this.toNormalizedString(),y=g.slice(0,g.length-m.length);let _=0,S=-1,b=-1,w;for(;w=p.exec(y);){const T=(w[0].match(/0/g)||[]).length;T>b&&(b=T,_=w.index,S=w[0].length)}return S<0?y+m:`${y.substring(0,_)}::${y.substring(_+S)}${m}`},d.prototype.toString=function(){return this.toRFC5952String()},d})(),h.IPv6.broadcastAddressFromCIDR=function(d){try{const p=this.parseCIDR(d),m=p[0].toByteArray(),g=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[];let _=0;for(;_<16;)y.push(parseInt(m[_],10)|parseInt(g[_],10)^255),_++;return new this(y)}catch(p){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:p})}},h.IPv6.isIPv6=function(d){return this.parser(d)!==null},h.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const p=this.parser(d);return new this(p.parts,p.zoneId),!0}catch(p){return!1}},h.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch(p){return!1}},h.IPv6.networkAddressFromCIDR=function(d){let p,m,g,y,_;try{for(p=this.parseCIDR(d),g=p[0].toByteArray(),_=this.subnetMaskFromPrefixLength(p[1]).toByteArray(),y=[],m=0;m<16;)y.push(parseInt(g[m],10)&parseInt(_[m],10)),m++;return new this(y)}catch(S){throw new Error("ipaddr: the address does not have IPv6 CIDR format",{cause:S})}},h.IPv6.parse=function(d){const p=this.parser(d);if(p===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(p.parts,p.zoneId)},h.IPv6.parseCIDR=function(d){let p,m,g;if((m=d.match(/^(.+)\/(\d+)$/))&&(p=parseInt(m[2]),p>=0&&p<=128))return g=[this.parse(m[1]),p],Object.defineProperty(g,"toString",{value:function(){return this.join("/")}}),g;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(d){let p,m,g,y,_,S;if(g=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${g[1]}`);if(l.native.test(d))return u(d,8);if((g=d.match(l.transitional))&&(S=g[6]||"",p=g[1],g[1].endsWith("::")||(p=p.slice(0,-1)),p=u(p+S,6),p&&p.parts)){for(_=[parseInt(g[2]),parseInt(g[3]),parseInt(g[4]),parseInt(g[5])],m=0;m<_.length;m++)if(y=_[m],!(0<=y&&y<=255))return null;return p.parts.push(_[0]<<8|_[1]),p.parts.push(_[2]<<8|_[3]),{parts:p.parts,zoneId:p.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),Number.isNaN(d)||d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let m=0;const g=Math.floor(d/8);for(;m<g;)p[m]=255,m++;return g<16&&(p[g]=Math.pow(2,d%8)-1<<8-d%8),new this(p)},h.fromByteArray=function(d){const p=d.length;if(p===4)return new h.IPv4(d);if(p===16)return new h.IPv6(d);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(d){return h.IPv6.isValid(d)||h.IPv4.isValid(d)},h.isValidCIDR=function(d){return h.IPv6.isValidCIDR(d)||h.IPv4.isValidCIDR(d)},h.parse=function(d){if(h.IPv6.isValid(d))return h.IPv6.parse(d);if(h.IPv4.isValid(d))return h.IPv4.parse(d);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(d){try{return h.IPv6.parseCIDR(d)}catch(p){try{return h.IPv4.parseCIDR(d)}catch(m){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format",{cause:m})}}},h.process=function(d){const p=this.parse(d);return p.kind()==="ipv6"&&p.isIPv4MappedAddress()?p.toIPv4Address():p},h.subnetMatch=function(d,p,m){let g,y,_,S;m==null&&(m="unicast");for(y in p)if(Object.prototype.hasOwnProperty.call(p,y)){for(_=p[y],_[0]&&!(_[0]instanceof Array)&&(_=[_]),g=0;g<_.length;g++)if(S=_[g],d.kind()===S[0].kind()&&d.match.apply(d,S))return y}return m},t.exports?t.exports=h:e.ipaddr=h})(Q3)})(Jl)),Jl.exports}var eH=J3();const FH=Z5(eH);export{$e as a,IH as b,TH as c,CH as d,NH as e,iF as f,LH as g,kH as h,OH as i,_T as j,MH as k,PH as l,DH as m,FH as n,AH as o,BH as p,RH as q,EH as r,xH as s,zr as u};
|