locust 2.32.7.dev9__py3-none-any.whl → 2.32.7.dev16__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -154,7 +154,7 @@ ${ce.current.stack}
154
154
  `});++n<t.length;)n&&r.push({type:"text",value:`
155
155
  `}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
156
156
  `}),r}function bI(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function CI(t,e){const r=Iee(t,e),n=r.one(t,void 0),i=xee(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
157
- `},i),a}function Nee(t,e){return t&&"run"in t?async function(r,n){const i=CI(r,e);await t.run(i,n)}:function(r){return CI(r,e||t)}}function TI(t){if(t)throw t}var J_,AI;function zee(){if(AI)return J_;AI=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},a=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||t.call(u,h)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return J_=function l(){var u,c,f,h,d,v,y=arguments[0],m=1,_=arguments.length,S=!1;for(typeof y=="boolean"&&(S=y,y=arguments[1]||{},m=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});m<_;++m)if(u=arguments[m],u!=null)for(c in u)f=s(y,c),h=s(u,c),y!==h&&(S&&h&&(a(h)||(d=i(h)))?(d?(d=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},o(y,{name:c,newValue:l(S,v,h)})):typeof h<"u"&&o(y,{name:c,newValue:h}));return y},J_}var Bee=zee();const ex=Zc(Bee);function ab(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Fee(){const t=[],e={run:r,use:n};return e;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=t[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Vee(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function Vee(t,e){let r;return n;function n(...o){const s=t.length>o.length;let l;s&&o.push(i);try{l=t.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,e(o,...s))}function a(o){i(null,o)}}const xa={basename:Gee,dirname:Hee,extname:$ee,join:Wee,sep:"/"};function Gee(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');rp(t);let r=0,n=-1,i=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let o=-1,s=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(t.codePointAt(i)===e.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=t.length),t.slice(r,n)}function Hee(t){if(rp(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function $ee(t){rp(t);let e=t.length,r=-1,n=0,i=-1,a=0,o;for(;e--;){const s=t.codePointAt(e);if(s===47){if(o){n=e+1;break}continue}r<0&&(o=!0,r=e+1),s===46?i<0?i=e:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function Wee(...t){let e=-1,r;for(;++e<t.length;)rp(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":Uee(r)}function Uee(t){rp(t);const e=t.codePointAt(0)===47;let r=jee(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function jee(t,e){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=t.length;){if(o<t.length)s=t.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,o):r=t.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function rp(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Yee={cwd:Xee};function Xee(){return"/"}function ob(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Zee(t){if(typeof t=="string")t=new URL(t);else if(!ob(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return qee(t)}function qee(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const tx=["history","path","basename","stem","extname","dirname"];class N3{constructor(e){let r;e?ob(e)?r={path:e}:typeof e=="string"||Kee(e)?r={value:e}:r=e:r={},this.cwd=Yee.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<tx.length;){const a=tx[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)tx.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?xa.basename(this.path):void 0}set basename(e){nx(e,"basename"),rx(e,"basename"),this.path=xa.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?xa.dirname(this.path):void 0}set dirname(e){MI(this.basename,"dirname"),this.path=xa.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?xa.extname(this.path):void 0}set extname(e){if(rx(e,"extname"),MI(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xa.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ob(e)&&(e=Zee(e)),nx(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?xa.basename(this.path,this.extname):void 0}set stem(e){nx(e,"stem"),rx(e,"stem"),this.path=xa.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new _n(e,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function rx(t,e){if(t&&t.includes(xa.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+xa.sep+"`")}function nx(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function MI(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function Kee(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Qee=function(t){const n=this.constructor.prototype,i=n[t],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},Jee={}.hasOwnProperty;class BT extends Qee{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Fee()}copy(){const e=new BT;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(ex(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(ox("data",this.frozen),this.namespace[e]=r,this):Jee.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ox("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=Gv(e),n=this.parser||this.Parser;return ix("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),ix("process",this.parser||this.Parser),ax("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Gv(e),l=n.parse(s);n.run(l,s,function(c,f,h){if(c||!f||!h)return u(c);const d=f,v=n.stringify(d,h);rte(v)?h.value=v:h.result=v,u(c,h)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(e){let r=!1,n;return this.freeze(),ix("processSync",this.parser||this.Parser),ax("processSync",this.compiler||this.Compiler),this.process(e,i),kI("processSync","process",r),n;function i(a,o){r=!0,TI(a),n=o}}run(e,r,n){DI(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=Gv(r);i.run(e,l,u);function u(c,f,h){const d=f||e;c?s(c):o?o(d):n(void 0,d,h)}}}runSync(e,r){let n=!1,i;return this.run(e,r,a),kI("runSync","run",n),i;function a(o,s){TI(o),i=s,n=!0}}stringify(e,r){this.freeze();const n=Gv(r),i=this.compiler||this.Compiler;return ax("stringify",i),DI(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(ox("use",this.frozen),e!=null)if(typeof e=="function")l(e,r);else if(typeof e=="object")Array.isArray(e)?s(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=ex(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<n.length;)if(n[f][0]===u){h=f;break}if(h===-1)n.push([u,...c]);else if(c.length>0){let[d,...v]=c;const y=n[h][1];ab(y)&&ab(d)&&(d=ex(!0,y,d)),n[h]=[u,d,...v]}}}}const ete=new BT().freeze();function ix(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function ax(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ox(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DI(t){if(!ab(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function kI(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Gv(t){return tte(t)?t:new N3(t)}function tte(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function rte(t){return typeof t=="string"||nte(t)}function nte(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const ite="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",PI=[],II={allowDangerousHtml:!0},ate=/^(https?|ircs?|mailto|xmpp)$/i,ote=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ste(t){const e=t.allowedElements,r=t.allowElement,n=t.children||"",i=t.className,a=t.components,o=t.disallowedElements,s=t.rehypePlugins||PI,l=t.remarkPlugins||PI,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...II}:II,c=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||lte,d=ete().use(GJ).use(l).use(Nee,u).use(s),v=new N3;typeof n=="string"&&(v.value=n);for(const S of ote)Object.hasOwn(t,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+ite+S.id,void 0);const y=d.parse(v);let m=d.runSync(y,v);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:m.type==="root"?m.children:[m]}),O3(m,_),AK(m,{Fragment:re.Fragment,components:a,ignoreInvalidStyle:!0,jsx:re.jsx,jsxs:re.jsxs,passKeys:!0,passNode:!0});function _(S,w,b){if(S.type==="raw"&&b&&typeof w=="number")return c?b.children.splice(w,1):b.children[w]={type:"text",value:S.value},w;if(S.type==="element"){let A;for(A in q_)if(Object.hasOwn(q_,A)&&Object.hasOwn(S.properties,A)){const T=S.properties[A],M=q_[A];(M===null||M.includes(S.tagName))&&(S.properties[A]=h(String(T||""),A,S))}}if(S.type==="element"){let A=e?!e.includes(S.tagName):o?o.includes(S.tagName):!1;if(!A&&r&&typeof w=="number"&&(A=!r(S,w,b)),A&&b&&typeof w=="number")return f&&S.children?b.children.splice(w,1,...S.children):b.children.splice(w,1),w}}}function lte(t){const e=t.indexOf(":"),r=t.indexOf("?"),n=t.indexOf("#"),i=t.indexOf("/");return e<0||i>-1&&e>i||r>-1&&e>r||n>-1&&e>n||ate.test(t.slice(0,e))?t:""}function ute({content:t}){return re.jsx(ste,{components:{a:IB},skipHtml:!1,children:t})}function cte(t,e){const r=e?-1:1;return function(n,i){const a=n[t],o=i[t];return a<o?r*-1:a>o?r*1:0}}function fte(t,{hasTotalRow:e=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=Q.useState(t),[a,o]=Q.useState(!1),s=Q.useRef(),l=c=>{const h=(e?t.slice(0,-1):[...t]).sort(cte(c,c===s.current&&!a));i(e?[...h,...t.slice(-1)]:h)},u=Q.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,t,a]);return Q.useEffect(()=>{t.length&&l(s.current||r)},[t]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const hte=(t,e=0)=>{const r=Math.pow(10,e);return Math.round(t*r)/r};function dte({content:t,formatter:e,round:r,markdown:n}){return e?e(t):r?hte(t,r):n?re.jsx(ute,{content:t}):t}function Jm({rows:t,structure:e,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=fte(t,{hasTotalRow:r,defaultSortKey:n});return re.jsx(WX,{component:wB,sx:{overflowX:"visible"},children:re.jsxs(DX,{children:[re.jsx(qX,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:re.jsx(PP,{children:e.map(({title:s,key:l})=>re.jsx(AP,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),re.jsx(RX,{children:a.map((s,l)=>re.jsx(PP,{children:e.map(({key:u,...c},f)=>re.jsx(AP,{children:re.jsx(dte,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}const pte=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function z3({exceptions:t}){return re.jsx(Jm,{rows:t,structure:pte})}const vte=({ui:{exceptions:t}})=>({exceptions:t});ep(vte)(z3);const gte=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function B3({errors:t}){return re.jsx(Jm,{rows:t,structure:gte})}const yte=({ui:{errors:t}})=>({errors:t});ep(yte)(B3);const mte=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function _te({responseTimes:t}){const e=Q.useMemo(()=>Object.keys(t[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[t]);return re.jsx(Jm,{hasTotalRow:!0,rows:t,structure:[...mte,...e]})}var ih={},sx={exports:{}},EI;function xte(){return EI||(EI=1,function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(sx)),sx.exports}var lx={};const Ste=_8(aj);var LI;function wte(){return LI||(LI=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Ste}(lx)),lx}var RI;function bte(){if(RI)return ih;RI=1;var t=xte();Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0;var e=t(wte()),r=F5(),n=(0,e.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return ih.default=n,ih}var Cte=bte();const Tte=Zc(Cte);function Ate({structure:t,selectedColumns:e,addColumn:r,removeColumn:n}){const[i,a]=Q.useState(null);return re.jsxs(DB,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[re.jsx(CY,{onClick:o=>a(o.currentTarget),variant:"outlined",children:re.jsx(Tte,{})}),re.jsx(vX,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:re.jsx(QY,{sx:{p:2},children:t.map(({key:o,title:s})=>re.jsx(YY,{control:re.jsx(bX,{checked:e.includes(o),onChange:()=>{e.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function Mte(t){const[e,r]=Q.useState(t.map(o=>o.key));return{selectedColumns:e,addColumn:o=>{r([...e,o])},removeColumn:o=>{r(e.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>e.includes(s.key)))(t)}}const Dte=zl.percentilesToStatistics?zl.percentilesToStatistics.map(t=>({title:`${t*100}%ile (ms)`,key:`responseTimePercentile${t}`})):[],kte=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...Dte,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function F3({stats:t,tableStructure:e=kte}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=Mte(e);return re.jsxs(re.Fragment,{children:[re.jsx(Ate,{addColumn:n,removeColumn:i,selectedColumns:r,structure:e}),re.jsx(Jm,{hasTotalRow:!0,rows:t,structure:a})]})}const Pte=({ui:{stats:t}})=>({stats:t});ep(Pte)(F3);/*! *****************************************************************************
157
+ `},i),a}function Nee(t,e){return t&&"run"in t?async function(r,n){const i=CI(r,e);await t.run(i,n)}:function(r){return CI(r,e||t)}}function TI(t){if(t)throw t}var J_,AI;function zee(){if(AI)return J_;AI=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},a=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||t.call(u,h)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return J_=function l(){var u,c,f,h,d,v,y=arguments[0],m=1,_=arguments.length,S=!1;for(typeof y=="boolean"&&(S=y,y=arguments[1]||{},m=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});m<_;++m)if(u=arguments[m],u!=null)for(c in u)f=s(y,c),h=s(u,c),y!==h&&(S&&h&&(a(h)||(d=i(h)))?(d?(d=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},o(y,{name:c,newValue:l(S,v,h)})):typeof h<"u"&&o(y,{name:c,newValue:h}));return y},J_}var Bee=zee();const ex=Zc(Bee);function ab(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Fee(){const t=[],e={run:r,use:n};return e;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=t[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Vee(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function Vee(t,e){let r;return n;function n(...o){const s=t.length>o.length;let l;s&&o.push(i);try{l=t.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,e(o,...s))}function a(o){i(null,o)}}const xa={basename:Gee,dirname:Hee,extname:$ee,join:Wee,sep:"/"};function Gee(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');rp(t);let r=0,n=-1,i=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let o=-1,s=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(t.codePointAt(i)===e.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=t.length),t.slice(r,n)}function Hee(t){if(rp(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function $ee(t){rp(t);let e=t.length,r=-1,n=0,i=-1,a=0,o;for(;e--;){const s=t.codePointAt(e);if(s===47){if(o){n=e+1;break}continue}r<0&&(o=!0,r=e+1),s===46?i<0?i=e:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function Wee(...t){let e=-1,r;for(;++e<t.length;)rp(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":Uee(r)}function Uee(t){rp(t);const e=t.codePointAt(0)===47;let r=jee(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function jee(t,e){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=t.length;){if(o<t.length)s=t.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,o):r=t.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function rp(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Yee={cwd:Xee};function Xee(){return"/"}function ob(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Zee(t){if(typeof t=="string")t=new URL(t);else if(!ob(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return qee(t)}function qee(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const tx=["history","path","basename","stem","extname","dirname"];class N3{constructor(e){let r;e?ob(e)?r={path:e}:typeof e=="string"||Kee(e)?r={value:e}:r=e:r={},this.cwd=Yee.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<tx.length;){const a=tx[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)tx.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?xa.basename(this.path):void 0}set basename(e){nx(e,"basename"),rx(e,"basename"),this.path=xa.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?xa.dirname(this.path):void 0}set dirname(e){MI(this.basename,"dirname"),this.path=xa.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?xa.extname(this.path):void 0}set extname(e){if(rx(e,"extname"),MI(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xa.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ob(e)&&(e=Zee(e)),nx(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?xa.basename(this.path,this.extname):void 0}set stem(e){nx(e,"stem"),rx(e,"stem"),this.path=xa.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new _n(e,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function rx(t,e){if(t&&t.includes(xa.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+xa.sep+"`")}function nx(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function MI(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function Kee(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Qee=function(t){const n=this.constructor.prototype,i=n[t],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},Jee={}.hasOwnProperty;class BT extends Qee{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Fee()}copy(){const e=new BT;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(ex(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(ox("data",this.frozen),this.namespace[e]=r,this):Jee.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ox("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=Gv(e),n=this.parser||this.Parser;return ix("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),ix("process",this.parser||this.Parser),ax("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Gv(e),l=n.parse(s);n.run(l,s,function(c,f,h){if(c||!f||!h)return u(c);const d=f,v=n.stringify(d,h);rte(v)?h.value=v:h.result=v,u(c,h)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(e){let r=!1,n;return this.freeze(),ix("processSync",this.parser||this.Parser),ax("processSync",this.compiler||this.Compiler),this.process(e,i),kI("processSync","process",r),n;function i(a,o){r=!0,TI(a),n=o}}run(e,r,n){DI(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=Gv(r);i.run(e,l,u);function u(c,f,h){const d=f||e;c?s(c):o?o(d):n(void 0,d,h)}}}runSync(e,r){let n=!1,i;return this.run(e,r,a),kI("runSync","run",n),i;function a(o,s){TI(o),i=s,n=!0}}stringify(e,r){this.freeze();const n=Gv(r),i=this.compiler||this.Compiler;return ax("stringify",i),DI(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(ox("use",this.frozen),e!=null)if(typeof e=="function")l(e,r);else if(typeof e=="object")Array.isArray(e)?s(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=ex(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<n.length;)if(n[f][0]===u){h=f;break}if(h===-1)n.push([u,...c]);else if(c.length>0){let[d,...v]=c;const y=n[h][1];ab(y)&&ab(d)&&(d=ex(!0,y,d)),n[h]=[u,d,...v]}}}}const ete=new BT().freeze();function ix(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function ax(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ox(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DI(t){if(!ab(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function kI(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Gv(t){return tte(t)?t:new N3(t)}function tte(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function rte(t){return typeof t=="string"||nte(t)}function nte(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const ite="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",PI=[],II={allowDangerousHtml:!0},ate=/^(https?|ircs?|mailto|xmpp)$/i,ote=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ste(t){const e=t.allowedElements,r=t.allowElement,n=t.children||"",i=t.className,a=t.components,o=t.disallowedElements,s=t.rehypePlugins||PI,l=t.remarkPlugins||PI,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...II}:II,c=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||lte,d=ete().use(GJ).use(l).use(Nee,u).use(s),v=new N3;typeof n=="string"&&(v.value=n);for(const S of ote)Object.hasOwn(t,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+ite+S.id,void 0);const y=d.parse(v);let m=d.runSync(y,v);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:m.type==="root"?m.children:[m]}),O3(m,_),AK(m,{Fragment:re.Fragment,components:a,ignoreInvalidStyle:!0,jsx:re.jsx,jsxs:re.jsxs,passKeys:!0,passNode:!0});function _(S,w,b){if(S.type==="raw"&&b&&typeof w=="number")return c?b.children.splice(w,1):b.children[w]={type:"text",value:S.value},w;if(S.type==="element"){let A;for(A in q_)if(Object.hasOwn(q_,A)&&Object.hasOwn(S.properties,A)){const T=S.properties[A],M=q_[A];(M===null||M.includes(S.tagName))&&(S.properties[A]=h(String(T||""),A,S))}}if(S.type==="element"){let A=e?!e.includes(S.tagName):o?o.includes(S.tagName):!1;if(!A&&r&&typeof w=="number"&&(A=!r(S,w,b)),A&&b&&typeof w=="number")return f&&S.children?b.children.splice(w,1,...S.children):b.children.splice(w,1),w}}}function lte(t){const e=t.indexOf(":"),r=t.indexOf("?"),n=t.indexOf("#"),i=t.indexOf("/");return e<0||i>-1&&e>i||r>-1&&e>r||n>-1&&e>n||ate.test(t.slice(0,e))?t:""}function ute({content:t}){return re.jsx(ste,{components:{a:IB},skipHtml:!1,children:t})}function cte(t,e){const r=e?-1:1;return function(n,i){const a=n[t],o=i[t];return a<o?r*-1:a>o?r*1:0}}function fte(t,{hasTotalRow:e=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=Q.useState(t),[a,o]=Q.useState(!1),s=Q.useRef(),l=c=>{const h=(e?t.slice(0,-1):[...t]).sort(cte(c,c===s.current&&!a));i(e?[...h,...t.slice(-1)]:h)},u=Q.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,t,a]);return Q.useEffect(()=>{t.length?l(s.current||r):l.length&&i(t)},[t]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const hte=(t,e=0)=>{const r=Math.pow(10,e);return Math.round(t*r)/r};function dte({content:t,formatter:e,round:r,markdown:n}){return e?e(t):r?hte(t,r):n?re.jsx(ute,{content:t}):t}function Jm({rows:t,structure:e,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=fte(t,{hasTotalRow:r,defaultSortKey:n});return re.jsx(WX,{component:wB,sx:{overflowX:"visible"},children:re.jsxs(DX,{children:[re.jsx(qX,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:re.jsx(PP,{children:e.map(({title:s,key:l})=>re.jsx(AP,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),re.jsx(RX,{children:a.map((s,l)=>re.jsx(PP,{children:e.map(({key:u,...c},f)=>re.jsx(AP,{children:re.jsx(dte,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}const pte=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function z3({exceptions:t}){return re.jsx(Jm,{rows:t,structure:pte})}const vte=({ui:{exceptions:t}})=>({exceptions:t});ep(vte)(z3);const gte=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function B3({errors:t}){return re.jsx(Jm,{rows:t,structure:gte})}const yte=({ui:{errors:t}})=>({errors:t});ep(yte)(B3);const mte=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function _te({responseTimes:t}){const e=Q.useMemo(()=>Object.keys(t[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[t]);return re.jsx(Jm,{hasTotalRow:!0,rows:t,structure:[...mte,...e]})}var ih={},sx={exports:{}},EI;function xte(){return EI||(EI=1,function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(sx)),sx.exports}var lx={};const Ste=_8(aj);var LI;function wte(){return LI||(LI=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Ste}(lx)),lx}var RI;function bte(){if(RI)return ih;RI=1;var t=xte();Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0;var e=t(wte()),r=F5(),n=(0,e.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return ih.default=n,ih}var Cte=bte();const Tte=Zc(Cte);function Ate({structure:t,selectedColumns:e,addColumn:r,removeColumn:n}){const[i,a]=Q.useState(null);return re.jsxs(DB,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[re.jsx(CY,{onClick:o=>a(o.currentTarget),variant:"outlined",children:re.jsx(Tte,{})}),re.jsx(vX,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:re.jsx(QY,{sx:{p:2},children:t.map(({key:o,title:s})=>re.jsx(YY,{control:re.jsx(bX,{checked:e.includes(o),onChange:()=>{e.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function Mte(t){const[e,r]=Q.useState(t.map(o=>o.key));return{selectedColumns:e,addColumn:o=>{r([...e,o])},removeColumn:o=>{r(e.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>e.includes(s.key)))(t)}}const Dte=zl.percentilesToStatistics?zl.percentilesToStatistics.map(t=>({title:`${t*100}%ile (ms)`,key:`responseTimePercentile${t}`})):[],kte=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...Dte,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function F3({stats:t,tableStructure:e=kte}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=Mte(e);return re.jsxs(re.Fragment,{children:[re.jsx(Ate,{addColumn:n,removeColumn:i,selectedColumns:r,structure:e}),re.jsx(Jm,{hasTotalRow:!0,rows:t,structure:a})]})}const Pte=({ui:{stats:t}})=>({stats:t});ep(Pte)(F3);/*! *****************************************************************************
158
158
  Copyright (c) Microsoft Corporation.
159
159
 
160
160
  Permission to use, copy, modify, and/or distribute this software for any
@@ -213,14 +213,14 @@ PERFORMANCE OF THIS SOFTWARE.
213
213
 
214
214
  `:"<br/>",_=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ve(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,y=kh([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=y.get("trigger");if(!(m!=null&&m!=="item")){var _=u.getDataParams(c,f),S=new nS;_.marker=S.makeTooltipMarker("item",tu(_.color),d);var w=xL(u.formatTooltip(c,!1,f)),b=y.get("order"),A=y.get("valueFormatter"),T=w.frag,M=T?AL(A?ne({valueFormatter:A},T):T,S,d,b,a.get("useUTC"),y.get("textStyle")):w.text,k="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,M,_,k,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(me(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ne(l),l.content=In(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=kh(f,this._tooltipModel,d?{position:d}:null),y=v.get("content"),m=Math.random()+"",_=new nS;this._showOrMove(v,function(){var S=Ne(v.get("formatterParams")||{});this._showTooltipContent(v,y,S,m,r.offsetX,r.offsetY,r.position,n,_)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),y=v.color;if(h)if(me(h)){var m=r.ecModel.get("useUTC"),_=oe(i)?i[0]:i,S=_&&_.axisType&&_.axisType.indexOf("time")>=0;d=h,S&&(d=m0(_.axisValue,d,m)),d=k4(d,i,!0)}else if(Pe(h)){var w=be(function(b,A){b===this._ticket&&(f.setContent(A,c,r,y,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,w)}else d=h;f.setContent(d,c,r,y,l),f.show(r,y),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||oe(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!oe(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Pe(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),oe(n))i=pe(n[0],u),a=pe(n[1],c);else if(Re(n)){var y=n;y.width=f[0],y.height=f[1];var m=xr(y,{width:u,height:c});i=m.x,a=m.y,h=null,d=null}else if(me(n)&&l){var _=V1e(n,v,f,r.get("borderWidth"));i=_[0],a=_[1]}else{var _=B1e(i,a,o,u,c,h?null:20,d?null:20);i=_[0],a=_[1]}if(h&&(i-=Rz(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=Rz(d)?f[1]/2:d==="bottom"?f[1]:0),j6(r)){var _=F1e(i,a,o,u,c);i=_[0],a=_[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||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(h,d){var v=f[d]||{},y=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&y.length===m.length,o&&R(y,function(_,S){var w=m[S];o=o&&_.seriesIndex===w.seriesIndex&&_.dataIndex===w.dataIndex}),a&&R(h.seriesDataIndices,function(_){var S=_.seriesIndex,w=n[S],b=a[S];w&&b&&b.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){tt.node||!n.getDom()||(Rd(this,"_updatePosition"),this._tooltipContent.dispose(),OC("itemTooltip",n))},e.type="tooltip",e}($t);function kh(t,e,r){var n=e.ecModel,i;r?(i=new mt(r,n,n),i=new mt(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof mt&&(o=o.get("tooltip",!0)),me(o)&&(o={formatter:o}),o&&(i=new mt(o,i,n)))}return i}function Lz(t,e){return t.dispatchAction||be(e.dispatchAction,e)}function B1e(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 F1e(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 V1e(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,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/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+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function Rz(t){return t==="center"||t==="middle"}function G1e(t,e,r){var n=eA(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ap(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 c=Ve(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function H1e(t){Ke(Cp),t.registerComponentModel(C1e),t.registerComponentView(z1e),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ir),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ir)}var $1e=["rect","polygon","keep","clear"];function W1e(t,e){var r=Ct(t?t.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=t&&t.toolbox;oe(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),U1e(s),e&&!s.length&&s.push.apply(s,$1e)}}function U1e(t){var e={};R(t,function(r){e[r]=1}),t.length=0,R(e,function(r,n){t.push(n)})}var Oz=R;function Nz(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function GC(t,e,r){var n={};return Oz(e,function(a){var o=n[a]=i();Oz(t[a],function(s,l){if(Dr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Dr(u),l==="opacity"&&(u=Ne(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Dr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function q6(t,e,r){var n;R(r,function(i){e.hasOwnProperty(i)&&Nz(e[i])&&(n=!0)}),n&&R(r,function(i){e.hasOwnProperty(i)&&Nz(e[i])?t[i]=Ne(e[i]):delete t[i]})}function j1e(t,e,r,n,i,a){var o={};R(t,function(f){var h=Dr.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return kA(r,s,f)}function u(f,h){mV(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(i,f),y=e[v],m=o[v],_=0,S=m.length;_<S;_++){var w=m[_];y[w]&&y[w].applyVisual(f,l,u)}}}function Y1e(t,e,r,n){var i={};return R(t,function(a){var o=Dr.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(A){return kA(s,f,A)}function c(A,T){mV(s,f,A,T)}for(var f,h=s.getStore();(f=o.next())!=null;){var d=s.getRawDataItem(f);if(!(d&&d.visualMap===!1))for(var v=n!=null?h.get(l,f):f,y=r(v),m=e[y],_=i[y],S=0,w=_.length;S<w;S++){var b=_[S];m[b]&&m[b].applyVisual(v,u,c)}}}}}function X1e(t){var e=t.brushType,r={point:function(n){return zz[e].point(n,r,t)},rect:function(n){return zz[e].rect(n,r,t)}};return r}var zz={lineX:Bz(0),lineY:Bz(1),rect:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])},rect:function(t,e,r){return t&&r.boundingRect.intersect(t)}},polygon:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])&&bl(r.range,t[0],t[1])},rect:function(t,e,r){var n=r.range;if(!t||n.length<=1)return!1;var i=t.x,a=t.y,o=t.width,s=t.height,l=n[0];if(bl(n,i,a)||bl(n,i+o,a)||bl(n,i,a+s)||bl(n,i+o,a+s)||je.create(t).contain(l[0],l[1])||Gh(i,a,i+o,a,n)||Gh(i,a,i,a+s,n)||Gh(i+o,a,i+o,a+s,n)||Gh(i,a+s,i+o,a+s,n))return!0}}};function Bz(t){var e=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[t];return Ph(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[e[t]],n[e[t]]+n[r[t]]];return s[1]<s[0]&&s.reverse(),Ph(s[0],o)||Ph(s[1],o)||Ph(o[0],s)||Ph(o[1],s)}}}}function Ph(t,e){return e[0]<=t&&t<=e[1]}var Fz=["inBrush","outOfBrush"],_w="__ecBrushSelect",HC="__ecInBrushSelectEvent";function K6(t){t.eachComponent({mainType:"brush"},function(e){var r=e.brushTargetManager=new z2(e.option,t);r.setInputRanges(e.areas,t)})}function Z1e(t,e,r){var n=[],i,a;t.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),K6(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ne(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],h=[],d=[],v=!1;s||(i=u.throttleType,a=u.throttleDelay);var y=se(o.areas,function(A){var T=J1e[A.brushType],M=Le({boundingRect:T?T(A):void 0},A);return M.selectors=X1e(M),M}),m=GC(o.option,Fz,function(A){A.mappingMethod="fixed"});oe(c)&&R(c,function(A){f[A]=1});function _(A){return c==="all"||!!f[A]}function S(A){return!!A.length}t.eachSeries(function(A,T){var M=d[T]=[];A.subType==="parallel"?w(A,T):b(A,T,M)});function w(A,T){var M=A.coordinateSystem;v=v||M.hasAxisBrushed(),_(T)&&M.eachActiveState(A.getData(),function(k,P){k==="active"&&(h[P]=1)})}function b(A,T,M){if(!(!A.brushSelector||Q1e(o,T))&&(R(y,function(P){o.brushTargetManager.controlSeries(P,A,t)&&M.push(P),v=v||S(M)}),_(T)&&S(M))){var k=A.getData();k.each(function(P){Vz(A,M,k,P)&&(h[P]=1)})}}t.eachSeries(function(A,T){var M={seriesId:A.id,seriesIndex:T,seriesName:A.name,dataIndex:[]};l.selected.push(M);var k=d[T],P=A.getData(),E=_(T)?function(L){return h[L]?(M.dataIndex.push(P.getRawIndex(L)),"inBrush"):"outOfBrush"}:function(L){return Vz(A,k,P,L)?(M.dataIndex.push(P.getRawIndex(L)),"inBrush"):"outOfBrush"};(_(T)?v:S(k))&&j1e(Fz,m,P,E)})}),q1e(e,i,a,n,r)}function q1e(t,e,r,n,i){if(i){var a=t.getZr();if(!a[HC]){a[_w]||(a[_w]=K1e);var o=df(a,_w,r,e);o(t,n)}}}function K1e(t,e){if(!t.isDisposed()){var r=t.getZr();r[HC]=!0,t.dispatchAction({type:"brushSelect",batch:e}),r[HC]=!1}}function Vz(t,e,r,n){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(t.brushSelector(n,r,o.selectors,o))return!0}}function Q1e(t,e){var r=t.option.seriesIndex;return r!=null&&r!=="all"&&(oe(r)?qe(r,e)<0:e!==r)}var J1e={rect:function(t){return Gz(t.range)},polygon:function(t){for(var e,r=t.range,n=0,i=r.length;n<i;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&Gz(e)}};function Gz(t){return new je(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var e_e=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){this.ecModel=r,this.api=n,this.model,(this._brushController=new h2(n.getZr())).on("brush",be(this._onBrush,this)).mount()},e.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},e.prototype.updateTransform=function(r,n,i,a){K6(n),this._updateController(r,n,i,a)},e.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},e.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},e.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ne(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ne(i),$from:n})},e.type="brush",e}($t),t_e="#ddd",r_e=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&q6(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:t_e},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(r){r&&(this.areas=se(r,function(n){return Hz(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=Hz(this.option,r),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(nt);function Hz(t,e){return Ue({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new mt(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var n_e=["rect","polygon","lineX","lineY","keep","clear"],i_e=function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(r,n,i){this.render(r,n,i)},e.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(r){var n={show:!0,type:n_e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(Ci);function a_e(t){t.registerComponentView(e_e),t.registerComponentModel(r_e),t.registerPreprocessor(W1e),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Z1e),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ir),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ir),gc("brush",i_e)}var o_e=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:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(nt),s_e=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=He(r.get("textBaseline"),r.get("textVerticalAlign")),c=new ct({style:Nt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new ct({style:Nt(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),y=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,d.silent=!y&&!m,v&&c.on("click",function(){qy(v,"_"+r.get("target"))}),y&&d.on("click",function(){qy(y,"_"+r.get("subtarget"))}),Ve(c).eventData=Ve(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var _=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=_.width,S.height=_.height;var w=xr(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),a.x=w.x,a.y=w.y,a.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),d.setStyle(b),_=a.getBoundingRect();var A=w.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var M=new st({shape:{x:_.x-A[3],y:_.y-A[0],width:_.width+A[1]+A[3],height:_.height+A[0]+A[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(M)}},e.type="title",e}($t);function l_e(t){t.registerComponentModel(o_e),t.registerComponentView(s_e)}var $z=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=_r(rf(u),""),h;Re(u)?(h=Ne(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new dn([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(nt),Q6=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="timeline.slider",e.defaultOption=ks($z.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}($z);pr(Q6,T0.prototype);var u_e=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="timeline",e}($t),c_e=function(t){q(e,t);function e(r,n,i,a){var o=t.call(this,r,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(oa),xw=Math.PI,Wz=lt(),f_e=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){this.api=n},e.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Pr("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=d_e(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":me(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:xw/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,y=d?h.get("itemGap"):0,m=v+y,_=r.get(["label","rotate"])||0;_=_*xw/180;var S,w,b,A=h.get("position",!0),T=d&&h.get("showPlayBtn",!0),M=d&&h.get("showPrevBtn",!0),k=d&&h.get("showNextBtn",!0),P=0,E=f;A==="left"||A==="bottom"?(T&&(S=[0,0],P+=m),M&&(w=[P,0],P+=m),k&&(b=[E-v,0],E-=m)):(T&&(S=[E-v,0],E-=m),M&&(w=[0,0],P+=m),k&&(b=[E-v,0],E-=m));var L=[P,E];return r.get("inverse")&&L.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:_,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:w,nextBtnPosition:b,axisExtent:L,controlSize:v,controlGap:y}},e.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=ei(),l=o.x,u=o.y+o.height;za(s,s,[-l,-u]),ou(s,s,-xw/2),za(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=c[0][0];var y=r.labelPosOpt;if(y==null||me(y)){var m=y==="+"?0:1;w(d,f,c,1,m),w(v,h,c,1,1-m)}else{var m=y>=0?0:1;w(d,f,c,1,m),v[1]=d[1]+y}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=r.rotation,_(i),_(a);function _(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function S(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function w(b,A,T,M,k){b[M]+=T[M][k]-A[M][k]}},e.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=h_e(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new c_e("value",o,r.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new Be;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ar({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ne({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ar({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Le({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:be(o._changeTimeline,o,u.value)},m=Uz(f,h,n,y);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Hl(m);var _=Ve(m);f.get("tooltip")?(_.dataIndex=u.value,_.dataModel=a):_.dataIndex=_.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,h=l.getItemModel(f),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),y=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),_=new ct({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:be(o._changeTimeline,o,f),silent:!1,style:Nt(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});_.ensureState("emphasis").style=Nt(v),_.ensureState("progress").style=Nt(y),n.add(_),Hl(_),Wz(_).dataIndex=f,o._tickLabels.push(_)})}},e.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",be(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",be(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",be(this._handlePlayClick,this,!c),!0);function h(d,v,y,m){if(d){var _=na(He(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-_/2,_,_],w=p_e(a,v+"Icon",S,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:y});w.ensureState("emphasis").style=u,n.add(w),Hl(w)}}},e.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=be(u._handlePointerDrag,u),f.ondragend=be(u._handlePointerDragend,u),jz(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){jz(f,u._progressLine,s,i,a)}};this._currentPointer=Uz(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Mi(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return ea(r,n,!0)},e.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},e.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",Wz(i[a]).dataIndex<=r)},e.type="timeline.slider",e}(u_e);function h_e(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new I0({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new BA({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new _o}}function d_e(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function p_e(t,e,r,n){var i=n.style,a=fp(t.get(["controlStyle",e]),n||{},new je(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function Uz(t,e,r,n,i,a){var o=e.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=t.get("symbol");i=hr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),n=Ue({rectHover:!0,z2:100},n,!0);var u=pf(t.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=lu(t.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function jz(t,e,r,n,i,a){if(!t.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function v_e(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,r,n){var i=r.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Le({currentIndex:i.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,r){var n=r.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function g_e(t){var e=t&&t.timeline;oe(e)||(e=e?[e]:[]),R(e,function(r){r&&y_e(r)})}function y_e(t){var e=t.type,r={number:"value",time:"time"};if(r[e]&&(t.axisType=r[e],delete t.type),Yz(t),Al(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});Al(n,"position")||(n.position=t.controlPosition),n.position==="none"&&!Al(n,"show")&&(n.show=!1,delete n.position),delete t.controlPosition}R(t.data||[],function(i){Re(i)&&!oe(i)&&(!Al(i,"value")&&Al(i,"name")&&(i.value=i.name),Yz(i))})}function Yz(t){var e=t.itemStyle||(t.itemStyle={}),r=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};R(n,function(o,s){!a[s]&&!Al(i,s)&&(i[s]=o)}),r.label&&!Al(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Al(t,e){return t.hasOwnProperty(e)}function m_e(t){t.registerComponentModel(Q6),t.registerComponentView(f_e),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),v_e(t),t.registerPreprocessor(g_e)}function V2(t,e){if(!t)return!1;for(var r=oe(t)?t:[t],n=0;n<r.length;n++)if(r[n]&&r[n][e])return!0;return!1}function Fg(t){Kl(t,"label",["show"])}var Vg=lt(),So=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(tt.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},e.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Vg(s)[o];if(!l||!l.data){Vg(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&Fg(l),R(l.data,function(c){c instanceof Array?(Fg(c[0]),Fg(c[1])):Fg(c)}),u=this.createMarkerModelFromSeries(l,this,n),ne(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Vg(s)[o]=u},this)},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Pr("section",{header:this.name,blocks:[Pr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,n){var i=T0.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(r,n){return Vg(r)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(nt);pr(So,T0.prototype);var __e=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.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(So);function $C(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function x_e(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Gg(t,e,r,n,i,a){var o=[],s=Cs(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=G2(e,l,t),c=e.indicesOfNearest(l,u)[0];o[i]=e.get(r,c),o[a]=e.get(l,c);var f=e.get(n,c),h=Da(e.get(n,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var Sw={min:$e(Gg,"min"),max:$e(Gg,"max"),average:$e(Gg,"average"),median:$e(Gg,"median")};function Xd(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;if(!x_e(e)&&!oe(e.coord)&&oe(i)){var a=J6(e,r,n,t);if(e=Ne(e),e.type&&Sw[e.type]&&a.baseAxis&&a.valueAxis){var o=qe(i,a.baseAxis.dim),s=qe(i,a.valueAxis.dim),l=Sw[e.type](r,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!oe(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Sw[u[c]]&&(u[c]=G2(r,r.mapDimension(i[c]),u[c]));return e}}function J6(t,e,r,n){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=r.getAxis(S_e(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function S_e(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Zd(t,e){return t&&t.containData&&e.coord&&!$C(e)?t.containData(e.coord):!0}function w_e(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!$C(e)&&!$C(r)?t.containZone(e.coord,r.coord):!0}function e$(t,e){return t?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return gs(o,e[a])}:function(r,n,i,a){return gs(r.value,e[a])}}function G2(t,e,r){if(r==="average"){var n=0,i=0;return t.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var ww=lt(),H2=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(){this.markerGroupMap=Ae()},e.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ww(s).keep=!1}),n.eachSeries(function(s){var l=So.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ww(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(r){ww(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=So.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?jF(l):sA(l))})}})},e.type="marker",e}($t);function Xz(t,e,r){var n=e.coordinateSystem;t.each(function(i){var a=t.getItemModel(i),o,s=pe(a.get("x"),r.getWidth()),l=pe(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(n){var u=t.get(n.dimensions[0],i),c=t.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)})}var b_e=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.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=So.getMarkerModelFromSeries(a,"markPoint");o&&(Xz(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new yp),f=C_e(o,r,n);n.setData(f),Xz(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),y=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),_=d.getShallow("symbolOffset"),S=d.getShallow("symbolKeepAspect");if(Pe(v)||Pe(y)||Pe(m)||Pe(_)){var w=n.getRawValue(h),b=n.getDataParams(h);Pe(v)&&(v=v(w,b)),Pe(y)&&(y=y(w,b)),Pe(m)&&(m=m(w,b)),Pe(_)&&(_=_(w,b))}var A=d.getModel("itemStyle").getItemStyle(),T=dp(l,"color");A.fill||(A.fill=T),f.setItemVisual(h,{symbol:v,symbolSize:y,symbolRotate:m,symbolOffset:_,symbolKeepAspect:S,style:A})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){Ve(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(H2);function C_e(t,e,r){var n;t?n=se(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return ne(ne({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new dn(n,r),a=se(r.get("data"),$e(Xd,e));t&&(a=wt(a,$e(Zd,t)));var o=e$(!!t,n);return i.initData(a,null,o),i}function T_e(t){t.registerComponentModel(__e),t.registerComponentView(b_e),t.registerPreprocessor(function(e){V2(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var A_e=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.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(So),Hg=lt(),M_e=function(t,e,r,n){var i=t.getData(),a;if(oe(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=Or(n.yAxis,n.xAxis);else{var u=J6(n,i,e,t);s=u.valueAxis;var c=YV(i,u.valueDataDim);l=G2(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=Ne(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var y=r.get("precision");y>=0&&ht(l)&&(l=+l.toFixed(Math.min(y,20))),d.coord[f]=v.coord[f]=l,a=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Xd(t,a[0]),Xd(t,a[1]),ne({},a[2])];return m[2].type=m[2].type||null,Ue(m[2],m[0]),Ue(m[2],m[1]),m};function wm(t){return!isNaN(t)&&!isFinite(t)}function Zz(t,e,r,n){var i=1-t,a=n.dimensions[t];return wm(e[i])&&wm(r[i])&&e[t]===r[t]&&n.getAxis(a).containData(e[t])}function D_e(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(Zz(1,r,n,t)||Zz(0,r,n,t)))return!0}return Zd(t,e[0])&&Zd(t,e[1])}function bw(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=pe(o.get("x"),i.getWidth()),u=pe(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,f=t.get(c[0],e),h=t.get(c[1],e);s=a.dataToPoint([f,h])}if(cu(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;wm(t.get(c[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):wm(t.get(c[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var k_e=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.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=So.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Hg(o).from,u=Hg(o).to;l.each(function(c){bw(l,c,!0,a,i),bw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new f2);this.group.add(c.group);var f=P_e(o,r,n),h=f.from,d=f.to,v=f.line;Hg(n).from=h,Hg(n).to=d,n.setData(v);var y=n.get("symbol"),m=n.get("symbolSize"),_=n.get("symbolRotate"),S=n.get("symbolOffset");oe(y)||(y=[y,y]),oe(m)||(m=[m,m]),oe(_)||(_=[_,_]),oe(S)||(S=[S,S]),f.from.each(function(b){w(h,b,!0),w(d,b,!1)}),v.each(function(b){var A=v.getItemModel(b).getModel("lineStyle").getLineStyle();v.setItemLayout(b,[h.getItemLayout(b),d.getItemLayout(b)]),A.stroke==null&&(A.stroke=h.getItemVisual(b,"style").fill),v.setItemVisual(b,{fromSymbolKeepAspect:h.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(b,"symbolOffset"),fromSymbolRotate:h.getItemVisual(b,"symbolRotate"),fromSymbolSize:h.getItemVisual(b,"symbolSize"),fromSymbol:h.getItemVisual(b,"symbol"),toSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(b,"symbolOffset"),toSymbolRotate:d.getItemVisual(b,"symbolRotate"),toSymbolSize:d.getItemVisual(b,"symbolSize"),toSymbol:d.getItemVisual(b,"symbol"),style:A})}),c.updateData(v),f.line.eachItemGraphicEl(function(b){Ve(b).dataModel=n,b.traverse(function(A){Ve(A).dataModel=n})});function w(b,A,T){var M=b.getItemModel(A);bw(b,A,T,r,a);var k=M.getModel("itemStyle").getItemStyle();k.fill==null&&(k.fill=dp(l,"color")),b.setItemVisual(A,{symbolKeepAspect:M.get("symbolKeepAspect"),symbolOffset:He(M.get("symbolOffset",!0),S[T?0:1]),symbolRotate:He(M.get("symbolRotate",!0),_[T?0:1]),symbolSize:He(M.get("symbolSize"),m[T?0:1]),symbol:He(M.get("symbol",!0),y[T?0:1]),style:k})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(H2);function P_e(t,e,r){var n;t?n=se(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return ne(ne({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new dn(n,r),a=new dn(n,r),o=new dn([],r),s=se(r.get("data"),$e(M_e,e,t,r));t&&(s=wt(s,$e(D_e,t)));var l=e$(!!t,n);return i.initData(se(s,function(u){return u[0]}),null,l),a.initData(se(s,function(u){return u[1]}),null,l),o.initData(se(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function I_e(t){t.registerComponentModel(A_e),t.registerComponentView(k_e),t.registerPreprocessor(function(e){V2(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var E_e=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.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(So),$g=lt(),L_e=function(t,e,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Xd(t,i),s=Xd(t,a),l=o.coord,u=s.coord;l[0]=Or(l[0],-1/0),l[1]=Or(l[1],-1/0),u[0]=Or(u[0],1/0),u[1]=Or(u[1],1/0);var c=$T([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function bm(t){return!isNaN(t)&&!isFinite(t)}function qz(t,e,r,n){var i=1-t;return bm(e[i])&&bm(r[i])}function R_e(t,e){var r=e.coord[0],n=e.coord[1],i={coord:r,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return cu(t,"cartesian2d")?r&&n&&(qz(1,r,n)||qz(0,r,n))?!0:w_e(t,i,a):Zd(t,i)||Zd(t,a)}function Kz(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=pe(o.get(r[0]),i.getWidth()),u=pe(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),h=a.clampData(c),d=a.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var y=t.get(r[0],e),m=t.get(r[1],e),_=[y,m];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(cu(a,"cartesian2d")){var S=a.getAxis("x"),w=a.getAxis("y"),y=t.get(r[0],e),m=t.get(r[1],e);bm(y)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):bm(m)&&(s[1]=w.toGlobalCoord(w.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Qz=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],O_e=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.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=So.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=se(Qz,function(f){return Kz(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Be});this.group.add(c.group),this.markKeep(c);var f=N_e(o,r,n);n.setData(f),f.each(function(h){var d=se(Qz,function(k){return Kz(f,h,k,r,a)}),v=o.getAxis("x").scale,y=o.getAxis("y").scale,m=v.getExtent(),_=y.getExtent(),S=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],w=[y.parse(f.get("y0",h)),y.parse(f.get("y1",h))];Mi(S),Mi(w);var b=!(m[0]>S[1]||m[1]<S[0]||_[0]>w[1]||_[1]<w[0]),A=!b;f.setItemLayout(h,{points:d,allClipped:A});var T=f.getItemModel(h).getModel("itemStyle").getItemStyle(),M=dp(l,"color");T.fill||(T.fill=M,me(T.fill)&&(T.fill=By(T.fill,.4))),T.stroke||(T.stroke=M),f.setItemVisual(h,"style",T)}),f.diff($g(c).data).add(function(h){var d=f.getItemLayout(h);if(!d.allClipped){var v=new mn({shape:{points:d.points}});f.setItemGraphicEl(h,v),c.group.add(v)}}).update(function(h,d){var v=$g(c).data.getItemGraphicEl(d),y=f.getItemLayout(h);y.allClipped?v&&c.group.remove(v):(v?dt(v,{shape:{points:y.points}},n,h):v=new mn({shape:{points:y.points}}),f.setItemGraphicEl(h,v),c.group.add(v))}).remove(function(h){var d=$g(c).data.getItemGraphicEl(h);c.group.remove(d)}).execute(),f.eachItemGraphicEl(function(h,d){var v=f.getItemModel(d),y=f.getItemVisual(d,"style");h.useStyle(f.getItemVisual(d,"style")),Wr(h,kr(v),{labelFetcher:n,labelDataIndex:d,defaultText:f.getName(d)||"",inheritColor:me(y.fill)?By(y.fill,1):"#000"}),$r(h,v),qt(h,null,null,v.get(["emphasis","disabled"])),Ve(h).dataModel=n}),$g(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(H2);function N_e(t,e,r){var n,i,a=["x0","y0","x1","y1"];if(t){var o=se(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return ne(ne({},f),{name:u,ordinalMeta:null})});i=se(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new dn(i,r)}else i=[{name:"value",type:"float"}],n=new dn(i,r);var s=se(r.get("data"),$e(L_e,e,t,r));t&&(s=wt(s,$e(R_e,t)));var l=t?function(u,c,f,h){var d=u.coord[Math.floor(h/2)][h%2];return gs(d,i[h])}:function(u,c,f,h){return gs(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function z_e(t){t.registerComponentModel(E_e),t.registerComponentView(O_e),t.registerPreprocessor(function(e){V2(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var B_e=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"])}},WC=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"]),oe(n)&&R(n,function(a,o){me(a)&&(a={type:a}),n[o]=Ue(a,B_e(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 c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&JT(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Ae(),s=se(a,function(l){return(me(l)||ht(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new mt(l,this,this.ecModel))},this);this._data=wt(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])&&qe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(nt),sc=$e,UC=R,Wg=Be,t$=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 Wg),this.group.add(this._selectorGroup=new Wg),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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=xr(c,f,h),v=this.layoutInner(r,o,d,a,l,u),y=xr(Le({width:v.width,height:v.height},c),f,h);this.group.x=y.x-v.x,this.group.y=y.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$6(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=Ae(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),UC(n.getData(),function(d,v){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
215
215
  `)){var m=new Wg;m.newline=!0,u.add(m);return}var _=i.getSeriesByName(y)[0];if(!c.get(y))if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),A=S.getVisual("style"),T=this._createItem(_,y,v,d,n,r,w,A,b,f,a);T.on("click",sc(Jz,y,null,a,h)).on("mouseover",sc(jC,_.name,null,a,h)).on("mouseout",sc(YC,_.name,null,a,h)),i.ssr&&T.eachChild(function(M){var k=Ve(M);k.seriesIndex=_.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),c.set(y,!0)}else i.eachRawSeries(function(M){if(!c.get(y)&&M.legendVisualProvider){var k=M.legendVisualProvider;if(!k.containName(y))return;var P=k.indexOfName(y),E=k.getItemVisual(P,"style"),L=k.getItemVisual(P,"legendIcon"),O=ti(E.fill);O&&O[3]===0&&(O[3]=.2,E=ne(ne({},E),{fill:uo(O,"rgba")}));var N=this._createItem(M,y,v,d,n,r,{},E,L,f,a);N.on("click",sc(Jz,null,y,a,h)).on("mouseover",sc(jC,null,y,a,h)).on("mouseout",sc(YC,null,y,a,h)),i.ssr&&N.eachChild(function(B){var F=Ve(B);F.seriesIndex=M.seriesIndex,F.dataIndex=v,F.ssrType="legend"}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();UC(r,function(u){var c=u.type,f=new ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);Wr(f,{normal:h,emphasis:d},{defaultText:u.title}),Hl(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),y=o.get("itemHeight"),m=o.isSelected(n),_=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),w=a.get("icon");c=w||c||"roundRect";var b=F_e(c,a,l,u,d,m,h),A=new Wg,T=a.getModel("textStyle");if(Pe(r.getLegendIcon)&&(!w||w==="inherit"))A.add(r.getLegendIcon({itemWidth:v,itemHeight:y,icon:c,iconRotate:_,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:S}));else{var M=w==="inherit"&&r.getData().getVisual("symbol")?_==="inherit"?r.getData().getVisual("symbolRotate"):_:0;A.add(V_e({itemWidth:v,itemHeight:y,icon:c,iconRotate:M,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:S}))}var k=s==="left"?v+5:-5,P=s,E=o.get("formatter"),L=n;me(E)&&E?L=E.replace("{name}",n??""):Pe(E)&&(L=E(n));var O=m?T.getTextColor():a.get("inactiveColor");A.add(new ct({style:Nt(T,{text:L,x:k,y:y/2,fill:O,align:P,verticalAlign:"middle"},{inheritColor:O})}));var N=new st({shape:A.getBoundingRect(),style:{fill:"transparent"}}),B=a.getModel("tooltip");return B.get("show")&&of({el:N,componentModel:o,itemName:n,itemTooltipOption:B.option}),A.add(N),A.eachChild(function(F){F.silent=!0}),N.silent=!f,this.getContentGroup().add(A),Hl(A),A.__legendDataIndex=i,A},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Wl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Wl("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),y=r.getOrient().index,m=y===0?"width":"height",_=y===0?"height":"width",S=y===0?"y":"x";s==="end"?d[y]+=c[m]+v:f[y]+=h[m]+v,d[1-y]+=c[_]/2-h[_]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[m]=c[m]+v+h[m],w[_]=Math.max(c[_],h[_]),w[S]=Math.min(0,h[S]+d[1-y]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}($t);function F_e(t,e,r,n,i,a,o){function s(m,_){m.lineWidth==="auto"&&(m.lineWidth=_.lineWidth>0?2:0),UC(m,function(S,w){m[w]==="inherit"&&(m[w]=_[w])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Hc(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function V_e(t){var e=t.icon||"roundRect",r=hr(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Jz(t,e,r,n){YC(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),jC(t,e,r,n)}function r$(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function jC(t,e,r,n){r$(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function YC(t,e,r,n){r$(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function G_e(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 Ih(t,e,r){var n={},i=t==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),a=o.isSelected(e.name));var s=o.getData();R(s,function(l){var u=l.get("name");if(!(u===`
216
- `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function H_e(t){t.registerAction("legendToggleSelect","legendselectchanged",$e(Ih,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",$e(Ih,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",$e(Ih,"inverseSelect")),t.registerAction("legendSelect","legendselected",$e(Ih,"select")),t.registerAction("legendUnSelect","legendunselected",$e(Ih,"unSelect"))}function n$(t){t.registerComponentModel(WC),t.registerComponentView(t$),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,G_e),t.registerSubTypeDefaulter("legend",function(){return"plain"}),H_e(t)}var $_e=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=cf(r);t.prototype.init.call(this,r,n,i),e5(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),e5(this,this.option,r)},e.type="legend.scroll",e.defaultOption=ks(WC.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(WC);function e5(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,bs(e,r,{type:"box",ignoreSize:!!i})}var t5=Be,Cw=["width","height"],Tw=["x","y"],W_e=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 t5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new t5)},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 c=this._controllerGroup,f=n.get("pageIconSize",!0),h=oe(f)?f:[f,f];v("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new ct({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(y,m){var _=y+"DataIndex",S=fp(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:be(u._pageGo,u,_,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});S.name=y,c.add(S)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Cw[u],f=Tw[u],h=Cw[1-u],d=Tw[1-u];o&&Wl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=l.getBoundingRect(),m=[-y.x,-y.y],_=Ne(i);o&&(_[c]=i[c]-y[c]-v);var S=this._layoutContentAndController(r,a,_,u,c,h,d,f);if(o){if(s==="end")m[u]+=S[c]+v;else{var w=y[c]+v;m[u]-=w,S[f]-=w}S[c]+=y[c]+v,m[1-u]+=S[d]+S[h]/2-y[h]/2,S[h]=Math.max(S[h],y[h]),S[d]=Math.min(S[d],y[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return S},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Wl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Wl("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),y=this._showController=d[o]>i[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var _=[0,0],S=[-v.x,-v.y],w=He(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var b=r.get("pageButtonPosition",!0);b==="end"?S[a]+=i[o]-v[o]:_[a]+=v[o]+w}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(_),h.setPosition(S);var A={x:0,y:0};if(A[o]=y?i[o]:d[o],A[s]=Math.max(d[s],v[s]),A[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],y){var T={x:0,y:0};T[o]=Math.max(i[o]-v[o]-w,0),T[s]=A[s],f.setClipPath(new st({shape:T})),f.__rectSize=T[o]}else h.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(r);return M.pageIndex!=null&&dt(c,{x:M.contentPosition[0],y:M.contentPosition[1]},y?r:null),this._updatePageInfoView(r,M),A},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(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"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",me(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=Cw[o],l=Tw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var y=b(f);v.contentPosition[o]=-y.s;for(var m=u+1,_=y,S=y,w=null;m<=h;++m)w=b(c[m]),(!w&&S.e>_.s+a||w&&!A(w,_.s))&&(S.i>_.i?_=S:_=w,_&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=_.i),++v.pageCount)),S=w;for(var m=u-1,_=y,S=y,w=null;m>=-1;--m)w=b(c[m]),(!w||!A(S,w.s))&&_.i<S.i&&(S=_,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=_.i),++v.pageCount,++v.pageIndex),_=w;return v;function b(T){if(T){var M=T.getBoundingRect(),k=M[l]+T[l];return{s:k,e:k+M[s],i:T.__legendDataIndex}}}function A(T,M){return T.e>=M&&T.s<=M+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??a},e.type="legend.scroll",e}(t$);function U_e(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 j_e(t){Ke(n$),t.registerComponentModel($_e),t.registerComponentView(W_e),U_e(t)}function Y_e(t){Ke(n$),Ke(j_e)}var X_e=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="dataZoom.inside",e.defaultOption=ks(Yd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Yd),$2=lt();function Z_e(t,e,r){$2(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function q_e(t,e){for(var r=$2(t).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||i$(r,o))}}}function i$(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function K_e(t,e){var r={model:e,containsPoint:$e(J_e,e),dispatchAction:$e(Q_e,t),dataZoomInfoMap:null,controller:null},n=r.controller=new wp(t.getZr());return R(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function Q_e(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function J_e(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function exe(t){var e,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function txe(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=$2(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ae());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=V6(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,K_e(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ae());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){i$(i,a);return}var c=exe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),df(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var rxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Z_e(i,r,{pan:be(Aw.pan,this),zoom:be(Aw.zoom,this),scrollMove:be(Aw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){q_e(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(R2),Aw={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=Mw[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:r5(function(t,e,r,n,i,a){var o=Mw[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:r5(function(t,e,r,n,i,a){var o=Mw[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function r5(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(hu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Mw={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function a$(t){O2(t),t.registerComponentModel(X_e),t.registerComponentView(rxe),txe(t)}var nxe=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="dataZoom.slider",e.layoutMode="box",e.defaultOption=ks(Yd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Yd),Eh=st,n5=7,ixe=1,Dw=30,axe=7,Lh="horizontal",i5="vertical",oxe=5,sxe=["line","bar","candlestick","scatter"],lxe={easing:"cubicOut",duration:100,delay:0},uxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=be(this._onBrush,this),this._onBrushEnd=be(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),df(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Rd(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Be;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?axe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Lh?{right:s.width-o.x-o.width,top:s.height-Dw-n5-a,width:o.width,height:Dw}:{right:n5,top:o.y,width:Dw,height:o.height},u=cf(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=xr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===i5&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Lh&&!o?{scaleY:l?1:-1,scaleX:1}:i===Lh&&o?{scaleY:l?1:-1,scaleX:-1}:i===i5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Eh({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Eh({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:be(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[0,n[1]],v=[0,n[0]],y=[[n[0],0],[0,0]],m=[],_=v[1]/(o.count()-1),S=0,w=Math.round(o.count()/n[0]),b;o.each([l],function(P,E){if(w>0&&E%w){S+=_;return}var L=P==null||isNaN(P)||P==="",O=L?0:xt(P,f,d,!0);L&&!b&&E?(y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0])):!L&&b&&(y.push([S,0]),m.push([S,0])),y.push([S,O]),m.push([S,O]),S+=_,b=L}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var A=this.dataZoomModel;function T(P){var E=A.getModel(P?"selectedDataBackground":"dataBackground"),L=new Be,O=new mn({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new xn({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(O),L.add(N),L}for(var M=0;M<3;M++){var k=T(M===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&qe(sxe,u.get("type"))<0)){var c=a.getComponent(ds(o),s).axis,f=cxe(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new Eh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Eh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ixe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(w){var b=l.get("handleIcon");!Jy[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var A=hr(b,-1,0,2,2,null,!0);A.attr({cursor:a5(this._orient),draggable:!0,drift:be(this._onDragMove,this,w),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1),z2:5});var T=A.getBoundingRect(),M=l.get("handleSize");this._handleHeight=pe(M,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,A.setStyle(l.getModel("handleStyle").getItemStyle()),A.style.strokeNoScale=!0,A.rectHover=!0,A.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Hl(A);var k=l.get("handleColor");k!=null&&(A.style.fill=k),o.add(i[w]=A);var P=l.getModel("textStyle");r.add(a[w]=new ct({silent:!0,invisible:!0,style:Nt(P,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:P.getTextColor(),font:P.getFont()}),z2:10}))},this);var d=h;if(f){var v=pe(l.get("moveHandleSize"),s[1]),y=n.moveHandle=new st({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,_=n.moveHandleIcon=hr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);_.silent=!0,_.y=s[1]+v/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new st({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(_),o.add(d)}d.attr({draggable:!0,cursor:a5(this._orient),drift:be(this._onDragMove,this,"all"),ondragstart:be(this._showDataInfo,this,!0),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[xt(r[0],[0,100],n,!0),xt(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Mi([xt(a[0],o,l,!0),xt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Mi(i.slice()),o=this._size;R([0,1],function(d){var v=n.handles[d],y=this._handleHeight;v.attr({scaleX:y/2,scaleY:y/2,x:i[d]+(d?-1:1),y:o[1]/2-y/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new st,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=Mi(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(v){var y=$l(i.handles[v].parent,this.group),m=g0(v===0?"right":"left",y),_=this._handleWidth/2+oxe,S=ea([h[v]+(v===0?-_:_),this._size[1]/2],y);a[v].setStyle({x:S[0],y:S[1],verticalAlign:o===Lh?"middle":m,align:o===Lh?m:"center",text:s[v]})}},e.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Pe(a)?a(r,s):me(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},e.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,po(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ea([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new We(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Mi([xt(i.x,o,s,!0),xt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(po(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Eh({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?lxe:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=V6(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(R2);function cxe(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function a5(t){return t==="vertical"?"ns-resize":"ew-resize"}function o$(t){t.registerComponentModel(nxe),t.registerComponentView(uxe),O2(t)}function fxe(t){Ke(a$),Ke(o$)}var s$={get:function(t,e,r){var n=Ne((hxe[t]||{})[e]);return r&&oe(n)?n[n.length-1]:n}},hxe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o5=Dr.mapVisual,dxe=Dr.eachVisual,pxe=oe,s5=R,vxe=Mi,gxe=xt,Cm=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&q6(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=be(r,this),this.controllerVisuals=GC(this.option.controller,n,r),this.targetVisuals=GC(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ct(r),n},e.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],oe(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(me(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Pe(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=vxe([r.min,r.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Ue(a,i),Ue(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){pxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],y=f[d];v&&!y&&(y=f[d]={},s5(v,function(m,_){if(Dr.isValidType(_)){var S=s$.get(_,"inactive",s);S!=null&&(y[_]=S,_==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),y=this.getItemSymbol(),m=y||"roundRect";s5(this.stateList,function(_){var S=this.itemSize,w=f[_];w||(w=f[_]={color:s?v:[v]}),w.symbol==null&&(w.symbol=h&&Ne(h)||(s?m:[m])),w.symbolSize==null&&(w.symbolSize=d&&Ne(d)||(s?S[0]:[S[0],S[0]])),w.symbol=o5(w.symbol,function(T){return T==="none"?m:T});var b=w.symbolSize;if(b!=null){var A=-1/0;dxe(b,function(T){T>A&&(A=T)}),w.symbolSize=o5(b,function(T){return gxe(T,[0,A],[0,S[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(nt),l5=[20,140],yxe=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.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=l5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=l5[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):oe(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=Mi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},e.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=u5(this,"outOfRange",this.getExtent()),i=u5(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ks(Cm.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Cm);function u5(t,e,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var l$=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,i=uf(n.get("padding")||0),a=r.getBoundingRect();r.add(new st({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,v){s[d]=v}var f=o.controllerVisuals[a||o.getValueState(r)],h=Dr.prepareVisualTypes(f);return R(h,function(d){var v=f[d];i.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",v=f.__alphaForOpacity),Dr.dependsOn(d,n)&&v&&v.applyVisual(r,u,c)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;b0(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(r,n,i,a){},e.type="visualMap",e}($t),c5=[["left","right","width"],["top","bottom","height"]];function u$(t,e,r){var n=t.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=c5[o],l=[0,null,10],u={},c=0;c<3;c++)u[c5[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=xr(u,a,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<a[f[1]]*.5?0:1]}function gy(t,e){return R(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var _a=xt,mxe=R,f5=Math.min,kw=Math.max,_xe=12,xxe=6,Sxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,n){t.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=be(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=be(this._hideIndicator,this)},e.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ct({style:Nt(d,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:a})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=u$(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Be;u.add(c),c.add(i.outOfRange=h5()),c.add(i.inRange=h5(null,s?p5(this._orient):null,be(this._dragHandle,this,"all",!1),be(this._dragHandle,this,"all",!0))),c.setClipPath(new st({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=kw(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),r.add(u)},e.prototype._createHandle=function(r,n,i,a,o,s){var l=be(this._dragHandle,this,i,!1),u=be(this._dragHandle,this,i,!0),c=na(r.get("handleSize"),a[0]),f=hr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=p5(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(_){po(_.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Il(f,!0),n.add(f);var d=this.visualMapModel.textStyleModel,v=new ct({cursor:h,draggable:!0,drift:l,onmousemove:function(_){po(_.event)},ondragend:u,style:Nt(d,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var y=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=y,m.handleLabels[i]=v},e.prototype._createIndicator=function(r,n,i,a,o){var s=na(r.get("indicatorSize"),i[0]),l=hr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Nr){var c=l.style;l.useStyle(ne({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,h=new ct({silent:!0,invisible:!0,style:Nt(f,{x:0,y:0,text:""})});this.group.add(h);var d=[(o==="horizontal"?a/2:xxe)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=h,v.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():d5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[_a(n[0],i,a,!0),_a(n[1],i,a,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];hu(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[_a(a[0],o,s,!0),_a(a[1],o,s,!0)]},e.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new up(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Be(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();mxe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=_a(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=ea(i.handleLabelPoints[c],$l(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),y=_a(r,s,u,!0),m=l[0]-v/2,_={x:f.x,y:f.y};f.y=y,f.x=m;var S=ea(c.indicatorLabelPoint,$l(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),A=this._orient,T=A==="horizontal";w.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:T?b:"middle",align:T?"center":b});var M={x:m,y,style:{fill:d}},k={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var P={duration:100,easing:"cubicInOut",additive:!0};f.x=_.x,f.y=_.y,f.animateTo(M,P),w.animateTo(k,P)}else f.attr(M),w.attr(k);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var L=0;L<E.length;L++)this.api.enterBlur(E[L])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=f5(kw(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=f5(kw(o[0],r),o[1]);var l=wxe(i,s,o),u=[r-l,r+l],c=_a(r,o,s,!0),f=[_a(u[0],o,s,!0),_a(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,d=[];(n||d5(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=Mne(h,d);this._dispatchHighDown("downplay",gy(v[0],i)),this._dispatchHighDown("highlight",gy(v[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ll(r.target,function(l){var u=Ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gy(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,i,a){var o=$l(n,a?null:this.group);return oe(r)?ea(r,o,i):g0(r,o,i)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(l$);function h5(t,e,r,n){return new mn({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(i){po(i.event)},ondragend:n})}function wxe(t,e,r){var n=_xe/2,i=t.get("hoverLinkDataSize");return i&&(n=_a(i,e,r,!0)/2),n}function d5(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function p5(t){return t==="vertical"?"ns-resize":"ew-resize"}var bxe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Cxe=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})},Txe=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var i=t.pipelineContext;!n.isTargetSeries(t)||i&&i.large||r.push(Y1e(n.stateList,n.targetVisuals,be(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var a=i.getVisualMeta(be(Axe,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}];function Axe(t,e,r,n){for(var i=e.targetVisuals[n],a=Dr.prepareVisualTypes(i),o={color:dp(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,h)}return o.color;function f(d){return o[d]}function h(d,v){o[d]=v}}var v5=R;function Mxe(t){var e=t&&t.visualMap;oe(e)||(e=e?[e]:[]),v5(e,function(r){if(r){lc(r,"splitList")&&!lc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&oe(n)&&v5(n,function(i){Re(i)&&(lc(i,"start")&&!lc(i,"min")&&(i.min=i.start),lc(i,"end")&&!lc(i,"max")&&(i.max=i.end))})}})}function lc(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var g5=!1;function c$(t){g5||(g5=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(bxe,Cxe),R(Txe,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Mxe))}function f$(t){t.registerComponentModel(yxe),t.registerComponentView(Sxe),c$(t)}var Dxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],kxe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ne(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=se(this._pieceList,function(l){return l=Ne(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=Dr.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=s$.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=Ne(r)},e.prototype.getValueState=function(r){var n=Dr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Dr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ks(Cm.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Cm),kxe={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),hE(t),R(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;R(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),y5(e,t)},pieces:function(t){var e=this.option;R(e.pieces,function(r,n){Re(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=r[h[d]],s[f]=l[d],c[f]=d===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Dr.retrieveVisuals(r),t.push(i)},this),y5(e,t),hE(t),R(t,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function y5(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var Pxe=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.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=Or(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(d){var v=d.piece,y=new Be;y.onclick=be(this._onItemClick,this,v),this._enableHoverLink(y,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(y,m,[0,0,u[0],u[1]]),h){var _=this.visualMapModel.getValueState(m);y.add(new ct({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:_==="outOfRange"?.5:1}}))}r.add(y)},this),f&&this._renderEndsText(r,f[1],u,h,l),Wl(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:gy(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return u$(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Be,l=this.visualMapModel.textStyleModel;s.add(new ct({style:Nt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=se(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i){r.add(hr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ne(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(l$);function h$(t){t.registerComponentModel(Dxe),t.registerComponentView(Pxe),c$(t)}function Ixe(t){Ke(f$),Ke(h$)}var Exe={label:{enabled:!0},decal:{show:!1}},m5=lt(),Lxe={};function Rxe(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=Ne(Exe);Ue(n.label,t.getLocaleModel().get("aria"),!1),Ue(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ae();t.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),m5(h).scope=d}}),t.eachRawSeries(function(h){if(t.isSeriesFiltered(h))return;if(Pe(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=jb(h.ecModel,h.name,Lxe,t.getSeriesCount()),w=d.getVisual("decal");d.setVisual("decal",b(w,S))}else{var v=h.getRawData(),y={},m=m5(h).scope;d.each(function(A){var T=d.getRawIndex(A);y[T]=A});var _=v.count();v.each(function(A){var T=y[A],M=v.getName(A)||A+"",k=jb(h.ecModel,M,m,_),P=d.getItemVisual(T,"decal");d.setItemVisual(T,"decal",b(P,k))})}function b(A,T){var M=A?ne(ne({},T),A):T;return M.dirty=!0,M}})}}function a(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=Le(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=t.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,y=Math.min(h,v),m;if(!(h<1)){var _=s();if(_){var S=f.get(["general","withTitle"]);m=o(S,{title:_})}else m=f.get(["general","withoutTitle"]);var w=[],b=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(b,{seriesCount:h}),t.eachSeries(function(k,P){if(P<y){var E=void 0,L=k.get("name"),O=L?"withName":"withoutName";E=h>1?f.get(["series","multiple",O]):f.get(["series","single",O]),E=o(E,{seriesId:k.seriesIndex,seriesName:k.get("name"),seriesType:l(k.subType)});var N=k.getData();if(N.count()>d){var B=f.get(["data","partialData"]);E+=o(B,{displayCnt:d})}else E+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),G=f.get(["data","separator","end"]),U=[],$=0;$<N.count();$++)if($<d){var Y=N.getName($),z=N.getValues($),W=f.get(["data",Y?"withName":"withoutName"]);U.push(o(W,{name:Y,value:z.join(F)}))}E+=U.join(F)+G,w.push(E)}});var A=f.getModel(["series","multiple","separator"]),T=A.get("middle"),M=A.get("end");m+=w.join(T)+M,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!me(u))return u;var f=u;return R(c,function(h,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=t.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Oxe(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},R(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function Nxe(t){t.registerPreprocessor(Oxe),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Rxe)}var _5={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zxe=function(){function t(e){var r=this._condVal=me(e)?new RegExp(e):Yte(e)?e:null;if(r==null){var n="";gt(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return me(r)?this._condVal.test(e):ht(r)?this._condVal.test(e+""):!1},t}(),Bxe=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Fxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t}(),Vxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t}(),Gxe=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Hxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},t}();function W2(t,e){if(t===!0||t===!1){var r=new Bxe;return r.value=t,r}var n="";return d$(t)||gt(n),t.and?x5("and",t,e):t.or?x5("or",t,e):t.not?$xe(t,e):Wxe(t,e)}function x5(t,e,r){var n=e[t],i="";oe(n)||gt(i),n.length||gt(i);var a=t==="and"?new Fxe:new Vxe;return a.children=se(n,function(o){return W2(o,r)}),a.children.length||gt(i),a}function $xe(t,e){var r=t.not,n="";d$(r)||gt(n);var i=new Gxe;return i.child=W2(r,e),i.child||gt(n),i}function Wxe(t,e){for(var r="",n=e.prepareGetValue(t),i=[],a=it(t),o=t.parser,s=o?Z4(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Ce(_5,u)?_5[u]:u,f=t[u],h=s?s(f):f,d=Poe(c,h)||c==="reg"&&new zxe(h);d||gt(r),i.push(d)}}i.length||gt(r);var v=new Hxe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=e.getValue,v.subCondList=i,v}function d$(t){return Re(t)&&!en(t)}var Uxe=function(){function t(e,r){this._cond=W2(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function jxe(t,e){return new Uxe(t,e)}var Yxe={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=jxe(t.config,{valueGetterAttrMap:Ae({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Ce(s,"dimension")||gt(l);var c=e.getDimensionInfo(u);return c||gt(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=e.count();a<o;a++)r=e.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},Xxe={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",i=Ct(r);i.length||gt(n);var a=[];R(i,function(c){var f=c.dimension,h=c.order,d=c.parser,v=c.incomparable;if(f==null&&gt(n),h!=="asc"&&h!=="desc"&&gt(n),v&&v!=="min"&&v!=="max"){var y="";gt(y)}if(h!=="asc"&&h!=="desc"){var m="";gt(m)}var _=e.getDimensionInfo(f);_||gt(n);var S=d?Z4(d):null;d&&!S&&gt(n),a.push({dimIdx:_.index,parser:S,comparator:new K4(h,v)})});var o=e.sourceFormat;o!==tn&&o!==Li&&gt(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<a.length;h++){var d=a[h],v=e.retrieveValueFromItem(c,d.dimIdx),y=e.retrieveValueFromItem(f,d.dimIdx);d.parser&&(v=d.parser(v),y=d.parser(y));var m=d.comparator.evaluate(v,y);if(m!==0)return m}return 0}),{data:s}}};function Zxe(t){t.registerTransform(Yxe),t.registerTransform(Xxe)}var qxe=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 tV(this),CL(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),CL(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ra},e}(nt),Kxe=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}($t);function Qxe(t){t.registerComponentModel(qxe),t.registerComponentView(Kxe)}var ya=Va.CMD;function xc(t,e){return Math.abs(t-e)<1e-5}function XC(t){var e=t.data,r=t.len(),n=[],i,a=0,o=0,s=0,l=0;function u(N,B){i&&i.length>2&&n.push(i),i=[N,B]}function c(N,B,F,G){xc(N,F)&&xc(B,G)||i.push(N,B,F,G,F,G)}function f(N,B,F,G,U,$){var Y=Math.abs(B-N),z=Math.tan(Y/4)*4/3,W=B<N?-1:1,X=Math.cos(N),H=Math.sin(N),ae=Math.cos(B),fe=Math.sin(B),ce=X*U+F,ye=H*$+G,ue=ae*U+F,de=fe*$+G,Se=U*z*W,xe=$*z*W;i.push(ce-Se*H,ye+xe*X,ue+Se*fe,de-xe*ae,ue,de)}for(var h,d,v,y,m=0;m<r;){var _=e[m++],S=m===1;switch(S&&(a=e[m],o=e[m+1],s=a,l=o,(_===ya.L||_===ya.C||_===ya.Q)&&(i=[s,l])),_){case ya.M:a=s=e[m++],o=l=e[m++],u(s,l);break;case ya.L:h=e[m++],d=e[m++],c(a,o,h,d),a=h,o=d;break;case ya.C:i.push(e[m++],e[m++],e[m++],e[m++],a=e[m++],o=e[m++]);break;case ya.Q:h=e[m++],d=e[m++],v=e[m++],y=e[m++],i.push(a+2/3*(h-a),o+2/3*(d-o),v+2/3*(h-v),y+2/3*(d-y),v,y),a=v,o=y;break;case ya.A:var w=e[m++],b=e[m++],A=e[m++],T=e[m++],M=e[m++],k=e[m++]+M;m+=1;var P=!e[m++];h=Math.cos(M)*A+w,d=Math.sin(M)*T+b,S?(s=h,l=d,u(s,l)):c(a,o,h,d),a=Math.cos(k)*A+w,o=Math.sin(k)*T+b;for(var E=(P?-1:1)*Math.PI/2,L=M;P?L>k:L<k;L+=E){var O=P?Math.max(L+E,k):Math.min(L+E,k);f(L,O,w,b,A,T)}break;case ya.R:s=a=e[m++],l=o=e[m++],h=s+e[m++],d=l+e[m++],u(h,l),c(h,l,h,d),c(h,d,s,d),c(s,d,s,l),c(s,l,h,l);break;case ya.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function ZC(t,e,r,n,i,a,o,s,l,u){if(xc(t,r)&&xc(e,n)&&xc(i,o)&&xc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-t,d=s-e,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var y=r-t,m=n-e,_=i-o,S=a-s,w=y*y+m*m,b=_*_+S*S;if(w<f&&b<f){l.push(o,s);return}var A=h*y+d*m,T=-h*_-d*S,M=w-A*A,k=b-T*T;if(M<f&&A>=0&&k<f&&T>=0){l.push(o,s);return}var P=[],E=[];Ss(t,r,i,o,.5,P),Ss(e,n,a,s,.5,E),ZC(P[0],E[0],P[1],E[1],P[2],E[2],P[3],E[3],l,u),ZC(P[4],E[4],P[5],E[5],P[6],E[6],P[7],E[7],l,u)}function Jxe(t,e){var r=XC(t),n=[];e=e||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],h=a[u++],d=a[u++],v=a[u++],y=a[u++];ZC(s,l,c,f,h,d,v,y,o,e),s=v,l=y}n.push(o)}return n}function p$(t,e,r){var n=t[e],i=t[1-e],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function S5(t,e,r){for(var n=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=p$([l,u],c?0:1,e),h=(c?s:u)/f.length,d=0;d<f.length;d++)for(var v=(c?u:s)/f[d],y=0;y<f[d];y++){var m={};c?(m.startAngle=a+h*d,m.endAngle=a+h*(d+1),m.r0=n+v*y,m.r=n+v*(y+1)):(m.startAngle=a+v*y,m.endAngle=a+v*(y+1),m.r0=n+h*d,m.r=n+h*(d+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,r.push(m)}}function eSe(t,e,r){for(var n=t.width,i=t.height,a=n>i,o=p$([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,h=0;h<o.length;h++)for(var d=t[l]/o[h],v=0;v<o[h];v++){var y={};y[u]=h*f,y[c]=v*d,y[s]=f,y[l]=d,y.x+=t.x,y.y+=t.y,r.push(y)}}function w5(t,e,r,n){return t*n-r*e}function tSe(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,h=w5(c,f,l,u);if(Math.abs(h)<1e-6)return null;var d=t-i,v=e-a,y=w5(d,v,c,f)/h;return y<0||y>1?null:new We(y*l+t,y*u+e)}function rSe(t,e,r){var n=new We;We.sub(n,r,e),n.normalize();var i=new We;We.sub(i,t,e);var a=i.dot(n);return a}function uc(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function nSe(t,e,r){for(var n=t.length,i=[],a=0;a<n;a++){var o=t[a],s=t[(a+1)%n],l=tSe(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&i.push({projPt:rSe(l,e,r),pt:l,idx:a})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(m,_){return m.projPt-_.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],v=[h],y=[d],a=u.idx+1;a<=c.idx;a++)uc(v,t[a].slice());uc(v,d),uc(v,h);for(var a=c.idx+1;a<=u.idx+n;a++)uc(y,t[a%n].slice());return uc(y,h),uc(y,d),[{points:v},{points:y}]}function b5(t){var e=t.points,r=[],n=[];c0(e,r,n);var i=new je(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new We,c=new We;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),nSe(e,u,c)}function Tm(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);Tm(t,a[0],i,n),Tm(t,a[1],r-i,n)}return n}function iSe(t,e){for(var r=[],n=0;n<e;n++)r.push(uA(t));return r}function aSe(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function oSe(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function sSe(t,e){var r=[],n=t.shape,i;switch(t.type){case"rect":eSe(n,e,r),i=st;break;case"sector":S5(n,e,r),i=yn;break;case"circle":S5({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),i=yn;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=se(Jxe(t.getUpdatedPathProxy(),o),function(_){return oSe(_)}),l=s.length;if(l===0)Tm(b5,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=se(s,function(_){var S=[],w=[];c0(_,S,w);var b=(w[1]-S[1])*(w[0]-S[0]);return c+=b,{poly:_,area:b}});f.sort(function(_,S){return S.area-_.area});for(var h=e,u=0;u<l;u++){var d=f[u];if(h<=0)break;var v=u===l-1?h:Math.ceil(d.area/c*e);v<0||(Tm(b5,{points:d.poly},v,r),h-=v)}}i=mn;break}if(!i)return iSe(t,e);for(var y=[],u=0;u<r.length;u++){var m=new i;m.setShape(r[u]),aSe(t,m),y.push(m)}return y}function lSe(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var i=[],a=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,d=2;d<s;){var v=o[d-2],y=o[d-1],m=o[d++],_=o[d++],S=o[d++],w=o[d++],b=o[d++],A=o[d++];if(h<=0){f.push(m,_,S,w,b,A);continue}for(var T=Math.min(h,c-1)+1,M=1;M<=T;M++){var k=M/T;Ss(v,m,S,b,k,i),Ss(y,_,w,A,k,a),v=i[3],y=a[3],f.push(i[1],a[1],i[2],a[2],v,y),m=i[5],_=a[5],S=i[6],w=a[6]}h-=T-1}return o===t?[f,e]:[t,f]}function C5(t,e){for(var r=t.length,n=t[r-2],i=t[r-1],a=[],o=0;o<e.length;)a[o++]=n,a[o++]=i;return a}function uSe(t,e){for(var r,n,i,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(r=lSe(l,u),c=r[0],f=r[1],n=c,i=f):(f=C5(i||l,l),c=l):(c=C5(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function T5(t){for(var e=0,r=0,n=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],f=s*c-u*l;e+=f,r+=(s+u)*f,n+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function cSe(t,e,r,n){for(var i=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var d=h===0?c:(c+h-2)%l+2,v=t[d]-r[0],y=t[d+1]-r[1],m=e[h]-n[0],_=e[h+1]-n[1],S=m-v,w=_-y;f+=S*S+w*w}f<a&&(a=f,o=u)}return o}function fSe(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function hSe(t,e,r,n){for(var i=[],a,o=0;o<t.length;o++){var s=t[o],l=e[o],u=T5(s),c=T5(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],h=[],d=0,v=1/0,y=[],m=s.length;a&&(s=fSe(s));for(var _=cSe(s,l,u,c)*6,S=m-2,w=0;w<S;w+=2){var b=(_+w)%S+2;f[w+2]=s[b]-u[0],f[w+3]=s[b+1]-u[1]}f[0]=s[_]-u[0],f[1]=s[_+1]-u[1];for(var A=n/r,T=-n/2;T<=n/2;T+=A){for(var M=Math.sin(T),k=Math.cos(T),P=0,w=0;w<s.length;w+=2){var E=f[w],L=f[w+1],O=l[w]-c[0],N=l[w+1]-c[1],B=O*k-N*M,F=O*M+N*k;y[w]=B,y[w+1]=F;var G=B-E,U=F-L;P+=G*G+U*U}if(P<v){v=P,d=T;for(var $=0;$<y.length;$++)h[$]=y[$]}}i.push({from:f,to:h,fromCp:u,toCp:c,rotation:-d})}return i}function Am(t){return t.__isCombineMorphing}var v$="__mOriginal_";function Mm(t,e,r){var n=v$+e,i=t[n]||t[e];t[n]||(t[n]=t[e]);var a=r.replace,o=r.after,s=r.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function dd(t,e){var r=v$+e;t[r]&&(t[e]=t[r],t[r]=null)}function A5(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=e[0]*a+e[2]*o+e[4],n[i++]=e[1]*a+e[3]*o+e[5]}}function g$(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=uSe(XC(r),XC(n)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&A5(a,s),l&&A5(o,l),Mm(e,"updateTransform",{replace:u}),e.transform=null;var c=hSe(a,o,10,Math.PI),f=[];Mm(e,"buildPath",{replace:function(h){for(var d=e.__morphT,v=1-d,y=[],m=0;m<c.length;m++){var _=c[m],S=_.from,w=_.to,b=_.rotation*d,A=_.fromCp,T=_.toCp,M=Math.sin(b),k=Math.cos(b);Qg(y,A,T,d);for(var P=0;P<S.length;P+=2){var E=S[P],L=S[P+1],O=w[P],N=w[P+1],B=E*v+O*d,F=L*v+N*d;f[P]=B*k-F*M+y[0],f[P+1]=B*M+F*k+y[1]}var G=f[0],U=f[1];h.moveTo(G,U);for(var P=2;P<S.length;){var O=f[P++],N=f[P++],$=f[P++],Y=f[P++],z=f[P++],W=f[P++];G===O&&U===N&&$===z&&Y===W?h.lineTo(z,W):h.bezierCurveTo(O,N,$,Y,z,W),G=z,U=W}}}})}function U2(t,e,r){if(!t||!e)return e;var n=r.done,i=r.during;g$(t,e),e.__morphT=0;function a(){dd(e,"buildPath"),dd(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Le({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),e}function dSe(t,e,r,n,i,a){var o=16;t=i===r?0:Math.round(32767*(t-r)/(i-r)),e=a===n?0:Math.round(32767*(e-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function Dm(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=se(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=se(a,function(s,l){return{cp:s,z:dSe(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function y$(t){return sSe(t.path,t.count)}function qC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function pSe(t,e,r){var n=[];function i(A){for(var T=0;T<A.length;T++){var M=A[T];Am(M)?i(M.childrenRef()):M instanceof Qe&&n.push(M)}}i(t);var a=n.length;if(!a)return qC();var o=r.dividePath||y$,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),qC();n=Dm(n),s=Dm(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new ao,h=0;h<a;h++){var d=n[h],v=s[h];v.parent=e,v.copyTransform(f),c||g$(d,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function y(A){for(var T=0;T<s.length;T++)s[T].addSelfToZr(A)}Mm(e,"addSelfToZr",{after:function(A){y(A)}}),Mm(e,"removeSelfFromZr",{after:function(A){for(var T=0;T<s.length;T++)s[T].removeSelfFromZr(A)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,dd(e,"addSelfToZr"),dd(e,"removeSelfFromZr")}var _=s.length;if(c)for(var S=_,w=function(){S--,S===0&&(m(),l&&l())},h=0;h<_;h++){var b=c?Le({delay:(r.delay||0)+c(h,_,n[h],s[h]),done:w},r):r;U2(n[h],s[h],b)}else e.__morphT=0,e.animateTo({__morphT:1},Le({during:function(A){for(var T=0;T<_;T++){var M=s[T];M.__morphT=e.__morphT,M.dirtyShape()}u&&u(A)},done:function(){m();for(var A=0;A<t.length;A++)dd(t[A],"updateTransform");l&&l()}},r));return e.__zr&&y(e.__zr),{fromIndividuals:n,toIndividuals:s,count:_}}function vSe(t,e,r){var n=e.length,i=[],a=r.dividePath||y$;function o(d){for(var v=0;v<d.length;v++){var y=d[v];Am(y)?o(y.childrenRef()):y instanceof Qe&&i.push(y)}}if(Am(t)){o(t.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(uA(i[l++%s]));i.length=n}else{i=a({path:t,count:n});for(var c=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),qC()}i=Dm(i),e=Dm(e);for(var f=r.individualDelay,u=0;u<n;u++){var h=f?Le({delay:(r.delay||0)+f(u,n,i[u],e[u])},r):r;U2(i[u],e[u],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function M5(t){return oe(t[0])}function D5(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(e[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var gSe={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var i=uA(t.path);i.setStyle("opacity",r),e.push(i)}return e},split:null};function Pw(t,e,r,n,i,a){if(!t.length||!e.length)return;var o=af("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;M5(t)&&(u=t,c=e),M5(e)&&(u=e,c=t);function f(_,S,w,b,A){var T=_.many,M=_.one;if(T.length===1&&!A){var k=S?T[0]:M,P=S?M:T[0];if(Am(k))f({many:[k],one:P},!0,w,b,!0);else{var E=s?Le({delay:s(w,b)},l):l;U2(k,P,E),a(k,P,k,P,E)}}else for(var L=Le({dividePath:gSe[r],individualDelay:s&&function(U,$,Y,z){return s(U+w,b)}},l),O=S?pSe(T,M,L):vSe(M,T,L),N=O.fromIndividuals,B=O.toIndividuals,F=N.length,G=0;G<F;G++){var E=s?Le({delay:s(G,F)},l):l;a(N[G],B[G],S?T[G]:_.one,S?_.one:T[G],E)}}for(var h=u?u===t:t.length>e.length,d=u?D5(c,u):D5(h?e:t,[h?t:e]),v=0,y=0;y<d.length;y++)v+=d[y].many.length;for(var m=0,y=0;y<d.length;y++)f(d[y],h,m,v),m+=d[y].many.length}function Sl(t){if(!t)return[];if(oe(t)){for(var e=[],r=0;r<t.length;r++)e.push(Sl(t[r]));return e}var n=[];return t.traverse(function(i){i instanceof Qe&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var m$=1e4,ySe=0,k5=1,P5=2,mSe=lt();function _Se(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var i=t.getDimensionInfo(r[n]);if(i&&i.otherDims[e]===0)return r[n]}}function xSe(t,e,r){var n=t.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=t.get(n.name,e);return i&&i.categories[a]||a+""}}function I5(t,e,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=_Se(t,i);if(a){var o=xSe(t,e,a);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function E5(t){var e=[];return R(t,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>m$))for(var a=n.getIndices(),o=0;o<a.length;o++)e.push({data:n,groupId:I5(n,o,i,!1),childGroupId:I5(n,o,i,!0),divide:r.divide,dataIndex:o})}),e}function Iw(t,e,r){t.traverse(function(n){n instanceof Qe&&Bt(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function Ew(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function cc(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function SSe(t,e,r){var n=af("update",r,e);n&&t.traverse(function(i){if(i instanceof ki){var a=dae(i);a&&i.animateFrom({style:a},n)}})}function wSe(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var i=t[n],a=e[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function _$(t,e,r){var n=E5(t),i=E5(e);function a(w,b,A,T,M){(A||w)&&b.animateFrom({style:A&&A!==w?ne(ne({},A.style),w.style):w.style},M)}var o=!1,s=ySe,l=Ae(),u=Ae();n.forEach(function(w){w.groupId&&l.set(w.groupId,!0),w.childGroupId&&u.set(w.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=k5;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=P5;break}}function d(w,b){return function(A){var T=A.data,M=A.dataIndex;return b?T.getId(M):w?s===k5?A.childGroupId:A.groupId:s===P5?A.childGroupId:A.groupId}}var v=wSe(n,i),y={};if(!v)for(var c=0;c<i.length;c++){var m=i[c],_=m.data.getItemGraphicEl(m.dataIndex);_&&(y[_.id]=!0)}function S(w,b){var A=n[b],T=i[w],M=T.data.hostModel,k=A.data.getItemGraphicEl(A.dataIndex),P=T.data.getItemGraphicEl(T.dataIndex);if(k===P){P&&SSe(P,T.dataIndex,M);return}k&&y[k.id]||P&&(cc(P),k?(cc(k),Ew(k),o=!0,Pw(Sl(k),Sl(P),T.divide,M,w,a)):Iw(P,M,w))}new mo(n,i,d(!0,v),d(!1,v),null,"multiple").update(S).updateManyToOne(function(w,b){var A=i[w],T=A.data,M=T.hostModel,k=T.getItemGraphicEl(A.dataIndex),P=wt(se(b,function(E){return n[E].data.getItemGraphicEl(n[E].dataIndex)}),function(E){return E&&E!==k&&!y[E.id]});k&&(cc(k),P.length?(R(P,function(E){cc(E),Ew(E)}),o=!0,Pw(Sl(P),Sl(k),A.divide,M,w,a)):Iw(k,M,A.dataIndex))}).updateOneToMany(function(w,b){var A=n[b],T=A.data.getItemGraphicEl(A.dataIndex);if(!(T&&y[T.id])){var M=wt(se(w,function(P){return i[P].data.getItemGraphicEl(i[P].dataIndex)}),function(P){return P&&P!==T}),k=i[w[0]].data.hostModel;M.length&&(R(M,function(P){return cc(P)}),T?(cc(T),Ew(T),o=!0,Pw(Sl(T),Sl(M),A.divide,k,w[0],a)):R(M,function(P){return Iw(P,k,w[0])}))}}).updateManyToMany(function(w,b){new mo(b,w,function(A){return n[A].data.getId(n[A].dataIndex)},function(A){return i[A].data.getId(i[A].dataIndex)}).update(function(A,T){S(w[A],b[T])}).execute()}).execute(),o&&R(e,function(w){var b=w.data,A=b.hostModel,T=A&&r.getViewOfSeriesModel(A),M=af("update",A,0);T&&A.isAnimationEnabled()&&M&&M.duration>0&&T.group.traverse(function(k){k instanceof Qe&&!k.animators.length&&k.animateFrom({style:{opacity:0}},M)})})}function L5(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function R5(t){return oe(t)?t.sort().join(","):t}function is(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bSe(t,e){var r=Ae(),n=Ae(),i=Ae();return R(t.oldSeries,function(a,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=L5(a),c=R5(u);n.set(c,{dataGroupId:s,data:l}),oe(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=L5(a),u=R5(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:is(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:is(s),data:s}]});else if(oe(l)){var f=[];R(l,function(v){var y=n.get(v);y.data&&f.push({dataGroupId:y.dataGroupId,divide:is(y.data),data:y.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:is(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:is(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:is(s)})}}}}),r}function O5(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function CSe(t,e,r,n){var i=[],a=[];R(Ct(t.from),function(o){var s=O5(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:is(e.oldData[s]),groupIdDim:o.dimension})}),R(Ct(t.to),function(o){var s=O5(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:is(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&_$(i,a,n)}function TSe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){R(Ct(n.seriesTransition),function(i){R(Ct(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][uy]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var i=mSe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)R(Ct(a),function(d){CSe(d,i,n,r)});else{var o=bSe(i,n);R(o.keys(),function(d){var v=o.get(d);_$(v.oldSeries,v.newSeries,r)})}R(n.updatedSeries,function(d){d[uy]&&(d[uy]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<m$&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Ke([Oce]);Ke([Pce]);Ke([tfe,gfe,Afe,ahe,ghe,rde,Pde,dpe,Ope,Gpe,qpe,Wve,vge,Age,Hge,jge,rye,uye,xye,Aye,Nye,_me]);Ke(Bme);Ke(c0e);Ke(yH);Ke(b0e);Ke(r6);Ke(M0e);Ke(N0e);Ke(b1e);Ke(H1e);Ke(Cp);Ke(a_e);Ke(l_e);Ke(m_e);Ke(T_e);Ke(I_e);Ke(z_e);Ke(Y_e);Ke(fxe);Ke(a$);Ke(o$);Ke(Ixe);Ke(f$);Ke(h$);Ke(Nxe);Ke(Zxe);Ke(Qxe);Ke(TSe);Ke(que);const N5={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},ASe=t=>!isNaN(new Date(t).getTime()),KC=t=>t&&ASe(t)?new Date(t).toLocaleString():"",x$=({charts:t,lines:e,scatterplot:r})=>e.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:t[n]})),z5={type:"value",boundaryGap:[0,"5%"]},MSe=({splitAxis:t,yAxisLabels:e})=>t&&(!e||Array.isArray(e))?Array(2).fill(z5).map((r,n)=>({...r,...e?{name:e[n]}:{}})):{...z5,...e?{name:e}:{}},DSe=t=>new Date(t).toLocaleTimeString(),kSe=({chartValueFormatter:t,value:e})=>t?t(e):Array.isArray(e)?e[1]:e,PSe=({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})=>({title:{text:e},tooltip:{trigger:"axis",formatter:l=>Array.isArray(l)&&l.length>0&&l.some(u=>!!u.value)?l.reduce((u,{axisValue:c,color:f,seriesName:h,value:d},v)=>`
217
- ${v===0?KC(c):""}
218
- ${u}
216
+ `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function H_e(t){t.registerAction("legendToggleSelect","legendselectchanged",$e(Ih,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",$e(Ih,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",$e(Ih,"inverseSelect")),t.registerAction("legendSelect","legendselected",$e(Ih,"select")),t.registerAction("legendUnSelect","legendunselected",$e(Ih,"unSelect"))}function n$(t){t.registerComponentModel(WC),t.registerComponentView(t$),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,G_e),t.registerSubTypeDefaulter("legend",function(){return"plain"}),H_e(t)}var $_e=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=cf(r);t.prototype.init.call(this,r,n,i),e5(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),e5(this,this.option,r)},e.type="legend.scroll",e.defaultOption=ks(WC.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(WC);function e5(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,bs(e,r,{type:"box",ignoreSize:!!i})}var t5=Be,Cw=["width","height"],Tw=["x","y"],W_e=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 t5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new t5)},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 c=this._controllerGroup,f=n.get("pageIconSize",!0),h=oe(f)?f:[f,f];v("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new ct({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(y,m){var _=y+"DataIndex",S=fp(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:be(u._pageGo,u,_,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});S.name=y,c.add(S)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Cw[u],f=Tw[u],h=Cw[1-u],d=Tw[1-u];o&&Wl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=l.getBoundingRect(),m=[-y.x,-y.y],_=Ne(i);o&&(_[c]=i[c]-y[c]-v);var S=this._layoutContentAndController(r,a,_,u,c,h,d,f);if(o){if(s==="end")m[u]+=S[c]+v;else{var w=y[c]+v;m[u]-=w,S[f]-=w}S[c]+=y[c]+v,m[1-u]+=S[d]+S[h]/2-y[h]/2,S[h]=Math.max(S[h],y[h]),S[d]=Math.min(S[d],y[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return S},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Wl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Wl("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),y=this._showController=d[o]>i[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var _=[0,0],S=[-v.x,-v.y],w=He(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var b=r.get("pageButtonPosition",!0);b==="end"?S[a]+=i[o]-v[o]:_[a]+=v[o]+w}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(_),h.setPosition(S);var A={x:0,y:0};if(A[o]=y?i[o]:d[o],A[s]=Math.max(d[s],v[s]),A[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],y){var T={x:0,y:0};T[o]=Math.max(i[o]-v[o]-w,0),T[s]=A[s],f.setClipPath(new st({shape:T})),f.__rectSize=T[o]}else h.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(r);return M.pageIndex!=null&&dt(c,{x:M.contentPosition[0],y:M.contentPosition[1]},y?r:null),this._updatePageInfoView(r,M),A},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(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"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",me(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=Cw[o],l=Tw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var y=b(f);v.contentPosition[o]=-y.s;for(var m=u+1,_=y,S=y,w=null;m<=h;++m)w=b(c[m]),(!w&&S.e>_.s+a||w&&!A(w,_.s))&&(S.i>_.i?_=S:_=w,_&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=_.i),++v.pageCount)),S=w;for(var m=u-1,_=y,S=y,w=null;m>=-1;--m)w=b(c[m]),(!w||!A(S,w.s))&&_.i<S.i&&(S=_,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=_.i),++v.pageCount,++v.pageIndex),_=w;return v;function b(T){if(T){var M=T.getBoundingRect(),k=M[l]+T[l];return{s:k,e:k+M[s],i:T.__legendDataIndex}}}function A(T,M){return T.e>=M&&T.s<=M+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??a},e.type="legend.scroll",e}(t$);function U_e(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 j_e(t){Ke(n$),t.registerComponentModel($_e),t.registerComponentView(W_e),U_e(t)}function Y_e(t){Ke(n$),Ke(j_e)}var X_e=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="dataZoom.inside",e.defaultOption=ks(Yd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Yd),$2=lt();function Z_e(t,e,r){$2(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function q_e(t,e){for(var r=$2(t).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||i$(r,o))}}}function i$(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function K_e(t,e){var r={model:e,containsPoint:$e(J_e,e),dispatchAction:$e(Q_e,t),dataZoomInfoMap:null,controller:null},n=r.controller=new wp(t.getZr());return R(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function Q_e(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function J_e(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function exe(t){var e,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function txe(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=$2(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ae());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=V6(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,K_e(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ae());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){i$(i,a);return}var c=exe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),df(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var rxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Z_e(i,r,{pan:be(Aw.pan,this),zoom:be(Aw.zoom,this),scrollMove:be(Aw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){q_e(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(R2),Aw={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=Mw[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:r5(function(t,e,r,n,i,a){var o=Mw[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:r5(function(t,e,r,n,i,a){var o=Mw[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function r5(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(hu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Mw={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function a$(t){O2(t),t.registerComponentModel(X_e),t.registerComponentView(rxe),txe(t)}var nxe=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="dataZoom.slider",e.layoutMode="box",e.defaultOption=ks(Yd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Yd),Eh=st,n5=7,ixe=1,Dw=30,axe=7,Lh="horizontal",i5="vertical",oxe=5,sxe=["line","bar","candlestick","scatter"],lxe={easing:"cubicOut",duration:100,delay:0},uxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=be(this._onBrush,this),this._onBrushEnd=be(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),df(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Rd(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Be;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?axe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Lh?{right:s.width-o.x-o.width,top:s.height-Dw-n5-a,width:o.width,height:Dw}:{right:n5,top:o.y,width:Dw,height:o.height},u=cf(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=xr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===i5&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Lh&&!o?{scaleY:l?1:-1,scaleX:1}:i===Lh&&o?{scaleY:l?1:-1,scaleX:-1}:i===i5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Eh({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Eh({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:be(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[0,n[1]],v=[0,n[0]],y=[[n[0],0],[0,0]],m=[],_=v[1]/(o.count()-1),S=0,w=Math.round(o.count()/n[0]),b;o.each([l],function(P,E){if(w>0&&E%w){S+=_;return}var L=P==null||isNaN(P)||P==="",O=L?0:xt(P,f,d,!0);L&&!b&&E?(y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0])):!L&&b&&(y.push([S,0]),m.push([S,0])),y.push([S,O]),m.push([S,O]),S+=_,b=L}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var A=this.dataZoomModel;function T(P){var E=A.getModel(P?"selectedDataBackground":"dataBackground"),L=new Be,O=new mn({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new xn({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(O),L.add(N),L}for(var M=0;M<3;M++){var k=T(M===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&qe(sxe,u.get("type"))<0)){var c=a.getComponent(ds(o),s).axis,f=cxe(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new Eh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Eh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ixe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(w){var b=l.get("handleIcon");!Jy[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var A=hr(b,-1,0,2,2,null,!0);A.attr({cursor:a5(this._orient),draggable:!0,drift:be(this._onDragMove,this,w),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1),z2:5});var T=A.getBoundingRect(),M=l.get("handleSize");this._handleHeight=pe(M,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,A.setStyle(l.getModel("handleStyle").getItemStyle()),A.style.strokeNoScale=!0,A.rectHover=!0,A.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Hl(A);var k=l.get("handleColor");k!=null&&(A.style.fill=k),o.add(i[w]=A);var P=l.getModel("textStyle");r.add(a[w]=new ct({silent:!0,invisible:!0,style:Nt(P,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:P.getTextColor(),font:P.getFont()}),z2:10}))},this);var d=h;if(f){var v=pe(l.get("moveHandleSize"),s[1]),y=n.moveHandle=new st({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,_=n.moveHandleIcon=hr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);_.silent=!0,_.y=s[1]+v/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new st({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(_),o.add(d)}d.attr({draggable:!0,cursor:a5(this._orient),drift:be(this._onDragMove,this,"all"),ondragstart:be(this._showDataInfo,this,!0),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[xt(r[0],[0,100],n,!0),xt(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Mi([xt(a[0],o,l,!0),xt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Mi(i.slice()),o=this._size;R([0,1],function(d){var v=n.handles[d],y=this._handleHeight;v.attr({scaleX:y/2,scaleY:y/2,x:i[d]+(d?-1:1),y:o[1]/2-y/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new st,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=Mi(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(v){var y=$l(i.handles[v].parent,this.group),m=g0(v===0?"right":"left",y),_=this._handleWidth/2+oxe,S=ea([h[v]+(v===0?-_:_),this._size[1]/2],y);a[v].setStyle({x:S[0],y:S[1],verticalAlign:o===Lh?"middle":m,align:o===Lh?m:"center",text:s[v]})}},e.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Pe(a)?a(r,s):me(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},e.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,po(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ea([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new We(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Mi([xt(i.x,o,s,!0),xt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(po(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Eh({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?lxe:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=V6(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(R2);function cxe(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function a5(t){return t==="vertical"?"ns-resize":"ew-resize"}function o$(t){t.registerComponentModel(nxe),t.registerComponentView(uxe),O2(t)}function fxe(t){Ke(a$),Ke(o$)}var s$={get:function(t,e,r){var n=Ne((hxe[t]||{})[e]);return r&&oe(n)?n[n.length-1]:n}},hxe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o5=Dr.mapVisual,dxe=Dr.eachVisual,pxe=oe,s5=R,vxe=Mi,gxe=xt,Cm=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&q6(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=be(r,this),this.controllerVisuals=GC(this.option.controller,n,r),this.targetVisuals=GC(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ct(r),n},e.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],oe(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(me(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Pe(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=vxe([r.min,r.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Ue(a,i),Ue(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){pxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],y=f[d];v&&!y&&(y=f[d]={},s5(v,function(m,_){if(Dr.isValidType(_)){var S=s$.get(_,"inactive",s);S!=null&&(y[_]=S,_==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),y=this.getItemSymbol(),m=y||"roundRect";s5(this.stateList,function(_){var S=this.itemSize,w=f[_];w||(w=f[_]={color:s?v:[v]}),w.symbol==null&&(w.symbol=h&&Ne(h)||(s?m:[m])),w.symbolSize==null&&(w.symbolSize=d&&Ne(d)||(s?S[0]:[S[0],S[0]])),w.symbol=o5(w.symbol,function(T){return T==="none"?m:T});var b=w.symbolSize;if(b!=null){var A=-1/0;dxe(b,function(T){T>A&&(A=T)}),w.symbolSize=o5(b,function(T){return gxe(T,[0,A],[0,S[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(nt),l5=[20,140],yxe=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.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=l5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=l5[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):oe(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=Mi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},e.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=u5(this,"outOfRange",this.getExtent()),i=u5(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ks(Cm.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Cm);function u5(t,e,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var l$=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,i=uf(n.get("padding")||0),a=r.getBoundingRect();r.add(new st({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,v){s[d]=v}var f=o.controllerVisuals[a||o.getValueState(r)],h=Dr.prepareVisualTypes(f);return R(h,function(d){var v=f[d];i.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",v=f.__alphaForOpacity),Dr.dependsOn(d,n)&&v&&v.applyVisual(r,u,c)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;b0(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(r,n,i,a){},e.type="visualMap",e}($t),c5=[["left","right","width"],["top","bottom","height"]];function u$(t,e,r){var n=t.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=c5[o],l=[0,null,10],u={},c=0;c<3;c++)u[c5[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=xr(u,a,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<a[f[1]]*.5?0:1]}function gy(t,e){return R(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var _a=xt,mxe=R,f5=Math.min,kw=Math.max,_xe=12,xxe=6,Sxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,n){t.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=be(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=be(this._hideIndicator,this)},e.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ct({style:Nt(d,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:a})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=u$(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Be;u.add(c),c.add(i.outOfRange=h5()),c.add(i.inRange=h5(null,s?p5(this._orient):null,be(this._dragHandle,this,"all",!1),be(this._dragHandle,this,"all",!0))),c.setClipPath(new st({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=kw(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),r.add(u)},e.prototype._createHandle=function(r,n,i,a,o,s){var l=be(this._dragHandle,this,i,!1),u=be(this._dragHandle,this,i,!0),c=na(r.get("handleSize"),a[0]),f=hr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=p5(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(_){po(_.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Il(f,!0),n.add(f);var d=this.visualMapModel.textStyleModel,v=new ct({cursor:h,draggable:!0,drift:l,onmousemove:function(_){po(_.event)},ondragend:u,style:Nt(d,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var y=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=y,m.handleLabels[i]=v},e.prototype._createIndicator=function(r,n,i,a,o){var s=na(r.get("indicatorSize"),i[0]),l=hr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Nr){var c=l.style;l.useStyle(ne({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,h=new ct({silent:!0,invisible:!0,style:Nt(f,{x:0,y:0,text:""})});this.group.add(h);var d=[(o==="horizontal"?a/2:xxe)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=h,v.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():d5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[_a(n[0],i,a,!0),_a(n[1],i,a,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];hu(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[_a(a[0],o,s,!0),_a(a[1],o,s,!0)]},e.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new up(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Be(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();mxe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=_a(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=ea(i.handleLabelPoints[c],$l(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),y=_a(r,s,u,!0),m=l[0]-v/2,_={x:f.x,y:f.y};f.y=y,f.x=m;var S=ea(c.indicatorLabelPoint,$l(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),A=this._orient,T=A==="horizontal";w.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:T?b:"middle",align:T?"center":b});var M={x:m,y,style:{fill:d}},k={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var P={duration:100,easing:"cubicInOut",additive:!0};f.x=_.x,f.y=_.y,f.animateTo(M,P),w.animateTo(k,P)}else f.attr(M),w.attr(k);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var L=0;L<E.length;L++)this.api.enterBlur(E[L])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=f5(kw(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=f5(kw(o[0],r),o[1]);var l=wxe(i,s,o),u=[r-l,r+l],c=_a(r,o,s,!0),f=[_a(u[0],o,s,!0),_a(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,d=[];(n||d5(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=Mne(h,d);this._dispatchHighDown("downplay",gy(v[0],i)),this._dispatchHighDown("highlight",gy(v[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ll(r.target,function(l){var u=Ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gy(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,i,a){var o=$l(n,a?null:this.group);return oe(r)?ea(r,o,i):g0(r,o,i)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(l$);function h5(t,e,r,n){return new mn({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(i){po(i.event)},ondragend:n})}function wxe(t,e,r){var n=_xe/2,i=t.get("hoverLinkDataSize");return i&&(n=_a(i,e,r,!0)/2),n}function d5(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function p5(t){return t==="vertical"?"ns-resize":"ew-resize"}var bxe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Cxe=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})},Txe=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var i=t.pipelineContext;!n.isTargetSeries(t)||i&&i.large||r.push(Y1e(n.stateList,n.targetVisuals,be(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var a=i.getVisualMeta(be(Axe,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}];function Axe(t,e,r,n){for(var i=e.targetVisuals[n],a=Dr.prepareVisualTypes(i),o={color:dp(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,h)}return o.color;function f(d){return o[d]}function h(d,v){o[d]=v}}var v5=R;function Mxe(t){var e=t&&t.visualMap;oe(e)||(e=e?[e]:[]),v5(e,function(r){if(r){lc(r,"splitList")&&!lc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&oe(n)&&v5(n,function(i){Re(i)&&(lc(i,"start")&&!lc(i,"min")&&(i.min=i.start),lc(i,"end")&&!lc(i,"max")&&(i.max=i.end))})}})}function lc(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var g5=!1;function c$(t){g5||(g5=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(bxe,Cxe),R(Txe,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Mxe))}function f$(t){t.registerComponentModel(yxe),t.registerComponentView(Sxe),c$(t)}var Dxe=function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],kxe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ne(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=se(this._pieceList,function(l){return l=Ne(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=Dr.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=s$.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=Ne(r)},e.prototype.getValueState=function(r){var n=Dr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Dr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ks(Cm.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Cm),kxe={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),hE(t),R(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;R(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),y5(e,t)},pieces:function(t){var e=this.option;R(e.pieces,function(r,n){Re(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=r[h[d]],s[f]=l[d],c[f]=d===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Dr.retrieveVisuals(r),t.push(i)},this),y5(e,t),hE(t),R(t,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function y5(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var Pxe=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.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=Or(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(d){var v=d.piece,y=new Be;y.onclick=be(this._onItemClick,this,v),this._enableHoverLink(y,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(y,m,[0,0,u[0],u[1]]),h){var _=this.visualMapModel.getValueState(m);y.add(new ct({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:_==="outOfRange"?.5:1}}))}r.add(y)},this),f&&this._renderEndsText(r,f[1],u,h,l),Wl(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:gy(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return u$(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Be,l=this.visualMapModel.textStyleModel;s.add(new ct({style:Nt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=se(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i){r.add(hr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ne(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(l$);function h$(t){t.registerComponentModel(Dxe),t.registerComponentView(Pxe),c$(t)}function Ixe(t){Ke(f$),Ke(h$)}var Exe={label:{enabled:!0},decal:{show:!1}},m5=lt(),Lxe={};function Rxe(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=Ne(Exe);Ue(n.label,t.getLocaleModel().get("aria"),!1),Ue(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ae();t.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),m5(h).scope=d}}),t.eachRawSeries(function(h){if(t.isSeriesFiltered(h))return;if(Pe(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=jb(h.ecModel,h.name,Lxe,t.getSeriesCount()),w=d.getVisual("decal");d.setVisual("decal",b(w,S))}else{var v=h.getRawData(),y={},m=m5(h).scope;d.each(function(A){var T=d.getRawIndex(A);y[T]=A});var _=v.count();v.each(function(A){var T=y[A],M=v.getName(A)||A+"",k=jb(h.ecModel,M,m,_),P=d.getItemVisual(T,"decal");d.setItemVisual(T,"decal",b(P,k))})}function b(A,T){var M=A?ne(ne({},T),A):T;return M.dirty=!0,M}})}}function a(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=Le(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=t.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,y=Math.min(h,v),m;if(!(h<1)){var _=s();if(_){var S=f.get(["general","withTitle"]);m=o(S,{title:_})}else m=f.get(["general","withoutTitle"]);var w=[],b=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(b,{seriesCount:h}),t.eachSeries(function(k,P){if(P<y){var E=void 0,L=k.get("name"),O=L?"withName":"withoutName";E=h>1?f.get(["series","multiple",O]):f.get(["series","single",O]),E=o(E,{seriesId:k.seriesIndex,seriesName:k.get("name"),seriesType:l(k.subType)});var N=k.getData();if(N.count()>d){var B=f.get(["data","partialData"]);E+=o(B,{displayCnt:d})}else E+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),G=f.get(["data","separator","end"]),U=[],$=0;$<N.count();$++)if($<d){var Y=N.getName($),z=N.getValues($),W=f.get(["data",Y?"withName":"withoutName"]);U.push(o(W,{name:Y,value:z.join(F)}))}E+=U.join(F)+G,w.push(E)}});var A=f.getModel(["series","multiple","separator"]),T=A.get("middle"),M=A.get("end");m+=w.join(T)+M,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!me(u))return u;var f=u;return R(c,function(h,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=t.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Oxe(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},R(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function Nxe(t){t.registerPreprocessor(Oxe),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Rxe)}var _5={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zxe=function(){function t(e){var r=this._condVal=me(e)?new RegExp(e):Yte(e)?e:null;if(r==null){var n="";gt(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return me(r)?this._condVal.test(e):ht(r)?this._condVal.test(e+""):!1},t}(),Bxe=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Fxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t}(),Vxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t}(),Gxe=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Hxe=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},t}();function W2(t,e){if(t===!0||t===!1){var r=new Bxe;return r.value=t,r}var n="";return d$(t)||gt(n),t.and?x5("and",t,e):t.or?x5("or",t,e):t.not?$xe(t,e):Wxe(t,e)}function x5(t,e,r){var n=e[t],i="";oe(n)||gt(i),n.length||gt(i);var a=t==="and"?new Fxe:new Vxe;return a.children=se(n,function(o){return W2(o,r)}),a.children.length||gt(i),a}function $xe(t,e){var r=t.not,n="";d$(r)||gt(n);var i=new Gxe;return i.child=W2(r,e),i.child||gt(n),i}function Wxe(t,e){for(var r="",n=e.prepareGetValue(t),i=[],a=it(t),o=t.parser,s=o?Z4(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Ce(_5,u)?_5[u]:u,f=t[u],h=s?s(f):f,d=Poe(c,h)||c==="reg"&&new zxe(h);d||gt(r),i.push(d)}}i.length||gt(r);var v=new Hxe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=e.getValue,v.subCondList=i,v}function d$(t){return Re(t)&&!en(t)}var Uxe=function(){function t(e,r){this._cond=W2(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function jxe(t,e){return new Uxe(t,e)}var Yxe={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=jxe(t.config,{valueGetterAttrMap:Ae({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Ce(s,"dimension")||gt(l);var c=e.getDimensionInfo(u);return c||gt(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=e.count();a<o;a++)r=e.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},Xxe={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",i=Ct(r);i.length||gt(n);var a=[];R(i,function(c){var f=c.dimension,h=c.order,d=c.parser,v=c.incomparable;if(f==null&&gt(n),h!=="asc"&&h!=="desc"&&gt(n),v&&v!=="min"&&v!=="max"){var y="";gt(y)}if(h!=="asc"&&h!=="desc"){var m="";gt(m)}var _=e.getDimensionInfo(f);_||gt(n);var S=d?Z4(d):null;d&&!S&&gt(n),a.push({dimIdx:_.index,parser:S,comparator:new K4(h,v)})});var o=e.sourceFormat;o!==tn&&o!==Li&&gt(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<a.length;h++){var d=a[h],v=e.retrieveValueFromItem(c,d.dimIdx),y=e.retrieveValueFromItem(f,d.dimIdx);d.parser&&(v=d.parser(v),y=d.parser(y));var m=d.comparator.evaluate(v,y);if(m!==0)return m}return 0}),{data:s}}};function Zxe(t){t.registerTransform(Yxe),t.registerTransform(Xxe)}var qxe=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 tV(this),CL(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),CL(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ra},e}(nt),Kxe=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}($t);function Qxe(t){t.registerComponentModel(qxe),t.registerComponentView(Kxe)}var ya=Va.CMD;function xc(t,e){return Math.abs(t-e)<1e-5}function XC(t){var e=t.data,r=t.len(),n=[],i,a=0,o=0,s=0,l=0;function u(N,B){i&&i.length>2&&n.push(i),i=[N,B]}function c(N,B,F,G){xc(N,F)&&xc(B,G)||i.push(N,B,F,G,F,G)}function f(N,B,F,G,U,$){var Y=Math.abs(B-N),z=Math.tan(Y/4)*4/3,W=B<N?-1:1,X=Math.cos(N),H=Math.sin(N),ae=Math.cos(B),fe=Math.sin(B),ce=X*U+F,ye=H*$+G,ue=ae*U+F,de=fe*$+G,Se=U*z*W,xe=$*z*W;i.push(ce-Se*H,ye+xe*X,ue+Se*fe,de-xe*ae,ue,de)}for(var h,d,v,y,m=0;m<r;){var _=e[m++],S=m===1;switch(S&&(a=e[m],o=e[m+1],s=a,l=o,(_===ya.L||_===ya.C||_===ya.Q)&&(i=[s,l])),_){case ya.M:a=s=e[m++],o=l=e[m++],u(s,l);break;case ya.L:h=e[m++],d=e[m++],c(a,o,h,d),a=h,o=d;break;case ya.C:i.push(e[m++],e[m++],e[m++],e[m++],a=e[m++],o=e[m++]);break;case ya.Q:h=e[m++],d=e[m++],v=e[m++],y=e[m++],i.push(a+2/3*(h-a),o+2/3*(d-o),v+2/3*(h-v),y+2/3*(d-y),v,y),a=v,o=y;break;case ya.A:var w=e[m++],b=e[m++],A=e[m++],T=e[m++],M=e[m++],k=e[m++]+M;m+=1;var P=!e[m++];h=Math.cos(M)*A+w,d=Math.sin(M)*T+b,S?(s=h,l=d,u(s,l)):c(a,o,h,d),a=Math.cos(k)*A+w,o=Math.sin(k)*T+b;for(var E=(P?-1:1)*Math.PI/2,L=M;P?L>k:L<k;L+=E){var O=P?Math.max(L+E,k):Math.min(L+E,k);f(L,O,w,b,A,T)}break;case ya.R:s=a=e[m++],l=o=e[m++],h=s+e[m++],d=l+e[m++],u(h,l),c(h,l,h,d),c(h,d,s,d),c(s,d,s,l),c(s,l,h,l);break;case ya.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function ZC(t,e,r,n,i,a,o,s,l,u){if(xc(t,r)&&xc(e,n)&&xc(i,o)&&xc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-t,d=s-e,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var y=r-t,m=n-e,_=i-o,S=a-s,w=y*y+m*m,b=_*_+S*S;if(w<f&&b<f){l.push(o,s);return}var A=h*y+d*m,T=-h*_-d*S,M=w-A*A,k=b-T*T;if(M<f&&A>=0&&k<f&&T>=0){l.push(o,s);return}var P=[],E=[];Ss(t,r,i,o,.5,P),Ss(e,n,a,s,.5,E),ZC(P[0],E[0],P[1],E[1],P[2],E[2],P[3],E[3],l,u),ZC(P[4],E[4],P[5],E[5],P[6],E[6],P[7],E[7],l,u)}function Jxe(t,e){var r=XC(t),n=[];e=e||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],h=a[u++],d=a[u++],v=a[u++],y=a[u++];ZC(s,l,c,f,h,d,v,y,o,e),s=v,l=y}n.push(o)}return n}function p$(t,e,r){var n=t[e],i=t[1-e],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function S5(t,e,r){for(var n=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=p$([l,u],c?0:1,e),h=(c?s:u)/f.length,d=0;d<f.length;d++)for(var v=(c?u:s)/f[d],y=0;y<f[d];y++){var m={};c?(m.startAngle=a+h*d,m.endAngle=a+h*(d+1),m.r0=n+v*y,m.r=n+v*(y+1)):(m.startAngle=a+v*y,m.endAngle=a+v*(y+1),m.r0=n+h*d,m.r=n+h*(d+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,r.push(m)}}function eSe(t,e,r){for(var n=t.width,i=t.height,a=n>i,o=p$([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,h=0;h<o.length;h++)for(var d=t[l]/o[h],v=0;v<o[h];v++){var y={};y[u]=h*f,y[c]=v*d,y[s]=f,y[l]=d,y.x+=t.x,y.y+=t.y,r.push(y)}}function w5(t,e,r,n){return t*n-r*e}function tSe(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,h=w5(c,f,l,u);if(Math.abs(h)<1e-6)return null;var d=t-i,v=e-a,y=w5(d,v,c,f)/h;return y<0||y>1?null:new We(y*l+t,y*u+e)}function rSe(t,e,r){var n=new We;We.sub(n,r,e),n.normalize();var i=new We;We.sub(i,t,e);var a=i.dot(n);return a}function uc(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function nSe(t,e,r){for(var n=t.length,i=[],a=0;a<n;a++){var o=t[a],s=t[(a+1)%n],l=tSe(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&i.push({projPt:rSe(l,e,r),pt:l,idx:a})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(m,_){return m.projPt-_.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],v=[h],y=[d],a=u.idx+1;a<=c.idx;a++)uc(v,t[a].slice());uc(v,d),uc(v,h);for(var a=c.idx+1;a<=u.idx+n;a++)uc(y,t[a%n].slice());return uc(y,h),uc(y,d),[{points:v},{points:y}]}function b5(t){var e=t.points,r=[],n=[];c0(e,r,n);var i=new je(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new We,c=new We;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),nSe(e,u,c)}function Tm(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);Tm(t,a[0],i,n),Tm(t,a[1],r-i,n)}return n}function iSe(t,e){for(var r=[],n=0;n<e;n++)r.push(uA(t));return r}function aSe(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function oSe(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function sSe(t,e){var r=[],n=t.shape,i;switch(t.type){case"rect":eSe(n,e,r),i=st;break;case"sector":S5(n,e,r),i=yn;break;case"circle":S5({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),i=yn;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=se(Jxe(t.getUpdatedPathProxy(),o),function(_){return oSe(_)}),l=s.length;if(l===0)Tm(b5,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=se(s,function(_){var S=[],w=[];c0(_,S,w);var b=(w[1]-S[1])*(w[0]-S[0]);return c+=b,{poly:_,area:b}});f.sort(function(_,S){return S.area-_.area});for(var h=e,u=0;u<l;u++){var d=f[u];if(h<=0)break;var v=u===l-1?h:Math.ceil(d.area/c*e);v<0||(Tm(b5,{points:d.poly},v,r),h-=v)}}i=mn;break}if(!i)return iSe(t,e);for(var y=[],u=0;u<r.length;u++){var m=new i;m.setShape(r[u]),aSe(t,m),y.push(m)}return y}function lSe(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var i=[],a=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,d=2;d<s;){var v=o[d-2],y=o[d-1],m=o[d++],_=o[d++],S=o[d++],w=o[d++],b=o[d++],A=o[d++];if(h<=0){f.push(m,_,S,w,b,A);continue}for(var T=Math.min(h,c-1)+1,M=1;M<=T;M++){var k=M/T;Ss(v,m,S,b,k,i),Ss(y,_,w,A,k,a),v=i[3],y=a[3],f.push(i[1],a[1],i[2],a[2],v,y),m=i[5],_=a[5],S=i[6],w=a[6]}h-=T-1}return o===t?[f,e]:[t,f]}function C5(t,e){for(var r=t.length,n=t[r-2],i=t[r-1],a=[],o=0;o<e.length;)a[o++]=n,a[o++]=i;return a}function uSe(t,e){for(var r,n,i,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(r=lSe(l,u),c=r[0],f=r[1],n=c,i=f):(f=C5(i||l,l),c=l):(c=C5(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function T5(t){for(var e=0,r=0,n=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],f=s*c-u*l;e+=f,r+=(s+u)*f,n+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function cSe(t,e,r,n){for(var i=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var d=h===0?c:(c+h-2)%l+2,v=t[d]-r[0],y=t[d+1]-r[1],m=e[h]-n[0],_=e[h+1]-n[1],S=m-v,w=_-y;f+=S*S+w*w}f<a&&(a=f,o=u)}return o}function fSe(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function hSe(t,e,r,n){for(var i=[],a,o=0;o<t.length;o++){var s=t[o],l=e[o],u=T5(s),c=T5(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],h=[],d=0,v=1/0,y=[],m=s.length;a&&(s=fSe(s));for(var _=cSe(s,l,u,c)*6,S=m-2,w=0;w<S;w+=2){var b=(_+w)%S+2;f[w+2]=s[b]-u[0],f[w+3]=s[b+1]-u[1]}f[0]=s[_]-u[0],f[1]=s[_+1]-u[1];for(var A=n/r,T=-n/2;T<=n/2;T+=A){for(var M=Math.sin(T),k=Math.cos(T),P=0,w=0;w<s.length;w+=2){var E=f[w],L=f[w+1],O=l[w]-c[0],N=l[w+1]-c[1],B=O*k-N*M,F=O*M+N*k;y[w]=B,y[w+1]=F;var G=B-E,U=F-L;P+=G*G+U*U}if(P<v){v=P,d=T;for(var $=0;$<y.length;$++)h[$]=y[$]}}i.push({from:f,to:h,fromCp:u,toCp:c,rotation:-d})}return i}function Am(t){return t.__isCombineMorphing}var v$="__mOriginal_";function Mm(t,e,r){var n=v$+e,i=t[n]||t[e];t[n]||(t[n]=t[e]);var a=r.replace,o=r.after,s=r.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function dd(t,e){var r=v$+e;t[r]&&(t[e]=t[r],t[r]=null)}function A5(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=e[0]*a+e[2]*o+e[4],n[i++]=e[1]*a+e[3]*o+e[5]}}function g$(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=uSe(XC(r),XC(n)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&A5(a,s),l&&A5(o,l),Mm(e,"updateTransform",{replace:u}),e.transform=null;var c=hSe(a,o,10,Math.PI),f=[];Mm(e,"buildPath",{replace:function(h){for(var d=e.__morphT,v=1-d,y=[],m=0;m<c.length;m++){var _=c[m],S=_.from,w=_.to,b=_.rotation*d,A=_.fromCp,T=_.toCp,M=Math.sin(b),k=Math.cos(b);Qg(y,A,T,d);for(var P=0;P<S.length;P+=2){var E=S[P],L=S[P+1],O=w[P],N=w[P+1],B=E*v+O*d,F=L*v+N*d;f[P]=B*k-F*M+y[0],f[P+1]=B*M+F*k+y[1]}var G=f[0],U=f[1];h.moveTo(G,U);for(var P=2;P<S.length;){var O=f[P++],N=f[P++],$=f[P++],Y=f[P++],z=f[P++],W=f[P++];G===O&&U===N&&$===z&&Y===W?h.lineTo(z,W):h.bezierCurveTo(O,N,$,Y,z,W),G=z,U=W}}}})}function U2(t,e,r){if(!t||!e)return e;var n=r.done,i=r.during;g$(t,e),e.__morphT=0;function a(){dd(e,"buildPath"),dd(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Le({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),e}function dSe(t,e,r,n,i,a){var o=16;t=i===r?0:Math.round(32767*(t-r)/(i-r)),e=a===n?0:Math.round(32767*(e-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function Dm(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=se(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=se(a,function(s,l){return{cp:s,z:dSe(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function y$(t){return sSe(t.path,t.count)}function qC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function pSe(t,e,r){var n=[];function i(A){for(var T=0;T<A.length;T++){var M=A[T];Am(M)?i(M.childrenRef()):M instanceof Qe&&n.push(M)}}i(t);var a=n.length;if(!a)return qC();var o=r.dividePath||y$,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),qC();n=Dm(n),s=Dm(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new ao,h=0;h<a;h++){var d=n[h],v=s[h];v.parent=e,v.copyTransform(f),c||g$(d,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function y(A){for(var T=0;T<s.length;T++)s[T].addSelfToZr(A)}Mm(e,"addSelfToZr",{after:function(A){y(A)}}),Mm(e,"removeSelfFromZr",{after:function(A){for(var T=0;T<s.length;T++)s[T].removeSelfFromZr(A)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,dd(e,"addSelfToZr"),dd(e,"removeSelfFromZr")}var _=s.length;if(c)for(var S=_,w=function(){S--,S===0&&(m(),l&&l())},h=0;h<_;h++){var b=c?Le({delay:(r.delay||0)+c(h,_,n[h],s[h]),done:w},r):r;U2(n[h],s[h],b)}else e.__morphT=0,e.animateTo({__morphT:1},Le({during:function(A){for(var T=0;T<_;T++){var M=s[T];M.__morphT=e.__morphT,M.dirtyShape()}u&&u(A)},done:function(){m();for(var A=0;A<t.length;A++)dd(t[A],"updateTransform");l&&l()}},r));return e.__zr&&y(e.__zr),{fromIndividuals:n,toIndividuals:s,count:_}}function vSe(t,e,r){var n=e.length,i=[],a=r.dividePath||y$;function o(d){for(var v=0;v<d.length;v++){var y=d[v];Am(y)?o(y.childrenRef()):y instanceof Qe&&i.push(y)}}if(Am(t)){o(t.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(uA(i[l++%s]));i.length=n}else{i=a({path:t,count:n});for(var c=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),qC()}i=Dm(i),e=Dm(e);for(var f=r.individualDelay,u=0;u<n;u++){var h=f?Le({delay:(r.delay||0)+f(u,n,i[u],e[u])},r):r;U2(i[u],e[u],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function M5(t){return oe(t[0])}function D5(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(e[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var gSe={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var i=uA(t.path);i.setStyle("opacity",r),e.push(i)}return e},split:null};function Pw(t,e,r,n,i,a){if(!t.length||!e.length)return;var o=af("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;M5(t)&&(u=t,c=e),M5(e)&&(u=e,c=t);function f(_,S,w,b,A){var T=_.many,M=_.one;if(T.length===1&&!A){var k=S?T[0]:M,P=S?M:T[0];if(Am(k))f({many:[k],one:P},!0,w,b,!0);else{var E=s?Le({delay:s(w,b)},l):l;U2(k,P,E),a(k,P,k,P,E)}}else for(var L=Le({dividePath:gSe[r],individualDelay:s&&function(U,$,Y,z){return s(U+w,b)}},l),O=S?pSe(T,M,L):vSe(M,T,L),N=O.fromIndividuals,B=O.toIndividuals,F=N.length,G=0;G<F;G++){var E=s?Le({delay:s(G,F)},l):l;a(N[G],B[G],S?T[G]:_.one,S?_.one:T[G],E)}}for(var h=u?u===t:t.length>e.length,d=u?D5(c,u):D5(h?e:t,[h?t:e]),v=0,y=0;y<d.length;y++)v+=d[y].many.length;for(var m=0,y=0;y<d.length;y++)f(d[y],h,m,v),m+=d[y].many.length}function Sl(t){if(!t)return[];if(oe(t)){for(var e=[],r=0;r<t.length;r++)e.push(Sl(t[r]));return e}var n=[];return t.traverse(function(i){i instanceof Qe&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var m$=1e4,ySe=0,k5=1,P5=2,mSe=lt();function _Se(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var i=t.getDimensionInfo(r[n]);if(i&&i.otherDims[e]===0)return r[n]}}function xSe(t,e,r){var n=t.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=t.get(n.name,e);return i&&i.categories[a]||a+""}}function I5(t,e,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=_Se(t,i);if(a){var o=xSe(t,e,a);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function E5(t){var e=[];return R(t,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>m$))for(var a=n.getIndices(),o=0;o<a.length;o++)e.push({data:n,groupId:I5(n,o,i,!1),childGroupId:I5(n,o,i,!0),divide:r.divide,dataIndex:o})}),e}function Iw(t,e,r){t.traverse(function(n){n instanceof Qe&&Bt(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function Ew(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function cc(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function SSe(t,e,r){var n=af("update",r,e);n&&t.traverse(function(i){if(i instanceof ki){var a=dae(i);a&&i.animateFrom({style:a},n)}})}function wSe(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var i=t[n],a=e[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function _$(t,e,r){var n=E5(t),i=E5(e);function a(w,b,A,T,M){(A||w)&&b.animateFrom({style:A&&A!==w?ne(ne({},A.style),w.style):w.style},M)}var o=!1,s=ySe,l=Ae(),u=Ae();n.forEach(function(w){w.groupId&&l.set(w.groupId,!0),w.childGroupId&&u.set(w.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=k5;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=P5;break}}function d(w,b){return function(A){var T=A.data,M=A.dataIndex;return b?T.getId(M):w?s===k5?A.childGroupId:A.groupId:s===P5?A.childGroupId:A.groupId}}var v=wSe(n,i),y={};if(!v)for(var c=0;c<i.length;c++){var m=i[c],_=m.data.getItemGraphicEl(m.dataIndex);_&&(y[_.id]=!0)}function S(w,b){var A=n[b],T=i[w],M=T.data.hostModel,k=A.data.getItemGraphicEl(A.dataIndex),P=T.data.getItemGraphicEl(T.dataIndex);if(k===P){P&&SSe(P,T.dataIndex,M);return}k&&y[k.id]||P&&(cc(P),k?(cc(k),Ew(k),o=!0,Pw(Sl(k),Sl(P),T.divide,M,w,a)):Iw(P,M,w))}new mo(n,i,d(!0,v),d(!1,v),null,"multiple").update(S).updateManyToOne(function(w,b){var A=i[w],T=A.data,M=T.hostModel,k=T.getItemGraphicEl(A.dataIndex),P=wt(se(b,function(E){return n[E].data.getItemGraphicEl(n[E].dataIndex)}),function(E){return E&&E!==k&&!y[E.id]});k&&(cc(k),P.length?(R(P,function(E){cc(E),Ew(E)}),o=!0,Pw(Sl(P),Sl(k),A.divide,M,w,a)):Iw(k,M,A.dataIndex))}).updateOneToMany(function(w,b){var A=n[b],T=A.data.getItemGraphicEl(A.dataIndex);if(!(T&&y[T.id])){var M=wt(se(w,function(P){return i[P].data.getItemGraphicEl(i[P].dataIndex)}),function(P){return P&&P!==T}),k=i[w[0]].data.hostModel;M.length&&(R(M,function(P){return cc(P)}),T?(cc(T),Ew(T),o=!0,Pw(Sl(T),Sl(M),A.divide,k,w[0],a)):R(M,function(P){return Iw(P,k,w[0])}))}}).updateManyToMany(function(w,b){new mo(b,w,function(A){return n[A].data.getId(n[A].dataIndex)},function(A){return i[A].data.getId(i[A].dataIndex)}).update(function(A,T){S(w[A],b[T])}).execute()}).execute(),o&&R(e,function(w){var b=w.data,A=b.hostModel,T=A&&r.getViewOfSeriesModel(A),M=af("update",A,0);T&&A.isAnimationEnabled()&&M&&M.duration>0&&T.group.traverse(function(k){k instanceof Qe&&!k.animators.length&&k.animateFrom({style:{opacity:0}},M)})})}function L5(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function R5(t){return oe(t)?t.sort().join(","):t}function is(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bSe(t,e){var r=Ae(),n=Ae(),i=Ae();return R(t.oldSeries,function(a,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=L5(a),c=R5(u);n.set(c,{dataGroupId:s,data:l}),oe(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=L5(a),u=R5(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:is(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:is(s),data:s}]});else if(oe(l)){var f=[];R(l,function(v){var y=n.get(v);y.data&&f.push({dataGroupId:y.dataGroupId,divide:is(y.data),data:y.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:is(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:is(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:is(s)})}}}}),r}function O5(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function CSe(t,e,r,n){var i=[],a=[];R(Ct(t.from),function(o){var s=O5(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:is(e.oldData[s]),groupIdDim:o.dimension})}),R(Ct(t.to),function(o){var s=O5(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:is(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&_$(i,a,n)}function TSe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){R(Ct(n.seriesTransition),function(i){R(Ct(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][uy]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var i=mSe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)R(Ct(a),function(d){CSe(d,i,n,r)});else{var o=bSe(i,n);R(o.keys(),function(d){var v=o.get(d);_$(v.oldSeries,v.newSeries,r)})}R(n.updatedSeries,function(d){d[uy]&&(d[uy]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<m$&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Ke([Oce]);Ke([Pce]);Ke([tfe,gfe,Afe,ahe,ghe,rde,Pde,dpe,Ope,Gpe,qpe,Wve,vge,Age,Hge,jge,rye,uye,xye,Aye,Nye,_me]);Ke(Bme);Ke(c0e);Ke(yH);Ke(b0e);Ke(r6);Ke(M0e);Ke(N0e);Ke(b1e);Ke(H1e);Ke(Cp);Ke(a_e);Ke(l_e);Ke(m_e);Ke(T_e);Ke(I_e);Ke(z_e);Ke(Y_e);Ke(fxe);Ke(a$);Ke(o$);Ke(Ixe);Ke(f$);Ke(h$);Ke(Nxe);Ke(Zxe);Ke(Qxe);Ke(TSe);Ke(que);const N5={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},ASe=t=>!isNaN(new Date(t).getTime()),KC=t=>t&&ASe(t)?new Date(t).toLocaleString():"",x$=({charts:t,lines:e,scatterplot:r})=>e.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:t[n]})),z5={type:"value",boundaryGap:[0,"5%"]},MSe=({splitAxis:t,yAxisLabels:e})=>t&&(!e||Array.isArray(e))?Array(2).fill(z5).map((r,n)=>({...r,...e?{name:e[n]}:{}})):{...z5,...e?{name:e}:{}},DSe=t=>new Date(t).toLocaleTimeString(),kSe=({chartValueFormatter:t,value:e})=>t?t(e):Array.isArray(e)?e[1]:e,PSe=({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u})=>({title:{text:e},tooltip:{trigger:"axis",formatter:c=>Array.isArray(c)&&c.length>0&&c.some(f=>!!f.value)?c.reduce((f,{axisValue:h,color:d,seriesName:v,value:y},m)=>`
217
+ ${m===0?KC(h):""}
218
+ ${f}
219
219
  <br>
220
- <span style="color:${f};">
221
- ${h}:&nbsp${kSe({chartValueFormatter:i,value:d})}
220
+ <span style="color:${d};">
221
+ ${v}:&nbsp${kSe({chartValueFormatter:i,value:y})}
222
222
  </span>
223
- `,""):"No data",borderWidth:0},xAxis:{type:"time",min:(t.time||[new Date().toISOString()])[0],startValue:(t.time||[])[0],axisLabel:{formatter:DSe}},grid:{left:60,right:40},yAxis:MSe({splitAxis:a,yAxisLabels:o}),series:x$({charts:t,lines:r,scatterplot:s}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:e.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),ISe=t=>({symbol:"none",label:{formatter:e=>`Run #${e.dataIndex+1}`,padding:[0,0,8,0]},data:(t.markers||[]).map(e=>({xAxis:e}))}),ESe=t=>e=>{const{batch:r}=e;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;t.setOption({dataZoom:[{type:"slider",show:o}]})},LSe=cq;function RSe({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s,shouldReplaceMergeLines:l=!1}){const[u,c]=Q.useState(null),f=LSe(({theme:{isDarkMode:d}})=>d),h=Q.useRef(null);return Q.useEffect(()=>{if(!h.current)return;const d=mle(h.current);d.setOption(PSe({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),d.on("datazoom",ESe(d));const v=()=>d.resize();return window.addEventListener("resize",v),d.group="swarmCharts",_le("swarmCharts"),c(d),()=>{xle(d),window.removeEventListener("resize",v)}},[h]),Q.useEffect(()=>{const d=r.every(({key:v})=>!!t[v]);u&&d&&u.setOption({series:r.map(({key:v,yAxisIndex:y,...m},_)=>({...m,data:t[v],...a?{yAxisIndex:y||_}:{},..._===0?{markLine:ISe(t)}:{}}))})},[t,u,r]),Q.useEffect(()=>{if(u){const{textColor:d,axisColor:v,backgroundColor:y,splitLine:m}=f?N5.DARK:N5.LIGHT;u.setOption({backgroundColor:y,textStyle:{color:d},title:{textStyle:{color:d}},legend:{icon:"circle",inactiveColor:d,textStyle:{color:d}},tooltip:{backgroundColor:y,textStyle:{color:d}},xAxis:{axisLine:{lineStyle:{color:v}}},yAxis:{axisLine:{lineStyle:{color:v}},splitLine:{lineStyle:{color:m}}}})}},[u,f]),Q.useEffect(()=>{u&&u.setOption({series:x$({charts:t,lines:r,scatterplot:s})},l?{replaceMerge:["series"]}:void 0)},[r]),re.jsx("div",{ref:h,style:{width:"100%",height:"300px"}})}const OSe=zl.percentilesToChart?zl.percentilesToChart.map(t=>({name:`${t*100}th percentile`,key:`responseTimePercentile${t}`})):[],NSe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],zSe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:OSe,colors:NSe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function S$({charts:t}){return re.jsx("div",{children:zSe.map((e,r)=>re.jsx(RSe,{...e,charts:t},`swarm-chart-${r}`))})}const BSe=({ui:{charts:t}})=>({charts:t});ep(BSe)(S$);function FSe(t){return(t*100).toFixed(1)+"%"}function QC({classRatio:t}){return re.jsx("ul",{children:Object.entries(t).map(([e,{ratio:r,tasks:n}])=>re.jsxs("li",{children:[`${FSe(r)} ${e}`,n&&re.jsx(QC,{classRatio:n})]},`nested-ratio-${e}`))})}function w$({ratios:{perClass:t,total:e}}){return!t&&!e?null:re.jsxs("div",{children:[t&&re.jsxs(re.Fragment,{children:[re.jsx("h3",{children:"Ratio Per Class"}),re.jsx(QC,{classRatio:t})]}),e&&re.jsxs(re.Fragment,{children:[re.jsx("h3",{children:"Total Ratio"}),re.jsx(QC,{classRatio:e})]})]})}const VSe=({ui:{ratios:t}})=>({ratios:t});ep(VSe)(w$);const Lw={DARK:"dark",LIGHT:"light"},b$=localStorage.theme===Lw.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Lw.DARK:Lw.LIGHT,GSe={isDarkMode:!1},HSe=UZ({name:"theme",initialState:GSe,reducers:{setIsDarkMode:(t,{payload:e})=>{t.isDarkMode=e}}}),$Se=HSe.reducer,WSe=t=>yT({palette:{mode:t,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}}),USe=WSe(window.theme||b$),jSe=(window.theme||b$)==="dark",YSe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}],XSe=NZ({reducer:RB({theme:$Se}),preloadedState:{theme:{isDarkMode:jSe}}});function ZSe({locustfile:t,showDownloadLink:e,startTime:r,endTime:n,duration:i,charts:a,host:o,exceptionsStatistics:s,requestsStatistics:l,failuresStatistics:u,responseTimeStatistics:c,tasks:f}){return re.jsx(eK,{store:XSe,children:re.jsxs(Q7,{theme:USe,children:[re.jsx(OY,{}),re.jsxs(IY,{maxWidth:"lg",sx:{my:4},children:[re.jsxs(fi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[re.jsx(Qr,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),e&&re.jsx(IB,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),re.jsxs(fi,{sx:{my:2},children:[re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"During:"}),re.jsxs(Qr,{children:[KC(r)," - ",KC(n)," (",i,")"]})]}),re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"Target Host:"}),re.jsx(Qr,{children:o||"None"})]}),re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"Script:"}),re.jsx(Qr,{children:t})]})]}),re.jsxs(fi,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),re.jsx(F3,{stats:l,tableStructure:YSe})]}),!!c.length&&re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),re.jsx(_te,{responseTimes:c})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),re.jsx(B3,{errors:u})]}),!!s.length&&re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),re.jsx(z3,{exceptions:s})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),re.jsx(S$,{charts:a})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),re.jsx(w$,{ratios:f})]})]})]})]})})}const qSe=M8.createRoot(document.getElementById("root"));qSe.render(re.jsx(k8,{fallbackRender:I8,children:re.jsx(ZSe,{...O8})}));</script>
223
+ `,""):"No data",borderWidth:0},xAxis:s||{type:"time",min:(t.time||[new Date().toISOString()])[0],startValue:(t.time||[])[0],axisLabel:{formatter:DSe}},grid:l||{left:60,right:40},yAxis:MSe({splitAxis:a,yAxisLabels:o}),series:x$({charts:t,lines:r,scatterplot:u}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:e.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),ISe=t=>({symbol:"none",label:{formatter:e=>`Run #${e.dataIndex+1}`,padding:[0,0,8,0]},data:(t.markers||[]).map(e=>({xAxis:e}))}),ESe=t=>e=>{const{batch:r}=e;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;t.setOption({dataZoom:[{type:"slider",show:o}]})},LSe=cq;function RSe({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u,shouldReplaceMergeLines:c=!1}){const[f,h]=Q.useState(null),d=LSe(({theme:{isDarkMode:y}})=>y),v=Q.useRef(null);return Q.useEffect(()=>{if(!v.current)return;const y=mle(v.current);y.setOption(PSe({charts:t,title:e,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u})),y.on("datazoom",ESe(y));const m=()=>y.resize();return window.addEventListener("resize",m),y.group="swarmCharts",_le("swarmCharts"),h(y),()=>{xle(y),window.removeEventListener("resize",m)}},[v]),Q.useEffect(()=>{const y=r.every(({key:m})=>!!t[m]);f&&y&&f.setOption({series:r.map(({key:m,yAxisIndex:_,...S},w)=>({...S,data:t[m],...a?{yAxisIndex:_||w}:{},...w===0?{markLine:ISe(t)}:{}}))})},[t,f,r]),Q.useEffect(()=>{if(f){const{textColor:y,axisColor:m,backgroundColor:_,splitLine:S}=d?N5.DARK:N5.LIGHT;f.setOption({backgroundColor:_,textStyle:{color:y},title:{textStyle:{color:y}},legend:{icon:"circle",inactiveColor:y,textStyle:{color:y}},tooltip:{backgroundColor:_,textStyle:{color:y}},xAxis:{axisLine:{lineStyle:{color:m}}},yAxis:{axisLine:{lineStyle:{color:m}},splitLine:{lineStyle:{color:S}}}})}},[f,d]),Q.useEffect(()=>{f&&f.setOption({series:x$({charts:t,lines:r,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[r]),re.jsx("div",{ref:v,style:{width:"100%",height:"300px"}})}const OSe=zl.percentilesToChart?zl.percentilesToChart.map(t=>({name:`${t*100}th percentile`,key:`responseTimePercentile${t}`})):[],NSe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],zSe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:OSe,colors:NSe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function S$({charts:t}){return re.jsx("div",{children:zSe.map((e,r)=>re.jsx(RSe,{...e,charts:t},`swarm-chart-${r}`))})}const BSe=({ui:{charts:t}})=>({charts:t});ep(BSe)(S$);function FSe(t){return(t*100).toFixed(1)+"%"}function QC({classRatio:t}){return re.jsx("ul",{children:Object.entries(t).map(([e,{ratio:r,tasks:n}])=>re.jsxs("li",{children:[`${FSe(r)} ${e}`,n&&re.jsx(QC,{classRatio:n})]},`nested-ratio-${e}`))})}function w$({ratios:{perClass:t,total:e}}){return!t&&!e?null:re.jsxs("div",{children:[t&&re.jsxs(re.Fragment,{children:[re.jsx("h3",{children:"Ratio Per Class"}),re.jsx(QC,{classRatio:t})]}),e&&re.jsxs(re.Fragment,{children:[re.jsx("h3",{children:"Total Ratio"}),re.jsx(QC,{classRatio:e})]})]})}const VSe=({ui:{ratios:t}})=>({ratios:t});ep(VSe)(w$);const Lw={DARK:"dark",LIGHT:"light"},b$=localStorage.theme===Lw.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Lw.DARK:Lw.LIGHT,GSe={isDarkMode:!1},HSe=UZ({name:"theme",initialState:GSe,reducers:{setIsDarkMode:(t,{payload:e})=>{t.isDarkMode=e}}}),$Se=HSe.reducer,WSe=t=>yT({palette:{mode:t,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}}),USe=WSe(window.theme||b$),jSe=(window.theme||b$)==="dark",YSe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}],XSe=NZ({reducer:RB({theme:$Se}),preloadedState:{theme:{isDarkMode:jSe}}});function ZSe({locustfile:t,showDownloadLink:e,startTime:r,endTime:n,duration:i,charts:a,host:o,exceptionsStatistics:s,requestsStatistics:l,failuresStatistics:u,responseTimeStatistics:c,tasks:f}){return re.jsx(eK,{store:XSe,children:re.jsxs(Q7,{theme:USe,children:[re.jsx(OY,{}),re.jsxs(IY,{maxWidth:"lg",sx:{my:4},children:[re.jsxs(fi,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[re.jsx(Qr,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),e&&re.jsx(IB,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),re.jsxs(fi,{sx:{my:2},children:[re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"During:"}),re.jsxs(Qr,{children:[KC(r)," - ",KC(n)," (",i,")"]})]}),re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"Target Host:"}),re.jsx(Qr,{children:o||"None"})]}),re.jsxs(fi,{sx:{display:"flex",columnGap:.5},children:[re.jsx(Qr,{fontWeight:600,children:"Script:"}),re.jsx(Qr,{children:t})]})]}),re.jsxs(fi,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),re.jsx(F3,{stats:l,tableStructure:YSe})]}),!!c.length&&re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),re.jsx(_te,{responseTimes:c})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),re.jsx(B3,{errors:u})]}),!!s.length&&re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),re.jsx(z3,{exceptions:s})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),re.jsx(S$,{charts:a})]}),re.jsxs(fi,{children:[re.jsx(Qr,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),re.jsx(w$,{ratios:f})]})]})]})]})})}const qSe=M8.createRoot(document.getElementById("root"));qSe.render(re.jsx(k8,{fallbackRender:I8,children:re.jsx(ZSe,{...O8})}));</script>
224
224
  </head>
225
225
  {% endraw %}
226
226
  <body>